[03:17:22]OFD Sender: No OFD packet to send [03:17:27]OFD Sender: No OFD packet to send [03:17:32]OFD Sender: No OFD packet to send [03:17:37]OFD Sender: No OFD packet to send [03:17:42]OFD Sender: No OFD packet to send [03:17:47]OFD Sender: No OFD packet to send [03:17:52]OFD Sender: No OFD packet to send [03:17:57]OFD Sender: No OFD packet to send [03:18:02]OFD Sender: No OFD packet to send [03:18:07]OFD Sender: No OFD packet to send [03:18:12]OFD Sender: No OFD packet to send [03:18:17]OFD Sender: No OFD packet to send [03:18:22]OFD Sender: No OFD packet to send [03:18:27]OFD Sender: No OFD packet to send [03:18:32]OFD Sender: No OFD packet to send [03:18:37]OFD Sender: No OFD packet to send [03:18:42]OFD Sender: No OFD packet to send [03:18:47]OFD Sender: No OFD packet to send [03:18:52]OFD Sender: No OFD packet to send [03:18:57]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:12]OFD Sender: No OFD packet to send [03:25:17]OFD Sender: No OFD packet to send [03:25:22]OFD Sender: No OFD packet to send [03:25:27]OFD Sender: No OFD packet to send [03:25:32]OFD Sender: No OFD packet to send [03:25:37]OFD Sender: No OFD packet to send [03:25:42]OFD Sender: No OFD packet to send [03:25:47]OFD Sender: No OFD packet to send [03:25:52]OFD Sender: No OFD packet to send [03:25:57]OFD Sender: No OFD packet to send [03:26:02]OFD Sender: No OFD packet to send [03:26:07]OFD Sender: No OFD packet to send [03:26:12]OFD Sender: No OFD packet to send [03:26:17]OFD Sender: No OFD packet to send [03:26:22]OFD Sender: No OFD packet to send [03:26:27]OFD Sender: No OFD packet to send [03:26:32]OFD Sender: No OFD packet to send [03:26:37]OFD Sender: No OFD packet to send [03:26:42]OFD Sender: No OFD packet to send [03:26:47]OFD Sender: No OFD packet to send [03:26:52]OFD Sender: No OFD packet to send [03:26:57]OFD Sender: No OFD packet to send [03:27:02]OFD Sender: No OFD packet to send [03:27:07]OFD Sender: No OFD packet to send [03:27:12]OFD Sender: No OFD packet to send [03:27:17]OFD Sender: No OFD packet to send [03:27:22]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:38]OFD Sender: No OFD packet to send [03:39:43]OFD Sender: No OFD packet to send [03:39:48]OFD Sender: No OFD packet to send [03:39:53]OFD Sender: No OFD packet to send [03:39:58]OFD Sender: No OFD packet to send [03:40:03]OFD Sender: No OFD packet to send [03:40:08]OFD Sender: No OFD packet to send [03:40:13]OFD Sender: No OFD packet to send [03:40:18]OFD Sender: No OFD packet to send [03:40:23]OFD Sender: No OFD packet to send [03:40:28]OFD Sender: No OFD packet to send [03:40:33]OFD Sender: No OFD packet to send [03:40:38]OFD Sender: No OFD packet to send [03:40:43]OFD Sender: No OFD packet to send [03:40:48]OFD Sender: No OFD packet to send [03:40:53]OFD Sender: No OFD packet to send [03:40:58]OFD Sender: No OFD packet to send [03:41:03]OFD Sender: No OFD packet to send [03:41:08]OFD Sender: No OFD packet to send [03:41:13]OFD Sender: No OFD packet to send [03:41:18]OFD Sender: No OFD packet to send [03:41:23]OFD Sender: No OFD packet to send [03:41:28]OFD Sender: No OFD packet to send [03:41:33]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:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:44]OFD Sender: No OFD packet to send [03:55:49]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:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14: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:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:00]accept exits with 9 [04:30:00]New connection [04:30:00]New thread 3066486116 created [04:30:00]Thread 3066629476 joined [04:30:00]Waiting for new connection... [04:30:00] Sock 9.Parse request [04:30:00]Sock 9.Check first char [04:30:00]Sock 9.First char is OK [04:30:00]request: POST /json_proto HTTP/1.0 [04:30:00]Method: POST [04:30:00]URL: /json_proto [04:30:00]Method is POST - this is cgi request [04:30:00]url: /json_proto [04:30:00]query_string will be loaded in cgi processing [04:30:00]execute_cgi json_proto POST (null) [04:30:00]execute_cgi path=json_proto method=POST [04:30:00]POST find Content-Length [04:30:00]Host: 172.17.62.5:8080 [04:30:00]Content-Length: 1166 [04:30:00]Content-Type: application/json [04:30:00] [04:30:00]POST finish read [04:30:00]Found Content-Length = 1166 [04:30: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190822\u000A19.04.2024 04:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4374.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30034110\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:30:00]execute_script... [04:30: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190822\u000A19.04.2024 04:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4374.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30034110\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:30:00]POST & json_proto [04:30:00]process_json_proto [04:30:00]json parsed OK: [04:30:00]protocol is kg_v1.0 [04:30:00]action value=print_text [04:30:00]process_action print_text [04:30:00]cmd_print_text [04:30:00]ExternCall_PrintAddStr [04:30:00]wPrintStart [04:30:00]Write to MH i2c: 01 00 00 F8 1E 16 [04:30:00]Write i2c OK [04:30:00]MH_I2C_Read... [04:30:00]Read from MH i2c: 01 [04:30:00]MH_I2C_Read... [04:30:00]Read from MH i2c: 01 07 00 [04:30:00]MH_I2C_Read... [04:30:00]Read from MH i2c: 01 07 00 F8 1E 00 00 00 00 00 FF 0F 2B [04:30:00]RasterBufferAndPrint [04:30:00]line *****ТОВАРНЫЙ ЧЕК***** [04:30:00]line АЗС 106 [04:30:00]line Партнер нефть [04:30:00]line 02508201610067 [04:30:00]line Кассир : Табалдиева М. [04:30:00]line Счет N : (1)190822 [04:30:00]line 19.04.2024 04:11 [04:30:00]line ПРОДАЖА [04:30:00]line ТРК (МРК, ГНК): 13 [04:30:00]line Вид ГСМ : 2710194210 [04:30:00]line ДТ-К-5 [04:30:00]line 60.000 x 72.90 [04:30:00]line ИТОГ: 4374.00 [04:30:00]line Тип оплаты: Талоны: ТК ГПНА Online [04:30:00]line 30034110 [04:30:00]line ______________________ [04:30:00]line (подпись) [04:30:00]written 0, free lines is 4095 [04:30:01]Write to MH i2c: 01 00 00 0C 1F 2B [04:30:01]Write i2c OK [04:30:01]MH_I2C_Read... [04:30:01]Read from MH i2c: 01 [04:30:01]MH_I2C_Read... [04:30:01]Read from MH i2c: 01 07 00 [04:30:01]MH_I2C_Read... [04:30:01]Read from MH i2c: 01 07 00 0C 1F 00 00 00 00 00 0E 0E 4E [04:30:01]RasterBufferAndPrint [04:30:01]line [04:30:01]line [04:30:01]line [04:30:01]line [04:30:01]line [04:30:01]written 0, free lines is 3599 [04:30:01]MH_Cut [04:30:01]Write to MH i2c: D1 01 00 13 1F 01 04 [04:30:01]Write i2c OK [04:30:01]MH_I2C_Read... [04:30:01]Read from MH i2c: D1 [04:30:01]MH_I2C_Read... [04:30:01]Read from MH i2c: D1 01 00 [04:30:01]MH_I2C_Read... [04:30:01]Read from MH i2c: D1 01 00 13 1F 00 03 [04:30:01]Write to MH i2c: 01 00 00 14 1F 33 [04:30:01]Write i2c OK [04:30:01]MH_I2C_Read... [04:30:01]*** Cut start [04:30:01]*** Partial cut [04:30:01]*** CUTSNS_PIN = 1 [04:30:01]*** CUTSNS_PIN = 0 [04:30:01]*** Brake cut motor [04:30:02]Read from MH i2c: 01 [04:30:02]MH_I2C_Read... [04:30:02]*** Stop cut motor [04:30:02]*** Cut end [04:30:02]Read from MH i2c: 01 07 00 [04:30:02]MH_I2C_Read... [04:30:02]Read from MH i2c: 01 07 00 14 1F 00 00 00 00 00 FF 0F 48 [04:30:02]process_action print_text done [04:30:02]requested_data is exist [04:30:02]produce_requested_data [04:30:02]requested_item fm.sn is exist - process it [04:30:02]wFMCommunicate request_size=4 [04:30:02]MH_SAM_APDU [04:30:02]CAPDU: 80 11 00 00 [04:30:02]Write to MH i2c: E2 08 00 15 1F 80 11 00 00 00 00 00 00 AE [04:30:02]Write i2c OK [04:30:02]MH_I2C_Read... [04:30:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:30:02]Read from MH i2c: E2 [04:30:02]MH_I2C_Read... [04:30:02]Read from MH i2c: E2 17 00 [04:30:02]MH_I2C_Read... [04:30:02]Read from MH i2c: E2 17 00 15 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 01 [04:30:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [04:30:02]wFMCommunicate OK [04:30:02]requested_item fd.num is exist - process it [04:30:02]SAM_PROTO_GetFieldsCounters [04:30:02]wFMCommunicate request_size=4 [04:30:02]MH_SAM_APDU [04:30:02]CAPDU: 80 13 00 00 [04:30:02]Write to MH i2c: E2 08 00 16 1F 80 13 00 00 00 00 00 00 B1 [04:30:02]Write i2c OK [04:30:02]MH_I2C_Read... [04:30:02]OFD Sender: No OFD packet to send [04:30:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:30:02]Read from MH i2c: E2 [04:30:02]MH_I2C_Read... [04:30:02]Read from MH i2c: E2 62 00 [04:30:02]MH_I2C_Read... [04:30:02]Read from MH i2c: E2 62 00 16 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 5D 2A 01 00 0E 04 04 00 72 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 D0 [04:30:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 5D 2A 01 00 0E 04 04 00 72 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 [04:30:02]wFMCommunicate OK [04:30:02]SAM_PROTO_GetFieldsCounters done [04:30:02]requested_item shift.num is exist - process it [04:30:02]requested_item shift.opened is exist - process it [04:30:02]req_shift_opened [04:30:02]FM_GetShiftState [04:30:02]SAM_PROTO_GetShiftState [04:30:02]wFMCommunicate request_size=4 [04:30:02]MH_SAM_APDU [04:30:02]CAPDU: 80 13 01 00 [04:30:02]Write to MH i2c: E2 08 00 17 1F 80 13 01 00 00 00 00 00 B3 [04:30:02]Write i2c OK [04:30:02]MH_I2C_Read... [04:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:30:02]Read from MH i2c: E2 [04:30:02]MH_I2C_Read... [04:30:02]Read from MH i2c: E2 0E 00 [04:30:02]MH_I2C_Read... [04:30:02]Read from MH i2c: E2 0E 00 17 1F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 98 [04:30:02]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [04:30:02]wFMCommunicate OK [04:30:02]SAM_PROTO_GetShiftState done [04:30:02]FM_GetShiftState done [04:30:02]req_shift_opened done [04:30:02]requested_item shift.open_date is exist - process it [04:30:02]req_shift_open_date [04:30:02]req_shift_open_date done [04:30:02]produce_requested_data done [04:30:02]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76381,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [04:30:02]process_action_free print_text [04:30:02]json_value_free [04:30:02]json_value_free done [04:30:02]process_json_proto returns [04:30:02]Send response to host [04:30:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76381,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [04:30:02]free response buf [04:30:02]execute_script done [04:30:02]execute_script returns [04:30:02]free content buf [04:30:02]Sock 9.Close socket [04:30:02]Sock 9.Thread stoped [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:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:38]OFD Sender: No OFD packet to send [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:08]OFD Sender: No OFD packet to send [04:52:13]OFD Sender: No OFD packet to send [04:52:18]OFD Sender: No OFD packet to send [04:52:23]OFD Sender: No OFD packet to send [04:52:28]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]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:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]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:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:08]recv_with_timeout no data received [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]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:45:59]accept exits with 7 [05:45:59]New connection [05:45:59]New thread 3066629476 created [05:45:59]Thread 3066486116 joined [05:45:59]Waiting for new connection... [05:45:59] Sock 7.Parse request [05:45:59]Sock 7.Check first char [05:45:59]Sock 7.First char is OK [05:45:59]request: POST /json_proto HTTP/1.0 [05:45:59]Method: POST [05:45:59]URL: /json_proto [05:45:59]Method is POST - this is cgi request [05:45:59]url: /json_proto [05:45:59]query_string will be loaded in cgi processing [05:45:59]execute_cgi json_proto POST (null) [05:45:59]execute_cgi path=json_proto method=POST [05:45:59]POST find Content-Length [05:45:59]Host: 172.17.62.5:8080 [05:45:59]Content-Length: 816 [05:45:59]Content-Type: application/json [05:45:59] [05:45:59]POST finish read [05:45:59]Found Content-Length = 816 [05:45:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190823", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:45:59]execute_script... [05:45: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)190823", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:45:59]POST & json_proto [05:45:59]process_json_proto [05:45:59]json parsed OK: [05:45:59]protocol is kg_v1.0 [05:45:59]action value=close_receipt [05:45:59]process_action close_receipt [05:45:59]cmd_close_receipt [05:45:59]MH_GetDate [05:45:59]Write to MH i2c: F0 00 00 18 1F 26 [05:45:59]Write i2c OK [05:45:59]MH_I2C_Read... [05:45:59]Read from MH i2c: F0 [05:45:59]MH_I2C_Read... [05:45:59]Read from MH i2c: F0 09 00 [05:45:59]MH_I2C_Read... [05:45:59]Read from MH i2c: F0 09 00 18 1F 00 1B 05 22 66 F4 E9 65 64 7D [05:45:59]GetLastDocTimeStamp 1713496602 [05:45:59]current date 1713505563 [05:45:59]FM_GetShiftState [05:45:59]SAM_PROTO_GetShiftState [05:45:59]wFMCommunicate request_size=4 [05:45:59]MH_SAM_APDU [05:45:59]CAPDU: 80 13 01 00 [05:45:59]Write to MH i2c: E2 08 00 19 1F 80 13 01 00 00 00 00 00 B5 [05:45:59]Write i2c OK [05:45:59]MH_I2C_Read... [05:45:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:45:59]Read from MH i2c: E2 [05:45:59]MH_I2C_Read... [05:45:59]Read from MH i2c: E2 0E 00 [05:45:59]MH_I2C_Read... [05:45:59]Read from MH i2c: E2 0E 00 19 1F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 9A [05:45:59]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [05:45:59]wFMCommunicate OK [05:45:59]SAM_PROTO_GetShiftState done [05:45:59]FM_GetShiftState done [05:45:59]opened in 1713486233 [05:45:59]opened+sec_in_day 1713572633 [05:45:59]quantity*price = 100018 [05:45:59]sum+1 = 100020 [05:45:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 2 19.04.2024 05:46 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76382 ФПД: 179839669184017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T054603&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76382&fm=179839669184017&tin=02508201610067®Number=0000000000091573&sum=100019 [05:46:00]StoreToDocumentArchive [05:46:00]shift 370 fd 76382 [05:46:00]save to /storage/0370/doc_00076382 [05:46:00]save last doc name /storage/0370/doc_00076382 to /storage/kkm_last_doc_name [05:46:00]save OK [05:46:00]Clear old archive folders... [05:46:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:46:00]tlvbuf is 009138E0 [05:46:00]SAM_PROTO_ClearQueue [05:46:00]wFMCommunicate request_size=4 [05:46:00]MH_SAM_APDU [05:46:00]CAPDU: 80 09 00 00 [05:46:00]Write to MH i2c: E2 08 00 26 1F 80 09 00 00 00 00 00 00 B7 [05:46:00]Write i2c OK [05:46:00]MH_I2C_Read... [05:46:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:46:00]Read from MH i2c: E2 [05:46:00]MH_I2C_Read... [05:46:00]Read from MH i2c: E2 03 00 [05:46:00]MH_I2C_Read... [05:46:00]Read from MH i2c: E2 03 00 26 1F 00 90 00 B9 [05:46:00]RAPDU: 90 00 [05:46:00]wFMCommunicate OK [05:46:00]SAM_PROTO_ClearQueue done [05:46:00]KKMCreateOFDPacket [05:46:00]OFDProtocolAddRootSTLVToBuf [05:46:00]FM_MakeSignedData [05:46:00]FM_MakeSignedData [05:46:00]SAM_PROTO_SignData [05:46:00]wFMCommunicate request_size=4 [05:46:00]MH_SAM_APDU [05:46:00]CAPDU: 80 0D 01 02 [05:46:00]Write to MH i2c: E2 08 00 27 1F 80 0D 01 02 00 00 00 00 BF [05:46:00]Write i2c OK [05:46:00]MH_I2C_Read... [05:46:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:46:00]Read from MH i2c: E2 [05:46:00]MH_I2C_Read... [05:46:00]Read from MH i2c: E2 03 00 [05:46:00]MH_I2C_Read... [05:46:00]Read from MH i2c: E2 03 00 27 1F 00 90 00 BA [05:46:00]RAPDU: 90 00 [05:46:00]wFMCommunicate OK [05:46:00]wFMCommunicate request_size=255 [05:46:00]MH_SAM_APDU [05:46:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 02 00 00 00 F4 03 04 00 1B 05 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5E 2A 01 00 35 04 06 00 A3 90 2F 99 [05:46:00]Write to MH i2c: E2 02 01 28 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 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 02 00 00 00 F4 03 04 00 1B 05 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5E 2A 01 00 35 04 06 00 A3 90 2F 99 00 00 EC [05:46:00]Write i2c OK [05:46:00]MH_I2C_Read... [05:46:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:00]Read from MH i2c: E2 [05:46:00]MH_I2C_Read... [05:46:00]Read from MH i2c: E2 03 00 [05:46:00]MH_I2C_Read... [05:46:00]Read from MH i2c: E2 03 00 28 1F 00 90 00 BB [05:46:00]RAPDU: 90 00 [05:46:00]wFMCommunicate OK [05:46:00]wFMCommunicate request_size=7 [05:46:00]MH_SAM_APDU [05:46:00]CAPDU: 80 0D 02 02 02 26 11 [05:46:00]Write to MH i2c: E2 0A 00 29 1F 80 0D 02 02 02 00 26 11 00 00 FD [05:46:00]Write i2c OK [05:46:00]MH_I2C_Read... [05:46:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:00]Read from MH i2c: E2 [05:46:00]MH_I2C_Read... [05:46:00]Read from MH i2c: E2 03 00 [05:46:00]MH_I2C_Read... [05:46:00]Read from MH i2c: E2 03 00 29 1F 00 90 00 BC [05:46:00]RAPDU: 90 00 [05:46:00]wFMCommunicate OK [05:46:00]wFMCommunicate request_size=4 [05:46:00]MH_SAM_APDU [05:46:00]CAPDU: 80 0D 03 02 [05:46:00]Write to MH i2c: E2 08 00 2A 1F 80 0D 03 02 00 00 00 00 C4 [05:46:00]Write i2c OK [05:46:00]MH_I2C_Read... [05:46:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:46:01]Read from MH i2c: E2 [05:46:01]MH_I2C_Read... [05:46:01]Read from MH i2c: E2 0B 00 [05:46:01]MH_I2C_Read... [05:46:01]Read from MH i2c: E2 0B 00 2A 1F 00 23 FC 3E 8A 2B A7 97 06 90 00 1B [05:46:01]RAPDU: 23 FC 3E 8A 2B A7 97 06 90 00 [05:46:01]wFMCommunicate OK [05:46:01]SAM_PROTO_SignData done [05:46:01]FM_MakeSignedData done [05:46:01]CreateOFDProtocolMessage [05:46:01]wFMCommunicate request_size=4 [05:46:01]MH_SAM_APDU [05:46:01]CAPDU: 80 11 00 00 [05:46:01]Write to MH i2c: E2 08 00 2B 1F 80 11 00 00 00 00 00 00 C4 [05:46:01]Write i2c OK [05:46:01]MH_I2C_Read... [05:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:01]Read from MH i2c: E2 [05:46:01]MH_I2C_Read... [05:46:01]Read from MH i2c: E2 17 00 [05:46:01]MH_I2C_Read... [05:46:01]Read from MH i2c: E2 17 00 2B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 17 [05:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [05:46:01]wFMCommunicate OK [05:46:01]CreateOFDProtocolMessage done [05:46:01]OFDSenderStorePacket 76382 [05:46:01]StoreOFDPacket docnum=76382 [05:46:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 09 B8 04 01 CF 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 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 02 00 00 00 F4 03 04 00 1B 05 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5E 2A 01 00 35 04 06 00 A3 90 2F 99 26 11 23 FC 3E 8A 2B A7 97 06 [05:46:01]CheckFolder [05:46:01]dirname=/storage/ofd_packets [05:46:01]CheckFolder done [05:46:01]ProducePacketName [05:46:01]name=ofd_packets/00076382 [05:46:01]NVStorageSaveData ofd_packets/00076382 [05:46:01]File name is /storage/ofd_packets/00076382 [05:46:01]Write 298 bytes [05:46:01]NVStorageSaveData done [05:46:01]OFDSenderStorePacket done [05:46:01]KKMCreateOFDPacket done [05:46:01]NVStorageSaveData kkm_last_timestamp [05:46:01]File name is /storage/kkm_last_timestamp [05:46:01]Write 4 bytes [05:46:01]NVStorageSaveData done [05:46:01]ExternCall_PrintAddStr [05:46:01]wPrintStart [05:46:01]Write to MH i2c: 01 00 00 2C 1F 4B [05:46:01]Write i2c OK [05:46:01]MH_I2C_Read... [05:46:01]Read from MH i2c: 01 [05:46:01]MH_I2C_Read... [05:46:01]Read from MH i2c: 01 07 00 [05:46:01]MH_I2C_Read... [05:46:01]Read from MH i2c: 01 07 00 2C 1F 00 00 00 00 00 FF 0F 60 [05:46:01]RasterBufferAndPrint [05:46:01]line Счет N : (1)190823 [05:46:01]line ИНН: 02508201610067 [05:46:01]line Контрольно-Кассовый Чек [05:46:01]line ПРОДАЖА [05:46:01]line ТРК (МРК, ГНК) : 51 [05:46:01]line Товар: 2710194210 [05:46:01]line ДТ-К-5 [05:46:01]line 13.720 * 72.90 [05:46:01]line = 1000.19 [05:46:01]line НДС 12% НСП 1% [05:46:01]line > о реализуемом товаре [05:46:01]line ИТОГО: 1000.19 [05:46:01]line НСП 1% : 8.85 [05:46:01]line НДС 12% : 106.21 [05:46:01]line Наличными: 0.00 [05:46:01]line Безнал.: 1000.19 [05:46:01]line Место: АЗС № 106 "Партнер Нефть" [05:46:01]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [05:46:01]line СНО: Общий режим [05:46:01]line Чек 2 19.04.2024 05:46 [05:46:01]line Смена: 370 ФФД: 1.0 [05:46:01]line ЗНМ: 0300000141 [05:46:01]line РНМ: 0000000000091573 [05:46:01]line Версия ККМ: 001 [05:46:01]line Платежная система: Бакай Банк [05:46:01]line ФМ: 0000000000874652 [05:46:01]line ФД: 76382 [05:46:01]line ФПД: 179839669184017 [05:46:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T054603&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76382&fm=179839669184017&tin=02508201610067®Number=0000000000091573&sum=100019 [05:46:01]OFD Sender: Processing packet 76382 [packets to send 128, broken 127] [05:46:01]ProducePacketName [05:46:01]name=ofd_packets/00076382 [05:46:01]OFD Sender: To server: pG, [05:46:01]CommunicateWithHost lk.salyk.kg:30040 [05:46:01]ConnectInit lk.salyk.kg [05:46:01]written 0, free lines is 4095 [05:46:01]Connected sock=9 [05:46:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 09 B8 04 01 CF 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 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 02 00 00 00 F4 03 04 00 1B 05 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5E 2A 01 00 35 04 06 00 A3 90 2F 99 26 11 23 FC 3E 8A 2B A7 97 06 [05:46:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 6B DC 47 00 20 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 34 36 35 32 10 04 04 00 5E 2A 01 00 F4 03 04 00 A7 AC 21 66 B6 04 01 00 00 B5 8E C7 DF 0C 8F 91 3B [05:46:01]CommunicateWithHost err = 0 [05:46:01]CheckOFDResponse [05:46:01]1017 (14) - 77093643461234 [05:46:01]1041 (16) - 0000000000874652 [05:46:01]1040 (4) - 76382 [05:46:01]1012 (4) - 18.04.2024 23:28 [05:46:01]1206 (1) - 0 [05:46:01]OFD Sender: Remove packet 76382 [05:46:01]ProducePacketName [05:46:01]name=ofd_packets/00076382 [05:46:01]NVStorageDeleteData [05:46:01]Write to MH i2c: 01 00 00 55 1F 74 [05:46:01]Write i2c OK [05:46:01]MH_I2C_Read... [05:46:01]Read from MH i2c: 01 [05:46:01]MH_I2C_Read... [05:46:01]Read from MH i2c: 01 07 00 [05:46:01]MH_I2C_Read... [05:46:01]Read from MH i2c: 01 07 00 55 1F 00 00 00 00 00 06 0D 8E [05:46:01]RasterBufferAndPrint [05:46:01]line [05:46:01]line [05:46:01]line [05:46:01]line [05:46:01]line [05:46:01]written 0, free lines is 3341 [05:46:01]MH_Cut [05:46:01]Write to MH i2c: D1 01 00 5C 1F 01 4D [05:46:01]Write i2c OK [05:46:01]MH_I2C_Read... [05:46:01]Read from MH i2c: D1 [05:46:01]MH_I2C_Read... [05:46:01]Read from MH i2c: D1 01 00 [05:46:01]MH_I2C_Read... [05:46:01]Read from MH i2c: D1 01 00 5C 1F 00 4C [05:46:01]Write to MH i2c: 01 00 00 5D 1F 7C [05:46:01]Write i2c OK [05:46:01]MH_I2C_Read... [05:46:02]OFD Sender: No OFD packet to send [05:46:02]*** Cut start [05:46:02]*** Partial cut [05:46:02]*** CUTSNS_PIN = 1 [05:46:02]*** CUTSNS_PIN = 0 [05:46:02]*** Brake cut motor [05:46:03]Read from MH i2c: 01 [05:46:03]MH_I2C_Read... [05:46:03]*** Stop cut motor [05:46:03]*** Cut end [05:46:03]Read from MH i2c: 01 07 00 [05:46:03]MH_I2C_Read... [05:46:03]Read from MH i2c: 01 07 00 5D 1F 00 00 00 00 00 FF 0F 91 [05:46:03]process_action close_receipt done [05:46:03]requested_data is exist [05:46:03]produce_requested_data [05:46:03]requested_item fm.sn is exist - process it [05:46:03]wFMCommunicate request_size=4 [05:46:03]MH_SAM_APDU [05:46:03]CAPDU: 80 11 00 00 [05:46:03]Write to MH i2c: E2 08 00 5E 1F 80 11 00 00 00 00 00 00 F7 [05:46:03]Write i2c OK [05:46:03]MH_I2C_Read... [05:46:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:03]Read from MH i2c: E2 [05:46:03]MH_I2C_Read... [05:46:03]Read from MH i2c: E2 17 00 [05:46:03]MH_I2C_Read... [05:46:03]Read from MH i2c: E2 17 00 5E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4A [05:46:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [05:46:03]wFMCommunicate OK [05:46:03]requested_item fd.num is exist - process it [05:46:03]SAM_PROTO_GetFieldsCounters [05:46:03]wFMCommunicate request_size=4 [05:46:03]MH_SAM_APDU [05:46:03]CAPDU: 80 13 00 00 [05:46:03]Write to MH i2c: E2 08 00 5F 1F 80 13 00 00 00 00 00 00 FA [05:46:03]Write i2c OK [05:46:03]MH_I2C_Read... [05:46:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:46:03]Read from MH i2c: E2 [05:46:03]MH_I2C_Read... [05:46:03]Read from MH i2c: E2 62 00 [05:46:03]MH_I2C_Read... [05:46:03]Read from MH i2c: E2 62 00 5F 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 5E 2A 01 00 0E 04 04 00 72 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 1D [05:46:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 5E 2A 01 00 0E 04 04 00 72 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 [05:46:03]wFMCommunicate OK [05:46:03]SAM_PROTO_GetFieldsCounters done [05:46:03]requested_item shift.num is exist - process it [05:46:03]requested_item shift.opened is exist - process it [05:46:03]req_shift_opened [05:46:03]FM_GetShiftState [05:46:03]SAM_PROTO_GetShiftState [05:46:03]wFMCommunicate request_size=4 [05:46:03]MH_SAM_APDU [05:46:03]CAPDU: 80 13 01 00 [05:46:03]Write to MH i2c: E2 08 00 60 1F 80 13 01 00 00 00 00 00 FC [05:46:03]Write i2c OK [05:46:03]MH_I2C_Read... [05:46:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:46:03]Read from MH i2c: E2 [05:46:03]MH_I2C_Read... [05:46:03]Read from MH i2c: E2 0E 00 [05:46:03]MH_I2C_Read... [05:46:03]Read from MH i2c: E2 0E 00 60 1F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E1 [05:46:03]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [05:46:03]wFMCommunicate OK [05:46:03]SAM_PROTO_GetShiftState done [05:46:03]FM_GetShiftState done [05:46:03]req_shift_opened done [05:46:03]requested_item shift.open_date is exist - process it [05:46:03]req_shift_open_date [05:46:03]req_shift_open_date done [05:46:03]produce_requested_data done [05:46:03]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76382,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [05:46:03]process_action_free close_receipt [05:46:03]json_value_free [05:46:03]json_value_free done [05:46:03]process_json_proto returns [05:46:03]Send response to host [05:46:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76382,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [05:46:03]free response buf [05:46:03]execute_script done [05:46:03]execute_script returns [05:46:03]free content buf [05:46:03]Sock 7.Close socket [05:46:03]Sock 7.Thread stoped [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:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]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:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:10]OFD Sender: No OFD packet to send [06:30:15]OFD Sender: No OFD packet to send [06:30:20]OFD Sender: No OFD packet to send [06:30:25]OFD Sender: No OFD packet to send [06:30:30]OFD Sender: No OFD packet to send [06:30:35]OFD Sender: No OFD packet to send [06:30:40]OFD Sender: No OFD packet to send [06:30:45]OFD Sender: No OFD packet to send [06:30:50]OFD Sender: No OFD packet to send [06:30:55]OFD Sender: No OFD packet to send [06:31:00]OFD Sender: No OFD packet to send [06:31:05]OFD Sender: No OFD packet to send [06:31:10]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:40]OFD Sender: No OFD packet to send [06:31:45]OFD Sender: No OFD packet to send [06:31:50]OFD Sender: No OFD packet to send [06:31:55]OFD Sender: No OFD packet to send [06:32:00]OFD Sender: No OFD packet to send [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [06:32:30]OFD Sender: No OFD packet to send [06:32:35]OFD Sender: No OFD packet to send [06:32:40]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:37]accept exits with 10 [06:37:37]New connection [06:37:37]New thread 3066486116 created [06:37:37]Thread 3066629476 joined [06:37:37]Waiting for new connection... [06:37:37] Sock 10.Parse request [06:37:37]Sock 10.Check first char [06:37:37]Sock 10.First char is OK [06:37:37]request: POST /json_proto HTTP/1.0 [06:37:37]Method: POST [06:37:37]URL: /json_proto [06:37:37]Method is POST - this is cgi request [06:37:37]url: /json_proto [06:37:37]query_string will be loaded in cgi processing [06:37:37]execute_cgi json_proto POST (null) [06:37:37]execute_cgi path=json_proto method=POST [06:37:37]POST find Content-Length [06:37:37]Host: 172.17.62.5:8080 [06:37:37]Content-Length: 978 [06:37:37]Content-Type: application/json [06:37:37] [06:37:37]POST finish read [06:37:37]Found Content-Length = 978 [06:37:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 22.260, "sum" : 1600.49, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.26 \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" ] } } [06:37:37]execute_script... [06:37: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)190824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 22.260, "sum" : 1600.49, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.26 \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" ] } } [06:37:37]POST & json_proto [06:37:37]process_json_proto [06:37:37]json parsed OK: [06:37:37]protocol is kg_v1.0 [06:37:37]action value=close_receipt [06:37:37]process_action close_receipt [06:37:37]cmd_close_receipt [06:37:37]MH_GetDate [06:37:37]Write to MH i2c: F0 00 00 61 1F 6F [06:37:37]Write i2c OK [06:37:37]MH_I2C_Read... [06:37:37]Read from MH i2c: F0 [06:37:37]MH_I2C_Read... [06:37:37]Read from MH i2c: F0 09 00 [06:37:37]MH_I2C_Read... [06:37:37]Read from MH i2c: F0 09 00 61 1F 00 35 11 22 66 F4 E9 65 64 EC [06:37:37]GetLastDocTimeStamp 1713505563 [06:37:37]current date 1713508661 [06:37:37]FM_GetShiftState [06:37:37]SAM_PROTO_GetShiftState [06:37:37]wFMCommunicate request_size=4 [06:37:37]MH_SAM_APDU [06:37:37]CAPDU: 80 13 01 00 [06:37:37]Write to MH i2c: E2 08 00 62 1F 80 13 01 00 00 00 00 00 FE [06:37:37]Write i2c OK [06:37:37]MH_I2C_Read... [06:37:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:37]Read from MH i2c: E2 [06:37:37]MH_I2C_Read... [06:37:37]Read from MH i2c: E2 0E 00 [06:37:37]MH_I2C_Read... [06:37:37]Read from MH i2c: E2 0E 00 62 1F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E3 [06:37:37]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [06:37:37]wFMCommunicate OK [06:37:37]SAM_PROTO_GetShiftState done [06:37:37]FM_GetShiftState done [06:37:37]opened in 1713486233 [06:37:37]opened+sec_in_day 1713572633 [06:37:37]quantity*price = 160049 [06:37:37]sum+1 = 160050 [06:37:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.96 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 3 19.04.2024 06:37 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 22.26 сом ФМ: 0000000000874652 ФД: 76383 ФПД: 155682778716865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T063741&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76383&fm=155682778716865&tin=02508201610067®Number=0000000000091573&sum=160000 [06:37:38]StoreToDocumentArchive [06:37:38]shift 370 fd 76383 [06:37:38]save to /storage/0370/doc_00076383 [06:37:38]save last doc name /storage/0370/doc_00076383 to /storage/kkm_last_doc_name [06:37:38]save OK [06:37:38]Clear old archive folders... [06:37:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:37:38]tlvbuf is B6F093F0 [06:37:38]SAM_PROTO_ClearQueue [06:37:38]wFMCommunicate request_size=4 [06:37:38]MH_SAM_APDU [06:37:38]CAPDU: 80 09 00 00 [06:37:38]Write to MH i2c: E2 08 00 6F 1F 80 09 00 00 00 00 00 00 00 [06:37:38]Write i2c OK [06:37:38]MH_I2C_Read... [06:37:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:37:38]Read from MH i2c: E2 [06:37:38]MH_I2C_Read... [06:37:38]Read from MH i2c: E2 03 00 [06:37:38]MH_I2C_Read... [06:37:38]Read from MH i2c: E2 03 00 6F 1F 00 90 00 02 [06:37:38]RAPDU: 90 00 [06:37:38]wFMCommunicate OK [06:37:38]SAM_PROTO_ClearQueue done [06:37:38]KKMCreateOFDPacket [06:37:38]OFDProtocolAddRootSTLVToBuf [06:37:38]FM_MakeSignedData [06:37:38]FM_MakeSignedData [06:37:38]SAM_PROTO_SignData [06:37:38]wFMCommunicate request_size=4 [06:37:38]MH_SAM_APDU [06:37:38]CAPDU: 80 0D 01 02 [06:37:38]Write to MH i2c: E2 08 00 70 1F 80 0D 01 02 00 00 00 00 08 [06:37:38]Write i2c OK [06:37:38]MH_I2C_Read... [06:37:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:37:38]Read from MH i2c: E2 [06:37:38]MH_I2C_Read... [06:37:38]Read from MH i2c: E2 03 00 [06:37:38]MH_I2C_Read... [06:37:38]Read from MH i2c: E2 03 00 70 1F 00 90 00 03 [06:37:38]RAPDU: 90 00 [06:37:38]wFMCommunicate OK [06:37:38]wFMCommunicate request_size=255 [06:37:38]MH_SAM_APDU [06:37:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 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 64 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 03 00 00 00 F4 03 04 00 35 11 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5F 2A 01 00 35 04 06 00 8D 97 B8 B9 [06:37:38]Write to MH i2c: E2 02 01 71 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 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 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 64 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 03 00 00 00 F4 03 04 00 35 11 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5F 2A 01 00 35 04 06 00 8D 97 B8 B9 00 00 01 [06:37:38]Write i2c OK [06:37:38]MH_I2C_Read... [06:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:39]Read from MH i2c: E2 [06:37:39]MH_I2C_Read... [06:37:39]Read from MH i2c: E2 03 00 [06:37:39]MH_I2C_Read... [06:37:39]Read from MH i2c: E2 03 00 71 1F 00 90 00 04 [06:37:39]RAPDU: 90 00 [06:37:39]wFMCommunicate OK [06:37:39]wFMCommunicate request_size=7 [06:37:39]MH_SAM_APDU [06:37:39]CAPDU: 80 0D 02 02 02 1A C1 [06:37:39]Write to MH i2c: E2 0A 00 72 1F 80 0D 02 02 02 00 1A C1 00 00 EA [06:37:39]Write i2c OK [06:37:39]MH_I2C_Read... [06:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:39]Read from MH i2c: E2 [06:37:39]MH_I2C_Read... [06:37:39]Read from MH i2c: E2 03 00 [06:37:39]MH_I2C_Read... [06:37:39]Read from MH i2c: E2 03 00 72 1F 00 90 00 05 [06:37:39]RAPDU: 90 00 [06:37:39]wFMCommunicate OK [06:37:39]wFMCommunicate request_size=4 [06:37:39]MH_SAM_APDU [06:37:39]CAPDU: 80 0D 03 02 [06:37:39]Write to MH i2c: E2 08 00 73 1F 80 0D 03 02 00 00 00 00 0D [06:37:39]Write i2c OK [06:37:39]MH_I2C_Read... [06:37:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:37:39]Read from MH i2c: E2 [06:37:39]MH_I2C_Read... [06:37:39]Read from MH i2c: E2 0B 00 [06:37:39]MH_I2C_Read... [06:37:39]Read from MH i2c: E2 0B 00 73 1F 00 D0 2E B5 CD D6 D1 DC 0D 90 00 1E [06:37:39]RAPDU: D0 2E B5 CD D6 D1 DC 0D 90 00 [06:37:39]wFMCommunicate OK [06:37:39]SAM_PROTO_SignData done [06:37:39]FM_MakeSignedData done [06:37:39]CreateOFDProtocolMessage [06:37:39]wFMCommunicate request_size=4 [06:37:39]MH_SAM_APDU [06:37:39]CAPDU: 80 11 00 00 [06:37:39]Write to MH i2c: E2 08 00 74 1F 80 11 00 00 00 00 00 00 0D [06:37:39]Write i2c OK [06:37:39]MH_I2C_Read... [06:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:39]Read from MH i2c: E2 [06:37:39]MH_I2C_Read... [06:37:39]Read from MH i2c: E2 17 00 [06:37:39]MH_I2C_Read... [06:37:39]Read from MH i2c: E2 17 00 74 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 60 [06:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:37:39]wFMCommunicate OK [06:37:39]CreateOFDProtocolMessage done [06:37:39]OFDSenderStorePacket 76383 [06:37:39]StoreOFDPacket docnum=76383 [06:37:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 BF 49 04 01 DA 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 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 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 64 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 03 00 00 00 F4 03 04 00 35 11 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5F 2A 01 00 35 04 06 00 8D 97 B8 B9 1A C1 D0 2E B5 CD D6 D1 DC 0D [06:37:39]CheckFolder [06:37:39]dirname=/storage/ofd_packets [06:37:39]CheckFolder done [06:37:39]ProducePacketName [06:37:39]name=ofd_packets/00076383 [06:37:39]NVStorageSaveData ofd_packets/00076383 [06:37:39]File name is /storage/ofd_packets/00076383 [06:37:39]Write 298 bytes [06:37:39]NVStorageSaveData done [06:37:39]OFDSenderStorePacket done [06:37:39]KKMCreateOFDPacket done [06:37:39]NVStorageSaveData kkm_last_timestamp [06:37:39]File name is /storage/kkm_last_timestamp [06:37:39]Write 4 bytes [06:37:39]NVStorageSaveData done [06:37:39]ExternCall_PrintAddStr [06:37:39]wPrintStart [06:37:39]Write to MH i2c: 01 00 00 75 1F 94 [06:37:39]Write i2c OK [06:37:39]MH_I2C_Read... [06:37:39]Read from MH i2c: 01 [06:37:39]MH_I2C_Read... [06:37:39]Read from MH i2c: 01 07 00 [06:37:39]MH_I2C_Read... [06:37:39]Read from MH i2c: 01 07 00 75 1F 00 00 00 00 00 FF 0F A9 [06:37:39]RasterBufferAndPrint [06:37:39]line Счет N : (1)190824 [06:37:39]line ИНН: 02508201610067 [06:37:39]line Контрольно-Кассовый Чек [06:37:39]line ПРОДАЖА [06:37:39]line ТРК (МРК, ГНК) : 23 [06:37:39]line Товар: 2710194210 [06:37:39]line ДТ-К-5 [06:37:39]line 22.260 * 71.90 [06:37:39]line = 1600.49 [06:37:39]line НДС 12% НСП 1% [06:37:39]line > о реализуемом товаре [06:37:39]line ОКРУГЛЕНИЕ: -0.49 [06:37:39]line ИТОГО: 1600.00 [06:37:39]line Внесено: 1600.00 [06:37:39]line СДАЧА: 0.00 [06:37:39]line НСП 1% : 14.16 [06:37:39]line НДС 12% : 169.96 [06:37:39]line Наличными: 1600.00 [06:37:39]line Безнал.: 0.00 [06:37:39]line Место: АЗС № 106 "Партнер Нефть" [06:37:39]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [06:37:39]line СНО: Общий режим [06:37:39]line Чек 3 19.04.2024 06:37 [06:37:39]line Смена: 370 ФФД: 1.0 [06:37:39]line ЗНМ: 0300000141 [06:37:39]line РНМ: 0000000000091573 [06:37:39]line Версия ККМ: 001 [06:37:39]line [06:37:39]line Дисконтная программа [06:37:39]line ДТ [06:37:39]line номер 106 [06:37:39]line сэкономлено 22.26 сом [06:37:39]line ФМ: 0000000000874652 [06:37:39]line ФД: 76383 [06:37:39]line ФПД: 155682778716865 [06:37:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T063741&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76383&fm=155682778716865&tin=02508201610067®Number=0000000000091573&sum=160000 [06:37:39]OFD Sender: Processing packet 76383 [packets to send 128, broken 127] [06:37:39]ProducePacketName [06:37:39]name=ofd_packets/00076383 [06:37:39]OFD Sender: To server: pG, [06:37:39]CommunicateWithHost lk.salyk.kg:30040 [06:37:39]ConnectInit lk.salyk.kg [06:37:39]written 0, free lines is 4095 [06:37:39]Connected sock=7 [06:37:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 BF 49 04 01 DA 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 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 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 64 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 03 00 00 00 F4 03 04 00 35 11 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 5F 2A 01 00 35 04 06 00 8D 97 B8 B9 1A C1 D0 2E B5 CD D6 D1 DC 0D [06:37:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 64 38 47 00 E4 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 34 36 35 32 10 04 04 00 5F 2A 01 00 F4 03 04 00 C1 B8 21 66 B6 04 01 00 00 AB 91 3F 7E 74 87 19 00 [06:37:39]CommunicateWithHost err = 0 [06:37:39]CheckOFDResponse [06:37:39]1017 (14) - 77093643461234 [06:37:39]1041 (16) - 0000000000874652 [06:37:39]1040 (4) - 76383 [06:37:39]1012 (4) - 19.04.2024 00:20 [06:37:39]1206 (1) - 0 [06:37:39]OFD Sender: Remove packet 76383 [06:37:39]ProducePacketName [06:37:39]name=ofd_packets/00076383 [06:37:39]NVStorageDeleteData [06:37:40]Write to MH i2c: 01 00 00 A4 1F C3 [06:37:40]Write i2c OK [06:37:40]MH_I2C_Read... [06:37:40]Read from MH i2c: 01 [06:37:40]MH_I2C_Read... [06:37:40]Read from MH i2c: 01 07 00 [06:37:40]MH_I2C_Read... [06:37:40]Read from MH i2c: 01 07 00 A4 1F 00 00 00 00 00 92 0C 68 [06:37:40]RasterBufferAndPrint [06:37:40]line [06:37:40]line [06:37:40]line [06:37:40]line [06:37:40]line [06:37:40]written 0, free lines is 3228 [06:37:40]MH_Cut [06:37:40]Write to MH i2c: D1 01 00 AB 1F 01 9C [06:37:40]Write i2c OK [06:37:40]MH_I2C_Read... [06:37:40]Read from MH i2c: D1 [06:37:40]MH_I2C_Read... [06:37:40]Read from MH i2c: D1 01 00 [06:37:40]MH_I2C_Read... [06:37:40]Read from MH i2c: D1 01 00 AB 1F 00 9B [06:37:40]Write to MH i2c: 01 00 00 AC 1F CB [06:37:40]Write i2c OK [06:37:40]MH_I2C_Read... [06:37:40]OFD Sender: No OFD packet to send [06:37:40]*** Cut start [06:37:40]*** Partial cut [06:37:40]*** CUTSNS_PIN = 1 [06:37:40]*** CUTSNS_PIN = 0 [06:37:41]*** Brake cut motor [06:37:41]Read from MH i2c: 01 [06:37:41]MH_I2C_Read... [06:37:41]*** Stop cut motor [06:37:41]Read from MH i2c: 01 07 00 [06:37:41]MH_I2C_Read... [06:37:41]*** Cut end [06:37:41]Read from MH i2c: 01 07 00 AC 1F 00 00 00 00 00 FF 0F E0 [06:37:41]process_action close_receipt done [06:37:41]requested_data is exist [06:37:41]produce_requested_data [06:37:41]requested_item fm.sn is exist - process it [06:37:41]wFMCommunicate request_size=4 [06:37:41]MH_SAM_APDU [06:37:41]CAPDU: 80 11 00 00 [06:37:41]Write to MH i2c: E2 08 00 AD 1F 80 11 00 00 00 00 00 00 46 [06:37:41]Write i2c OK [06:37:41]MH_I2C_Read... [06:37:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:41]Read from MH i2c: E2 [06:37:41]MH_I2C_Read... [06:37:41]Read from MH i2c: E2 17 00 [06:37:41]MH_I2C_Read... [06:37:41]Read from MH i2c: E2 17 00 AD 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 99 [06:37:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:37:41]wFMCommunicate OK [06:37:41]requested_item fd.num is exist - process it [06:37:41]SAM_PROTO_GetFieldsCounters [06:37:41]wFMCommunicate request_size=4 [06:37:41]MH_SAM_APDU [06:37:41]CAPDU: 80 13 00 00 [06:37:41]Write to MH i2c: E2 08 00 AE 1F 80 13 00 00 00 00 00 00 49 [06:37:41]Write i2c OK [06:37:41]MH_I2C_Read... [06:37:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:37:41]Read from MH i2c: E2 [06:37:41]MH_I2C_Read... [06:37:41]Read from MH i2c: E2 62 00 [06:37:41]MH_I2C_Read... [06:37:41]Read from MH i2c: E2 62 00 AE 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 5F 2A 01 00 0E 04 04 00 72 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 70 [06:37:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 5F 2A 01 00 0E 04 04 00 72 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 [06:37:41]wFMCommunicate OK [06:37:41]SAM_PROTO_GetFieldsCounters done [06:37:41]requested_item shift.num is exist - process it [06:37:41]requested_item shift.opened is exist - process it [06:37:41]req_shift_opened [06:37:41]FM_GetShiftState [06:37:41]SAM_PROTO_GetShiftState [06:37:41]wFMCommunicate request_size=4 [06:37:41]MH_SAM_APDU [06:37:41]CAPDU: 80 13 01 00 [06:37:41]Write to MH i2c: E2 08 00 AF 1F 80 13 01 00 00 00 00 00 4B [06:37:41]Write i2c OK [06:37:41]MH_I2C_Read... [06:37:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:41]Read from MH i2c: E2 [06:37:41]MH_I2C_Read... [06:37:41]Read from MH i2c: E2 0E 00 [06:37:41]MH_I2C_Read... [06:37:41]Read from MH i2c: E2 0E 00 AF 1F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 30 [06:37:41]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [06:37:41]wFMCommunicate OK [06:37:41]SAM_PROTO_GetShiftState done [06:37:41]FM_GetShiftState done [06:37:41]req_shift_opened done [06:37:41]requested_item shift.open_date is exist - process it [06:37:41]req_shift_open_date [06:37:41]req_shift_open_date done [06:37:41]produce_requested_data done [06:37:41]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76383,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [06:37:41]process_action_free close_receipt [06:37:41]json_value_free [06:37:41]json_value_free done [06:37:41]process_json_proto returns [06:37:41]Send response to host [06:37:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76383,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [06:37:41]free response buf [06:37:41]execute_script done [06:37:41]execute_script returns [06:37:41]free content buf [06:37:41]Sock 10.Close socket [06:37:41]Sock 10.Thread stoped [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:50]OFD Sender: No OFD packet to send [06:38:55]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:41]OFD Sender: No OFD packet to send [06:46:46]OFD Sender: No OFD packet to send [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:36]accept exits with 9 [07:09:36]New connection [07:09:36]New thread 3066629476 created [07:09:36]Thread 3066486116 joined [07:09:36]Waiting for new connection... [07:09:36] Sock 9.Parse request [07:09:36]Sock 9.Check first char [07:09:36]Sock 9.First char is OK [07:09:36]request: POST /json_proto HTTP/1.0 [07:09:36]Method: POST [07:09:36]URL: /json_proto [07:09:36]Method is POST - this is cgi request [07:09:36]url: /json_proto [07:09:36]query_string will be loaded in cgi processing [07:09:36]execute_cgi json_proto POST (null) [07:09:36]execute_cgi path=json_proto method=POST [07:09:36]POST find Content-Length [07:09:36]Host: 172.17.62.5:8080 [07:09:36]Content-Length: 215 [07:09:36]Content-Type: application/json [07:09:36] [07:09:36]POST finish read [07:09:36]Found Content-Length = 215 [07:09:36]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" ] } } [07:09:36]execute_script... [07:09:36]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" ] } } [07:09:36]POST & json_proto [07:09:36]process_json_proto [07:09:36]json parsed OK: [07:09:36]protocol is kg_v1.0 [07:09:36]action value=get_value [07:09:36]process_action get_value [07:09:36]cmd_get_value [07:09:36]process_action get_value done [07:09:36]requested_data is exist [07:09:36]produce_requested_data [07:09:36]requested_item kkm.sn is exist - process it [07:09:36]requested_item kkm.ver is exist - process it [07:09:36]requested_item fm.sn is exist - process it [07:09:36]wFMCommunicate request_size=4 [07:09:36]MH_SAM_APDU [07:09:36]CAPDU: 80 11 00 00 [07:09:36]Write to MH i2c: E2 08 00 B0 1F 80 11 00 00 00 00 00 00 49 [07:09:36]Write i2c OK [07:09:36]MH_I2C_Read... [07:09:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:36]Read from MH i2c: E2 [07:09:36]MH_I2C_Read... [07:09:36]Read from MH i2c: E2 17 00 [07:09:36]MH_I2C_Read... [07:09:36]Read from MH i2c: E2 17 00 B0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9C [07:09:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:09:36]wFMCommunicate OK [07:09:36]requested_item fd.num is exist - process it [07:09:36]SAM_PROTO_GetFieldsCounters [07:09:36]wFMCommunicate request_size=4 [07:09:36]MH_SAM_APDU [07:09:36]CAPDU: 80 13 00 00 [07:09:36]Write to MH i2c: E2 08 00 B1 1F 80 13 00 00 00 00 00 00 4C [07:09:36]Write i2c OK [07:09:36]MH_I2C_Read... [07:09:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:09:36]Read from MH i2c: E2 [07:09:36]MH_I2C_Read... [07:09:36]Read from MH i2c: E2 62 00 [07:09:36]MH_I2C_Read... [07:09:36]Read from MH i2c: E2 62 00 B1 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 5F 2A 01 00 0E 04 04 00 72 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 73 [07:09:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 5F 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:09:36]wFMCommunicate OK [07:09:36]SAM_PROTO_GetFieldsCounters done [07:09:36]requested_item shift.num is exist - process it [07:09:36]requested_item shift.opened is exist - process it [07:09:36]req_shift_opened [07:09:36]FM_GetShiftState [07:09:36]SAM_PROTO_GetShiftState [07:09:36]wFMCommunicate request_size=4 [07:09:36]MH_SAM_APDU [07:09:36]CAPDU: 80 13 01 00 [07:09:36]Write to MH i2c: E2 08 00 B2 1F 80 13 01 00 00 00 00 00 4E [07:09:36]Write i2c OK [07:09:36]MH_I2C_Read... [07:09:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:36]Read from MH i2c: E2 [07:09:36]MH_I2C_Read... [07:09:36]Read from MH i2c: E2 0E 00 [07:09:36]MH_I2C_Read... [07:09:36]Read from MH i2c: E2 0E 00 B2 1F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 33 [07:09:36]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [07:09:36]wFMCommunicate OK [07:09:36]SAM_PROTO_GetShiftState done [07:09:36]FM_GetShiftState done [07:09:36]req_shift_opened done [07:09:36]requested_item shift.open_date is exist - process it [07:09:36]req_shift_open_date [07:09:36]req_shift_open_date done [07:09:36]produce_requested_data done [07:09:36]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76383,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [07:09:36]process_action_free get_value [07:09:36]json_value_free [07:09:36]json_value_free done [07:09:36]process_json_proto returns [07:09:36]Send response to host [07:09:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76383,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [07:09:36]free response buf [07:09:36]execute_script done [07:09:36]execute_script returns [07:09:36]free content buf [07:09:36]Sock 9.Close socket [07:09:36]Sock 9.Thread stoped [07:09:36]accept exits with 7 [07:09:36]New connection [07:09:36]New thread 3066486116 created [07:09:36]Thread 3066629476 joined [07:09:36]Waiting for new connection... [07:09:36] Sock 7.Parse request [07:09:36]Sock 7.Check first char [07:09:36]Sock 7.First char is OK [07:09:36]request: POST /json_proto HTTP/1.0 [07:09:36]Method: POST [07:09:36]URL: /json_proto [07:09:36]Method is POST - this is cgi request [07:09:36]url: /json_proto [07:09:36]query_string will be loaded in cgi processing [07:09:36]execute_cgi json_proto POST (null) [07:09:36]execute_cgi path=json_proto method=POST [07:09:36]POST find Content-Length [07:09:36]Host: 172.17.62.5:8080 [07:09:36]Content-Length: 331 [07:09:36]Content-Type: application/json [07:09:36] [07:09:36]POST finish read [07:09:36]Found Content-Length = 331 [07:09:36]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" ] } } [07:09:36]execute_script... [07:09:37]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" ] } } [07:09:37]POST & json_proto [07:09:37]process_json_proto [07:09:37]json parsed OK: [07:09:37]protocol is kg_v1.0 [07:09:37]action value=get_value [07:09:37]process_action get_value [07:09:37]cmd_get_value [07:09:37]process_action get_value done [07:09:37]requested_data is exist [07:09:37]produce_requested_data [07:09:37]requested_item fm.sale.total is exist - process it [07:09:37]SAM_PROTO_GetFMData [07:09:37]wFMCommunicate request_size=4 [07:09:37]MH_SAM_APDU [07:09:37]CAPDU: 80 13 03 00 [07:09:37]Write to MH i2c: E2 08 00 B3 1F 80 13 03 00 00 00 00 00 51 [07:09:37]Write i2c OK [07:09:37]MH_I2C_Read... [07:09:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [07:09:37]Read from MH i2c: E2 [07:09:37]MH_I2C_Read... [07:09:37]Read from MH i2c: E2 FD 00 [07:09:37]MH_I2C_Read... [07:09:37]Read from MH i2c: E2 FD 00 B3 1F 00 C8 04 85 04 C4 04 6E 04 04 00 7B 27 01 00 69 04 A3 00 6F 04 04 00 8D 25 01 00 B1 04 05 00 49 2D 5B B7 02 70 04 05 00 9C AB FB 73 02 72 04 04 00 AD 81 5F 43 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 99 7F DA 49 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 D1 79 27 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 FA [07:09:37]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 7B 27 01 00 69 04 A3 00 6F 04 04 00 8D 25 01 00 B1 04 05 00 49 2D 5B B7 02 70 04 05 00 9C AB FB 73 02 72 04 04 00 AD 81 5F 43 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 99 7F DA 49 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 D1 79 27 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 [07:09:37]wFMCommunicate OK [07:09:37]wFMCommunicate request_size=4 [07:09:37]MH_SAM_APDU [07:09:37]CAPDU: 80 17 00 00 [07:09:37]Write to MH i2c: E2 08 00 B4 1F 80 17 00 00 00 00 00 00 53 [07:09:37]Write i2c OK [07:09:37]MH_I2C_Read... [07:09:37]OFD Sender: No OFD packet to send [07:09:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:09:37]Read from MH i2c: E2 [07:09:37]MH_I2C_Read... [07:09:37]Read from MH i2c: E2 FD 00 [07:09:37]MH_I2C_Read... [07:09:37]Read from MH i2c: E2 FD 00 B4 1F 00 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 B4 2D 75 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 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 90 00 BA [07:09:37]RAPDU: 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 B4 2D 75 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 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 90 00 [07:09:37]wFMCommunicate OK [07:09:37]wFMCommunicate request_size=4 [07:09:37]MH_SAM_APDU [07:09:37]CAPDU: 80 17 00 00 [07:09:37]Write to MH i2c: E2 08 00 B5 1F 80 17 00 00 00 00 00 00 54 [07:09:37]Write i2c OK [07:09:37]MH_I2C_Read... [07:09:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:09:38]Read from MH i2c: E2 [07:09:38]MH_I2C_Read... [07:09:38]Read from MH i2c: E2 FD 00 [07:09:38]MH_I2C_Read... [07:09:38]Read from MH i2c: E2 FD 00 B5 1F 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2C [07:09:38]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:09:38]wFMCommunicate OK [07:09:38]wFMCommunicate request_size=4 [07:09:38]MH_SAM_APDU [07:09:38]CAPDU: 80 17 00 00 [07:09:38]Write to MH i2c: E2 08 00 B6 1F 80 17 00 00 00 00 00 00 55 [07:09:38]Write i2c OK [07:09:38]MH_I2C_Read... [07:09:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:09:38]Read from MH i2c: E2 [07:09:38]MH_I2C_Read... [07:09:38]Read from MH i2c: E2 FD 00 [07:09:38]MH_I2C_Read... [07:09:38]Read from MH i2c: E2 FD 00 B6 1F 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 90 00 CD [07:09:38]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 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 90 00 [07:09:38]wFMCommunicate OK [07:09:38]wFMCommunicate request_size=4 [07:09:38]MH_SAM_APDU [07:09:38]CAPDU: 80 17 00 00 [07:09:38]Write to MH i2c: E2 08 00 B7 1F 80 17 00 00 00 00 00 00 56 [07:09:38]Write i2c OK [07:09:38]MH_I2C_Read... [07:09:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [07:09:38]Read from MH i2c: E2 [07:09:38]MH_I2C_Read... [07:09:38]Read from MH i2c: E2 E5 00 [07:09:38]MH_I2C_Read... [07:09:38]Read from MH i2c: E2 E5 00 B7 1F 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3A [07:09:38]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [07:09:38]wFMCommunicate OK [07:09:38]SAM_PROTO_GetFMData done [07:09:38]requested_item fm.sale_refund.total is exist - process it [07:09:38]requested_item fm.buy.total is exist - process it [07:09:38]requested_item shift.sale.total is exist - process it [07:09:38]SAM_PROTO_GetShiftData [07:09:38]wFMCommunicate request_size=4 [07:09:38]MH_SAM_APDU [07:09:38]CAPDU: 80 13 02 00 [07:09:38]Write to MH i2c: E2 08 00 B8 1F 80 13 02 00 00 00 00 00 55 [07:09:38]Write i2c OK [07:09:38]MH_I2C_Read... [07:09:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [07:09:39]Read from MH i2c: E2 [07:09:39]MH_I2C_Read... [07:09:39]Read from MH i2c: E2 FD 00 [07:09:39]MH_I2C_Read... [07:09:39]Read from MH i2c: E2 FD 00 B8 1F 00 AD 04 AA 04 A9 04 6E 04 04 00 03 00 00 00 69 04 9A 00 6F 04 04 00 03 00 00 00 B1 04 03 00 66 7E 05 70 04 03 00 00 71 02 72 04 03 00 66 0D 03 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 5E 95 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 72 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 5C [07:09:39]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 03 00 00 00 69 04 9A 00 6F 04 04 00 03 00 00 00 B1 04 03 00 66 7E 05 70 04 03 00 00 71 02 72 04 03 00 66 0D 03 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 5E 95 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 72 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [07:09:39]wFMCommunicate OK [07:09:39]wFMCommunicate request_size=4 [07:09:39]MH_SAM_APDU [07:09:39]CAPDU: 80 17 00 00 [07:09:39]Write to MH i2c: E2 08 00 B9 1F 80 17 00 00 00 00 00 00 58 [07:09:39]Write i2c OK [07:09:39]MH_I2C_Read... [07:09:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:09:39]Read from MH i2c: E2 [07:09:39]MH_I2C_Read... [07:09:39]Read from MH i2c: E2 FD 00 [07:09:39]MH_I2C_Read... [07:09:39]Read from MH i2c: E2 FD 00 B9 1F 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 90 00 6A [07:09:39]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 90 00 [07:09:39]wFMCommunicate OK [07:09:39]wFMCommunicate request_size=4 [07:09:39]MH_SAM_APDU [07:09:39]CAPDU: 80 17 00 00 [07:09:39]Write to MH i2c: E2 08 00 BA 1F 80 17 00 00 00 00 00 00 59 [07:09:39]Write i2c OK [07:09:39]MH_I2C_Read... [07:09:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:09:39]Read from MH i2c: E2 [07:09:39]MH_I2C_Read... [07:09:39]Read from MH i2c: E2 FD 00 [07:09:39]MH_I2C_Read... [07:09:39]Read from MH i2c: E2 FD 00 BA 1F 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 1D [07:09:39]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 [07:09:39]wFMCommunicate OK [07:09:39]wFMCommunicate request_size=4 [07:09:39]MH_SAM_APDU [07:09:39]CAPDU: 80 17 00 00 [07:09:39]Write to MH i2c: E2 08 00 BB 1F 80 17 00 00 00 00 00 00 5A [07:09:39]Write i2c OK [07:09:39]MH_I2C_Read... [07:09:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:09:39]Read from MH i2c: E2 [07:09:39]MH_I2C_Read... [07:09:39]Read from MH i2c: E2 FD 00 [07:09:39]MH_I2C_Read... [07:09:39]Read from MH i2c: E2 FD 00 BB 1F 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 CF [07:09:39]RAPDU: 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [07:09:39]wFMCommunicate OK [07:09:39]wFMCommunicate request_size=4 [07:09:39]MH_SAM_APDU [07:09:39]CAPDU: 80 17 00 00 [07:09:39]Write to MH i2c: E2 08 00 BC 1F 80 17 00 00 00 00 00 00 5B [07:09:39]Write i2c OK [07:09:39]MH_I2C_Read... [07:09:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [07:09:40]Read from MH i2c: E2 [07:09:40]MH_I2C_Read... [07:09:40]Read from MH i2c: E2 CA 00 [07:09:40]MH_I2C_Read... [07:09:40]Read from MH i2c: E2 CA 00 BC 1F 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 40 [07:09:40]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:09:40]wFMCommunicate OK [07:09:40]SAM_PROTO_GetShiftData done [07:09:40]requested_item shift.sale.total_cash is exist - process it [07:09:40]requested_item shift.sale_refund.total is exist - process it [07:09:40]requested_item shift.sale_refund.total_cash is exist - process it [07:09:40]requested_item shift.buy.total is exist - process it [07:09:40]requested_item shift.buy.total_cash is exist - process it [07:09:40]produce_requested_data done [07:09:40]produce_requested_data return {"fm.sale.total":116661404.89,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":3600.38,"shift.sale.total_cash":1600.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} [07:09:40]process_action_free get_value [07:09:40]json_value_free [07:09:40]json_value_free done [07:09:40]process_json_proto returns [07:09:40]Send response to host [07:09:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":116661404.89,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":3600.38,"shift.sale.total_cash":1600.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}}} [07:09:40]free response buf [07:09:40]execute_script done [07:09:40]execute_script returns [07:09:40]free content buf [07:09:40]Sock 7.Close socket [07:09:40]Sock 7.Thread stoped [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:01]accept exits with 9 [07:34:01]New connection [07:34:01]New thread 3066629476 created [07:34:01]Thread 3066486116 joined [07:34:01]Waiting for new connection... [07:34:01] Sock 9.Parse request [07:34:01]Sock 9.Check first char [07:34:01]Sock 9.First char is OK [07:34:01]request: POST /json_proto HTTP/1.0 [07:34:01]Method: POST [07:34:01]URL: /json_proto [07:34:01]Method is POST - this is cgi request [07:34:01]url: /json_proto [07:34:01]query_string will be loaded in cgi processing [07:34:01]execute_cgi json_proto POST (null) [07:34:01]execute_cgi path=json_proto method=POST [07:34:01]POST find Content-Length [07:34:01]Host: 172.17.62.5:8080 [07:34:01]Content-Length: 677 [07:34:01]Content-Type: application/json [07:34:01] [07:34:01]POST finish read [07:34:01]Found Content-Length = 677 [07:34:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:34:01]execute_script... [07:34: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)190825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:34:01]POST & json_proto [07:34:01]process_json_proto [07:34:01]json parsed OK: [07:34:01]protocol is kg_v1.0 [07:34:01]action value=close_receipt [07:34:01]process_action close_receipt [07:34:01]cmd_close_receipt [07:34:01]MH_GetDate [07:34:01]Write to MH i2c: F0 00 00 BD 1F CB [07:34:01]Write i2c OK [07:34:01]MH_I2C_Read... [07:34:01]Read from MH i2c: F0 [07:34:01]MH_I2C_Read... [07:34:01]Read from MH i2c: F0 09 00 [07:34:01]MH_I2C_Read... [07:34:01]Read from MH i2c: F0 09 00 BD 1F 00 6D 1E 22 66 F4 E9 65 64 8D [07:34:01]GetLastDocTimeStamp 1713508661 [07:34:01]current date 1713512045 [07:34:01]FM_GetShiftState [07:34:01]SAM_PROTO_GetShiftState [07:34:01]wFMCommunicate request_size=4 [07:34:01]MH_SAM_APDU [07:34:01]CAPDU: 80 13 01 00 [07:34:01]Write to MH i2c: E2 08 00 BE 1F 80 13 01 00 00 00 00 00 5A [07:34:01]Write i2c OK [07:34:01]MH_I2C_Read... [07:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:01]Read from MH i2c: E2 [07:34:01]MH_I2C_Read... [07:34:01]Read from MH i2c: E2 0E 00 [07:34:01]MH_I2C_Read... [07:34:01]Read from MH i2c: E2 0E 00 BE 1F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 3F [07:34:01]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [07:34:01]wFMCommunicate OK [07:34:01]SAM_PROTO_GetShiftState done [07:34:01]FM_GetShiftState done [07:34:01]opened in 1713486233 [07:34:01]opened+sec_in_day 1713572633 [07:34:01]quantity*price = 50038 [07:34:01]sum+1 = 50040 [07:34:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 4 19.04.2024 07:34 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76384 ФПД: 32017821320925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T073405&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76384&fm=32017821320925&tin=02508201610067®Number=0000000000091573&sum=50000 [07:34:02]StoreToDocumentArchive [07:34:02]shift 370 fd 76384 [07:34:02]save to /storage/0370/doc_00076384 [07:34:02]save last doc name /storage/0370/doc_00076384 to /storage/kkm_last_doc_name [07:34:02]save OK [07:34:02]Clear old archive folders... [07:34:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:34:02]tlvbuf is 00971AD0 [07:34:02]SAM_PROTO_ClearQueue [07:34:02]wFMCommunicate request_size=4 [07:34:02]MH_SAM_APDU [07:34:02]CAPDU: 80 09 00 00 [07:34:02]Write to MH i2c: E2 08 00 CB 1F 80 09 00 00 00 00 00 00 5C [07:34:02]Write i2c OK [07:34:02]MH_I2C_Read... [07:34:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:34:02]Read from MH i2c: E2 [07:34:02]MH_I2C_Read... [07:34:02]Read from MH i2c: E2 03 00 [07:34:02]MH_I2C_Read... [07:34:02]Read from MH i2c: E2 03 00 CB 1F 00 90 00 5E [07:34:02]RAPDU: 90 00 [07:34:02]wFMCommunicate OK [07:34:02]SAM_PROTO_ClearQueue done [07:34:02]KKMCreateOFDPacket [07:34:02]OFDProtocolAddRootSTLVToBuf [07:34:02]FM_MakeSignedData [07:34:02]FM_MakeSignedData [07:34:02]SAM_PROTO_SignData [07:34:02]wFMCommunicate request_size=4 [07:34:02]MH_SAM_APDU [07:34:02]CAPDU: 80 0D 01 02 [07:34:02]Write to MH i2c: E2 08 00 CC 1F 80 0D 01 02 00 00 00 00 64 [07:34:02]Write i2c OK [07:34:02]MH_I2C_Read... [07:34:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:34:02]Read from MH i2c: E2 [07:34:02]MH_I2C_Read... [07:34:02]Read from MH i2c: E2 03 00 [07:34:02]MH_I2C_Read... [07:34:02]Read from MH i2c: E2 03 00 CC 1F 00 90 00 5F [07:34:02]RAPDU: 90 00 [07:34:02]wFMCommunicate OK [07:34:02]wFMCommunicate request_size=255 [07:34:02]MH_SAM_APDU [07:34: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 6D 1E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 60 2A 01 00 35 04 06 00 1D [07:34:02]Write to MH i2c: E2 02 01 CD 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 6D 1E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 60 2A 01 00 35 04 06 00 1D 00 00 4B [07:34:02]Write i2c OK [07:34:02]MH_I2C_Read... [07:34:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:03]Read from MH i2c: E2 [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: E2 03 00 [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: E2 03 00 CD 1F 00 90 00 60 [07:34:03]RAPDU: 90 00 [07:34:03]wFMCommunicate OK [07:34:03]wFMCommunicate request_size=10 [07:34:03]MH_SAM_APDU [07:34:03]CAPDU: 80 0D 02 02 05 1E BA DD C6 DD [07:34:03]Write to MH i2c: E2 0D 00 CE 1F 80 0D 02 02 05 00 1E BA DD C6 DD 00 00 C9 [07:34:03]Write i2c OK [07:34:03]MH_I2C_Read... [07:34:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:03]Read from MH i2c: E2 [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: E2 03 00 [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: E2 03 00 CE 1F 00 90 00 61 [07:34:03]RAPDU: 90 00 [07:34:03]wFMCommunicate OK [07:34:03]wFMCommunicate request_size=4 [07:34:03]MH_SAM_APDU [07:34:03]CAPDU: 80 0D 03 02 [07:34:03]Write to MH i2c: E2 08 00 CF 1F 80 0D 03 02 00 00 00 00 69 [07:34:03]Write i2c OK [07:34:03]MH_I2C_Read... [07:34:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:34:03]Read from MH i2c: E2 [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: E2 0B 00 [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: E2 0B 00 CF 1F 00 1B 74 24 EF D0 3E 8C 9F 90 00 45 [07:34:03]RAPDU: 1B 74 24 EF D0 3E 8C 9F 90 00 [07:34:03]wFMCommunicate OK [07:34:03]SAM_PROTO_SignData done [07:34:03]FM_MakeSignedData done [07:34:03]CreateOFDProtocolMessage [07:34:03]wFMCommunicate request_size=4 [07:34:03]MH_SAM_APDU [07:34:03]CAPDU: 80 11 00 00 [07:34:03]Write to MH i2c: E2 08 00 D0 1F 80 11 00 00 00 00 00 00 69 [07:34:03]Write i2c OK [07:34:03]MH_I2C_Read... [07:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:03]Read from MH i2c: E2 [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: E2 17 00 [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: E2 17 00 D0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BC [07:34:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:34:03]wFMCommunicate OK [07:34:03]CreateOFDProtocolMessage done [07:34:03]OFDSenderStorePacket 76384 [07:34:03]StoreOFDPacket docnum=76384 [07:34:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 50 47 07 01 60 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 6D 1E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 60 2A 01 00 35 04 06 00 1D 1E BA DD C6 DD 1B 74 24 EF D0 3E 8C 9F [07:34:03]CheckFolder [07:34:03]dirname=/storage/ofd_packets [07:34:03]CheckFolder done [07:34:03]ProducePacketName [07:34:03]name=ofd_packets/00076384 [07:34:03]NVStorageSaveData ofd_packets/00076384 [07:34:03]File name is /storage/ofd_packets/00076384 [07:34:03]Write 301 bytes [07:34:03]NVStorageSaveData done [07:34:03]OFDSenderStorePacket done [07:34:03]KKMCreateOFDPacket done [07:34:03]NVStorageSaveData kkm_last_timestamp [07:34:03]File name is /storage/kkm_last_timestamp [07:34:03]Write 4 bytes [07:34:03]NVStorageSaveData done [07:34:03]ExternCall_PrintAddStr [07:34:03]wPrintStart [07:34:03]Write to MH i2c: 01 00 00 D1 1F F0 [07:34:03]Write i2c OK [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: 01 [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: 01 07 00 [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: 01 07 00 D1 1F 00 00 00 00 00 FF 0F 05 [07:34:03]RasterBufferAndPrint [07:34:03]line Счет N : (1)190825 [07:34:03]line ИНН: 02508201610067 [07:34:03]line Контрольно-Кассовый Чек [07:34:03]line ПРОДАЖА [07:34:03]line ТРК (МРК, ГНК) : 43 [07:34:03]line Товар: 2710124130 [07:34:03]line Аи-92-К-5 [07:34:03]line 7.770 * 64.40 [07:34:03]line = 500.39 [07:34:03]line НДС 12% НСП 1% [07:34:03]line > о реализуемом товаре [07:34:03]line ОКРУГЛЕНИЕ: -0.39 [07:34:03]line ИТОГО: 500.00 [07:34:03]line Внесено: 500.00 [07:34:03]line СДАЧА: 0.00 [07:34:03]line НСП 1% : 4.43 [07:34:03]line НДС 12% : 53.14 [07:34:03]line Наличными: 500.00 [07:34:03]line Безнал.: 0.00 [07:34:03]line Место: АЗС № 106 "Партнер Нефть" [07:34:03]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:34:03]line СНО: Общий режим [07:34:03]line Чек 4 19.04.2024 07:34 [07:34:03]line Смена: 370 ФФД: 1.0 [07:34:03]line ЗНМ: 0300000141 [07:34:03]line РНМ: 0000000000091573 [07:34:03]line Версия ККМ: 001 [07:34:03]line ФМ: 0000000000874652 [07:34:03]line ФД: 76384 [07:34:03]line ФПД: 32017821320925 [07:34:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T073405&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76384&fm=32017821320925&tin=02508201610067®Number=0000000000091573&sum=50000 [07:34:03]written 0, free lines is 4095 [07:34:03]OFD Sender: Processing packet 76384 [packets to send 128, broken 127] [07:34:03]ProducePacketName [07:34:03]name=ofd_packets/00076384 [07:34:03]OFD Sender: To server: pG, [07:34:03]CommunicateWithHost lk.salyk.kg:30040 [07:34:03]ConnectInit lk.salyk.kg [07:34:03]Connected sock=10 [07:34:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 50 47 07 01 60 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 6D 1E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 60 2A 01 00 35 04 06 00 1D 1E BA DD C6 DD 1B 74 24 EF D0 3E 8C 9F [07:34:03]Write to MH i2c: 01 00 00 FB 1F 1A [07:34:03]Write i2c OK [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: 01 [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: 01 07 00 [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: 01 07 00 FB 1F 00 00 00 00 00 EC 0C 19 [07:34:03]RasterBufferAndPrint [07:34:03]line [07:34:03]line [07:34:03]line [07:34:03]line [07:34:03]line [07:34:03]written 0, free lines is 3316 [07:34:03]MH_Cut [07:34:03]Write to MH i2c: D1 01 00 02 20 01 F4 [07:34:03]Write i2c OK [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: D1 [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: D1 01 00 [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: D1 01 00 02 20 00 F3 [07:34:03]Write to MH i2c: 01 00 00 03 20 23 [07:34:03]Write i2c OK [07:34:03]MH_I2C_Read... [07:34:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 41 4E 47 00 96 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 60 2A 01 00 F4 03 04 00 F9 C5 21 66 B6 04 01 00 00 88 55 42 34 9A CB 25 73 [07:34:03]CommunicateWithHost err = 0 [07:34:03]CheckOFDResponse [07:34:03]1017 (14) - 77093643461234 [07:34:03]1041 (16) - 0000000000874652 [07:34:03]1040 (4) - 76384 [07:34:03]1012 (4) - 19.04.2024 01:16 [07:34:03]1206 (1) - 0 [07:34:03]OFD Sender: Remove packet 76384 [07:34:03]ProducePacketName [07:34:03]name=ofd_packets/00076384 [07:34:03]NVStorageDeleteData [07:34:04]OFD Sender: No OFD packet to send [07:34:04]*** Cut start [07:34:04]*** Partial cut [07:34:04]*** CUTSNS_PIN = 1 [07:34:04]*** CUTSNS_PIN = 0 [07:34:04]*** Brake cut motor [07:34:05]Read from MH i2c: 01 [07:34:05]MH_I2C_Read... [07:34:05]*** Stop cut motor [07:34:05]*** Cut end [07:34:05]Read from MH i2c: 01 07 00 [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: 01 07 00 03 20 00 00 00 00 00 FF 0F 38 [07:34:05]process_action close_receipt done [07:34:05]requested_data is exist [07:34:05]produce_requested_data [07:34:05]requested_item fm.sn is exist - process it [07:34:05]wFMCommunicate request_size=4 [07:34:05]MH_SAM_APDU [07:34:05]CAPDU: 80 11 00 00 [07:34:05]Write to MH i2c: E2 08 00 04 20 80 11 00 00 00 00 00 00 9E [07:34:05]Write i2c OK [07:34:05]MH_I2C_Read... [07:34:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:05]Read from MH i2c: E2 [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: E2 17 00 [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: E2 17 00 04 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F1 [07:34:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:34:05]wFMCommunicate OK [07:34:05]requested_item fd.num is exist - process it [07:34:05]SAM_PROTO_GetFieldsCounters [07:34:05]wFMCommunicate request_size=4 [07:34:05]MH_SAM_APDU [07:34:05]CAPDU: 80 13 00 00 [07:34:05]Write to MH i2c: E2 08 00 05 20 80 13 00 00 00 00 00 00 A1 [07:34:05]Write i2c OK [07:34:05]MH_I2C_Read... [07:34:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:34:05]Read from MH i2c: E2 [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: E2 62 00 [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: E2 62 00 05 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 60 2A 01 00 0E 04 04 00 72 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 CC [07:34: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 60 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:34:05]wFMCommunicate OK [07:34:05]SAM_PROTO_GetFieldsCounters done [07:34:05]requested_item shift.num is exist - process it [07:34:05]requested_item shift.opened is exist - process it [07:34:05]req_shift_opened [07:34:05]FM_GetShiftState [07:34:05]SAM_PROTO_GetShiftState [07:34:05]wFMCommunicate request_size=4 [07:34:05]MH_SAM_APDU [07:34:05]CAPDU: 80 13 01 00 [07:34:05]Write to MH i2c: E2 08 00 06 20 80 13 01 00 00 00 00 00 A3 [07:34:05]Write i2c OK [07:34:05]MH_I2C_Read... [07:34:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:05]Read from MH i2c: E2 [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: E2 0E 00 [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: E2 0E 00 06 20 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 88 [07:34:05]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [07:34:05]wFMCommunicate OK [07:34:05]SAM_PROTO_GetShiftState done [07:34:05]FM_GetShiftState done [07:34:05]req_shift_opened done [07:34:05]requested_item shift.open_date is exist - process it [07:34:05]req_shift_open_date [07:34:05]req_shift_open_date done [07:34:05]produce_requested_data done [07:34:05]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76384,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [07:34:05]process_action_free close_receipt [07:34:05]json_value_free [07:34:05]json_value_free done [07:34:05]process_json_proto returns [07:34:05]Send response to host [07:34:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76384,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [07:34:05]free response buf [07:34:05]execute_script done [07:34:05]execute_script returns [07:34:05]free content buf [07:34:05]Sock 9.Close socket [07:34:05]Sock 9.Thread stoped [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:00]accept exits with 7 [07:35:00]New connection [07:35:00]New thread 3066486116 created [07:35:00]Thread 3066629476 joined [07:35:00]Waiting for new connection... [07:35:00] Sock 7.Parse request [07:35:00]Sock 7.Check first char [07:35:00]Sock 7.First char is OK [07:35:00]request: POST /json_proto HTTP/1.0 [07:35:00]Method: POST [07:35:00]URL: /json_proto [07:35:00]Method is POST - this is cgi request [07:35:00]url: /json_proto [07:35:00]query_string will be loaded in cgi processing [07:35:00]execute_cgi json_proto POST (null) [07:35:00]execute_cgi path=json_proto method=POST [07:35:00]POST find Content-Length [07:35:00]Host: 172.17.62.5:8080 [07:35:00]Content-Length: 978 [07:35:00]Content-Type: application/json [07:35:00] [07:35:00]POST finish read [07:35:00]Found Content-Length = 978 [07:35:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 22.260, "sum" : 1600.49, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.26 \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" ] } } [07:35:00]execute_script... [07:35: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)190826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 22.260, "sum" : 1600.49, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.26 \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" ] } } [07:35:00]POST & json_proto [07:35:00]process_json_proto [07:35:00]json parsed OK: [07:35:00]protocol is kg_v1.0 [07:35:00]action value=close_receipt [07:35:00]process_action close_receipt [07:35:00]cmd_close_receipt [07:35:00]MH_GetDate [07:35:00]Write to MH i2c: F0 00 00 07 20 16 [07:35:00]Write i2c OK [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: F0 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: F0 09 00 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: F0 09 00 07 20 00 A8 1E 22 66 F4 E9 65 64 13 [07:35:00]GetLastDocTimeStamp 1713512045 [07:35:00]current date 1713512104 [07:35:00]FM_GetShiftState [07:35:00]SAM_PROTO_GetShiftState [07:35:00]wFMCommunicate request_size=4 [07:35:00]MH_SAM_APDU [07:35:00]CAPDU: 80 13 01 00 [07:35:00]Write to MH i2c: E2 08 00 08 20 80 13 01 00 00 00 00 00 A5 [07:35:00]Write i2c OK [07:35:00]MH_I2C_Read... [07:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:00]Read from MH i2c: E2 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: E2 0E 00 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: E2 0E 00 08 20 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 8A [07:35:00]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [07:35:00]wFMCommunicate OK [07:35:00]SAM_PROTO_GetShiftState done [07:35:00]FM_GetShiftState done [07:35:00]opened in 1713486233 [07:35:00]opened+sec_in_day 1713572633 [07:35:00]quantity*price = 160049 [07:35:00]sum+1 = 160050 [07:35:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.96 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 5 19.04.2024 07:35 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 22.26 сом ФМ: 0000000000874652 ФД: 76385 ФПД: 69120260531812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T073504&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76385&fm=69120260531812&tin=02508201610067®Number=0000000000091573&sum=160000 [07:35:01]StoreToDocumentArchive [07:35:01]shift 370 fd 76385 [07:35:01]save to /storage/0370/doc_00076385 [07:35:01]save last doc name /storage/0370/doc_00076385 to /storage/kkm_last_doc_name [07:35:01]save OK [07:35:01]Clear old archive folders... [07:35:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:35:01]tlvbuf is 0098B090 [07:35:01]SAM_PROTO_ClearQueue [07:35:01]wFMCommunicate request_size=4 [07:35:01]MH_SAM_APDU [07:35:01]CAPDU: 80 09 00 00 [07:35:01]Write to MH i2c: E2 08 00 15 20 80 09 00 00 00 00 00 00 A7 [07:35:01]Write i2c OK [07:35:01]MH_I2C_Read... [07:35:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:01]Read from MH i2c: E2 [07:35:01]MH_I2C_Read... [07:35:01]Read from MH i2c: E2 03 00 [07:35:01]MH_I2C_Read... [07:35:01]Read from MH i2c: E2 03 00 15 20 00 90 00 A9 [07:35:01]RAPDU: 90 00 [07:35:01]wFMCommunicate OK [07:35:01]SAM_PROTO_ClearQueue done [07:35:01]KKMCreateOFDPacket [07:35:01]OFDProtocolAddRootSTLVToBuf [07:35:01]FM_MakeSignedData [07:35:01]FM_MakeSignedData [07:35:01]SAM_PROTO_SignData [07:35:01]wFMCommunicate request_size=4 [07:35:01]MH_SAM_APDU [07:35:01]CAPDU: 80 0D 01 02 [07:35:01]Write to MH i2c: E2 08 00 16 20 80 0D 01 02 00 00 00 00 AF [07:35:01]Write i2c OK [07:35:01]MH_I2C_Read... [07:35:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:01]Read from MH i2c: E2 [07:35:01]MH_I2C_Read... [07:35:01]Read from MH i2c: E2 03 00 [07:35:01]MH_I2C_Read... [07:35:01]Read from MH i2c: E2 03 00 16 20 00 90 00 AA [07:35:01]RAPDU: 90 00 [07:35:01]wFMCommunicate OK [07:35:01]wFMCommunicate request_size=255 [07:35:01]MH_SAM_APDU [07:35: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 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 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 64 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 05 00 00 00 F4 03 04 00 A8 1E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 61 2A 01 00 35 04 06 00 3E DD 50 93 [07:35:01]Write to MH i2c: E2 02 01 17 20 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 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 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 64 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 05 00 00 00 F4 03 04 00 A8 1E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 61 2A 01 00 35 04 06 00 3E DD 50 93 00 00 95 [07:35:01]Write i2c OK [07:35:01]MH_I2C_Read... [07:35:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:02]Read from MH i2c: E2 [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: E2 03 00 [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: E2 03 00 17 20 00 90 00 AB [07:35:02]RAPDU: 90 00 [07:35:02]wFMCommunicate OK [07:35:02]wFMCommunicate request_size=7 [07:35:02]MH_SAM_APDU [07:35:02]CAPDU: 80 0D 02 02 02 66 64 [07:35:02]Write to MH i2c: E2 0A 00 18 20 80 0D 02 02 02 00 66 64 00 00 80 [07:35:02]Write i2c OK [07:35:02]MH_I2C_Read... [07:35:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:02]Read from MH i2c: E2 [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: E2 03 00 [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: E2 03 00 18 20 00 90 00 AC [07:35:02]RAPDU: 90 00 [07:35:02]wFMCommunicate OK [07:35:02]wFMCommunicate request_size=4 [07:35:02]MH_SAM_APDU [07:35:02]CAPDU: 80 0D 03 02 [07:35:02]Write to MH i2c: E2 08 00 19 20 80 0D 03 02 00 00 00 00 B4 [07:35:02]Write i2c OK [07:35:02]MH_I2C_Read... [07:35:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:02]Read from MH i2c: E2 [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: E2 0B 00 [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: E2 0B 00 19 20 00 47 06 45 F2 BC 7C DB 38 90 00 84 [07:35:02]RAPDU: 47 06 45 F2 BC 7C DB 38 90 00 [07:35:02]wFMCommunicate OK [07:35:02]SAM_PROTO_SignData done [07:35:02]FM_MakeSignedData done [07:35:02]CreateOFDProtocolMessage [07:35:02]wFMCommunicate request_size=4 [07:35:02]MH_SAM_APDU [07:35:02]CAPDU: 80 11 00 00 [07:35:02]Write to MH i2c: E2 08 00 1A 20 80 11 00 00 00 00 00 00 B4 [07:35:02]Write i2c OK [07:35:02]MH_I2C_Read... [07:35:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:02]Read from MH i2c: E2 [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: E2 17 00 [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: E2 17 00 1A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 07 [07:35:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:35:02]wFMCommunicate OK [07:35:02]CreateOFDProtocolMessage done [07:35:02]OFDSenderStorePacket 76385 [07:35:02]StoreOFDPacket docnum=76385 [07:35:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 F8 B6 04 01 46 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 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 64 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 05 00 00 00 F4 03 04 00 A8 1E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 61 2A 01 00 35 04 06 00 3E DD 50 93 66 64 47 06 45 F2 BC 7C DB 38 [07:35:02]CheckFolder [07:35:02]dirname=/storage/ofd_packets [07:35:02]CheckFolder done [07:35:02]ProducePacketName [07:35:02]name=ofd_packets/00076385 [07:35:02]NVStorageSaveData ofd_packets/00076385 [07:35:02]File name is /storage/ofd_packets/00076385 [07:35:02]Write 298 bytes [07:35:02]NVStorageSaveData done [07:35:02]OFDSenderStorePacket done [07:35:02]KKMCreateOFDPacket done [07:35:02]NVStorageSaveData kkm_last_timestamp [07:35:02]File name is /storage/kkm_last_timestamp [07:35:02]Write 4 bytes [07:35:02]NVStorageSaveData done [07:35:02]ExternCall_PrintAddStr [07:35:02]wPrintStart [07:35:02]Write to MH i2c: 01 00 00 1B 20 3B [07:35:02]OFD Sender: Processing packet 76385 [packets to send 128, broken 127] [07:35:02]ProducePacketName [07:35:02]name=ofd_packets/00076385 [07:35:02]OFD Sender: To server: pG, [07:35:02]CommunicateWithHost lk.salyk.kg:30040 [07:35:02]ConnectInit lk.salyk.kg [07:35:02]Write i2c OK [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: 01 [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: 01 07 00 [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: 01 07 00 1B 20 00 00 00 00 00 FF 0F 50 [07:35:02]RasterBufferAndPrint [07:35:02]line Счет N : (1)190826 [07:35:02]line ИНН: 02508201610067 [07:35:02]line Контрольно-Кассовый Чек [07:35:02]line ПРОДАЖА [07:35:02]line ТРК (МРК, ГНК) : 23 [07:35:02]line Товар: 2710194210 [07:35:02]line ДТ-К-5 [07:35:02]line 22.260 * 71.90 [07:35:02]line = 1600.49 [07:35:02]line НДС 12% НСП 1% [07:35:02]line > о реализуемом товаре [07:35:02]line ОКРУГЛЕНИЕ: -0.49 [07:35:02]line ИТОГО: 1600.00 [07:35:02]line Внесено: 1600.00 [07:35:02]line СДАЧА: 0.00 [07:35:02]line НСП 1% : 14.16 [07:35:02]line НДС 12% : 169.96 [07:35:02]line Наличными: 1600.00 [07:35:02]line Безнал.: 0.00 [07:35:02]line Место: АЗС № 106 "Партнер Нефть" [07:35:02]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:35:02]line СНО: Общий режим [07:35:02]line Чек 5 19.04.2024 07:35 [07:35:02]line Смена: 370 ФФД: 1.0 [07:35:02]line ЗНМ: 0300000141 [07:35:02]line РНМ: 0000000000091573 [07:35:02]line Версия ККМ: 001 [07:35:02]line [07:35:02]line Дисконтная программа [07:35:02]line ДТ [07:35:02]line номер 106 [07:35:02]line сэкономлено 22.26 сом [07:35:02]line ФМ: 0000000000874652 [07:35:02]line ФД: 76385 [07:35:02]line ФПД: 69120260531812 [07:35:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T073504&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76385&fm=69120260531812&tin=02508201610067®Number=0000000000091573&sum=160000 [07:35:02]written 0, free lines is 4095 [07:35:03]Write to MH i2c: 01 00 00 4A 20 6A [07:35:03]Write i2c OK [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: 01 [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: 01 07 00 [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: 01 07 00 4A 20 00 00 00 00 00 92 0C 0F [07:35:03]RasterBufferAndPrint [07:35:03]line [07:35:03]line [07:35:03]line [07:35:03]line [07:35:03]line [07:35:03]written 0, free lines is 3224 [07:35:03]MH_Cut [07:35:03]Write to MH i2c: D1 01 00 51 20 01 43 [07:35:03]Write i2c OK [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: D1 [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: D1 01 00 [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: D1 01 00 51 20 00 42 [07:35:03]Write to MH i2c: 01 00 00 52 20 72 [07:35:03]Write i2c OK [07:35:03]MH_I2C_Read... [07:35:03]*** Cut start [07:35:03]*** Partial cut [07:35:03]*** CUTSNS_PIN = 1 [07:35:03]*** CUTSNS_PIN = 0 [07:35:04]*** Brake cut motor [07:35:04]Read from MH i2c: 01 [07:35:04]MH_I2C_Read... [07:35:04]*** Stop cut motor [07:35:04]*** Cut end [07:35:04]Read from MH i2c: 01 07 00 [07:35:04]MH_I2C_Read... [07:35:04]Read from MH i2c: 01 07 00 52 20 00 00 00 00 00 FF 0F 87 [07:35:04]process_action close_receipt done [07:35:04]requested_data is exist [07:35:04]produce_requested_data [07:35:04]requested_item fm.sn is exist - process it [07:35:04]wFMCommunicate request_size=4 [07:35:04]MH_SAM_APDU [07:35:04]CAPDU: 80 11 00 00 [07:35:04]Write to MH i2c: E2 08 00 53 20 80 11 00 00 00 00 00 00 ED [07:35:04]Write i2c OK [07:35:04]MH_I2C_Read... [07:35:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:04]Read from MH i2c: E2 [07:35:04]MH_I2C_Read... [07:35:04]Read from MH i2c: E2 17 00 [07:35:04]MH_I2C_Read... [07:35:04]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 34 36 35 32 90 00 40 [07:35:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:35:04]wFMCommunicate OK [07:35:04]requested_item fd.num is exist - process it [07:35:04]SAM_PROTO_GetFieldsCounters [07:35:04]wFMCommunicate request_size=4 [07:35:04]MH_SAM_APDU [07:35:04]CAPDU: 80 13 00 00 [07:35:04]Write to MH i2c: E2 08 00 54 20 80 13 00 00 00 00 00 00 F0 [07:35:04]Write i2c OK [07:35:04]MH_I2C_Read... [07:35:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:04]Read from MH i2c: E2 [07:35:04]MH_I2C_Read... [07:35:04]Read from MH i2c: E2 62 00 [07:35:04]MH_I2C_Read... [07:35:04]Read from MH i2c: E2 62 00 54 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 61 2A 01 00 0E 04 04 00 72 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 1F [07:35:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 61 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:35:04]wFMCommunicate OK [07:35:04]SAM_PROTO_GetFieldsCounters done [07:35:04]requested_item shift.num is exist - process it [07:35:04]requested_item shift.opened is exist - process it [07:35:04]req_shift_opened [07:35:04]FM_GetShiftState [07:35:04]SAM_PROTO_GetShiftState [07:35:04]wFMCommunicate request_size=4 [07:35:04]MH_SAM_APDU [07:35:04]CAPDU: 80 13 01 00 [07:35:04]Write to MH i2c: E2 08 00 55 20 80 13 01 00 00 00 00 00 F2 [07:35:04]Write i2c OK [07:35:04]MH_I2C_Read... [07:35:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:04]Read from MH i2c: E2 [07:35:04]MH_I2C_Read... [07:35:04]Read from MH i2c: E2 0E 00 [07:35:04]MH_I2C_Read... [07:35:04]Read from MH i2c: E2 0E 00 55 20 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 D7 [07:35:04]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [07:35:04]wFMCommunicate OK [07:35:04]SAM_PROTO_GetShiftState done [07:35:04]FM_GetShiftState done [07:35:04]req_shift_opened done [07:35:04]requested_item shift.open_date is exist - process it [07:35:04]req_shift_open_date [07:35:04]req_shift_open_date done [07:35:04]produce_requested_data done [07:35:04]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76385,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [07:35:04]process_action_free close_receipt [07:35:04]json_value_free [07:35:04]json_value_free done [07:35:04]process_json_proto returns [07:35:04]Send response to host [07:35:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76385,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [07:35:04]free response buf [07:35:04]execute_script done [07:35:04]execute_script returns [07:35:04]free content buf [07:35:04]Sock 7.Close socket [07:35:04]Sock 7.Thread stoped [07:37:16]ConnectInit Can't connect to host [07:37:16]CommunicateWithHost connect error [07:37:16]CommunicateWithHost err = -1 [07:37:16]OFD Sender: Server communicate error [07:37:21]OFD Sender: Processing packet 76385 [packets to send 128, broken 127] [07:37:21]ProducePacketName [07:37:21]name=ofd_packets/00076385 [07:37:21]OFD Sender: To server: pG, [07:37:21]CommunicateWithHost lk.salyk.kg:30040 [07:37:21]ConnectInit lk.salyk.kg [07:37:21]Connected sock=7 [07:37:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 F8 B6 04 01 46 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 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 64 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 05 00 00 00 F4 03 04 00 A8 1E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 61 2A 01 00 35 04 06 00 3E DD 50 93 66 64 47 06 45 F2 BC 7C DB 38 [07:37:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 CF 7B 47 00 FC 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 34 36 35 32 10 04 04 00 61 2A 01 00 F4 03 04 00 BF C6 21 66 B6 04 01 00 00 E2 0B FF 8B B3 B7 7C C7 [07:37:21]CommunicateWithHost err = 0 [07:37:21]CheckOFDResponse [07:37:21]1017 (14) - 77093643461234 [07:37:21]1041 (16) - 0000000000874652 [07:37:21]1040 (4) - 76385 [07:37:21]1012 (4) - 19.04.2024 01:19 [07:37:21]1206 (1) - 0 [07:37:21]OFD Sender: Remove packet 76385 [07:37:21]ProducePacketName [07:37:21]name=ofd_packets/00076385 [07:37:21]NVStorageDeleteData [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:45]accept exits with 9 [07:40:45]New connection [07:40:45]New thread 3066629476 created [07:40:45]Thread 3066486116 joined [07:40:45]Waiting for new connection... [07:40:45] Sock 9.Parse request [07:40:45]Sock 9.Check first char [07:40:45]Sock 9.First char is OK [07:40:45]request: POST /json_proto HTTP/1.0 [07:40:45]Method: POST [07:40:45]URL: /json_proto [07:40:45]Method is POST - this is cgi request [07:40:45]url: /json_proto [07:40:45]query_string will be loaded in cgi processing [07:40:45]execute_cgi json_proto POST (null) [07:40:45]execute_cgi path=json_proto method=POST [07:40:45]POST find Content-Length [07:40:45]Host: 172.17.62.5:8080 [07:40:45]Content-Length: 674 [07:40:45]Content-Type: application/json [07:40:45] [07:40:45]POST finish read [07:40:45]Found Content-Length = 674 [07:40:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:45]execute_script... [07:40: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)190827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:45]POST & json_proto [07:40:45]process_json_proto [07:40:45]json parsed OK: [07:40:45]protocol is kg_v1.0 [07:40:45]action value=close_receipt [07:40:45]process_action close_receipt [07:40:45]cmd_close_receipt [07:40:45]MH_GetDate [07:40:45]Write to MH i2c: F0 00 00 56 20 65 [07:40:45]Write i2c OK [07:40:45]MH_I2C_Read... [07:40:45]Read from MH i2c: F0 [07:40:45]MH_I2C_Read... [07:40:45]Read from MH i2c: F0 09 00 [07:40:45]MH_I2C_Read... [07:40:45]Read from MH i2c: F0 09 00 56 20 00 01 20 22 66 F4 E9 65 64 BD [07:40:45]GetLastDocTimeStamp 1713512104 [07:40:45]current date 1713512449 [07:40:45]FM_GetShiftState [07:40:45]SAM_PROTO_GetShiftState [07:40:45]wFMCommunicate request_size=4 [07:40:45]MH_SAM_APDU [07:40:45]CAPDU: 80 13 01 00 [07:40:45]Write to MH i2c: E2 08 00 57 20 80 13 01 00 00 00 00 00 F4 [07:40:45]Write i2c OK [07:40:45]MH_I2C_Read... [07:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:45]Read from MH i2c: E2 [07:40:45]MH_I2C_Read... [07:40:45]Read from MH i2c: E2 0E 00 [07:40:45]MH_I2C_Read... [07:40:45]Read from MH i2c: E2 0E 00 57 20 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 D9 [07:40:45]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [07:40:45]wFMCommunicate OK [07:40:45]SAM_PROTO_GetShiftState done [07:40:45]FM_GetShiftState done [07:40:45]opened in 1713486233 [07:40:45]opened+sec_in_day 1713572633 [07:40:45]quantity*price = 70056 [07:40:45]sum+1 = 70058 [07:40:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 6 19.04.2024 07:40 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76386 ФПД: 84736878419791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T074049&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76386&fm=84736878419791&tin=02508201610067®Number=0000000000091573&sum=70000 [07:40:46]StoreToDocumentArchive [07:40:46]shift 370 fd 76386 [07:40:46]save to /storage/0370/doc_00076386 [07:40:46]save last doc name /storage/0370/doc_00076386 to /storage/kkm_last_doc_name [07:40:46]save OK [07:40:46]Clear old archive folders... [07:40:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:40:46]tlvbuf is B6D59800 [07:40:46]SAM_PROTO_ClearQueue [07:40:46]wFMCommunicate request_size=4 [07:40:46]MH_SAM_APDU [07:40:46]CAPDU: 80 09 00 00 [07:40:46]Write to MH i2c: E2 08 00 64 20 80 09 00 00 00 00 00 00 F6 [07:40:46]Write i2c OK [07:40:46]MH_I2C_Read... [07:40:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:40:46]Read from MH i2c: E2 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: E2 03 00 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: E2 03 00 64 20 00 90 00 F8 [07:40:46]RAPDU: 90 00 [07:40:46]wFMCommunicate OK [07:40:46]SAM_PROTO_ClearQueue done [07:40:46]KKMCreateOFDPacket [07:40:46]OFDProtocolAddRootSTLVToBuf [07:40:46]FM_MakeSignedData [07:40:46]FM_MakeSignedData [07:40:46]SAM_PROTO_SignData [07:40:46]wFMCommunicate request_size=4 [07:40:46]MH_SAM_APDU [07:40:46]CAPDU: 80 0D 01 02 [07:40:46]Write to MH i2c: E2 08 00 65 20 80 0D 01 02 00 00 00 00 FE [07:40:46]Write i2c OK [07:40:46]MH_I2C_Read... [07:40:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:40:46]Read from MH i2c: E2 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: E2 03 00 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: E2 03 00 65 20 00 90 00 F9 [07:40:46]RAPDU: 90 00 [07:40:46]wFMCommunicate OK [07:40:46]wFMCommunicate request_size=255 [07:40:46]MH_SAM_APDU [07:40: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 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 01 20 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 62 2A 01 00 35 04 06 00 4D 11 57 89 [07:40:46]Write to MH i2c: E2 02 01 66 20 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 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 01 20 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 62 2A 01 00 35 04 06 00 4D 11 57 89 00 00 E7 [07:40:46]Write i2c OK [07:40:46]MH_I2C_Read... [07:40:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:46]Read from MH i2c: E2 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: E2 03 00 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: E2 03 00 66 20 00 90 00 FA [07:40:46]RAPDU: 90 00 [07:40:46]wFMCommunicate OK [07:40:46]wFMCommunicate request_size=7 [07:40:46]MH_SAM_APDU [07:40:46]CAPDU: 80 0D 02 02 02 9F 4F [07:40:46]Write to MH i2c: E2 0A 00 67 20 80 0D 02 02 02 00 9F 4F 00 00 F3 [07:40:46]Write i2c OK [07:40:46]MH_I2C_Read... [07:40:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:46]Read from MH i2c: E2 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: E2 03 00 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: E2 03 00 67 20 00 90 00 FB [07:40:46]RAPDU: 90 00 [07:40:46]wFMCommunicate OK [07:40:46]wFMCommunicate request_size=4 [07:40:46]MH_SAM_APDU [07:40:46]CAPDU: 80 0D 03 02 [07:40:46]Write to MH i2c: E2 08 00 68 20 80 0D 03 02 00 00 00 00 03 [07:40:46]Write i2c OK [07:40:46]MH_I2C_Read... [07:40:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:40:46]Read from MH i2c: E2 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: E2 0B 00 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: E2 0B 00 68 20 00 C1 35 B2 47 A3 95 C4 28 90 00 17 [07:40:46]RAPDU: C1 35 B2 47 A3 95 C4 28 90 00 [07:40:46]wFMCommunicate OK [07:40:46]SAM_PROTO_SignData done [07:40:46]FM_MakeSignedData done [07:40:46]CreateOFDProtocolMessage [07:40:46]wFMCommunicate request_size=4 [07:40:46]MH_SAM_APDU [07:40:46]CAPDU: 80 11 00 00 [07:40:46]Write to MH i2c: E2 08 00 69 20 80 11 00 00 00 00 00 00 03 [07:40:46]Write i2c OK [07:40:46]MH_I2C_Read... [07:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:46]Read from MH i2c: E2 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: E2 17 00 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: E2 17 00 69 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 56 [07:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:40:46]wFMCommunicate OK [07:40:46]CreateOFDProtocolMessage done [07:40:46]OFDSenderStorePacket 76386 [07:40:46]StoreOFDPacket docnum=76386 [07:40:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 F0 44 04 01 F2 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 01 20 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 62 2A 01 00 35 04 06 00 4D 11 57 89 9F 4F C1 35 B2 47 A3 95 C4 28 [07:40:46]CheckFolder [07:40:46]dirname=/storage/ofd_packets [07:40:46]CheckFolder done [07:40:46]ProducePacketName [07:40:46]name=ofd_packets/00076386 [07:40:46]NVStorageSaveData ofd_packets/00076386 [07:40:46]File name is /storage/ofd_packets/00076386 [07:40:46]Write 298 bytes [07:40:46]NVStorageSaveData done [07:40:46]OFDSenderStorePacket done [07:40:46]KKMCreateOFDPacket done [07:40:46]NVStorageSaveData kkm_last_timestamp [07:40:46]File name is /storage/kkm_last_timestamp [07:40:46]Write 4 bytes [07:40:46]NVStorageSaveData done [07:40:46]ExternCall_PrintAddStr [07:40:46]wPrintStart [07:40:46]Write to MH i2c: 01 00 00 6A 20 8A [07:40:46]Write i2c OK [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: 01 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: 01 07 00 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: 01 07 00 6A 20 00 00 00 00 00 FF 0F 9F [07:40:46]RasterBufferAndPrint [07:40:46]line Счет N : (1)190827 [07:40:46]line ИНН: 02508201610067 [07:40:46]line Контрольно-Кассовый Чек [07:40:46]line ПРОДАЖА [07:40:46]line ТРК (МРК, ГНК) : 13 [07:40:46]line Товар: 2710194210 [07:40:46]line ДТ-К-5 [07:40:46]line 9.610 * 72.90 [07:40:46]line = 700.57 [07:40:46]line НДС 12% НСП 1% [07:40:46]line > о реализуемом товаре [07:40:46]line ОКРУГЛЕНИЕ: -0.57 [07:40:46]line ИТОГО: 700.00 [07:40:46]line Внесено: 700.00 [07:40:46]line СДАЧА: 0.00 [07:40:46]line НСП 1% : 6.20 [07:40:46]line НДС 12% : 74.40 [07:40:46]line Наличными: 700.00 [07:40:46]line Безнал.: 0.00 [07:40:46]line Место: АЗС № 106 "Партнер Нефть" [07:40:46]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:40:46]line СНО: Общий режим [07:40:46]line Чек 6 19.04.2024 07:40 [07:40:46]line Смена: 370 ФФД: 1.0 [07:40:46]line ЗНМ: 0300000141 [07:40:46]line РНМ: 0000000000091573 [07:40:46]line Версия ККМ: 001 [07:40:46]line ФМ: 0000000000874652 [07:40:46]line ФД: 76386 [07:40:46]line ФПД: 84736878419791 [07:40:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T074049&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76386&fm=84736878419791&tin=02508201610067®Number=0000000000091573&sum=70000 [07:40:47]OFD Sender: Processing packet 76386 [packets to send 128, broken 127] [07:40:47]ProducePacketName [07:40:47]name=ofd_packets/00076386 [07:40:47]OFD Sender: To server: pG, [07:40:47]CommunicateWithHost lk.salyk.kg:30040 [07:40:47]ConnectInit lk.salyk.kg [07:40:47]written 0, free lines is 4095 [07:40:47]Connected sock=10 [07:40:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 F0 44 04 01 F2 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 01 20 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 62 2A 01 00 35 04 06 00 4D 11 57 89 9F 4F C1 35 B2 47 A3 95 C4 28 [07:40:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 E4 A0 47 00 F8 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 34 36 35 32 10 04 04 00 62 2A 01 00 F4 03 04 00 8D C7 21 66 B6 04 01 00 00 47 AB AD 2A 10 33 31 A3 [07:40:47]CommunicateWithHost err = 0 [07:40:47]CheckOFDResponse [07:40:47]1017 (14) - 77093643461234 [07:40:47]1041 (16) - 0000000000874652 [07:40:47]1040 (4) - 76386 [07:40:47]1012 (4) - 19.04.2024 01:23 [07:40:47]1206 (1) - 0 [07:40:47]OFD Sender: Remove packet 76386 [07:40:47]ProducePacketName [07:40:47]name=ofd_packets/00076386 [07:40:47]NVStorageDeleteData [07:40:47]Write to MH i2c: 01 00 00 94 20 B4 [07:40:47]Write i2c OK [07:40:47]MH_I2C_Read... [07:40:47]Read from MH i2c: 01 [07:40:47]MH_I2C_Read... [07:40:47]Read from MH i2c: 01 07 00 [07:40:47]MH_I2C_Read... [07:40:47]Read from MH i2c: 01 07 00 94 20 00 00 00 00 00 DD 0C A4 [07:40:47]RasterBufferAndPrint [07:40:47]line [07:40:47]line [07:40:47]line [07:40:47]line [07:40:47]line [07:40:47]written 0, free lines is 3302 [07:40:47]MH_Cut [07:40:47]Write to MH i2c: D1 01 00 9B 20 01 8D [07:40:47]Write i2c OK [07:40:47]MH_I2C_Read... [07:40:47]Read from MH i2c: D1 [07:40:47]MH_I2C_Read... [07:40:47]Read from MH i2c: D1 01 00 [07:40:47]MH_I2C_Read... [07:40:47]Read from MH i2c: D1 01 00 9B 20 00 8C [07:40:47]Write to MH i2c: 01 00 00 9C 20 BC [07:40:47]Write i2c OK [07:40:47]MH_I2C_Read... [07:40:48]OFD Sender: No OFD packet to send [07:40:48]*** Cut start [07:40:48]*** Partial cut [07:40:48]*** CUTSNS_PIN = 1 [07:40:48]*** CUTSNS_PIN = 0 [07:40:48]*** Brake cut motor [07:40:48]Read from MH i2c: 01 [07:40:48]MH_I2C_Read... [07:40:48]*** Stop cut motor [07:40:48]*** Cut end [07:40:48]Read from MH i2c: 01 07 00 [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: 01 07 00 9C 20 00 00 00 00 00 FF 0F D1 [07:40:48]process_action close_receipt done [07:40:48]requested_data is exist [07:40:48]produce_requested_data [07:40:48]requested_item fm.sn is exist - process it [07:40:48]wFMCommunicate request_size=4 [07:40:48]MH_SAM_APDU [07:40:48]CAPDU: 80 11 00 00 [07:40:48]Write to MH i2c: E2 08 00 9D 20 80 11 00 00 00 00 00 00 37 [07:40:48]Write i2c OK [07:40:48]MH_I2C_Read... [07:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:49]Read from MH i2c: E2 [07:40:49]MH_I2C_Read... [07:40:49]Read from MH i2c: E2 17 00 [07:40:49]MH_I2C_Read... [07:40:49]Read from MH i2c: E2 17 00 9D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8A [07:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:40:49]wFMCommunicate OK [07:40:49]requested_item fd.num is exist - process it [07:40:49]SAM_PROTO_GetFieldsCounters [07:40:49]wFMCommunicate request_size=4 [07:40:49]MH_SAM_APDU [07:40:49]CAPDU: 80 13 00 00 [07:40:49]Write to MH i2c: E2 08 00 9E 20 80 13 00 00 00 00 00 00 3A [07:40:49]Write i2c OK [07:40:49]MH_I2C_Read... [07:40:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:40:49]Read from MH i2c: E2 [07:40:49]MH_I2C_Read... [07:40:49]Read from MH i2c: E2 62 00 [07:40:49]MH_I2C_Read... [07:40:49]Read from MH i2c: E2 62 00 9E 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 62 2A 01 00 0E 04 04 00 72 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 6D [07:40:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 62 2A 01 00 0E 04 04 00 72 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:40:49]wFMCommunicate OK [07:40:49]SAM_PROTO_GetFieldsCounters done [07:40:49]requested_item shift.num is exist - process it [07:40:49]requested_item shift.opened is exist - process it [07:40:49]req_shift_opened [07:40:49]FM_GetShiftState [07:40:49]SAM_PROTO_GetShiftState [07:40:49]wFMCommunicate request_size=4 [07:40:49]MH_SAM_APDU [07:40:49]CAPDU: 80 13 01 00 [07:40:49]Write to MH i2c: E2 08 00 9F 20 80 13 01 00 00 00 00 00 3C [07:40:49]Write i2c OK [07:40:49]MH_I2C_Read... [07:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:49]Read from MH i2c: E2 [07:40:49]MH_I2C_Read... [07:40:49]Read from MH i2c: E2 0E 00 [07:40:49]MH_I2C_Read... [07:40:49]Read from MH i2c: E2 0E 00 9F 20 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 21 [07:40:49]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [07:40:49]wFMCommunicate OK [07:40:49]SAM_PROTO_GetShiftState done [07:40:49]FM_GetShiftState done [07:40:49]req_shift_opened done [07:40:49]requested_item shift.open_date is exist - process it [07:40:49]req_shift_open_date [07:40:49]req_shift_open_date done [07:40:49]produce_requested_data done [07:40:49]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76386,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [07:40:49]process_action_free close_receipt [07:40:49]json_value_free [07:40:49]json_value_free done [07:40:49]process_json_proto returns [07:40:49]Send response to host [07:40:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76386,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [07:40:49]free response buf [07:40:49]execute_script done [07:40:49]execute_script returns [07:40:49]free content buf [07:40:49]Sock 9.Close socket [07:40:49]Sock 9.Thread stoped [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:47]accept exits with 7 [07:42:47]New connection [07:42:47]New thread 3066486116 created [07:42:47]Thread 3066629476 joined [07:42:47]Waiting for new connection... [07:42:47] Sock 7.Parse request [07:42:47]Sock 7.Check first char [07:42:47]Sock 7.First char is OK [07:42:47]request: POST /json_proto HTTP/1.0 [07:42:47]Method: POST [07:42:47]URL: /json_proto [07:42:47]Method is POST - this is cgi request [07:42:47]url: /json_proto [07:42:47]query_string will be loaded in cgi processing [07:42:47]execute_cgi json_proto POST (null) [07:42:47]execute_cgi path=json_proto method=POST [07:42:47]POST find Content-Length [07:42:47]Host: 172.17.62.5:8080 [07:42:47]Content-Length: 819 [07:42:47]Content-Type: application/json [07:42:47] [07:42:47]POST finish read [07:42:47]Found Content-Length = 819 [07:42:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:47]execute_script... [07:42: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)190828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:47]POST & json_proto [07:42:47]process_json_proto [07:42:47]json parsed OK: [07:42:47]protocol is kg_v1.0 [07:42:47]action value=close_receipt [07:42:47]process_action close_receipt [07:42:47]cmd_close_receipt [07:42:47]MH_GetDate [07:42:47]Write to MH i2c: F0 00 00 A0 20 AF [07:42:47]Write i2c OK [07:42:47]MH_I2C_Read... [07:42:47]Read from MH i2c: F0 [07:42:47]MH_I2C_Read... [07:42:47]Read from MH i2c: F0 09 00 [07:42:47]MH_I2C_Read... [07:42:47]Read from MH i2c: F0 09 00 A0 20 00 7B 20 22 66 F4 E9 65 64 81 [07:42:47]GetLastDocTimeStamp 1713512449 [07:42:47]current date 1713512571 [07:42:47]FM_GetShiftState [07:42:47]SAM_PROTO_GetShiftState [07:42:47]wFMCommunicate request_size=4 [07:42:47]MH_SAM_APDU [07:42:47]CAPDU: 80 13 01 00 [07:42:47]Write to MH i2c: E2 08 00 A1 20 80 13 01 00 00 00 00 00 3E [07:42:47]Write i2c OK [07:42:47]MH_I2C_Read... [07:42:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:47]Read from MH i2c: E2 [07:42:47]MH_I2C_Read... [07:42:47]Read from MH i2c: E2 0E 00 [07:42:47]MH_I2C_Read... [07:42:47]Read from MH i2c: E2 0E 00 A1 20 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 23 [07:42:47]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [07:42:47]wFMCommunicate OK [07:42:47]SAM_PROTO_GetShiftState done [07:42:47]FM_GetShiftState done [07:42:47]opened in 1713486233 [07:42:47]opened+sec_in_day 1713572633 [07:42:47]quantity*price = 100013 [07:42:47]sum+1 = 100014 [07:42:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.13 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.13 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 7 19.04.2024 07:42 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76387 ФПД: 266511951544009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T074251&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76387&fm=266511951544009&tin=02508201610067®Number=0000000000091573&sum=100013 [07:42:48]StoreToDocumentArchive [07:42:48]shift 370 fd 76387 [07:42:48]save to /storage/0370/doc_00076387 [07:42:48]save last doc name /storage/0370/doc_00076387 to /storage/kkm_last_doc_name [07:42:48]save OK [07:42:48]Clear old archive folders... [07:42:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:42:48]tlvbuf is 0099DB60 [07:42:48]SAM_PROTO_ClearQueue [07:42:48]wFMCommunicate request_size=4 [07:42:48]MH_SAM_APDU [07:42:48]CAPDU: 80 09 00 00 [07:42:48]Write to MH i2c: E2 08 00 AE 20 80 09 00 00 00 00 00 00 40 [07:42:48]Write i2c OK [07:42:48]MH_I2C_Read... [07:42:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:49]Read from MH i2c: E2 [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: E2 03 00 [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: E2 03 00 AE 20 00 90 00 42 [07:42:49]RAPDU: 90 00 [07:42:49]wFMCommunicate OK [07:42:49]SAM_PROTO_ClearQueue done [07:42:49]KKMCreateOFDPacket [07:42:49]OFDProtocolAddRootSTLVToBuf [07:42:49]FM_MakeSignedData [07:42:49]FM_MakeSignedData [07:42:49]SAM_PROTO_SignData [07:42:49]wFMCommunicate request_size=4 [07:42:49]MH_SAM_APDU [07:42:49]CAPDU: 80 0D 01 02 [07:42:49]Write to MH i2c: E2 08 00 AF 20 80 0D 01 02 00 00 00 00 48 [07:42:49]Write i2c OK [07:42:49]MH_I2C_Read... [07:42:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:49]Read from MH i2c: E2 [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: E2 03 00 [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: E2 03 00 AF 20 00 90 00 43 [07:42:49]RAPDU: 90 00 [07:42:49]wFMCommunicate OK [07:42:49]wFMCommunicate request_size=255 [07:42:49]MH_SAM_APDU [07:42: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 7B 20 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 63 2A 01 00 35 04 06 00 F2 [07:42:49]Write to MH i2c: E2 02 01 B0 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 7B 20 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 63 2A 01 00 35 04 06 00 F2 00 00 50 [07:42:49]Write i2c OK [07:42:49]MH_I2C_Read... [07:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:49]Read from MH i2c: E2 [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: E2 03 00 [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: E2 03 00 B0 20 00 90 00 44 [07:42:49]RAPDU: 90 00 [07:42:49]wFMCommunicate OK [07:42:49]wFMCommunicate request_size=10 [07:42:49]MH_SAM_APDU [07:42:49]CAPDU: 80 0D 02 02 05 64 26 33 3E C9 [07:42:49]Write to MH i2c: E2 0D 00 B1 20 80 0D 02 02 05 00 64 26 33 3E C9 00 00 19 [07:42:49]Write i2c OK [07:42:49]MH_I2C_Read... [07:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:49]Read from MH i2c: E2 [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: E2 03 00 [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: E2 03 00 B1 20 00 90 00 45 [07:42:49]RAPDU: 90 00 [07:42:49]wFMCommunicate OK [07:42:49]wFMCommunicate request_size=4 [07:42:49]MH_SAM_APDU [07:42:49]CAPDU: 80 0D 03 02 [07:42:49]Write to MH i2c: E2 08 00 B2 20 80 0D 03 02 00 00 00 00 4D [07:42:49]Write i2c OK [07:42:49]MH_I2C_Read... [07:42:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:49]Read from MH i2c: E2 [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: E2 0B 00 [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: E2 0B 00 B2 20 00 41 22 85 42 B8 95 2C 4E 90 00 3F [07:42:49]RAPDU: 41 22 85 42 B8 95 2C 4E 90 00 [07:42:49]wFMCommunicate OK [07:42:49]SAM_PROTO_SignData done [07:42:49]FM_MakeSignedData done [07:42:49]CreateOFDProtocolMessage [07:42:49]wFMCommunicate request_size=4 [07:42:49]MH_SAM_APDU [07:42:49]CAPDU: 80 11 00 00 [07:42:49]Write to MH i2c: E2 08 00 B3 20 80 11 00 00 00 00 00 00 4D [07:42:49]Write i2c OK [07:42:49]MH_I2C_Read... [07:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:49]Read from MH i2c: E2 [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: E2 17 00 [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: E2 17 00 B3 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A0 [07:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:42:49]wFMCommunicate OK [07:42:49]CreateOFDProtocolMessage done [07:42:49]OFDSenderStorePacket 76387 [07:42:49]StoreOFDPacket docnum=76387 [07:42:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 21 2D 07 01 E6 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 7B 20 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 63 2A 01 00 35 04 06 00 F2 64 26 33 3E C9 41 22 85 42 B8 95 2C 4E [07:42:49]CheckFolder [07:42:49]dirname=/storage/ofd_packets [07:42:49]CheckFolder done [07:42:49]ProducePacketName [07:42:49]name=ofd_packets/00076387 [07:42:49]NVStorageSaveData ofd_packets/00076387 [07:42:49]File name is /storage/ofd_packets/00076387 [07:42:49]Write 301 bytes [07:42:49]NVStorageSaveData done [07:42:49]OFDSenderStorePacket done [07:42:49]KKMCreateOFDPacket done [07:42:49]NVStorageSaveData kkm_last_timestamp [07:42:49]File name is /storage/kkm_last_timestamp [07:42:49]Write 4 bytes [07:42:49]NVStorageSaveData done [07:42:49]ExternCall_PrintAddStr [07:42:49]wPrintStart [07:42:49]Write to MH i2c: 01 00 00 B4 20 D4 [07:42:49]Write i2c OK [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: 01 [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: 01 07 00 [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: 01 07 00 B4 20 00 00 00 00 00 FF 0F E9 [07:42:49]RasterBufferAndPrint [07:42:49]line Счет N : (1)190828 [07:42:49]line ИНН: 02508201610067 [07:42:49]line Контрольно-Кассовый Чек [07:42:49]line ПРОДАЖА [07:42:49]line ТРК (МРК, ГНК) : 33 [07:42:49]line Товар: 2710124130 [07:42:49]line Аи-92-К-5 [07:42:49]line 15.530 * 64.40 [07:42:49]line = 1000.13 [07:42:49]line НДС 12% НСП 1% [07:42:49]line > о реализуемом товаре [07:42:49]line ИТОГО: 1000.13 [07:42:49]line НСП 1% : 8.85 [07:42:49]line НДС 12% : 106.21 [07:42:49]line Наличными: 0.00 [07:42:49]line Безнал.: 1000.13 [07:42:49]line Место: АЗС № 106 "Партнер Нефть" [07:42:49]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:42:49]line СНО: Общий режим [07:42:49]line Чек 7 19.04.2024 07:42 [07:42:49]line Смена: 370 ФФД: 1.0 [07:42:49]line ЗНМ: 0300000141 [07:42:49]line РНМ: 0000000000091573 [07:42:49]line Версия ККМ: 001 [07:42:49]line Платежная система: Бакай Банк [07:42:49]line ФМ: 0000000000874652 [07:42:49]line ФД: 76387 [07:42:49]line ФПД: 266511951544009 [07:42:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T074251&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76387&fm=266511951544009&tin=02508201610067®Number=0000000000091573&sum=100013 [07:42:49]written 0, free lines is 4095 [07:42:49]OFD Sender: Processing packet 76387 [packets to send 128, broken 127] [07:42:49]ProducePacketName [07:42:49]name=ofd_packets/00076387 [07:42:49]OFD Sender: To server: pG, [07:42:49]CommunicateWithHost lk.salyk.kg:30040 [07:42:49]ConnectInit lk.salyk.kg [07:42:49]Write to MH i2c: 01 00 00 DD 20 FD [07:42:49]Write i2c OK [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: 01 [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: 01 07 00 [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: 01 07 00 DD 20 00 00 00 00 00 F4 0C 04 [07:42:49]RasterBufferAndPrint [07:42:49]line [07:42:49]line [07:42:49]line [07:42:49]line [07:42:49]line [07:42:49]written 0, free lines is 3323 [07:42:49]MH_Cut [07:42:49]Write to MH i2c: D1 01 00 E4 20 01 D6 [07:42:49]Write i2c OK [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: D1 [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: D1 01 00 [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: D1 01 00 E4 20 00 D5 [07:42:49]Write to MH i2c: 01 00 00 E5 20 05 [07:42:49]Write i2c OK [07:42:49]MH_I2C_Read... [07:42:50]Connected sock=10 [07:42:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 21 2D 07 01 E6 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 7B 20 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 63 2A 01 00 35 04 06 00 F2 64 26 33 3E C9 41 22 85 42 B8 95 2C 4E [07:42:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 F0 8D 47 00 C6 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 63 2A 01 00 F4 03 04 00 08 C8 21 66 B6 04 01 00 00 A1 D6 18 88 FB AC E8 A0 [07:42:50]CommunicateWithHost err = 0 [07:42:50]CheckOFDResponse [07:42:50]1017 (14) - 77093643461234 [07:42:50]1041 (16) - 0000000000874652 [07:42:50]1040 (4) - 76387 [07:42:50]1012 (4) - 19.04.2024 01:25 [07:42:50]1206 (1) - 0 [07:42:50]OFD Sender: Remove packet 76387 [07:42:50]ProducePacketName [07:42:50]name=ofd_packets/00076387 [07:42:50]NVStorageDeleteData [07:42:50]*** Cut start [07:42:50]*** Partial cut [07:42:50]*** CUTSNS_PIN = 1 [07:42:50]OFD Sender: No OFD packet to send [07:42:50]*** CUTSNS_PIN = 0 [07:42:50]*** Brake cut motor [07:42:51]Read from MH i2c: 01 [07:42:51]MH_I2C_Read... [07:42:51]*** Stop cut motor [07:42:51]*** Cut end [07:42:51]Read from MH i2c: 01 07 00 [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: 01 07 00 E5 20 00 00 00 00 00 FF 0F 1A [07:42:51]process_action close_receipt done [07:42:51]requested_data is exist [07:42:51]produce_requested_data [07:42:51]requested_item fm.sn is exist - process it [07:42:51]wFMCommunicate request_size=4 [07:42:51]MH_SAM_APDU [07:42:51]CAPDU: 80 11 00 00 [07:42:51]Write to MH i2c: E2 08 00 E6 20 80 11 00 00 00 00 00 00 80 [07:42:51]Write i2c OK [07:42:51]MH_I2C_Read... [07:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:51]Read from MH i2c: E2 [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: E2 17 00 [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: E2 17 00 E6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D3 [07:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:42:51]wFMCommunicate OK [07:42:51]requested_item fd.num is exist - process it [07:42:51]SAM_PROTO_GetFieldsCounters [07:42:51]wFMCommunicate request_size=4 [07:42:51]MH_SAM_APDU [07:42:51]CAPDU: 80 13 00 00 [07:42:51]Write to MH i2c: E2 08 00 E7 20 80 13 00 00 00 00 00 00 83 [07:42:51]Write i2c OK [07:42:51]MH_I2C_Read... [07:42:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:51]Read from MH i2c: E2 [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: E2 62 00 [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: E2 62 00 E7 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 63 2A 01 00 0E 04 04 00 72 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 BA [07:42: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 63 2A 01 00 0E 04 04 00 72 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:42:51]wFMCommunicate OK [07:42:51]SAM_PROTO_GetFieldsCounters done [07:42:51]requested_item shift.num is exist - process it [07:42:51]requested_item shift.opened is exist - process it [07:42:51]req_shift_opened [07:42:51]FM_GetShiftState [07:42:51]SAM_PROTO_GetShiftState [07:42:51]wFMCommunicate request_size=4 [07:42:51]MH_SAM_APDU [07:42:51]CAPDU: 80 13 01 00 [07:42:51]Write to MH i2c: E2 08 00 E8 20 80 13 01 00 00 00 00 00 85 [07:42:51]Write i2c OK [07:42:51]MH_I2C_Read... [07:42:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:51]Read from MH i2c: E2 [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: E2 0E 00 [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: E2 0E 00 E8 20 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 6A [07:42:51]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [07:42:51]wFMCommunicate OK [07:42:51]SAM_PROTO_GetShiftState done [07:42:51]FM_GetShiftState done [07:42:51]req_shift_opened done [07:42:51]requested_item shift.open_date is exist - process it [07:42:51]req_shift_open_date [07:42:51]req_shift_open_date done [07:42:51]produce_requested_data done [07:42:51]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76387,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [07:42:51]process_action_free close_receipt [07:42:51]json_value_free [07:42:51]json_value_free done [07:42:51]process_json_proto returns [07:42:51]Send response to host [07:42:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76387,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [07:42:51]free response buf [07:42:51]execute_script done [07:42:51]execute_script returns [07:42:51]free content buf [07:42:51]Sock 7.Close socket [07:42:51]Sock 7.Thread stoped [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]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:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:36]OFD Sender: No OFD packet to send [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:46]accept exits with 9 [07:52:46]New connection [07:52:46]New thread 3066629476 created [07:52:46]Thread 3066486116 joined [07:52:46]Waiting for new connection... [07:52:46] Sock 9.Parse request [07:52:46]Sock 9.Check first char [07:52:46]Sock 9.First char is OK [07:52:46]request: POST /json_proto HTTP/1.0 [07:52:46]Method: POST [07:52:46]URL: /json_proto [07:52:46]Method is POST - this is cgi request [07:52:46]url: /json_proto [07:52:46]query_string will be loaded in cgi processing [07:52:46]execute_cgi json_proto POST (null) [07:52:46]execute_cgi path=json_proto method=POST [07:52:46]POST find Content-Length [07:52:46]Host: 172.17.62.5:8080 [07:52:46]Content-Length: 805 [07:52:46]Content-Type: application/json [07:52:46] [07:52:46]POST finish read [07:52:46]Found Content-Length = 805 [07:52:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190830", "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" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:46]execute_script... [07:52: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)190830", "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" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:46]POST & json_proto [07:52:46]process_json_proto [07:52:46]json parsed OK: [07:52:46]protocol is kg_v1.0 [07:52:46]action value=close_receipt [07:52:46]process_action close_receipt [07:52:46]cmd_close_receipt [07:52:46]MH_GetDate [07:52:46]Write to MH i2c: F0 00 00 E9 20 F8 [07:52:46]Write i2c OK [07:52:46]MH_I2C_Read... [07:52:46]Read from MH i2c: F0 [07:52:46]MH_I2C_Read... [07:52:46]Read from MH i2c: F0 09 00 [07:52:46]MH_I2C_Read... [07:52:46]Read from MH i2c: F0 09 00 E9 20 00 D2 22 22 66 F4 E9 65 64 23 [07:52:46]GetLastDocTimeStamp 1713512571 [07:52:46]current date 1713513170 [07:52:46]FM_GetShiftState [07:52:46]SAM_PROTO_GetShiftState [07:52:46]wFMCommunicate request_size=4 [07:52:46]MH_SAM_APDU [07:52:46]CAPDU: 80 13 01 00 [07:52:46]Write to MH i2c: E2 08 00 EA 20 80 13 01 00 00 00 00 00 87 [07:52:46]Write i2c OK [07:52:46]MH_I2C_Read... [07:52:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:46]Read from MH i2c: E2 [07:52:46]MH_I2C_Read... [07:52:46]Read from MH i2c: E2 0E 00 [07:52:46]MH_I2C_Read... [07:52:46]Read from MH i2c: E2 0E 00 EA 20 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 6C [07:52:46]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [07:52:46]wFMCommunicate OK [07:52:46]SAM_PROTO_GetShiftState done [07:52:46]FM_GetShiftState done [07:52:46]opened in 1713486233 [07:52:46]opened+sec_in_day 1713572633 [07:52:46]quantity*price = 50038 [07:52:46]sum+1 = 50040 [07:52:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.39 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.39 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 8 19.04.2024 07:52 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76388 ФПД: 255688422606905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T075250&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76388&fm=255688422606905&tin=02508201610067®Number=0000000000091573&sum=50039 [07:52:47]StoreToDocumentArchive [07:52:47]shift 370 fd 76388 [07:52:47]save to /storage/0370/doc_00076388 [07:52:47]save last doc name /storage/0370/doc_00076388 to /storage/kkm_last_doc_name [07:52:47]save OK [07:52:47]Clear old archive folders... [07:52:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:52:47]tlvbuf is 00942DD0 [07:52:47]SAM_PROTO_ClearQueue [07:52:47]wFMCommunicate request_size=4 [07:52:47]MH_SAM_APDU [07:52:47]CAPDU: 80 09 00 00 [07:52:47]Write to MH i2c: E2 08 00 F7 20 80 09 00 00 00 00 00 00 89 [07:52:47]Write i2c OK [07:52:47]MH_I2C_Read... [07:52:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:47]Read from MH i2c: E2 [07:52:47]MH_I2C_Read... [07:52:47]Read from MH i2c: E2 03 00 [07:52:47]MH_I2C_Read... [07:52:47]Read from MH i2c: E2 03 00 F7 20 00 90 00 8B [07:52:47]RAPDU: 90 00 [07:52:47]wFMCommunicate OK [07:52:47]SAM_PROTO_ClearQueue done [07:52:47]KKMCreateOFDPacket [07:52:47]OFDProtocolAddRootSTLVToBuf [07:52:47]FM_MakeSignedData [07:52:47]FM_MakeSignedData [07:52:47]SAM_PROTO_SignData [07:52:47]wFMCommunicate request_size=4 [07:52:47]MH_SAM_APDU [07:52:47]CAPDU: 80 0D 01 02 [07:52:47]Write to MH i2c: E2 08 00 F8 20 80 0D 01 02 00 00 00 00 91 [07:52:47]Write i2c OK [07:52:47]MH_I2C_Read... [07:52:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:47]Read from MH i2c: E2 [07:52:47]MH_I2C_Read... [07:52:47]Read from MH i2c: E2 03 00 [07:52:47]MH_I2C_Read... [07:52:47]Read from MH i2c: E2 03 00 F8 20 00 90 00 8C [07:52:47]RAPDU: 90 00 [07:52:47]wFMCommunicate OK [07:52:47]wFMCommunicate request_size=255 [07:52:47]MH_SAM_APDU [07:52: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 77 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 D2 22 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 64 2A 01 00 35 04 06 00 E8 [07:52:47]Write to MH i2c: E2 02 01 F9 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 77 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 D2 22 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 64 2A 01 00 35 04 06 00 E8 00 00 02 [07:52:47]Write i2c OK [07:52:47]MH_I2C_Read... [07:52:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:48]Read from MH i2c: E2 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: E2 03 00 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: E2 03 00 F9 20 00 90 00 8D [07:52:48]RAPDU: 90 00 [07:52:48]wFMCommunicate OK [07:52:48]wFMCommunicate request_size=10 [07:52:48]MH_SAM_APDU [07:52:48]CAPDU: 80 0D 02 02 05 8C 19 9A 48 39 [07:52:48]Write to MH i2c: E2 0D 00 FA 20 80 0D 02 02 05 00 8C 19 9A 48 39 00 00 5E [07:52:48]Write i2c OK [07:52:48]MH_I2C_Read... [07:52:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:48]Read from MH i2c: E2 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: E2 03 00 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: E2 03 00 FA 20 00 90 00 8E [07:52:48]RAPDU: 90 00 [07:52:48]wFMCommunicate OK [07:52:48]wFMCommunicate request_size=4 [07:52:48]MH_SAM_APDU [07:52:48]CAPDU: 80 0D 03 02 [07:52:48]Write to MH i2c: E2 08 00 FB 20 80 0D 03 02 00 00 00 00 96 [07:52:48]Write i2c OK [07:52:48]MH_I2C_Read... [07:52:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:48]Read from MH i2c: E2 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: E2 0B 00 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: E2 0B 00 FB 20 00 4C 0B 74 52 59 30 D1 FF 90 00 0D [07:52:48]RAPDU: 4C 0B 74 52 59 30 D1 FF 90 00 [07:52:48]wFMCommunicate OK [07:52:48]SAM_PROTO_SignData done [07:52:48]FM_MakeSignedData done [07:52:48]CreateOFDProtocolMessage [07:52:48]wFMCommunicate request_size=4 [07:52:48]MH_SAM_APDU [07:52:48]CAPDU: 80 11 00 00 [07:52:48]Write to MH i2c: E2 08 00 FC 20 80 11 00 00 00 00 00 00 96 [07:52:48]Write i2c OK [07:52:48]MH_I2C_Read... [07:52:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:48]Read from MH i2c: E2 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: E2 17 00 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: E2 17 00 FC 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E9 [07:52:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:52:48]wFMCommunicate OK [07:52:48]CreateOFDProtocolMessage done [07:52:48]OFDSenderStorePacket 76388 [07:52:48]StoreOFDPacket docnum=76388 [07:52:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 46 38 07 01 76 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 77 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 D2 22 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 64 2A 01 00 35 04 06 00 E8 8C 19 9A 48 39 4C 0B 74 52 59 30 D1 FF [07:52:48]CheckFolder [07:52:48]dirname=/storage/ofd_packets [07:52:48]CheckFolder done [07:52:48]ProducePacketName [07:52:48]name=ofd_packets/00076388 [07:52:48]NVStorageSaveData ofd_packets/00076388 [07:52:48]File name is /storage/ofd_packets/00076388 [07:52:48]Write 301 bytes [07:52:48]NVStorageSaveData done [07:52:48]OFDSenderStorePacket done [07:52:48]KKMCreateOFDPacket done [07:52:48]NVStorageSaveData kkm_last_timestamp [07:52:48]File name is /storage/kkm_last_timestamp [07:52:48]Write 4 bytes [07:52:48]NVStorageSaveData done [07:52:48]ExternCall_PrintAddStr [07:52:48]wPrintStart [07:52:48]Write to MH i2c: 01 00 00 FD 20 1D [07:52:48]Write i2c OK [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: 01 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: 01 07 00 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: 01 07 00 FD 20 00 00 00 00 00 FF 0F 32 [07:52:48]RasterBufferAndPrint [07:52:48]line Счет N : (1)190830 [07:52:48]line ИНН: 02508201610067 [07:52:48]line Контрольно-Кассовый Чек [07:52:48]line ПРОДАЖА [07:52:48]line ТРК (МРК, ГНК) : 12 [07:52:48]line Товар: 2710124130 [07:52:48]line Аи-92-К-5 [07:52:48]line 7.770 * 64.40 [07:52:48]line = 500.39 [07:52:48]line НДС 12% НСП 1% [07:52:48]line > о реализуемом товаре [07:52:48]line ИТОГО: 500.39 [07:52:48]line НСП 1% : 4.43 [07:52:48]line НДС 12% : 53.14 [07:52:48]line Наличными: 0.00 [07:52:48]line Безнал.: 500.39 [07:52:48]line Место: АЗС № 106 "Партнер Нефть" [07:52:48]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:52:48]line СНО: Общий режим [07:52:48]line Чек 8 19.04.2024 07:52 [07:52:48]line Смена: 370 ФФД: 1.0 [07:52:48]line ЗНМ: 0300000141 [07:52:48]line РНМ: 0000000000091573 [07:52:48]line Версия ККМ: 001 [07:52:48]line Платежная система: О! деньги [07:52:48]line ФМ: 0000000000874652 [07:52:48]line ФД: 76388 [07:52:48]line ФПД: 255688422606905 [07:52:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T075250&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76388&fm=255688422606905&tin=02508201610067®Number=0000000000091573&sum=50039 [07:52:48]written 0, free lines is 4095 [07:52:48]OFD Sender: Processing packet 76388 [packets to send 128, broken 127] [07:52:48]ProducePacketName [07:52:48]name=ofd_packets/00076388 [07:52:48]OFD Sender: To server: pG, [07:52:48]CommunicateWithHost lk.salyk.kg:30040 [07:52:48]ConnectInit lk.salyk.kg [07:52:48]Write to MH i2c: 01 00 00 26 21 47 [07:52:48]Write i2c OK [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: 01 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: 01 07 00 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: 01 07 00 26 21 00 00 00 00 00 FA 0C 54 [07:52:48]RasterBufferAndPrint [07:52:48]line [07:52:48]line [07:52:48]line [07:52:48]line [07:52:48]line [07:52:48]written 0, free lines is 3328 [07:52:48]MH_Cut [07:52:48]Write to MH i2c: D1 01 00 2D 21 01 20 [07:52:48]Write i2c OK [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: D1 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: D1 01 00 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: D1 01 00 2D 21 00 1F [07:52:48]Write to MH i2c: 01 00 00 2E 21 4F [07:52:48]Write i2c OK [07:52:48]MH_I2C_Read... [07:52:48]Connected sock=10 [07:52:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 46 38 07 01 76 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 77 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 D2 22 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 64 2A 01 00 35 04 06 00 E8 8C 19 9A 48 39 4C 0B 74 52 59 30 D1 FF [07:52:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 71 A9 47 00 8B 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 34 36 35 32 10 04 04 00 64 2A 01 00 F4 03 04 00 5E CA 21 66 B6 04 01 00 00 71 B4 8E C8 08 2A E6 1E [07:52:48]CommunicateWithHost err = 0 [07:52:48]CheckOFDResponse [07:52:48]1017 (14) - 77093643461234 [07:52:48]1041 (16) - 0000000000874652 [07:52:48]1040 (4) - 76388 [07:52:48]1012 (4) - 19.04.2024 01:35 [07:52:48]1206 (1) - 0 [07:52:48]OFD Sender: Remove packet 76388 [07:52:48]ProducePacketName [07:52:48]name=ofd_packets/00076388 [07:52:48]NVStorageDeleteData [07:52:49]OFD Sender: No OFD packet to send [07:52:49]*** Cut start [07:52:49]*** Partial cut [07:52:49]*** CUTSNS_PIN = 1 [07:52:49]*** CUTSNS_PIN = 0 [07:52:49]*** Brake cut motor [07:52:49]Read from MH i2c: 01 [07:52:49]MH_I2C_Read... [07:52:49]*** Stop cut motor [07:52:49]*** Cut end [07:52:49]Read from MH i2c: 01 07 00 [07:52:49]MH_I2C_Read... [07:52:49]Read from MH i2c: 01 07 00 2E 21 00 00 00 00 00 FF 0F 64 [07:52:49]process_action close_receipt done [07:52:49]requested_data is exist [07:52:49]produce_requested_data [07:52:49]requested_item fm.sn is exist - process it [07:52:49]wFMCommunicate request_size=4 [07:52:49]MH_SAM_APDU [07:52:49]CAPDU: 80 11 00 00 [07:52:49]Write to MH i2c: E2 08 00 2F 21 80 11 00 00 00 00 00 00 CA [07:52:49]Write i2c OK [07:52:49]MH_I2C_Read... [07:52:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:50]Read from MH i2c: E2 [07:52:50]MH_I2C_Read... [07:52:50]Read from MH i2c: E2 17 00 [07:52:50]MH_I2C_Read... [07:52:50]Read from MH i2c: E2 17 00 2F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 1D [07:52:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:52:50]wFMCommunicate OK [07:52:50]requested_item fd.num is exist - process it [07:52:50]SAM_PROTO_GetFieldsCounters [07:52:50]wFMCommunicate request_size=4 [07:52:50]MH_SAM_APDU [07:52:50]CAPDU: 80 13 00 00 [07:52:50]Write to MH i2c: E2 08 00 30 21 80 13 00 00 00 00 00 00 CD [07:52:50]Write i2c OK [07:52:50]MH_I2C_Read... [07:52:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:50]Read from MH i2c: E2 [07:52:50]MH_I2C_Read... [07:52:50]Read from MH i2c: E2 62 00 [07:52:50]MH_I2C_Read... [07:52:50]Read from MH i2c: E2 62 00 30 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 64 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [07:52: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 64 2A 01 00 0E 04 04 00 72 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:52:50]wFMCommunicate OK [07:52:50]SAM_PROTO_GetFieldsCounters done [07:52:50]requested_item shift.num is exist - process it [07:52:50]requested_item shift.opened is exist - process it [07:52:50]req_shift_opened [07:52:50]FM_GetShiftState [07:52:50]SAM_PROTO_GetShiftState [07:52:50]wFMCommunicate request_size=4 [07:52:50]MH_SAM_APDU [07:52:50]CAPDU: 80 13 01 00 [07:52:50]Write to MH i2c: E2 08 00 31 21 80 13 01 00 00 00 00 00 CF [07:52:50]Write i2c OK [07:52:50]MH_I2C_Read... [07:52:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:50]Read from MH i2c: E2 [07:52:50]MH_I2C_Read... [07:52:50]Read from MH i2c: E2 0E 00 [07:52:50]MH_I2C_Read... [07:52:50]Read from MH i2c: E2 0E 00 31 21 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 B4 [07:52:50]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [07:52:50]wFMCommunicate OK [07:52:50]SAM_PROTO_GetShiftState done [07:52:50]FM_GetShiftState done [07:52:50]req_shift_opened done [07:52:50]requested_item shift.open_date is exist - process it [07:52:50]req_shift_open_date [07:52:50]req_shift_open_date done [07:52:50]produce_requested_data done [07:52:50]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76388,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [07:52:50]process_action_free close_receipt [07:52:50]json_value_free [07:52:50]json_value_free done [07:52:50]process_json_proto returns [07:52:50]Send response to host [07:52:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76388,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [07:52:50]free response buf [07:52:50]execute_script done [07:52:50]execute_script returns [07:52:50]free content buf [07:52:50]Sock 9.Close socket [07:52:50]Sock 9.Thread stoped [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:47]accept exits with 7 [07:53:47]New connection [07:53:47]New thread 3066486116 created [07:53:47]Thread 3066629476 joined [07:53:47]Waiting for new connection... [07:53:47] Sock 7.Parse request [07:53:47]Sock 7.Check first char [07:53:47]Sock 7.First char is OK [07:53:47]request: POST /json_proto HTTP/1.0 [07:53:47]Method: POST [07:53:47]URL: /json_proto [07:53:47]Method is POST - this is cgi request [07:53:47]url: /json_proto [07:53:47]query_string will be loaded in cgi processing [07:53:47]execute_cgi json_proto POST (null) [07:53:47]execute_cgi path=json_proto method=POST [07:53:47]POST find Content-Length [07:53:47]Host: 172.17.62.5:8080 [07:53:47]Content-Length: 990 [07:53:47]Content-Type: application/json [07:53:47] [07:53:47]POST finish read [07:53:47]Found Content-Length = 990 [07:53:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:53:47]execute_script... [07:53: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)190829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:53:47]POST & json_proto [07:53:47]process_json_proto [07:53:47]json parsed OK: [07:53:47]protocol is kg_v1.0 [07:53:47]action value=close_receipt [07:53:47]process_action close_receipt [07:53:47]cmd_close_receipt [07:53:47]MH_GetDate [07:53:47]Write to MH i2c: F0 00 00 32 21 42 [07:53:47]Write i2c OK [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: F0 [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: F0 09 00 [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: F0 09 00 32 21 00 0F 23 22 66 F4 E9 65 64 AB [07:53:47]GetLastDocTimeStamp 1713513170 [07:53:47]current date 1713513231 [07:53:47]FM_GetShiftState [07:53:47]SAM_PROTO_GetShiftState [07:53:47]wFMCommunicate request_size=4 [07:53:47]MH_SAM_APDU [07:53:47]CAPDU: 80 13 01 00 [07:53:47]Write to MH i2c: E2 08 00 33 21 80 13 01 00 00 00 00 00 D1 [07:53:47]Write i2c OK [07:53:47]MH_I2C_Read... [07:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:47]Read from MH i2c: E2 [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: E2 0E 00 [07:53:47]MH_I2C_Read... [07:53:47]Read from MH i2c: E2 0E 00 33 21 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 B6 [07:53:47]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [07:53:47]wFMCommunicate OK [07:53:47]SAM_PROTO_GetShiftState done [07:53:47]FM_GetShiftState done [07:53:47]opened in 1713486233 [07:53:47]opened+sec_in_day 1713572633 [07:53:47]quantity*price = 100013 [07:53:47]sum+1 = 100015 [07:53:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 9 19.04.2024 07:53 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 31.55 сом ФМ: 0000000000874652 ФД: 76389 ФПД: 45926850108538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T075351&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76389&fm=45926850108538&tin=02508201610067®Number=0000000000091573&sum=100000 [07:53:48]StoreToDocumentArchive [07:53:48]shift 370 fd 76389 [07:53:48]save to /storage/0370/doc_00076389 [07:53:48]save last doc name /storage/0370/doc_00076389 to /storage/kkm_last_doc_name [07:53:48]save OK [07:53:48]Clear old archive folders... [07:53:48]ProcessDocumentItem done err = 0, tmpTLVsize=250 [07:53:48]tlvbuf is 00959560 [07:53:48]SAM_PROTO_ClearQueue [07:53:48]wFMCommunicate request_size=4 [07:53:48]MH_SAM_APDU [07:53:48]CAPDU: 80 09 00 00 [07:53:48]Write to MH i2c: E2 08 00 40 21 80 09 00 00 00 00 00 00 D3 [07:53:48]Write i2c OK [07:53:48]MH_I2C_Read... [07:53:48]Read from MH i2c: E2 [07:53:48]MH_I2C_Read... [07:53:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:53:48]Read from MH i2c: E2 03 00 [07:53:48]MH_I2C_Read... [07:53:48]Read from MH i2c: E2 03 00 40 21 00 90 00 D5 [07:53:48]RAPDU: 90 00 [07:53:48]wFMCommunicate OK [07:53:48]SAM_PROTO_ClearQueue done [07:53:48]KKMCreateOFDPacket [07:53:48]OFDProtocolAddRootSTLVToBuf [07:53:48]FM_MakeSignedData [07:53:48]FM_MakeSignedData [07:53:48]SAM_PROTO_SignData [07:53:48]wFMCommunicate request_size=4 [07:53:48]MH_SAM_APDU [07:53:48]CAPDU: 80 0D 01 02 [07:53:48]Write to MH i2c: E2 08 00 41 21 80 0D 01 02 00 00 00 00 DB [07:53:48]Write i2c OK [07:53:48]MH_I2C_Read... [07:53:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:53:48]Read from MH i2c: E2 [07:53:48]MH_I2C_Read... [07:53:48]Read from MH i2c: E2 03 00 [07:53:48]MH_I2C_Read... [07:53:48]Read from MH i2c: E2 03 00 41 21 00 90 00 D6 [07:53:48]RAPDU: 90 00 [07:53:48]wFMCommunicate OK [07:53:48]wFMCommunicate request_size=255 [07:53:48]MH_SAM_APDU [07:53:48]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 0F 23 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 65 2A 01 00 35 04 06 00 29 C5 [07:53:48]Write to MH i2c: E2 02 01 42 21 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 0F 23 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 65 2A 01 00 35 04 06 00 29 C5 00 00 08 [07:53:48]Write i2c OK [07:53:48]MH_I2C_Read... [07:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:48]Read from MH i2c: E2 [07:53:48]MH_I2C_Read... [07:53:48]Read from MH i2c: E2 03 00 [07:53:48]MH_I2C_Read... [07:53:48]Read from MH i2c: E2 03 00 42 21 00 90 00 D7 [07:53:48]RAPDU: 90 00 [07:53:48]wFMCommunicate OK [07:53:48]wFMCommunicate request_size=9 [07:53:48]MH_SAM_APDU [07:53:48]CAPDU: 80 0D 02 02 04 2D 96 1C 7A [07:53:48]Write to MH i2c: E2 0C 00 43 21 80 0D 02 02 04 00 2D 96 1C 7A 00 00 3F [07:53:48]Write i2c OK [07:53:48]MH_I2C_Read... [07:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:48]Read from MH i2c: E2 [07:53:48]MH_I2C_Read... [07:53:48]Read from MH i2c: E2 03 00 [07:53:48]MH_I2C_Read... [07:53:48]Read from MH i2c: E2 03 00 43 21 00 90 00 D8 [07:53:48]RAPDU: 90 00 [07:53:48]wFMCommunicate OK [07:53:48]wFMCommunicate request_size=4 [07:53:48]MH_SAM_APDU [07:53:48]CAPDU: 80 0D 03 02 [07:53:48]Write to MH i2c: E2 08 00 44 21 80 0D 03 02 00 00 00 00 E0 [07:53:48]Write i2c OK [07:53:48]MH_I2C_Read... [07:53:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:53:48]Read from MH i2c: E2 [07:53:48]MH_I2C_Read... [07:53:48]Read from MH i2c: E2 0B 00 [07:53:48]MH_I2C_Read... [07:53:48]Read from MH i2c: E2 0B 00 44 21 00 6C A5 CF 3F A7 EE A7 EF 90 00 2B [07:53:48]RAPDU: 6C A5 CF 3F A7 EE A7 EF 90 00 [07:53:48]wFMCommunicate OK [07:53:48]SAM_PROTO_SignData done [07:53:48]FM_MakeSignedData done [07:53:48]CreateOFDProtocolMessage [07:53:48]wFMCommunicate request_size=4 [07:53:48]MH_SAM_APDU [07:53:48]CAPDU: 80 11 00 00 [07:53:48]Write to MH i2c: E2 08 00 45 21 80 11 00 00 00 00 00 00 E0 [07:53:48]Write i2c OK [07:53:48]MH_I2C_Read... [07:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:49]Read from MH i2c: E2 [07:53:49]MH_I2C_Read... [07:53:49]Read from MH i2c: E2 17 00 [07:53:49]MH_I2C_Read... [07:53:49]Read from MH i2c: E2 17 00 45 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 33 [07:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:53:49]wFMCommunicate OK [07:53:49]CreateOFDProtocolMessage done [07:53:49]OFDSenderStorePacket 76389 [07:53:49]StoreOFDPacket docnum=76389 [07:53:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 A0 BC 06 01 6F 95 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 0F 23 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 65 2A 01 00 35 04 06 00 29 C5 2D 96 1C 7A 6C A5 CF 3F A7 EE A7 EF [07:53:49]CheckFolder [07:53:49]dirname=/storage/ofd_packets [07:53:49]CheckFolder done [07:53:49]ProducePacketName [07:53:49]name=ofd_packets/00076389 [07:53:49]NVStorageSaveData ofd_packets/00076389 [07:53:49]File name is /storage/ofd_packets/00076389 [07:53:49]Write 300 bytes [07:53:49]NVStorageSaveData done [07:53:49]OFDSenderStorePacket done [07:53:49]KKMCreateOFDPacket done [07:53:49]NVStorageSaveData kkm_last_timestamp [07:53:49]File name is /storage/kkm_last_timestamp [07:53:49]Write 4 bytes [07:53:49]NVStorageSaveData done [07:53:49]ExternCall_PrintAddStr [07:53:49]wPrintStart [07:53:49]Write to MH i2c: 01 00 00 46 21 67 [07:53:49]Write i2c OK [07:53:49]MH_I2C_Read... [07:53:49]Read from MH i2c: 01 [07:53:49]MH_I2C_Read... [07:53:49]Read from MH i2c: 01 07 00 [07:53:49]MH_I2C_Read... [07:53:49]Read from MH i2c: 01 07 00 46 21 00 00 00 00 00 FF 0F 7C [07:53:49]RasterBufferAndPrint [07:53:49]line Счет N : (1)190829 [07:53:49]line ИНН: 02508201610067 [07:53:49]line Контрольно-Кассовый Чек [07:53:49]line ПРОДАЖА [07:53:49]line ТРК (МРК, ГНК) : 71 [07:53:49]line Товар: 2711190000 [07:53:49]line ГАЗ-К-5 [07:53:49]line 31.550 * 31.70 [07:53:49]line = 1000.14 [07:53:49]line НДС 12% НСП 1% [07:53:49]line > о реализуемом товаре [07:53:49]line ОКРУГЛЕНИЕ: -0.14 [07:53:49]line ИТОГО: 1000.00 [07:53:49]line Внесено: 1000.00 [07:53:49]line СДАЧА: 0.00 [07:53:49]line НСП 1% : 8.85 [07:53:49]line НДС 12% : 106.21 [07:53:49]line Наличными: 1000.00 [07:53:49]line Безнал.: 0.00 [07:53:49]line Место: АЗС № 106 "Партнер Нефть" [07:53:49]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:53:49]line СНО: Общий режим [07:53:49]line Чек 9 19.04.2024 07:53 [07:53:49]line Смена: 370 ФФД: 1.0 [07:53:49]line ЗНМ: 0300000141 [07:53:49]line РНМ: 0000000000091573 [07:53:49]line Версия ККМ: 001 [07:53:49]line [07:53:49]line Дисконтная программа [07:53:49]line СУГ [07:53:49]line номер 106 [07:53:49]line сэкономлено 31.55 сом [07:53:49]line ФМ: 0000000000874652 [07:53:49]line ФД: 76389 [07:53:49]line ФПД: 45926850108538 [07:53:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T075351&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76389&fm=45926850108538&tin=02508201610067®Number=0000000000091573&sum=100000 [07:53:49]OFD Sender: Processing packet 76389 [packets to send 128, broken 127] [07:53:49]ProducePacketName [07:53:49]name=ofd_packets/00076389 [07:53:49]OFD Sender: To server: pG, [07:53:49]CommunicateWithHost lk.salyk.kg:30040 [07:53:49]ConnectInit lk.salyk.kg [07:53:49]written 0, free lines is 4095 [07:53:49]Connected sock=10 [07:53:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 A0 BC 06 01 6F 95 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 0F 23 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 65 2A 01 00 35 04 06 00 29 C5 2D 96 1C 7A 6C A5 CF 3F A7 EE A7 EF [07:53:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 9E 2A 47 00 B8 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 34 36 35 32 10 04 04 00 65 2A 01 00 F4 03 04 00 9B CA 21 66 B6 04 01 00 00 BF 74 D4 E5 CA 74 C3 65 [07:53:49]CommunicateWithHost err = 0 [07:53:49]CheckOFDResponse [07:53:49]1017 (14) - 77093643461234 [07:53:49]1041 (16) - 0000000000874652 [07:53:49]1040 (4) - 76389 [07:53:49]1012 (4) - 19.04.2024 01:36 [07:53:49]1206 (1) - 0 [07:53:49]OFD Sender: Remove packet 76389 [07:53:49]ProducePacketName [07:53:49]name=ofd_packets/00076389 [07:53:49]NVStorageDeleteData [07:53:49]Write to MH i2c: 01 00 00 75 21 96 [07:53:49]Write i2c OK [07:53:49]MH_I2C_Read... [07:53:49]Read from MH i2c: 01 [07:53:49]MH_I2C_Read... [07:53:49]Read from MH i2c: 01 07 00 [07:53:49]MH_I2C_Read... [07:53:49]Read from MH i2c: 01 07 00 75 21 00 00 00 00 00 81 0C 2A [07:53:49]RasterBufferAndPrint [07:53:49]line [07:53:49]line [07:53:49]line [07:53:49]line [07:53:49]line [07:53:49]written 0, free lines is 3207 [07:53:49]MH_Cut [07:53:49]Write to MH i2c: D1 01 00 7C 21 01 6F [07:53:49]Write i2c OK [07:53:49]MH_I2C_Read... [07:53:49]Read from MH i2c: D1 [07:53:49]MH_I2C_Read... [07:53:49]Read from MH i2c: D1 01 00 [07:53:49]MH_I2C_Read... [07:53:49]Read from MH i2c: D1 01 00 7C 21 00 6E [07:53:49]Write to MH i2c: 01 00 00 7D 21 9E [07:53:49]Write i2c OK [07:53:49]MH_I2C_Read... [07:53:50]OFD Sender: No OFD packet to send [07:53:50]*** Cut start [07:53:50]*** Partial cut [07:53:50]*** CUTSNS_PIN = 1 [07:53:50]*** CUTSNS_PIN = 0 [07:53:50]*** Brake cut motor [07:53:51]Read from MH i2c: 01 [07:53:51]MH_I2C_Read... [07:53:51]*** Stop cut motor [07:53:51]*** Cut end [07:53:51]Read from MH i2c: 01 07 00 [07:53:51]MH_I2C_Read... [07:53:51]Read from MH i2c: 01 07 00 7D 21 00 00 00 00 00 FF 0F B3 [07:53:51]process_action close_receipt done [07:53:51]requested_data is exist [07:53:51]produce_requested_data [07:53:51]requested_item fm.sn is exist - process it [07:53:51]wFMCommunicate request_size=4 [07:53:51]MH_SAM_APDU [07:53:51]CAPDU: 80 11 00 00 [07:53:51]Write to MH i2c: E2 08 00 7E 21 80 11 00 00 00 00 00 00 19 [07:53:51]Write i2c OK [07:53:51]MH_I2C_Read... [07:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:51]Read from MH i2c: E2 [07:53:51]MH_I2C_Read... [07:53:51]Read from MH i2c: E2 17 00 [07:53:51]MH_I2C_Read... [07:53:51]Read from MH i2c: E2 17 00 7E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6C [07:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:53:51]wFMCommunicate OK [07:53:51]requested_item fd.num is exist - process it [07:53:51]SAM_PROTO_GetFieldsCounters [07:53:51]wFMCommunicate request_size=4 [07:53:51]MH_SAM_APDU [07:53:51]CAPDU: 80 13 00 00 [07:53:51]Write to MH i2c: E2 08 00 7F 21 80 13 00 00 00 00 00 00 1C [07:53:51]Write i2c OK [07:53:51]MH_I2C_Read... [07:53:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:51]Read from MH i2c: E2 [07:53:51]MH_I2C_Read... [07:53:51]Read from MH i2c: E2 62 00 [07:53:51]MH_I2C_Read... [07:53:51]Read from MH i2c: E2 62 00 7F 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 65 2A 01 00 0E 04 04 00 72 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 5B [07:53: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 65 2A 01 00 0E 04 04 00 72 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:53:51]wFMCommunicate OK [07:53:51]SAM_PROTO_GetFieldsCounters done [07:53:51]requested_item shift.num is exist - process it [07:53:51]requested_item shift.opened is exist - process it [07:53:51]req_shift_opened [07:53:51]FM_GetShiftState [07:53:51]SAM_PROTO_GetShiftState [07:53:51]wFMCommunicate request_size=4 [07:53:51]MH_SAM_APDU [07:53:51]CAPDU: 80 13 01 00 [07:53:51]Write to MH i2c: E2 08 00 80 21 80 13 01 00 00 00 00 00 1E [07:53:51]Write i2c OK [07:53:51]MH_I2C_Read... [07:53:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:51]Read from MH i2c: E2 [07:53:51]MH_I2C_Read... [07:53:51]Read from MH i2c: E2 0E 00 [07:53:51]MH_I2C_Read... [07:53:51]Read from MH i2c: E2 0E 00 80 21 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 03 [07:53:51]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [07:53:51]wFMCommunicate OK [07:53:51]SAM_PROTO_GetShiftState done [07:53:51]FM_GetShiftState done [07:53:51]req_shift_opened done [07:53:51]requested_item shift.open_date is exist - process it [07:53:51]req_shift_open_date [07:53:51]req_shift_open_date done [07:53:51]produce_requested_data done [07:53:51]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76389,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [07:53:51]process_action_free close_receipt [07:53:51]json_value_free [07:53:51]json_value_free done [07:53:51]process_json_proto returns [07:53:51]Send response to host [07:53:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76389,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [07:53:51]free response buf [07:53:51]execute_script done [07:53:51]execute_script returns [07:53:51]free content buf [07:53:51]Sock 7.Close socket [07:53:51]Sock 7.Thread stoped [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:39]accept exits with 9 [07:56:39]New connection [07:56:39]New thread 3066629476 created [07:56:39]Thread 3066486116 joined [07:56:39]Waiting for new connection... [07:56:39] Sock 9.Parse request [07:56:39]Sock 9.Check first char [07:56:39]Sock 9.First char is OK [07:56:39]request: POST /json_proto HTTP/1.0 [07:56:39]Method: POST [07:56:39]URL: /json_proto [07:56:39]Method is POST - this is cgi request [07:56:39]url: /json_proto [07:56:39]query_string will be loaded in cgi processing [07:56:39]execute_cgi json_proto POST (null) [07:56:39]execute_cgi path=json_proto method=POST [07:56:39]POST find Content-Length [07:56:39]Host: 172.17.62.5:8080 [07:56:39]Content-Length: 816 [07:56:39]Content-Type: application/json [07:56:39] [07:56:39]POST finish read [07:56:39]Found Content-Length = 816 [07:56:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190831", "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" : 72.90, "quantity" : 3.850, "sum" : 280.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 280.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:39]execute_script... [07:56: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)190831", "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" : 72.90, "quantity" : 3.850, "sum" : 280.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 280.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:39]POST & json_proto [07:56:39]process_json_proto [07:56:39]json parsed OK: [07:56:39]protocol is kg_v1.0 [07:56:39]action value=close_receipt [07:56:39]process_action close_receipt [07:56:39]cmd_close_receipt [07:56:39]MH_GetDate [07:56:39]Write to MH i2c: F0 00 00 81 21 91 [07:56:39]Write i2c OK [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: F0 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: F0 09 00 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: F0 09 00 81 21 00 BB 23 22 66 F4 E9 65 64 A6 [07:56:39]GetLastDocTimeStamp 1713513231 [07:56:39]current date 1713513403 [07:56:39]FM_GetShiftState [07:56:39]SAM_PROTO_GetShiftState [07:56:39]wFMCommunicate request_size=4 [07:56:39]MH_SAM_APDU [07:56:39]CAPDU: 80 13 01 00 [07:56:39]Write to MH i2c: E2 08 00 82 21 80 13 01 00 00 00 00 00 20 [07:56:39]Write i2c OK [07:56:39]MH_I2C_Read... [07:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:39]Read from MH i2c: E2 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: E2 0E 00 [07:56:39]MH_I2C_Read... [07:56:39]Read from MH i2c: E2 0E 00 82 21 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 05 [07:56:39]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [07:56:39]wFMCommunicate OK [07:56:39]SAM_PROTO_GetShiftState done [07:56:39]FM_GetShiftState done [07:56:39]opened in 1713486233 [07:56:39]opened+sec_in_day 1713572633 [07:56:39]quantity*price = 28066 [07:56:39]sum+1 = 28068 [07:56:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.67 НСП 1% : 2.48 НДС 12% : 29.81 Наличными: 0.00 Безнал.: 280.67 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 10 19.04.2024 07:56 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76390 ФПД: 246507051798800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T075643&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76390&fm=246507051798800&tin=02508201610067®Number=0000000000091573&sum=28067 [07:56:40]StoreToDocumentArchive [07:56:40]shift 370 fd 76390 [07:56:40]save to /storage/0370/doc_00076390 [07:56:40]save last doc name /storage/0370/doc_00076390 to /storage/kkm_last_doc_name [07:56:40]save OK [07:56:40]Clear old archive folders... [07:56:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:56:40]tlvbuf is 00971F90 [07:56:40]SAM_PROTO_ClearQueue [07:56:40]wFMCommunicate request_size=4 [07:56:40]MH_SAM_APDU [07:56:40]CAPDU: 80 09 00 00 [07:56:40]Write to MH i2c: E2 08 00 8F 21 80 09 00 00 00 00 00 00 22 [07:56:40]Write i2c OK [07:56:40]MH_I2C_Read... [07:56:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:40]Read from MH i2c: E2 [07:56:40]MH_I2C_Read... [07:56:40]Read from MH i2c: E2 03 00 [07:56:40]MH_I2C_Read... [07:56:40]Read from MH i2c: E2 03 00 8F 21 00 90 00 24 [07:56:40]RAPDU: 90 00 [07:56:40]wFMCommunicate OK [07:56:40]SAM_PROTO_ClearQueue done [07:56:40]KKMCreateOFDPacket [07:56:40]OFDProtocolAddRootSTLVToBuf [07:56:40]FM_MakeSignedData [07:56:40]FM_MakeSignedData [07:56:40]SAM_PROTO_SignData [07:56:40]wFMCommunicate request_size=4 [07:56:40]MH_SAM_APDU [07:56:40]CAPDU: 80 0D 01 02 [07:56:40]Write to MH i2c: E2 08 00 90 21 80 0D 01 02 00 00 00 00 2A [07:56:40]Write i2c OK [07:56:40]MH_I2C_Read... [07:56:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:40]Read from MH i2c: E2 [07:56:40]MH_I2C_Read... [07:56:40]Read from MH i2c: E2 03 00 [07:56:40]MH_I2C_Read... [07:56:40]Read from MH i2c: E2 03 00 90 21 00 90 00 25 [07:56:40]RAPDU: 90 00 [07:56:40]wFMCommunicate OK [07:56:40]wFMCommunicate request_size=255 [07:56:40]MH_SAM_APDU [07:56: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 0F 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A3 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A3 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A3 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 BB 23 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 66 2A 01 00 35 04 06 00 E0 [07:56:40]Write to MH i2c: E2 02 01 91 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 0F 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A3 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A3 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A3 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 BB 23 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 66 2A 01 00 35 04 06 00 E0 00 00 13 [07:56:40]Write i2c OK [07:56:40]MH_I2C_Read... [07:56:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:40]Read from MH i2c: E2 [07:56:40]MH_I2C_Read... [07:56:40]Read from MH i2c: E2 03 00 [07:56:40]MH_I2C_Read... [07:56:40]Read from MH i2c: E2 03 00 91 21 00 90 00 26 [07:56:40]RAPDU: 90 00 [07:56:40]wFMCommunicate OK [07:56:40]wFMCommunicate request_size=10 [07:56:40]MH_SAM_APDU [07:56:40]CAPDU: 80 0D 02 02 05 32 65 41 D1 10 [07:56:40]Write to MH i2c: E2 0D 00 92 21 80 0D 02 02 05 00 32 65 41 D1 10 00 00 F0 [07:56:40]Write i2c OK [07:56:40]MH_I2C_Read... [07:56:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:40]Read from MH i2c: E2 [07:56:40]MH_I2C_Read... [07:56:40]Read from MH i2c: E2 03 00 [07:56:40]MH_I2C_Read... [07:56:40]Read from MH i2c: E2 03 00 92 21 00 90 00 27 [07:56:40]RAPDU: 90 00 [07:56:40]wFMCommunicate OK [07:56:40]wFMCommunicate request_size=4 [07:56:40]MH_SAM_APDU [07:56:40]CAPDU: 80 0D 03 02 [07:56:40]Write to MH i2c: E2 08 00 93 21 80 0D 03 02 00 00 00 00 2F [07:56:40]Write i2c OK [07:56:40]MH_I2C_Read... [07:56:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:40]Read from MH i2c: E2 [07:56:40]MH_I2C_Read... [07:56:40]Read from MH i2c: E2 0B 00 [07:56:40]MH_I2C_Read... [07:56:40]Read from MH i2c: E2 0B 00 93 21 00 44 4E 3D F9 BA 4D BE F6 90 00 B3 [07:56:40]RAPDU: 44 4E 3D F9 BA 4D BE F6 90 00 [07:56:40]wFMCommunicate OK [07:56:40]SAM_PROTO_SignData done [07:56:40]FM_MakeSignedData done [07:56:40]CreateOFDProtocolMessage [07:56:40]wFMCommunicate request_size=4 [07:56:40]MH_SAM_APDU [07:56:40]CAPDU: 80 11 00 00 [07:56:40]Write to MH i2c: E2 08 00 94 21 80 11 00 00 00 00 00 00 2F [07:56:40]Write i2c OK [07:56:40]MH_I2C_Read... [07:56:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:41]Read from MH i2c: E2 [07:56:41]MH_I2C_Read... [07:56:41]Read from MH i2c: E2 17 00 [07:56:41]MH_I2C_Read... [07:56:41]Read from MH i2c: E2 17 00 94 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 82 [07:56:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:56:41]wFMCommunicate OK [07:56:41]CreateOFDProtocolMessage done [07:56:41]OFDSenderStorePacket 76390 [07:56:41]StoreOFDPacket docnum=76390 [07:56:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 AF 1D 07 01 A4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 0F 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A3 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A3 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A3 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 BB 23 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 66 2A 01 00 35 04 06 00 E0 32 65 41 D1 10 44 4E 3D F9 BA 4D BE F6 [07:56:41]CheckFolder [07:56:41]dirname=/storage/ofd_packets [07:56:41]CheckFolder done [07:56:41]ProducePacketName [07:56:41]name=ofd_packets/00076390 [07:56:41]NVStorageSaveData ofd_packets/00076390 [07:56:41]File name is /storage/ofd_packets/00076390 [07:56:41]Write 301 bytes [07:56:41]NVStorageSaveData done [07:56:41]OFDSenderStorePacket done [07:56:41]KKMCreateOFDPacket done [07:56:41]NVStorageSaveData kkm_last_timestamp [07:56:41]File name is /storage/kkm_last_timestamp [07:56:41]Write 4 bytes [07:56:41]NVStorageSaveData done [07:56:41]ExternCall_PrintAddStr [07:56:41]wPrintStart [07:56:41]Write to MH i2c: 01 00 00 95 21 B6 [07:56:41]Write i2c OK [07:56:41]MH_I2C_Read... [07:56:41]Read from MH i2c: 01 [07:56:41]MH_I2C_Read... [07:56:41]Read from MH i2c: 01 07 00 [07:56:41]MH_I2C_Read... [07:56:41]Read from MH i2c: 01 07 00 95 21 00 00 00 00 00 FF 0F CB [07:56:41]RasterBufferAndPrint [07:56:41]line Счет N : (1)190831 [07:56:41]line ИНН: 02508201610067 [07:56:41]line Контрольно-Кассовый Чек [07:56:41]line ПРОДАЖА [07:56:41]line ТРК (МРК, ГНК) : 42 [07:56:41]line Товар: 2710124500 [07:56:41]line Аи-95-К-5 [07:56:41]line 3.850 * 72.90 [07:56:41]line = 280.67 [07:56:41]line НДС 12% НСП 1% [07:56:41]line > о реализуемом товаре [07:56:41]line ИТОГО: 280.67 [07:56:41]line НСП 1% : 2.48 [07:56:41]line НДС 12% : 29.81 [07:56:41]line Наличными: 0.00 [07:56:41]line Безнал.: 280.67 [07:56:41]line Место: АЗС № 106 "Партнер Нефть" [07:56:41]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:56:41]line СНО: Общий режим [07:56:41]line Чек 10 19.04.2024 07:56 [07:56:41]line Смена: 370 ФФД: 1.0 [07:56:41]line ЗНМ: 0300000141 [07:56:41]line РНМ: 0000000000091573 [07:56:41]line Версия ККМ: 001 [07:56:41]line Платежная система: Бакай Банк [07:56:41]line ФМ: 0000000000874652 [07:56:41]line ФД: 76390 [07:56:41]line ФПД: 246507051798800 [07:56:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T075643&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76390&fm=246507051798800&tin=02508201610067®Number=0000000000091573&sum=28067 [07:56:41]written 0, free lines is 4095 [07:56:41]OFD Sender: Processing packet 76390 [packets to send 128, broken 127] [07:56:41]ProducePacketName [07:56:41]name=ofd_packets/00076390 [07:56:41]OFD Sender: To server: pG, [07:56:41]CommunicateWithHost lk.salyk.kg:30040 [07:56:41]ConnectInit lk.salyk.kg [07:56:41]Connected sock=10 [07:56:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 AF 1D 07 01 A4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 0F 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A3 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A3 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A3 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 BB 23 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 66 2A 01 00 35 04 06 00 E0 32 65 41 D1 10 44 4E 3D F9 BA 4D BE F6 [07:56:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 7A 02 47 00 F9 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 34 36 35 32 10 04 04 00 66 2A 01 00 F4 03 04 00 47 CB 21 66 B6 04 01 00 00 CD 8F 49 EF 19 52 3C 94 [07:56:41]CommunicateWithHost err = 0 [07:56:41]CheckOFDResponse [07:56:41]1017 (14) - 77093643461234 [07:56:41]1041 (16) - 0000000000874652 [07:56:41]1040 (4) - 76390 [07:56:41]1012 (4) - 19.04.2024 01:39 [07:56:41]1206 (1) - 0 [07:56:41]OFD Sender: Remove packet 76390 [07:56:41]ProducePacketName [07:56:41]name=ofd_packets/00076390 [07:56:41]NVStorageDeleteData [07:56:41]Write to MH i2c: 01 00 00 BE 21 DF [07:56:41]Write i2c OK [07:56:41]MH_I2C_Read... [07:56:41]Read from MH i2c: 01 [07:56:41]MH_I2C_Read... [07:56:41]Read from MH i2c: 01 07 00 [07:56:41]MH_I2C_Read... [07:56:41]Read from MH i2c: 01 07 00 BE 21 00 00 00 00 00 08 0D FB [07:56:41]RasterBufferAndPrint [07:56:41]line [07:56:41]line [07:56:41]line [07:56:41]line [07:56:41]line [07:56:41]written 0, free lines is 3342 [07:56:41]MH_Cut [07:56:41]Write to MH i2c: D1 01 00 C5 21 01 B8 [07:56:41]Write i2c OK [07:56:41]MH_I2C_Read... [07:56:41]Read from MH i2c: D1 [07:56:41]MH_I2C_Read... [07:56:41]Read from MH i2c: D1 01 00 [07:56:41]MH_I2C_Read... [07:56:41]Read from MH i2c: D1 01 00 C5 21 00 B7 [07:56:41]Write to MH i2c: 01 00 00 C6 21 E7 [07:56:41]Write i2c OK [07:56:41]MH_I2C_Read... [07:56:42]OFD Sender: No OFD packet to send [07:56:42]*** Cut start [07:56:42]*** Partial cut [07:56:42]*** CUTSNS_PIN = 1 [07:56:42]*** CUTSNS_PIN = 0 [07:56:42]*** Brake cut motor [07:56:43]Read from MH i2c: 01 [07:56:43]MH_I2C_Read... [07:56:43]*** Stop cut motor [07:56:43]*** Cut end [07:56:43]Read from MH i2c: 01 07 00 [07:56:43]MH_I2C_Read... [07:56:43]Read from MH i2c: 01 07 00 C6 21 00 00 00 00 00 FF 0F FC [07:56:43]process_action close_receipt done [07:56:43]requested_data is exist [07:56:43]produce_requested_data [07:56:43]requested_item fm.sn is exist - process it [07:56:43]wFMCommunicate request_size=4 [07:56:43]MH_SAM_APDU [07:56:43]CAPDU: 80 11 00 00 [07:56:43]Write to MH i2c: E2 08 00 C7 21 80 11 00 00 00 00 00 00 62 [07:56:43]Write i2c OK [07:56:43]MH_I2C_Read... [07:56:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:43]Read from MH i2c: E2 [07:56:43]MH_I2C_Read... [07:56:43]Read from MH i2c: E2 17 00 [07:56:43]MH_I2C_Read... [07:56:43]Read from MH i2c: E2 17 00 C7 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B5 [07:56:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:56:43]wFMCommunicate OK [07:56:43]requested_item fd.num is exist - process it [07:56:43]SAM_PROTO_GetFieldsCounters [07:56:43]wFMCommunicate request_size=4 [07:56:43]MH_SAM_APDU [07:56:43]CAPDU: 80 13 00 00 [07:56:43]Write to MH i2c: E2 08 00 C8 21 80 13 00 00 00 00 00 00 65 [07:56:43]Write i2c OK [07:56:43]MH_I2C_Read... [07:56:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:43]Read from MH i2c: E2 [07:56:43]MH_I2C_Read... [07:56:43]Read from MH i2c: E2 62 00 [07:56:43]MH_I2C_Read... [07:56:43]Read from MH i2c: E2 62 00 C8 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 66 2A 01 00 0E 04 04 00 72 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 A8 [07:56:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 66 2A 01 00 0E 04 04 00 72 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:56:43]wFMCommunicate OK [07:56:43]SAM_PROTO_GetFieldsCounters done [07:56:43]requested_item shift.num is exist - process it [07:56:43]requested_item shift.opened is exist - process it [07:56:43]req_shift_opened [07:56:43]FM_GetShiftState [07:56:43]SAM_PROTO_GetShiftState [07:56:43]wFMCommunicate request_size=4 [07:56:43]MH_SAM_APDU [07:56:43]CAPDU: 80 13 01 00 [07:56:43]Write to MH i2c: E2 08 00 C9 21 80 13 01 00 00 00 00 00 67 [07:56:43]Write i2c OK [07:56:43]MH_I2C_Read... [07:56:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:43]Read from MH i2c: E2 [07:56:43]MH_I2C_Read... [07:56:43]Read from MH i2c: E2 0E 00 [07:56:43]MH_I2C_Read... [07:56:43]Read from MH i2c: E2 0E 00 C9 21 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 4C [07:56:43]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [07:56:43]wFMCommunicate OK [07:56:43]SAM_PROTO_GetShiftState done [07:56:43]FM_GetShiftState done [07:56:43]req_shift_opened done [07:56:43]requested_item shift.open_date is exist - process it [07:56:43]req_shift_open_date [07:56:43]req_shift_open_date done [07:56:43]produce_requested_data done [07:56:43]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76390,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [07:56:43]process_action_free close_receipt [07:56:43]json_value_free [07:56:43]json_value_free done [07:56:43]process_json_proto returns [07:56:43]Send response to host [07:56:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76390,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [07:56:43]free response buf [07:56:43]execute_script done [07:56:43]execute_script returns [07:56:43]free content buf [07:56:43]Sock 9.Close socket [07:56:43]Sock 9.Thread stoped [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:26]accept exits with 7 [08:01:26]New connection [08:01:26]New thread 3066486116 created [08:01:26]Thread 3066629476 joined [08:01:26]Waiting for new connection... [08:01:26] Sock 7.Parse request [08:01:26]Sock 7.Check first char [08:01:26]Sock 7.First char is OK [08:01:26]request: POST /json_proto HTTP/1.0 [08:01:26]Method: POST [08:01:26]URL: /json_proto [08:01:26]Method is POST - this is cgi request [08:01:26]url: /json_proto [08:01:26]query_string will be loaded in cgi processing [08:01:26]execute_cgi json_proto POST (null) [08:01:26]execute_cgi path=json_proto method=POST [08:01:26]POST find Content-Length [08:01:26]Host: 172.17.62.5:8080 [08:01:26]Content-Length: 677 [08:01:26]Content-Type: application/json [08:01:26] [08:01:26]POST finish read [08:01:26]Found Content-Length = 677 [08:01:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:26]execute_script... [08:01: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)190832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:26]POST & json_proto [08:01:26]process_json_proto [08:01:26]json parsed OK: [08:01:26]protocol is kg_v1.0 [08:01:26]action value=close_receipt [08:01:26]process_action close_receipt [08:01:26]cmd_close_receipt [08:01:26]MH_GetDate [08:01:26]Write to MH i2c: F0 00 00 CA 21 DA [08:01:26]Write i2c OK [08:01:26]MH_I2C_Read... [08:01:26]Read from MH i2c: F0 [08:01:26]MH_I2C_Read... [08:01:26]Read from MH i2c: F0 09 00 [08:01:26]MH_I2C_Read... [08:01:26]Read from MH i2c: F0 09 00 CA 21 00 DA 24 22 66 F4 E9 65 64 0F [08:01:26]GetLastDocTimeStamp 1713513403 [08:01:26]current date 1713513690 [08:01:26]FM_GetShiftState [08:01:26]SAM_PROTO_GetShiftState [08:01:26]wFMCommunicate request_size=4 [08:01:26]MH_SAM_APDU [08:01:26]CAPDU: 80 13 01 00 [08:01:26]Write to MH i2c: E2 08 00 CB 21 80 13 01 00 00 00 00 00 69 [08:01:26]Write i2c OK [08:01:26]MH_I2C_Read... [08:01:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:26]Read from MH i2c: E2 [08:01:26]MH_I2C_Read... [08:01:26]Read from MH i2c: E2 0E 00 [08:01:26]MH_I2C_Read... [08:01:26]Read from MH i2c: E2 0E 00 CB 21 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 4E [08:01:26]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:01:26]wFMCommunicate OK [08:01:26]SAM_PROTO_GetShiftState done [08:01:26]FM_GetShiftState done [08:01:26]opened in 1713486233 [08:01:26]opened+sec_in_day 1713572633 [08:01:26]quantity*price = 50038 [08:01:26]sum+1 = 50040 [08:01:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 11 19.04.2024 08:01 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76391 ФПД: 108084158459690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T080130&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76391&fm=108084158459690&tin=02508201610067®Number=0000000000091573&sum=50000 [08:01:27]StoreToDocumentArchive [08:01:27]shift 370 fd 76391 [08:01:27]save to /storage/0370/doc_00076391 [08:01:27]save last doc name /storage/0370/doc_00076391 to /storage/kkm_last_doc_name [08:01:27]save OK [08:01:27]Clear old archive folders... [08:01:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:01:27]tlvbuf is 00915FA0 [08:01:27]SAM_PROTO_ClearQueue [08:01:27]wFMCommunicate request_size=4 [08:01:27]MH_SAM_APDU [08:01:27]CAPDU: 80 09 00 00 [08:01:27]Write to MH i2c: E2 08 00 D8 21 80 09 00 00 00 00 00 00 6B [08:01:27]Write i2c OK [08:01:27]MH_I2C_Read... [08:01:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:27]Read from MH i2c: E2 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 03 00 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 03 00 D8 21 00 90 00 6D [08:01:27]RAPDU: 90 00 [08:01:27]wFMCommunicate OK [08:01:27]SAM_PROTO_ClearQueue done [08:01:27]KKMCreateOFDPacket [08:01:27]OFDProtocolAddRootSTLVToBuf [08:01:27]FM_MakeSignedData [08:01:27]FM_MakeSignedData [08:01:27]SAM_PROTO_SignData [08:01:27]wFMCommunicate request_size=4 [08:01:27]MH_SAM_APDU [08:01:27]CAPDU: 80 0D 01 02 [08:01:27]Write to MH i2c: E2 08 00 D9 21 80 0D 01 02 00 00 00 00 73 [08:01:27]Write i2c OK [08:01:27]MH_I2C_Read... [08:01:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:27]Read from MH i2c: E2 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 03 00 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 03 00 D9 21 00 90 00 6E [08:01:27]RAPDU: 90 00 [08:01:27]wFMCommunicate OK [08:01:27]wFMCommunicate request_size=255 [08:01:27]MH_SAM_APDU [08:01:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 DA 24 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 67 2A 01 00 35 04 06 00 62 [08:01:27]Write to MH i2c: E2 02 01 DA 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 DA 24 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 67 2A 01 00 35 04 06 00 62 00 00 20 [08:01:27]Write i2c OK [08:01:27]MH_I2C_Read... [08:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:28]Read from MH i2c: E2 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 03 00 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 03 00 DA 21 00 90 00 6F [08:01:28]RAPDU: 90 00 [08:01:28]wFMCommunicate OK [08:01:28]wFMCommunicate request_size=10 [08:01:28]MH_SAM_APDU [08:01:28]CAPDU: 80 0D 02 02 05 4D 4D DE EF 2A [08:01:28]Write to MH i2c: E2 0D 00 DB 21 80 0D 02 02 05 00 4D 4D DE EF 2A 00 00 11 [08:01:28]Write i2c OK [08:01:28]MH_I2C_Read... [08:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:28]Read from MH i2c: E2 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 03 00 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 03 00 DB 21 00 90 00 70 [08:01:28]RAPDU: 90 00 [08:01:28]wFMCommunicate OK [08:01:28]wFMCommunicate request_size=4 [08:01:28]MH_SAM_APDU [08:01:28]CAPDU: 80 0D 03 02 [08:01:28]Write to MH i2c: E2 08 00 DC 21 80 0D 03 02 00 00 00 00 78 [08:01:28]Write i2c OK [08:01:28]MH_I2C_Read... [08:01:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:28]Read from MH i2c: E2 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 0B 00 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 0B 00 DC 21 00 1D E5 6F 86 C3 C0 59 7E 90 00 CA [08:01:28]RAPDU: 1D E5 6F 86 C3 C0 59 7E 90 00 [08:01:28]wFMCommunicate OK [08:01:28]SAM_PROTO_SignData done [08:01:28]FM_MakeSignedData done [08:01:28]CreateOFDProtocolMessage [08:01:28]wFMCommunicate request_size=4 [08:01:28]MH_SAM_APDU [08:01:28]CAPDU: 80 11 00 00 [08:01:28]Write to MH i2c: E2 08 00 DD 21 80 11 00 00 00 00 00 00 78 [08:01:28]Write i2c OK [08:01:28]MH_I2C_Read... [08:01:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:28]Read from MH i2c: E2 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 17 00 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 17 00 DD 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CB [08:01:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:01:28]wFMCommunicate OK [08:01:28]CreateOFDProtocolMessage done [08:01:28]OFDSenderStorePacket 76391 [08:01:28]StoreOFDPacket docnum=76391 [08:01:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 5A CF 07 01 C6 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 DA 24 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 67 2A 01 00 35 04 06 00 62 4D 4D DE EF 2A 1D E5 6F 86 C3 C0 59 7E [08:01:28]CheckFolder [08:01:28]dirname=/storage/ofd_packets [08:01:28]CheckFolder done [08:01:28]ProducePacketName [08:01:28]name=ofd_packets/00076391 [08:01:28]NVStorageSaveData ofd_packets/00076391 [08:01:28]File name is /storage/ofd_packets/00076391 [08:01:28]Write 301 bytes [08:01:28]NVStorageSaveData done [08:01:28]OFDSenderStorePacket done [08:01:28]KKMCreateOFDPacket done [08:01:28]NVStorageSaveData kkm_last_timestamp [08:01:28]File name is /storage/kkm_last_timestamp [08:01:28]Write 4 bytes [08:01:28]NVStorageSaveData done [08:01:28]OFD Sender: Processing packet 76391 [packets to send 128, broken 127] [08:01:28]ProducePacketName [08:01:28]name=ofd_packets/00076391 [08:01:28]OFD Sender: To server: pG, [08:01:28]CommunicateWithHost lk.salyk.kg:30040 [08:01:28]ConnectInit lk.salyk.kg [08:01:28]ExternCall_PrintAddStr [08:01:28]wPrintStart [08:01:28]Write to MH i2c: 01 00 00 DE 21 FF [08:01:28]Write i2c OK [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: 01 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: 01 07 00 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: 01 07 00 DE 21 00 00 00 00 00 FF 0F 14 [08:01:28]RasterBufferAndPrint [08:01:28]line Счет N : (1)190832 [08:01:28]line ИНН: 02508201610067 [08:01:28]line Контрольно-Кассовый Чек [08:01:28]line ПРОДАЖА [08:01:28]line ТРК (МРК, ГНК) : 33 [08:01:28]line Товар: 2710124130 [08:01:28]line Аи-92-К-5 [08:01:28]line 7.770 * 64.40 [08:01:28]line = 500.39 [08:01:28]line НДС 12% НСП 1% [08:01:28]line > о реализуемом товаре [08:01:28]line ОКРУГЛЕНИЕ: -0.39 [08:01:28]line ИТОГО: 500.00 [08:01:28]line Внесено: 500.00 [08:01:28]line СДАЧА: 0.00 [08:01:28]line НСП 1% : 4.43 [08:01:28]line НДС 12% : 53.14 [08:01:28]line Наличными: 500.00 [08:01:28]line Безнал.: 0.00 [08:01:28]line Место: АЗС № 106 "Партнер Нефть" [08:01:28]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:01:28]line СНО: Общий режим [08:01:28]line Чек 11 19.04.2024 08:01 [08:01:28]line Смена: 370 ФФД: 1.0 [08:01:28]line ЗНМ: 0300000141 [08:01:28]line РНМ: 0000000000091573 [08:01:28]line Версия ККМ: 001 [08:01:28]line ФМ: 0000000000874652 [08:01:28]line ФД: 76391 [08:01:28]line ФПД: 108084158459690 [08:01:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T080130&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76391&fm=108084158459690&tin=02508201610067®Number=0000000000091573&sum=50000 [08:01:28]Connected sock=11 [08:01:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 5A CF 07 01 C6 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 DA 24 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 67 2A 01 00 35 04 06 00 62 4D 4D DE EF 2A 1D E5 6F 86 C3 C0 59 7E [08:01:28]written 0, free lines is 4095 [08:01:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 87 1B 47 00 4B 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 34 36 35 32 10 04 04 00 67 2A 01 00 F4 03 04 00 66 CC 21 66 B6 04 01 00 00 C2 A5 F5 B1 C6 3C 25 61 [08:01:28]CommunicateWithHost err = 0 [08:01:28]CheckOFDResponse [08:01:28]1017 (14) - 77093643461234 [08:01:28]1041 (16) - 0000000000874652 [08:01:28]1040 (4) - 76391 [08:01:28]1012 (4) - 19.04.2024 01:44 [08:01:28]1206 (1) - 0 [08:01:28]OFD Sender: Remove packet 76391 [08:01:28]ProducePacketName [08:01:28]name=ofd_packets/00076391 [08:01:28]NVStorageDeleteData [08:01:29]Write to MH i2c: 01 00 00 08 22 2A [08:01:29]Write i2c OK [08:01:29]MH_I2C_Read... [08:01:29]Read from MH i2c: 01 [08:01:29]MH_I2C_Read... [08:01:29]Read from MH i2c: 01 07 00 [08:01:29]MH_I2C_Read... [08:01:29]Read from MH i2c: 01 07 00 08 22 00 00 00 00 00 E7 0C 24 [08:01:29]RasterBufferAndPrint [08:01:29]line [08:01:29]line [08:01:29]line [08:01:29]line [08:01:29]line [08:01:29]written 0, free lines is 3310 [08:01:29]MH_Cut [08:01:29]Write to MH i2c: D1 01 00 0F 22 01 03 [08:01:29]Write i2c OK [08:01:29]MH_I2C_Read... [08:01:29]Read from MH i2c: D1 [08:01:29]MH_I2C_Read... [08:01:29]Read from MH i2c: D1 01 00 [08:01:29]MH_I2C_Read... [08:01:29]Read from MH i2c: D1 01 00 0F 22 00 02 [08:01:29]Write to MH i2c: 01 00 00 10 22 32 [08:01:29]Write i2c OK [08:01:29]MH_I2C_Read... [08:01:29]OFD Sender: No OFD packet to send [08:01:29]*** Cut start [08:01:29]*** Partial cut [08:01:29]*** CUTSNS_PIN = 1 [08:01:29]*** CUTSNS_PIN = 0 [08:01:30]*** Brake cut motor [08:01:30]Read from MH i2c: 01 [08:01:30]MH_I2C_Read... [08:01:30]*** Stop cut motor [08:01:30]*** Cut end [08:01:30]Read from MH i2c: 01 07 00 [08:01:30]MH_I2C_Read... [08:01:30]Read from MH i2c: 01 07 00 10 22 00 00 00 00 00 FF 0F 47 [08:01:30]process_action close_receipt done [08:01:30]requested_data is exist [08:01:30]produce_requested_data [08:01:30]requested_item fm.sn is exist - process it [08:01:30]wFMCommunicate request_size=4 [08:01:30]MH_SAM_APDU [08:01:30]CAPDU: 80 11 00 00 [08:01:30]Write to MH i2c: E2 08 00 11 22 80 11 00 00 00 00 00 00 AD [08:01:30]Write i2c OK [08:01:30]MH_I2C_Read... [08:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:30]Read from MH i2c: E2 [08:01:30]MH_I2C_Read... [08:01:30]Read from MH i2c: E2 17 00 [08:01:30]MH_I2C_Read... [08:01:30]Read from MH i2c: E2 17 00 11 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 00 [08:01:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:01:30]wFMCommunicate OK [08:01:30]requested_item fd.num is exist - process it [08:01:30]SAM_PROTO_GetFieldsCounters [08:01:30]wFMCommunicate request_size=4 [08:01:30]MH_SAM_APDU [08:01:30]CAPDU: 80 13 00 00 [08:01:30]Write to MH i2c: E2 08 00 12 22 80 13 00 00 00 00 00 00 B0 [08:01:30]Write i2c OK [08:01:30]MH_I2C_Read... [08:01:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:30]Read from MH i2c: E2 [08:01:30]MH_I2C_Read... [08:01:30]Read from MH i2c: E2 62 00 [08:01:30]MH_I2C_Read... [08:01:30]Read from MH i2c: E2 62 00 12 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 67 2A 01 00 0E 04 04 00 72 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 F7 [08:01: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 67 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:01:30]wFMCommunicate OK [08:01:30]SAM_PROTO_GetFieldsCounters done [08:01:30]requested_item shift.num is exist - process it [08:01:30]requested_item shift.opened is exist - process it [08:01:30]req_shift_opened [08:01:30]FM_GetShiftState [08:01:30]SAM_PROTO_GetShiftState [08:01:30]wFMCommunicate request_size=4 [08:01:30]MH_SAM_APDU [08:01:30]CAPDU: 80 13 01 00 [08:01:30]Write to MH i2c: E2 08 00 13 22 80 13 01 00 00 00 00 00 B2 [08:01:30]Write i2c OK [08:01:30]MH_I2C_Read... [08:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:30]Read from MH i2c: E2 [08:01:30]MH_I2C_Read... [08:01:30]Read from MH i2c: E2 0E 00 [08:01:30]MH_I2C_Read... [08:01:30]Read from MH i2c: E2 0E 00 13 22 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 97 [08:01:30]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:01:30]wFMCommunicate OK [08:01:30]SAM_PROTO_GetShiftState done [08:01:30]FM_GetShiftState done [08:01:30]req_shift_opened done [08:01:30]requested_item shift.open_date is exist - process it [08:01:30]req_shift_open_date [08:01:30]req_shift_open_date done [08:01:30]produce_requested_data done [08:01:30]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76391,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [08:01:30]process_action_free close_receipt [08:01:30]json_value_free [08:01:30]json_value_free done [08:01:30]process_json_proto returns [08:01:30]Send response to host [08:01:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76391,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [08:01:30]free response buf [08:01:30]execute_script done [08:01:30]execute_script returns [08:01:30]free content buf [08:01:30]Sock 7.Close socket [08:01:30]Sock 7.Thread stoped [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:44]OFD Sender: No OFD packet to send [08:07:49]OFD Sender: No OFD packet to send [08:07:54]OFD Sender: No OFD packet to send [08:07:59]OFD Sender: No OFD packet to send [08:08:04]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:24]OFD Sender: No OFD packet to send [08:08:29]OFD Sender: No OFD packet to send [08:08:34]OFD Sender: No OFD packet to send [08:08:39]OFD Sender: No OFD packet to send [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:39]OFD Sender: No OFD packet to send [08:09:44]OFD Sender: No OFD packet to send [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:19]OFD Sender: No OFD packet to send [08:10:24]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:31]accept exits with 9 [08:21:31]New connection [08:21:31]New thread 3066629476 created [08:21:31]Thread 3066486116 joined [08:21:31]Waiting for new connection... [08:21:31] Sock 9.Parse request [08:21:31]Sock 9.Check first char [08:21:31]Sock 9.First char is OK [08:21:31]request: POST /json_proto HTTP/1.0 [08:21:31]Method: POST [08:21:31]URL: /json_proto [08:21:31]Method is POST - this is cgi request [08:21:31]url: /json_proto [08:21:31]query_string will be loaded in cgi processing [08:21:31]execute_cgi json_proto POST (null) [08:21:31]execute_cgi path=json_proto method=POST [08:21:31]POST find Content-Length [08:21:31]Host: 172.17.62.5:8080 [08:21:31]Content-Length: 215 [08:21:31]Content-Type: application/json [08:21:31] [08:21:31]POST finish read [08:21:31]Found Content-Length = 215 [08:21:31]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" ] } } [08:21:31]execute_script... [08:21:31]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" ] } } [08:21:31]POST & json_proto [08:21:31]process_json_proto [08:21:31]json parsed OK: [08:21:31]protocol is kg_v1.0 [08:21:31]action value=get_value [08:21:31]process_action get_value [08:21:31]cmd_get_value [08:21:31]process_action get_value done [08:21:31]requested_data is exist [08:21:31]produce_requested_data [08:21:31]requested_item kkm.sn is exist - process it [08:21:31]requested_item kkm.ver is exist - process it [08:21:31]requested_item fm.sn is exist - process it [08:21:31]wFMCommunicate request_size=4 [08:21:31]MH_SAM_APDU [08:21:31]CAPDU: 80 11 00 00 [08:21:31]Write to MH i2c: E2 08 00 14 22 80 11 00 00 00 00 00 00 B0 [08:21:31]Write i2c OK [08:21:31]MH_I2C_Read... [08:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:31]Read from MH i2c: E2 [08:21:31]MH_I2C_Read... [08:21:31]Read from MH i2c: E2 17 00 [08:21:31]MH_I2C_Read... [08:21:31]Read from MH i2c: E2 17 00 14 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 03 [08:21:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:21:31]wFMCommunicate OK [08:21:31]requested_item fd.num is exist - process it [08:21:31]SAM_PROTO_GetFieldsCounters [08:21:31]wFMCommunicate request_size=4 [08:21:31]MH_SAM_APDU [08:21:31]CAPDU: 80 13 00 00 [08:21:31]Write to MH i2c: E2 08 00 15 22 80 13 00 00 00 00 00 00 B3 [08:21:31]Write i2c OK [08:21:31]MH_I2C_Read... [08:21:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:31]Read from MH i2c: E2 [08:21:31]MH_I2C_Read... [08:21:31]Read from MH i2c: E2 62 00 [08:21:31]MH_I2C_Read... [08:21:31]Read from MH i2c: E2 62 00 15 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 67 2A 01 00 0E 04 04 00 72 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 FA [08:21: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 67 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:21:31]wFMCommunicate OK [08:21:31]SAM_PROTO_GetFieldsCounters done [08:21:31]requested_item shift.num is exist - process it [08:21:31]requested_item shift.opened is exist - process it [08:21:31]req_shift_opened [08:21:31]FM_GetShiftState [08:21:31]SAM_PROTO_GetShiftState [08:21:31]wFMCommunicate request_size=4 [08:21:31]MH_SAM_APDU [08:21:31]CAPDU: 80 13 01 00 [08:21:31]Write to MH i2c: E2 08 00 16 22 80 13 01 00 00 00 00 00 B5 [08:21:31]Write i2c OK [08:21:31]MH_I2C_Read... [08:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:31]Read from MH i2c: E2 [08:21:31]MH_I2C_Read... [08:21:31]Read from MH i2c: E2 0E 00 [08:21:31]MH_I2C_Read... [08:21:31]Read from MH i2c: E2 0E 00 16 22 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 9A [08:21:31]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:21:31]wFMCommunicate OK [08:21:31]SAM_PROTO_GetShiftState done [08:21:31]FM_GetShiftState done [08:21:31]req_shift_opened done [08:21:31]requested_item shift.open_date is exist - process it [08:21:31]req_shift_open_date [08:21:31]req_shift_open_date done [08:21:31]produce_requested_data done [08:21:31]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76391,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [08:21:31]process_action_free get_value [08:21:31]json_value_free [08:21:31]json_value_free done [08:21:31]process_json_proto returns [08:21:31]Send response to host [08:21:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76391,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [08:21:31]free response buf [08:21:31]execute_script done [08:21:31]execute_script returns [08:21:31]free content buf [08:21:31]Sock 9.Close socket [08:21:31]Sock 9.Thread stoped [08:21:31]accept exits with 7 [08:21:31]New connection [08:21:31]New thread 3066486116 created [08:21:31]Thread 3066629476 joined [08:21:31]Waiting for new connection... [08:21:31] Sock 7.Parse request [08:21:31]Sock 7.Check first char [08:21:31]Sock 7.First char is OK [08:21:31]request: POST /json_proto HTTP/1.0 [08:21:31]Method: POST [08:21:31]URL: /json_proto [08:21:31]Method is POST - this is cgi request [08:21:31]url: /json_proto [08:21:31]query_string will be loaded in cgi processing [08:21:31]execute_cgi json_proto POST (null) [08:21:31]execute_cgi path=json_proto method=POST [08:21:31]POST find Content-Length [08:21:31]Host: 172.17.62.5:8080 [08:21:31]Content-Length: 331 [08:21:31]Content-Type: application/json [08:21:31] [08:21:31]POST finish read [08:21:31]Found Content-Length = 331 [08:21:31]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" ] } } [08:21:31]execute_script... [08:21:31]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" ] } } [08:21:31]POST & json_proto [08:21:31]process_json_proto [08:21:31]json parsed OK: [08:21:31]protocol is kg_v1.0 [08:21:31]action value=get_value [08:21:31]process_action get_value [08:21:31]cmd_get_value [08:21:31]process_action get_value done [08:21:31]requested_data is exist [08:21:31]produce_requested_data [08:21:31]requested_item fm.sale.total is exist - process it [08:21:31]SAM_PROTO_GetFMData [08:21:31]wFMCommunicate request_size=4 [08:21:31]MH_SAM_APDU [08:21:31]CAPDU: 80 13 03 00 [08:21:31]Write to MH i2c: E2 08 00 17 22 80 13 03 00 00 00 00 00 B8 [08:21:31]Write i2c OK [08:21:31]MH_I2C_Read... [08:21:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:21:32]Read from MH i2c: E2 [08:21:32]MH_I2C_Read... [08:21:32]Read from MH i2c: E2 FD 00 [08:21:32]MH_I2C_Read... [08:21:32]Read from MH i2c: E2 FD 00 17 22 00 C8 04 85 04 C4 04 6E 04 04 00 83 27 01 00 69 04 A3 00 6F 04 04 00 95 25 01 00 B1 04 05 00 C0 74 64 B7 02 70 04 05 00 4C 3B 02 74 02 72 04 04 00 74 39 62 43 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 F2 7B DB 49 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 D8 8E 27 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 74 [08:21:32]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 83 27 01 00 69 04 A3 00 6F 04 04 00 95 25 01 00 B1 04 05 00 C0 74 64 B7 02 70 04 05 00 4C 3B 02 74 02 72 04 04 00 74 39 62 43 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 F2 7B DB 49 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 D8 8E 27 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 [08:21:32]wFMCommunicate OK [08:21:32]wFMCommunicate request_size=4 [08:21:32]MH_SAM_APDU [08:21:32]CAPDU: 80 17 00 00 [08:21:32]Write to MH i2c: E2 08 00 18 22 80 17 00 00 00 00 00 00 BA [08:21:32]Write i2c OK [08:21:32]MH_I2C_Read... [08:21:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:32]Read from MH i2c: E2 [08:21:32]MH_I2C_Read... [08:21:32]Read from MH i2c: E2 FD 00 [08:21:32]MH_I2C_Read... [08:21:32]Read from MH i2c: E2 FD 00 18 22 00 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 B4 2D 75 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 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 90 00 21 [08:21:32]RAPDU: 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 B4 2D 75 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 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 90 00 [08:21:32]wFMCommunicate OK [08:21:32]wFMCommunicate request_size=4 [08:21:32]MH_SAM_APDU [08:21:32]CAPDU: 80 17 00 00 [08:21:32]Write to MH i2c: E2 08 00 19 22 80 17 00 00 00 00 00 00 BB [08:21:32]Write i2c OK [08:21:32]MH_I2C_Read... [08:21:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:32]Read from MH i2c: E2 [08:21:32]MH_I2C_Read... [08:21:32]Read from MH i2c: E2 FD 00 [08:21:32]MH_I2C_Read... [08:21:32]Read from MH i2c: E2 FD 00 19 22 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 93 [08:21:32]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:21:32]wFMCommunicate OK [08:21:32]wFMCommunicate request_size=4 [08:21:32]MH_SAM_APDU [08:21:32]CAPDU: 80 17 00 00 [08:21:32]Write to MH i2c: E2 08 00 1A 22 80 17 00 00 00 00 00 00 BC [08:21:32]Write i2c OK [08:21:32]MH_I2C_Read... [08:21:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:32]Read from MH i2c: E2 [08:21:32]MH_I2C_Read... [08:21:32]Read from MH i2c: E2 FD 00 [08:21:32]MH_I2C_Read... [08:21:32]Read from MH i2c: E2 FD 00 1A 22 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 90 00 34 [08:21:32]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 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 90 00 [08:21:32]wFMCommunicate OK [08:21:32]wFMCommunicate request_size=4 [08:21:32]MH_SAM_APDU [08:21:32]CAPDU: 80 17 00 00 [08:21:32]Write to MH i2c: E2 08 00 1B 22 80 17 00 00 00 00 00 00 BD [08:21:32]Write i2c OK [08:21:32]MH_I2C_Read... [08:21:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [08:21:33]Read from MH i2c: E2 [08:21:33]MH_I2C_Read... [08:21:33]Read from MH i2c: E2 E5 00 [08:21:33]MH_I2C_Read... [08:21:33]Read from MH i2c: E2 E5 00 1B 22 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A1 [08:21:33]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [08:21:33]wFMCommunicate OK [08:21:33]SAM_PROTO_GetFMData done [08:21:33]requested_item fm.sale_refund.total is exist - process it [08:21:33]requested_item fm.buy.total is exist - process it [08:21:33]requested_item shift.sale.total is exist - process it [08:21:33]SAM_PROTO_GetShiftData [08:21:33]wFMCommunicate request_size=4 [08:21:33]MH_SAM_APDU [08:21:33]CAPDU: 80 13 02 00 [08:21:33]Write to MH i2c: E2 08 00 1C 22 80 13 02 00 00 00 00 00 BC [08:21:33]Write i2c OK [08:21:33]MH_I2C_Read... [08:21:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:21:33]Read from MH i2c: E2 [08:21:33]MH_I2C_Read... [08:21:33]Read from MH i2c: E2 FD 00 [08:21:33]MH_I2C_Read... [08:21:33]Read from MH i2c: E2 FD 00 1C 22 00 AE 04 AA 04 AA 04 6E 04 04 00 0B 00 00 00 69 04 9B 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 DD C5 0E 70 04 03 00 B0 00 09 72 04 03 00 2D C5 05 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 91 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 79 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 D6 [08:21:33]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 0B 00 00 00 69 04 9B 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 DD C5 0E 70 04 03 00 B0 00 09 72 04 03 00 2D C5 05 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B7 91 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 79 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [08:21:33]wFMCommunicate OK [08:21:33]wFMCommunicate request_size=4 [08:21:33]MH_SAM_APDU [08:21:33]CAPDU: 80 17 00 00 [08:21:33]Write to MH i2c: E2 08 00 1D 22 80 17 00 00 00 00 00 00 BF [08:21:33]Write i2c OK [08:21:33]MH_I2C_Read... [08:21:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:33]Read from MH i2c: E2 [08:21:33]MH_I2C_Read... [08:21:33]Read from MH i2c: E2 FD 00 [08:21:33]MH_I2C_Read... [08:21:33]Read from MH i2c: E2 FD 00 1D 22 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 E1 [08:21:33]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 [08:21:33]wFMCommunicate OK [08:21:33]wFMCommunicate request_size=4 [08:21:33]MH_SAM_APDU [08:21:33]CAPDU: 80 17 00 00 [08:21:33]Write to MH i2c: E2 08 00 1E 22 80 17 00 00 00 00 00 00 C0 [08:21:33]Write i2c OK [08:21:33]MH_I2C_Read... [08:21:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:34]Read from MH i2c: E2 [08:21:34]MH_I2C_Read... [08:21:34]Read from MH i2c: E2 FD 00 [08:21:34]MH_I2C_Read... [08:21:34]Read from MH i2c: E2 FD 00 1E 22 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [08:21:34]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 [08:21:34]wFMCommunicate OK [08:21:34]wFMCommunicate request_size=4 [08:21:34]MH_SAM_APDU [08:21:34]CAPDU: 80 17 00 00 [08:21:34]Write to MH i2c: E2 08 00 1F 22 80 17 00 00 00 00 00 00 C1 [08:21:34]Write i2c OK [08:21:34]MH_I2C_Read... [08:21:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:21:34]Read from MH i2c: E2 [08:21:34]MH_I2C_Read... [08:21:34]Read from MH i2c: E2 FD 00 [08:21:34]MH_I2C_Read... [08:21:34]Read from MH i2c: E2 FD 00 1F 22 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 33 [08:21:34]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 [08:21:34]wFMCommunicate OK [08:21:34]wFMCommunicate request_size=4 [08:21:34]MH_SAM_APDU [08:21:34]CAPDU: 80 17 00 00 [08:21:34]Write to MH i2c: E2 08 00 20 22 80 17 00 00 00 00 00 00 C2 [08:21:34]Write i2c OK [08:21:34]MH_I2C_Read... [08:21:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:21:34]Read from MH i2c: E2 [08:21:34]MH_I2C_Read... [08:21:34]Read from MH i2c: E2 CB 00 [08:21:34]MH_I2C_Read... [08:21:34]Read from MH i2c: E2 CB 00 20 22 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 AB [08:21:34]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 [08:21:34]wFMCommunicate OK [08:21:34]SAM_PROTO_GetShiftData done [08:21:34]requested_item shift.sale.total_cash is exist - process it [08:21:34]requested_item shift.sale_refund.total is exist - process it [08:21:34]requested_item shift.sale_refund.total_cash is exist - process it [08:21:34]requested_item shift.buy.total is exist - process it [08:21:34]requested_item shift.buy.total_cash is exist - process it [08:21:34]produce_requested_data done [08:21:34]produce_requested_data return {"fm.sale.total":116667486.08,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":9681.57,"shift.sale.total_cash":5900.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} [08:21:34]process_action_free get_value [08:21:34]json_value_free [08:21:34]json_value_free done [08:21:34]process_json_proto returns [08:21:34]Send response to host [08:21:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":116667486.08,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":9681.57,"shift.sale.total_cash":5900.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}}} [08:21:34]free response buf [08:21:34]execute_script done [08:21:34]execute_script returns [08:21:34]free content buf [08:21:34]Sock 7.Close socket [08:21:34]Sock 7.Thread stoped [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:11]accept exits with 9 [08:23:11]New connection [08:23:11]New thread 3066629476 created [08:23:11]Thread 3066486116 joined [08:23:11]Waiting for new connection... [08:23:11] Sock 9.Parse request [08:23:11]Sock 9.Check first char [08:23:11]Sock 9.First char is OK [08:23:11]request: POST /json_proto HTTP/1.0 [08:23:11]Method: POST [08:23:11]URL: /json_proto [08:23:11]Method is POST - this is cgi request [08:23:11]url: /json_proto [08:23:11]query_string will be loaded in cgi processing [08:23:11]execute_cgi json_proto POST (null) [08:23:11]execute_cgi path=json_proto method=POST [08:23:11]POST find Content-Length [08:23:11]Host: 172.17.62.5:8080 [08:23:11]Content-Length: 682 [08:23:11]Content-Type: application/json [08:23:11] [08:23:11]POST finish read [08:23:11]Found Content-Length = 682 [08:23:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190833", "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" : 64.40, "quantity" : 46.590, "sum" : 3000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:11]execute_script... [08:23: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)190833", "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" : 64.40, "quantity" : 46.590, "sum" : 3000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:11]POST & json_proto [08:23:11]process_json_proto [08:23:11]json parsed OK: [08:23:11]protocol is kg_v1.0 [08:23:11]action value=close_receipt [08:23:11]process_action close_receipt [08:23:11]cmd_close_receipt [08:23:11]MH_GetDate [08:23:11]Write to MH i2c: F0 00 00 21 22 32 [08:23:11]Write i2c OK [08:23:11]MH_I2C_Read... [08:23:11]Read from MH i2c: F0 [08:23:11]MH_I2C_Read... [08:23:11]Read from MH i2c: F0 09 00 [08:23:11]MH_I2C_Read... [08:23:11]Read from MH i2c: F0 09 00 21 22 00 F3 29 22 66 F4 E9 65 64 85 [08:23:11]GetLastDocTimeStamp 1713513690 [08:23:11]current date 1713514995 [08:23:11]FM_GetShiftState [08:23:11]SAM_PROTO_GetShiftState [08:23:11]wFMCommunicate request_size=4 [08:23:11]MH_SAM_APDU [08:23:11]CAPDU: 80 13 01 00 [08:23:11]Write to MH i2c: E2 08 00 22 22 80 13 01 00 00 00 00 00 C1 [08:23:11]Write i2c OK [08:23:11]MH_I2C_Read... [08:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:11]Read from MH i2c: E2 [08:23:11]MH_I2C_Read... [08:23:11]Read from MH i2c: E2 0E 00 [08:23:11]MH_I2C_Read... [08:23:11]Read from MH i2c: E2 0E 00 22 22 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 A6 [08:23:11]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:23:11]wFMCommunicate OK [08:23:11]SAM_PROTO_GetShiftState done [08:23:11]FM_GetShiftState done [08:23:11]opened in 1713486233 [08:23:11]opened+sec_in_day 1713572633 [08:23:11]quantity*price = 300039 [08:23:11]sum+1 = 300041 [08:23:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 12 19.04.2024 08:23 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76392 ФПД: 225035789673074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T082315&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76392&fm=225035789673074&tin=02508201610067®Number=0000000000091573&sum=300000 [08:23:12]StoreToDocumentArchive [08:23:12]shift 370 fd 76392 [08:23:12]save to /storage/0370/doc_00076392 [08:23:12]save last doc name /storage/0370/doc_00076392 to /storage/kkm_last_doc_name [08:23:12]save OK [08:23:12]Clear old archive folders... [08:23:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:23:12]tlvbuf is 00927E60 [08:23:12]SAM_PROTO_ClearQueue [08:23:12]wFMCommunicate request_size=4 [08:23:12]MH_SAM_APDU [08:23:12]CAPDU: 80 09 00 00 [08:23:12]Write to MH i2c: E2 08 00 2F 22 80 09 00 00 00 00 00 00 C3 [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:12]Read from MH i2c: E2 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 2F 22 00 90 00 C5 [08:23:12]RAPDU: 90 00 [08:23:12]wFMCommunicate OK [08:23:12]SAM_PROTO_ClearQueue done [08:23:12]KKMCreateOFDPacket [08:23:12]OFDProtocolAddRootSTLVToBuf [08:23:12]FM_MakeSignedData [08:23:12]FM_MakeSignedData [08:23:12]SAM_PROTO_SignData [08:23:12]wFMCommunicate request_size=4 [08:23:12]MH_SAM_APDU [08:23:12]CAPDU: 80 0D 01 02 [08:23:12]Write to MH i2c: E2 08 00 30 22 80 0D 01 02 00 00 00 00 CB [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:12]Read from MH i2c: E2 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 30 22 00 90 00 C6 [08:23:12]RAPDU: 90 00 [08:23:12]wFMCommunicate OK [08:23:12]wFMCommunicate request_size=255 [08:23:12]MH_SAM_APDU [08:23: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 FE B5 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 08 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 77 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 0C 00 00 00 F4 03 04 00 F3 29 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 68 2A 01 00 35 04 06 00 CC [08:23:12]Write to MH i2c: E2 02 01 31 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 FE B5 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 08 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 77 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 0C 00 00 00 F4 03 04 00 F3 29 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 68 2A 01 00 35 04 06 00 CC 00 00 35 [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:12]Read from MH i2c: E2 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 31 22 00 90 00 C7 [08:23:12]RAPDU: 90 00 [08:23:12]wFMCommunicate OK [08:23:12]wFMCommunicate request_size=10 [08:23:12]MH_SAM_APDU [08:23:12]CAPDU: 80 0D 02 02 05 AB 3A 4E 22 72 [08:23:12]Write to MH i2c: E2 0D 00 32 22 80 0D 02 02 05 00 AB 3A 4E 22 72 00 00 9F [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:12]Read from MH i2c: E2 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 32 22 00 90 00 C8 [08:23:12]RAPDU: 90 00 [08:23:12]wFMCommunicate OK [08:23:12]wFMCommunicate request_size=4 [08:23:12]MH_SAM_APDU [08:23:12]CAPDU: 80 0D 03 02 [08:23:12]Write to MH i2c: E2 08 00 33 22 80 0D 03 02 00 00 00 00 D0 [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:12]Read from MH i2c: E2 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 0B 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 0B 00 33 22 00 CC 4E F1 CD FF 45 64 BD 90 00 0E [08:23:12]RAPDU: CC 4E F1 CD FF 45 64 BD 90 00 [08:23:12]wFMCommunicate OK [08:23:12]SAM_PROTO_SignData done [08:23:12]FM_MakeSignedData done [08:23:12]CreateOFDProtocolMessage [08:23:12]wFMCommunicate request_size=4 [08:23:12]MH_SAM_APDU [08:23:12]CAPDU: 80 11 00 00 [08:23:12]Write to MH i2c: E2 08 00 34 22 80 11 00 00 00 00 00 00 D0 [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:13]Read from MH i2c: E2 [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: E2 17 00 [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: E2 17 00 34 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 23 [08:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:23:13]wFMCommunicate OK [08:23:13]CreateOFDProtocolMessage done [08:23:13]OFDSenderStorePacket 76392 [08:23:13]StoreOFDPacket docnum=76392 [08:23:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 8C D6 07 01 76 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 FE B5 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 08 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 77 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 0C 00 00 00 F4 03 04 00 F3 29 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 68 2A 01 00 35 04 06 00 CC AB 3A 4E 22 72 CC 4E F1 CD FF 45 64 BD [08:23:13]CheckFolder [08:23:13]dirname=/storage/ofd_packets [08:23:13]CheckFolder done [08:23:13]ProducePacketName [08:23:13]name=ofd_packets/00076392 [08:23:13]NVStorageSaveData ofd_packets/00076392 [08:23:13]File name is /storage/ofd_packets/00076392 [08:23:13]Write 301 bytes [08:23:13]NVStorageSaveData done [08:23:13]OFDSenderStorePacket done [08:23:13]KKMCreateOFDPacket done [08:23:13]NVStorageSaveData kkm_last_timestamp [08:23:13]File name is /storage/kkm_last_timestamp [08:23:13]Write 4 bytes [08:23:13]NVStorageSaveData done [08:23:13]ExternCall_PrintAddStr [08:23:13]wPrintStart [08:23:13]Write to MH i2c: 01 00 00 35 22 57 [08:23:13]Write i2c OK [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: 01 [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: 01 07 00 [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: 01 07 00 35 22 00 00 00 00 00 FF 0F 6C [08:23:13]RasterBufferAndPrint [08:23:13]line Счет N : (1)190833 [08:23:13]line ИНН: 02508201610067 [08:23:13]line Контрольно-Кассовый Чек [08:23:13]line ПРОДАЖА [08:23:13]line ТРК (МРК, ГНК) : 12 [08:23:13]line Товар: 2710124130 [08:23:13]line Аи-92-К-5 [08:23:13]line 46.590 * 64.40 [08:23:13]line = 3000.40 [08:23:13]line НДС 12% НСП 1% [08:23:13]line > о реализуемом товаре [08:23:13]line ОКРУГЛЕНИЕ: -0.40 [08:23:13]line ИТОГО: 3000.00 [08:23:13]line Внесено: 3000.00 [08:23:13]line СДАЧА: 0.00 [08:23:13]line НСП 1% : 26.55 [08:23:13]line НДС 12% : 318.63 [08:23:13]line Наличными: 3000.00 [08:23:13]line Безнал.: 0.00 [08:23:13]line Место: АЗС № 106 "Партнер Нефть" [08:23:13]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:23:13]line СНО: Общий режим [08:23:13]line Чек 12 19.04.2024 08:23 [08:23:13]line Смена: 370 ФФД: 1.0 [08:23:13]line ЗНМ: 0300000141 [08:23:13]line РНМ: 0000000000091573 [08:23:13]line Версия ККМ: 001 [08:23:13]line ФМ: 0000000000874652 [08:23:13]line ФД: 76392 [08:23:13]line ФПД: 225035789673074 [08:23:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T082315&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76392&fm=225035789673074&tin=02508201610067®Number=0000000000091573&sum=300000 [08:23:13]written 0, free lines is 4095 [08:23:13]OFD Sender: Processing packet 76392 [packets to send 128, broken 127] [08:23:13]ProducePacketName [08:23:13]name=ofd_packets/00076392 [08:23:13]OFD Sender: To server: pG, [08:23:13]CommunicateWithHost lk.salyk.kg:30040 [08:23:13]ConnectInit lk.salyk.kg [08:23:13]Connected sock=10 [08:23:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 8C D6 07 01 76 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 FE B5 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 08 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 77 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 0C 00 00 00 F4 03 04 00 F3 29 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 68 2A 01 00 35 04 06 00 CC AB 3A 4E 22 72 CC 4E F1 CD FF 45 64 BD [08:23:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 0E 6D 47 00 28 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 68 2A 01 00 F4 03 04 00 7F D1 21 66 B6 04 01 00 00 91 AC 73 F9 4A F3 18 58 [08:23:13]CommunicateWithHost err = 0 [08:23:13]CheckOFDResponse [08:23:13]1017 (14) - 77093643461234 [08:23:13]1041 (16) - 0000000000874652 [08:23:13]1040 (4) - 76392 [08:23:13]1012 (4) - 19.04.2024 02:05 [08:23:13]1206 (1) - 0 [08:23:13]OFD Sender: Remove packet 76392 [08:23:13]ProducePacketName [08:23:13]name=ofd_packets/00076392 [08:23:13]NVStorageDeleteData [08:23:13]Write to MH i2c: 01 00 00 5F 22 81 [08:23:13]Write i2c OK [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: 01 [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: 01 07 00 [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: 01 07 00 5F 22 00 00 00 00 00 FB 0C 8F [08:23:13]RasterBufferAndPrint [08:23:13]line [08:23:13]line [08:23:13]line [08:23:13]line [08:23:13]line [08:23:13]written 0, free lines is 3332 [08:23:13]MH_Cut [08:23:13]Write to MH i2c: D1 01 00 66 22 01 5A [08:23:13]Write i2c OK [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: D1 [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: D1 01 00 [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: D1 01 00 66 22 00 59 [08:23:13]Write to MH i2c: 01 00 00 67 22 89 [08:23:13]Write i2c OK [08:23:13]MH_I2C_Read... [08:23:14]OFD Sender: No OFD packet to send [08:23:14]*** Cut start [08:23:14]*** Partial cut [08:23:14]*** CUTSNS_PIN = 1 [08:23:14]*** CUTSNS_PIN = 0 [08:23:14]*** Brake cut motor [08:23:15]Read from MH i2c: 01 [08:23:15]MH_I2C_Read... [08:23:15]*** Stop cut motor [08:23:15]*** Cut end [08:23:15]Read from MH i2c: 01 07 00 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: 01 07 00 67 22 00 00 00 00 00 FF 0F 9E [08:23:15]process_action close_receipt done [08:23:15]requested_data is exist [08:23:15]produce_requested_data [08:23:15]requested_item fm.sn is exist - process it [08:23:15]wFMCommunicate request_size=4 [08:23:15]MH_SAM_APDU [08:23:15]CAPDU: 80 11 00 00 [08:23:15]Write to MH i2c: E2 08 00 68 22 80 11 00 00 00 00 00 00 04 [08:23:15]Write i2c OK [08:23:15]MH_I2C_Read... [08:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:15]Read from MH i2c: E2 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 17 00 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 17 00 68 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 57 [08:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:23:15]wFMCommunicate OK [08:23:15]requested_item fd.num is exist - process it [08:23:15]SAM_PROTO_GetFieldsCounters [08:23:15]wFMCommunicate request_size=4 [08:23:15]MH_SAM_APDU [08:23:15]CAPDU: 80 13 00 00 [08:23:15]Write to MH i2c: E2 08 00 69 22 80 13 00 00 00 00 00 00 07 [08:23:15]Write i2c OK [08:23:15]MH_I2C_Read... [08:23:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:15]Read from MH i2c: E2 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 62 00 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 62 00 69 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 68 2A 01 00 0E 04 04 00 72 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 52 [08: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 68 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:15]wFMCommunicate OK [08:23:15]SAM_PROTO_GetFieldsCounters done [08:23:15]requested_item shift.num is exist - process it [08:23:15]requested_item shift.opened is exist - process it [08:23:15]req_shift_opened [08:23:15]FM_GetShiftState [08:23:15]SAM_PROTO_GetShiftState [08:23:15]wFMCommunicate request_size=4 [08:23:15]MH_SAM_APDU [08:23:15]CAPDU: 80 13 01 00 [08:23:15]Write to MH i2c: E2 08 00 6A 22 80 13 01 00 00 00 00 00 09 [08:23:15]Write i2c OK [08:23:15]MH_I2C_Read... [08:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:15]Read from MH i2c: E2 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 0E 00 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 0E 00 6A 22 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 EE [08:23:15]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:23:15]wFMCommunicate OK [08:23:15]SAM_PROTO_GetShiftState done [08:23:15]FM_GetShiftState done [08:23:15]req_shift_opened done [08:23:15]requested_item shift.open_date is exist - process it [08:23:15]req_shift_open_date [08:23:15]req_shift_open_date done [08:23:15]produce_requested_data done [08:23:15]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76392,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [08:23:15]process_action_free close_receipt [08:23:15]json_value_free [08:23:15]json_value_free done [08:23:15]process_json_proto returns [08:23:15]Send response to host [08:23:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76392,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [08:23:15]free response buf [08:23:15]execute_script done [08:23:15]execute_script returns [08:23:15]free content buf [08:23:15]Sock 9.Close socket [08:23:15]Sock 9.Thread stoped [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:14]OFD Sender: No OFD packet to send [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:04]OFD Sender: No OFD packet to send [08:29:09]OFD Sender: No OFD packet to send [08:29:14]OFD Sender: No OFD packet to send [08:29:19]OFD Sender: No OFD packet to send [08:29:24]OFD Sender: No OFD packet to send [08:29:29]OFD Sender: No OFD packet to send [08:29:34]OFD Sender: No OFD packet to send [08:29:39]OFD Sender: No OFD packet to send [08:29:44]OFD Sender: No OFD packet to send [08:29:49]OFD Sender: No OFD packet to send [08:29:54]OFD Sender: No OFD packet to send [08:29:59]OFD Sender: No OFD packet to send [08:30:04]OFD Sender: No OFD packet to send [08:30:09]OFD Sender: No OFD packet to send [08:30:10]accept exits with 7 [08:30:10]New connection [08:30:10]New thread 3066486116 created [08:30:10]Thread 3066629476 joined [08:30:10]Waiting for new connection... [08:30:10] Sock 7.Parse request [08:30:10]Sock 7.Check first char [08:30:10]Sock 7.First char is OK [08:30:10]request: POST /json_proto HTTP/1.0 [08:30:10]Method: POST [08:30:10]URL: /json_proto [08:30:10]Method is POST - this is cgi request [08:30:10]url: /json_proto [08:30:10]query_string will be loaded in cgi processing [08:30:10]execute_cgi json_proto POST (null) [08:30:10]execute_cgi path=json_proto method=POST [08:30:10]POST find Content-Length [08:30:10]Host: 172.17.62.5:8080 [08:30:10]Content-Length: 990 [08:30:10]Content-Type: application/json [08:30:10] [08:30:10]POST finish read [08:30:10]Found Content-Length = 990 [08:30:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 63.100, "sum" : 2000.27, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 63.10 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:10]execute_script... [08:30: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)190834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 63.100, "sum" : 2000.27, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 63.10 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:10]POST & json_proto [08:30:10]process_json_proto [08:30:10]json parsed OK: [08:30:10]protocol is kg_v1.0 [08:30:10]action value=close_receipt [08:30:10]process_action close_receipt [08:30:10]cmd_close_receipt [08:30:10]MH_GetDate [08:30:10]Write to MH i2c: F0 00 00 6B 22 7C [08:30:10]Write i2c OK [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: F0 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: F0 09 00 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: F0 09 00 6B 22 00 96 2B 22 66 F4 E9 65 64 74 [08:30:10]GetLastDocTimeStamp 1713514995 [08:30:10]current date 1713515414 [08:30:10]FM_GetShiftState [08:30:10]SAM_PROTO_GetShiftState [08:30:10]wFMCommunicate request_size=4 [08:30:10]MH_SAM_APDU [08:30:10]CAPDU: 80 13 01 00 [08:30:10]Write to MH i2c: E2 08 00 6C 22 80 13 01 00 00 00 00 00 0B [08:30:10]Write i2c OK [08:30:10]MH_I2C_Read... [08:30:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:10]Read from MH i2c: E2 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: E2 0E 00 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: E2 0E 00 6C 22 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 F0 [08:30:10]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:30:10]wFMCommunicate OK [08:30:10]SAM_PROTO_GetShiftState done [08:30:10]FM_GetShiftState done [08:30:10]opened in 1713486233 [08:30:10]opened+sec_in_day 1713572633 [08:30:10]quantity*price = 200027 [08:30:10]sum+1 = 200028 [08:30:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 13 19.04.2024 08:30 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 63.10 сом ФМ: 0000000000874652 ФД: 76393 ФПД: 261396269413333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T083015&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76393&fm=261396269413333&tin=02508201610067®Number=0000000000091573&sum=200000 [08:30:11]StoreToDocumentArchive [08:30:11]shift 370 fd 76393 [08:30:11]save to /storage/0370/doc_00076393 [08:30:11]save last doc name /storage/0370/doc_00076393 to /storage/kkm_last_doc_name [08:30:11]save OK [08:30:11]Clear old archive folders... [08:30:11]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:30:11]tlvbuf is 009317A0 [08:30:11]SAM_PROTO_ClearQueue [08:30:11]wFMCommunicate request_size=4 [08:30:11]MH_SAM_APDU [08:30:11]CAPDU: 80 09 00 00 [08:30:11]Write to MH i2c: E2 08 00 79 22 80 09 00 00 00 00 00 00 0D [08:30:11]Write i2c OK [08:30:11]MH_I2C_Read... [08:30:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:11]Read from MH i2c: E2 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 03 00 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 03 00 79 22 00 90 00 0F [08:30:11]RAPDU: 90 00 [08:30:11]wFMCommunicate OK [08:30:11]SAM_PROTO_ClearQueue done [08:30:11]KKMCreateOFDPacket [08:30:11]OFDProtocolAddRootSTLVToBuf [08:30:11]FM_MakeSignedData [08:30:11]FM_MakeSignedData [08:30:11]SAM_PROTO_SignData [08:30:11]wFMCommunicate request_size=4 [08:30:11]MH_SAM_APDU [08:30:11]CAPDU: 80 0D 01 02 [08:30:11]Write to MH i2c: E2 08 00 7A 22 80 0D 01 02 00 00 00 00 15 [08:30:11]Write i2c OK [08:30:11]MH_I2C_Read... [08:30:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:11]Read from MH i2c: E2 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 03 00 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 03 00 7A 22 00 90 00 10 [08:30:11]RAPDU: 90 00 [08:30:11]wFMCommunicate OK [08:30:11]wFMCommunicate request_size=255 [08:30:11]MH_SAM_APDU [08:30:11]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7C F6 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 97 2B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 69 2A 01 00 35 04 06 00 ED BD [08:30:11]Write to MH i2c: E2 02 01 7B 22 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7C F6 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 97 2B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 69 2A 01 00 35 04 06 00 ED BD 00 00 F5 [08:30:11]Write i2c OK [08:30:11]MH_I2C_Read... [08:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 7B 22 00 90 00 11 [08:30:12]RAPDU: 90 00 [08:30:12]wFMCommunicate OK [08:30:12]wFMCommunicate request_size=9 [08:30:12]MH_SAM_APDU [08:30:12]CAPDU: 80 0D 02 02 04 0F C8 B3 D5 [08:30:12]Write to MH i2c: E2 0C 00 7C 22 80 0D 02 02 04 00 0F C8 B3 D5 00 00 7F [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:12]Read from MH i2c: E2 03 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 7C 22 00 90 00 12 [08:30:12]RAPDU: 90 00 [08:30:12]wFMCommunicate OK [08:30:12]wFMCommunicate request_size=4 [08:30:12]MH_SAM_APDU [08:30:12]CAPDU: 80 0D 03 02 [08:30:12]Write to MH i2c: E2 08 00 7D 22 80 0D 03 02 00 00 00 00 1A [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 0B 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 0B 00 7D 22 00 71 33 16 CE DC 5D 69 30 90 00 75 [08:30:12]RAPDU: 71 33 16 CE DC 5D 69 30 90 00 [08:30:12]wFMCommunicate OK [08:30:12]SAM_PROTO_SignData done [08:30:12]FM_MakeSignedData done [08:30:12]CreateOFDProtocolMessage [08:30:12]wFMCommunicate request_size=4 [08:30:12]MH_SAM_APDU [08:30:12]CAPDU: 80 11 00 00 [08:30:12]Write to MH i2c: E2 08 00 7E 22 80 11 00 00 00 00 00 00 1A [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 17 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 17 00 7E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6D [08:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:30:12]wFMCommunicate OK [08:30:12]CreateOFDProtocolMessage done [08:30:12]OFDSenderStorePacket 76393 [08:30:12]StoreOFDPacket docnum=76393 [08:30:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 19 12 06 01 C4 FA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7C F6 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 97 2B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 69 2A 01 00 35 04 06 00 ED BD 0F C8 B3 D5 71 33 16 CE DC 5D 69 30 [08:30:12]CheckFolder [08:30:12]dirname=/storage/ofd_packets [08:30:12]CheckFolder done [08:30:12]ProducePacketName [08:30:12]name=ofd_packets/00076393 [08:30:12]NVStorageSaveData ofd_packets/00076393 [08:30:12]File name is /storage/ofd_packets/00076393 [08:30:12]Write 300 bytes [08:30:12]NVStorageSaveData done [08:30:12]OFDSenderStorePacket done [08:30:12]KKMCreateOFDPacket done [08:30:12]NVStorageSaveData kkm_last_timestamp [08:30:12]File name is /storage/kkm_last_timestamp [08:30:12]Write 4 bytes [08:30:12]NVStorageSaveData done [08:30:12]ExternCall_PrintAddStr [08:30:12]wPrintStart [08:30:12]Write to MH i2c: 01 00 00 7F 22 A1 [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: 01 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: 01 07 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: 01 07 00 7F 22 00 00 00 00 00 FF 0F B6 [08:30:12]RasterBufferAndPrint [08:30:12]line Счет N : (1)190834 [08:30:12]line ИНН: 02508201610067 [08:30:12]line Контрольно-Кассовый Чек [08:30:12]line ПРОДАЖА [08:30:12]line ТРК (МРК, ГНК) : 71 [08:30:12]line Товар: 2711190000 [08:30:12]line ГАЗ-К-5 [08:30:12]line 63.100 * 31.70 [08:30:12]line = 2000.27 [08:30:12]line НДС 12% НСП 1% [08:30:12]line > о реализуемом товаре [08:30:12]line ОКРУГЛЕНИЕ: -0.27 [08:30:12]line ИТОГО: 2000.00 [08:30:12]line Внесено: 2000.00 [08:30:12]line СДАЧА: 0.00 [08:30:12]line НСП 1% : 17.70 [08:30:12]line НДС 12% : 212.42 [08:30:12]line Наличными: 2000.00 [08:30:12]line Безнал.: 0.00 [08:30:12]line Место: АЗС № 106 "Партнер Нефть" [08:30:12]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:30:12]line СНО: Общий режим [08:30:12]line Чек 13 19.04.2024 08:30 [08:30:12]line Смена: 370 ФФД: 1.0 [08:30:12]line ЗНМ: 0300000141 [08:30:12]line РНМ: 0000000000091573 [08:30:12]line Версия ККМ: 001 [08:30:12]line [08:30:12]line Дисконтная программа [08:30:12]line СУГ [08:30:12]line номер 106 [08:30:12]line сэкономлено 63.10 сом [08:30:12]line ФМ: 0000000000874652 [08:30:12]line ФД: 76393 [08:30:12]line ФПД: 261396269413333 [08:30:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T083015&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76393&fm=261396269413333&tin=02508201610067®Number=0000000000091573&sum=200000 [08:30:12]OFD Sender: Processing packet 76393 [packets to send 128, broken 127] [08:30:12]ProducePacketName [08:30:12]name=ofd_packets/00076393 [08:30:12]OFD Sender: To server: pG, [08:30:12]CommunicateWithHost lk.salyk.kg:30040 [08:30:12]ConnectInit lk.salyk.kg [08:30:12]written 0, free lines is 4095 [08:30:12]Connected sock=10 [08:30:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 19 12 06 01 C4 FA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7C F6 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 97 2B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 69 2A 01 00 35 04 06 00 ED BD 0F C8 B3 D5 71 33 16 CE DC 5D 69 30 [08:30:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D5 9B 47 00 09 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 34 36 35 32 10 04 04 00 69 2A 01 00 F4 03 04 00 23 D3 21 66 B6 04 01 00 00 AE 5D D5 29 E3 82 3A 49 [08:30:13]CommunicateWithHost err = 0 [08:30:13]CheckOFDResponse [08:30:13]1017 (14) - 77093643461234 [08:30:13]1041 (16) - 0000000000874652 [08:30:13]1040 (4) - 76393 [08:30:13]1012 (4) - 19.04.2024 02:12 [08:30:13]1206 (1) - 0 [08:30:13]OFD Sender: Remove packet 76393 [08:30:13]ProducePacketName [08:30:13]name=ofd_packets/00076393 [08:30:13]NVStorageDeleteData [08:30:13]Write to MH i2c: 01 00 00 AE 22 D0 [08:30:13]Write i2c OK [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: 01 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: 01 07 00 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: 01 07 00 AE 22 00 00 00 00 00 93 0C 76 [08:30:13]RasterBufferAndPrint [08:30:13]line [08:30:13]line [08:30:13]line [08:30:13]line [08:30:13]line [08:30:13]written 0, free lines is 3225 [08:30:13]MH_Cut [08:30:13]Write to MH i2c: D1 01 00 B5 22 01 A9 [08:30:13]Write i2c OK [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: D1 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: D1 01 00 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: D1 01 00 B5 22 00 A8 [08:30:13]Write to MH i2c: 01 00 00 B6 22 D8 [08:30:13]Write i2c OK [08:30:13]MH_I2C_Read... [08:30:13]OFD Sender: No OFD packet to send [08:30:13]*** Cut start [08:30:13]*** Partial cut [08:30:13]*** CUTSNS_PIN = 1 [08:30:14]*** CUTSNS_PIN = 0 [08:30:14]*** Brake cut motor [08:30:14]Read from MH i2c: 01 [08:30:14]MH_I2C_Read... [08:30:14]*** Stop cut motor [08:30:14]*** Cut end [08:30:14]Read from MH i2c: 01 07 00 [08:30:14]MH_I2C_Read... [08:30:14]Read from MH i2c: 01 07 00 B6 22 00 00 00 00 00 FF 0F ED [08:30:14]process_action close_receipt done [08:30:14]requested_data is exist [08:30:14]produce_requested_data [08:30:14]requested_item fm.sn is exist - process it [08:30:14]wFMCommunicate request_size=4 [08:30:14]MH_SAM_APDU [08:30:14]CAPDU: 80 11 00 00 [08:30:14]Write to MH i2c: E2 08 00 B7 22 80 11 00 00 00 00 00 00 53 [08:30:14]Write i2c OK [08:30:14]MH_I2C_Read... [08:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:14]Read from MH i2c: E2 [08:30:14]MH_I2C_Read... [08:30:14]Read from MH i2c: E2 17 00 [08:30:14]MH_I2C_Read... [08:30:14]Read from MH i2c: E2 17 00 B7 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A6 [08:30:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:30:14]wFMCommunicate OK [08:30:14]requested_item fd.num is exist - process it [08:30:14]SAM_PROTO_GetFieldsCounters [08:30:14]wFMCommunicate request_size=4 [08:30:14]MH_SAM_APDU [08:30:14]CAPDU: 80 13 00 00 [08:30:14]Write to MH i2c: E2 08 00 B8 22 80 13 00 00 00 00 00 00 56 [08:30:14]Write i2c OK [08:30:14]MH_I2C_Read... [08:30:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:14]Read from MH i2c: E2 [08:30:14]MH_I2C_Read... [08:30:14]Read from MH i2c: E2 62 00 [08:30:14]MH_I2C_Read... [08:30:14]Read from MH i2c: E2 62 00 B8 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 69 2A 01 00 0E 04 04 00 72 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 A5 [08:30:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 69 2A 01 00 0E 04 04 00 72 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:30:14]wFMCommunicate OK [08:30:14]SAM_PROTO_GetFieldsCounters done [08:30:14]requested_item shift.num is exist - process it [08:30:14]requested_item shift.opened is exist - process it [08:30:14]req_shift_opened [08:30:14]FM_GetShiftState [08:30:14]SAM_PROTO_GetShiftState [08:30:14]wFMCommunicate request_size=4 [08:30:14]MH_SAM_APDU [08:30:14]CAPDU: 80 13 01 00 [08:30:14]Write to MH i2c: E2 08 00 B9 22 80 13 01 00 00 00 00 00 58 [08:30:14]Write i2c OK [08:30:14]MH_I2C_Read... [08:30:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:14]Read from MH i2c: E2 [08:30:14]MH_I2C_Read... [08:30:14]Read from MH i2c: E2 0E 00 [08:30:14]MH_I2C_Read... [08:30:14]Read from MH i2c: E2 0E 00 B9 22 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 3D [08:30:14]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:30:14]wFMCommunicate OK [08:30:14]SAM_PROTO_GetShiftState done [08:30:14]FM_GetShiftState done [08:30:14]req_shift_opened done [08:30:14]requested_item shift.open_date is exist - process it [08:30:14]req_shift_open_date [08:30:14]req_shift_open_date done [08:30:14]produce_requested_data done [08:30:14]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76393,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [08:30:14]process_action_free close_receipt [08:30:14]json_value_free [08:30:14]json_value_free done [08:30:14]process_json_proto returns [08:30:14]Send response to host [08:30:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76393,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [08:30:14]free response buf [08:30:14]execute_script done [08:30:14]execute_script returns [08:30:14]free content buf [08:30:14]Sock 7.Close socket [08:30:14]Sock 7.Thread stoped [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [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:06]accept exits with 9 [08:39:06]New connection [08:39:06]New thread 3066629476 created [08:39:06]Thread 3066486116 joined [08:39:06]Waiting for new connection... [08:39:06] Sock 9.Parse request [08:39:06]Sock 9.Check first char [08:39:06]Sock 9.First char is OK [08:39:06]request: POST /json_proto HTTP/1.0 [08:39:06]Method: POST [08:39:06]URL: /json_proto [08:39:06]Method is POST - this is cgi request [08:39:06]url: /json_proto [08:39:06]query_string will be loaded in cgi processing [08:39:06]execute_cgi json_proto POST (null) [08:39:06]execute_cgi path=json_proto method=POST [08:39:06]POST find Content-Length [08:39:06]Host: 172.17.62.5:8080 [08:39:06]Content-Length: 1168 [08:39:06]Content-Type: application/json [08:39:06] [08:39:06]POST finish read [08:39:06]Found Content-Length = 1168 [08:39:06]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190835\u000A19.04.2024 08:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 644.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30134565\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:06]execute_script... [08:39:06]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190835\u000A19.04.2024 08:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 644.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30134565\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:06]POST & json_proto [08:39:06]process_json_proto [08:39:06]json parsed OK: [08:39:06]protocol is kg_v1.0 [08:39:06]action value=print_text [08:39:06]process_action print_text [08:39:06]cmd_print_text [08:39:06]ExternCall_PrintAddStr [08:39:06]wPrintStart [08:39:06]Write to MH i2c: 01 00 00 BA 22 DC [08:39:06]Write i2c OK [08:39:06]MH_I2C_Read... [08:39:06]Read from MH i2c: 01 [08:39:06]MH_I2C_Read... [08:39:06]Read from MH i2c: 01 07 00 [08:39:06]MH_I2C_Read... [08:39:06]Read from MH i2c: 01 07 00 BA 22 00 00 00 00 00 FF 0F F1 [08:39:06]RasterBufferAndPrint [08:39:06]line *****ТОВАРНЫЙ ЧЕК***** [08:39:06]line АЗС 106 [08:39:06]line Партнер нефть [08:39:06]line 02508201610067 [08:39:06]line Кассир : Табалдиева М. [08:39:06]line Счет N : (1)190835 [08:39:06]line 19.04.2024 08:20 [08:39:06]line ПРОДАЖА [08:39:06]line ТРК (МРК, ГНК): 43 [08:39:06]line Вид ГСМ : 2710124130 [08:39:06]line Аи-92-К-5 [08:39:06]line 10.000 x 64.40 [08:39:06]line ИТОГ: 644.00 [08:39:06]line Тип оплаты: Талоны: ТК ГПНА Online [08:39:06]line 30134565 [08:39:06]line ______________________ [08:39:06]line (подпись) [08:39:06]written 0, free lines is 4095 [08:39:07]Write to MH i2c: 01 00 00 CE 22 F0 [08:39:07]Write i2c OK [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: 01 [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: 01 07 00 [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: 01 07 00 CE 22 00 00 00 00 00 10 0E 15 [08:39:07]RasterBufferAndPrint [08:39:07]line [08:39:07]line [08:39:07]line [08:39:07]line [08:39:07]line [08:39:07]written 0, free lines is 3601 [08:39:07]MH_Cut [08:39:07]Write to MH i2c: D1 01 00 D5 22 01 C9 [08:39:07]Write i2c OK [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: D1 [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: D1 01 00 [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: D1 01 00 D5 22 00 C8 [08:39:07]Write to MH i2c: 01 00 00 D6 22 F8 [08:39:07]Write i2c OK [08:39:07]MH_I2C_Read... [08:39:07]*** Cut start [08:39:07]*** Partial cut [08:39:07]*** CUTSNS_PIN = 1 [08:39:07]*** CUTSNS_PIN = 0 [08:39:07]*** Brake cut motor [08:39:08]Read from MH i2c: 01 [08:39:08]MH_I2C_Read... [08:39:08]Read from MH i2c: 01 07 00 [08:39:08]MH_I2C_Read... [08:39:08]*** Stop cut motor [08:39:08]*** Cut end [08:39:08]Read from MH i2c: 01 07 00 D6 22 00 00 00 00 00 FF 0F 0D [08:39:08]process_action print_text done [08:39:08]requested_data is exist [08:39:08]produce_requested_data [08:39:08]requested_item fm.sn is exist - process it [08:39:08]wFMCommunicate request_size=4 [08:39:08]MH_SAM_APDU [08:39:08]CAPDU: 80 11 00 00 [08:39:08]Write to MH i2c: E2 08 00 D7 22 80 11 00 00 00 00 00 00 73 [08:39:08]Write i2c OK [08:39:08]MH_I2C_Read... [08:39:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:08]Read from MH i2c: E2 [08:39:08]MH_I2C_Read... [08:39:08]Read from MH i2c: E2 17 00 [08:39:08]MH_I2C_Read... [08:39:08]Read from MH i2c: E2 17 00 D7 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C6 [08:39:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:39:08]wFMCommunicate OK [08:39:08]requested_item fd.num is exist - process it [08:39:08]SAM_PROTO_GetFieldsCounters [08:39:08]wFMCommunicate request_size=4 [08:39:08]MH_SAM_APDU [08:39:08]CAPDU: 80 13 00 00 [08:39:08]Write to MH i2c: E2 08 00 D8 22 80 13 00 00 00 00 00 00 76 [08:39:08]Write i2c OK [08:39:08]MH_I2C_Read... [08:39:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:08]Read from MH i2c: E2 [08:39:08]MH_I2C_Read... [08:39:08]Read from MH i2c: E2 62 00 [08:39:08]MH_I2C_Read... [08:39:08]Read from MH i2c: E2 62 00 D8 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 69 2A 01 00 0E 04 04 00 72 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 C5 [08: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 69 2A 01 00 0E 04 04 00 72 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:39:08]wFMCommunicate OK [08:39:08]SAM_PROTO_GetFieldsCounters done [08:39:08]requested_item shift.num is exist - process it [08:39:08]requested_item shift.opened is exist - process it [08:39:08]req_shift_opened [08:39:08]FM_GetShiftState [08:39:08]SAM_PROTO_GetShiftState [08:39:08]wFMCommunicate request_size=4 [08:39:08]MH_SAM_APDU [08:39:08]CAPDU: 80 13 01 00 [08:39:08]Write to MH i2c: E2 08 00 D9 22 80 13 01 00 00 00 00 00 78 [08:39:08]Write i2c OK [08:39:08]MH_I2C_Read... [08:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:08]Read from MH i2c: E2 [08:39:08]MH_I2C_Read... [08:39:08]Read from MH i2c: E2 0E 00 [08:39:08]MH_I2C_Read... [08:39:08]Read from MH i2c: E2 0E 00 D9 22 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 5D [08:39:08]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:39:08]wFMCommunicate OK [08:39:08]SAM_PROTO_GetShiftState done [08:39:08]FM_GetShiftState done [08:39:08]req_shift_opened done [08:39:08]requested_item shift.open_date is exist - process it [08:39:08]req_shift_open_date [08:39:08]req_shift_open_date done [08:39:08]produce_requested_data done [08:39:08]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76393,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [08:39:08]process_action_free print_text [08:39:08]json_value_free [08:39:08]json_value_free done [08:39:08]process_json_proto returns [08:39:08]Send response to host [08:39:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76393,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [08:39:08]free response buf [08:39:08]execute_script done [08:39:08]execute_script returns [08:39:08]free content buf [08:39:08]Sock 9.Close socket [08:39:08]Sock 9.Thread stoped [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:34]accept exits with 7 [08:40:34]New connection [08:40:34]New thread 3066486116 created [08:40:34]Thread 3066629476 joined [08:40:34]Waiting for new connection... [08:40:34] Sock 7.Parse request [08:40:34]Sock 7.Check first char [08:40:34]Sock 7.First char is OK [08:40:34]request: POST /json_proto HTTP/1.0 [08:40:34]Method: POST [08:40:34]URL: /json_proto [08:40:34]Method is POST - this is cgi request [08:40:34]url: /json_proto [08:40:34]query_string will be loaded in cgi processing [08:40:34]execute_cgi json_proto POST (null) [08:40:34]execute_cgi path=json_proto method=POST [08:40:34]POST find Content-Length [08:40:34]Host: 172.17.62.5:8080 [08:40:34]Content-Length: 1206 [08:40:34]Content-Type: application/json [08:40:34] [08:40:34]POST finish read [08:40:34]Found Content-Length = 1206 [08:40:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190836\u000A19.04.2024 08:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.260 x 64.40\u000A\u0418\u0422\u041E\u0413: 982.74\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\u000A74645\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:34]execute_script... [08:40:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190836\u000A19.04.2024 08:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.260 x 64.40\u000A\u0418\u0422\u041E\u0413: 982.74\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\u000A74645\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:34]POST & json_proto [08:40:34]process_json_proto [08:40:34]json parsed OK: [08:40:34]protocol is kg_v1.0 [08:40:34]action value=print_text [08:40:34]process_action print_text [08:40:34]cmd_print_text [08:40:34]ExternCall_PrintAddStr [08:40:34]wPrintStart [08:40:34]Write to MH i2c: 01 00 00 DA 22 FC [08:40:34]Write i2c OK [08:40:34]MH_I2C_Read... [08:40:34]Read from MH i2c: 01 [08:40:34]MH_I2C_Read... [08:40:34]Read from MH i2c: 01 07 00 [08:40:34]MH_I2C_Read... [08:40:34]Read from MH i2c: 01 07 00 DA 22 00 00 00 00 00 FF 0F 11 [08:40:34]RasterBufferAndPrint [08:40:34]line *****ТОВАРНЫЙ ЧЕК***** [08:40:34]line АЗС 106 [08:40:34]line Партнер нефть [08:40:34]line 02508201610067 [08:40:34]line Кассир : Табалдиева М. [08:40:34]line Счет N : (1)190836 [08:40:34]line 19.04.2024 08:22 [08:40:34]line ПРОДАЖА [08:40:34]line ТРК (МРК, ГНК): 33 [08:40:34]line Вид ГСМ : 2710124130 [08:40:34]line Аи-92-К-5 [08:40:34]line 15.260 x 64.40 [08:40:34]line ИТОГ: 982.74 [08:40:34]line Тип оплаты: Талоны: Топливная Карта [08:40:34]line 74645 [08:40:34]line ______________________ [08:40:34]line (подпись) [08:40:34]written 0, free lines is 4095 [08:40:35]Write to MH i2c: 01 00 00 EE 22 10 [08:40:35]Write i2c OK [08:40:35]MH_I2C_Read... [08:40:35]Read from MH i2c: 01 [08:40:35]MH_I2C_Read... [08:40:35]Read from MH i2c: 01 07 00 [08:40:35]MH_I2C_Read... [08:40:35]Read from MH i2c: 01 07 00 EE 22 00 00 00 00 00 11 0E 36 [08:40:35]RasterBufferAndPrint [08:40:35]line [08:40:35]line [08:40:35]line [08:40:35]line [08:40:35]line [08:40:35]written 0, free lines is 3603 [08:40:35]MH_Cut [08:40:35]Write to MH i2c: D1 01 00 F5 22 01 E9 [08:40:35]Write i2c OK [08:40:35]MH_I2C_Read... [08:40:35]Read from MH i2c: D1 [08:40:35]MH_I2C_Read... [08:40:35]Read from MH i2c: D1 01 00 [08:40:35]MH_I2C_Read... [08:40:35]Read from MH i2c: D1 01 00 F5 22 00 E8 [08:40:35]Write to MH i2c: 01 00 00 F6 22 18 [08:40:35]Write i2c OK [08:40:35]MH_I2C_Read... [08:40:35]*** Cut start [08:40:35]*** Partial cut [08:40:35]*** CUTSNS_PIN = 1 [08:40:35]*** CUTSNS_PIN = 0 [08:40:35]*** Brake cut motor [08:40:36]Read from MH i2c: 01 [08:40:36]MH_I2C_Read... [08:40:36]Read from MH i2c: 01 07 00 [08:40:36]MH_I2C_Read... [08:40:36]*** Stop cut motor [08:40:36]*** Cut end [08:40:36]Read from MH i2c: 01 07 00 F6 22 00 00 00 00 00 FF 0F 2D [08:40:36]process_action print_text done [08:40:36]requested_data is exist [08:40:36]produce_requested_data [08:40:36]requested_item fm.sn is exist - process it [08:40:36]wFMCommunicate request_size=4 [08:40:36]MH_SAM_APDU [08:40:36]CAPDU: 80 11 00 00 [08:40:36]Write to MH i2c: E2 08 00 F7 22 80 11 00 00 00 00 00 00 93 [08:40:36]Write i2c OK [08:40:36]MH_I2C_Read... [08:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:36]Read from MH i2c: E2 [08:40:36]MH_I2C_Read... [08:40:36]Read from MH i2c: E2 17 00 [08:40:36]MH_I2C_Read... [08:40:36]Read from MH i2c: E2 17 00 F7 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E6 [08:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:40:36]wFMCommunicate OK [08:40:36]requested_item fd.num is exist - process it [08:40:36]SAM_PROTO_GetFieldsCounters [08:40:36]wFMCommunicate request_size=4 [08:40:36]MH_SAM_APDU [08:40:36]CAPDU: 80 13 00 00 [08:40:36]Write to MH i2c: E2 08 00 F8 22 80 13 00 00 00 00 00 00 96 [08:40:36]Write i2c OK [08:40:36]MH_I2C_Read... [08:40:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:36]Read from MH i2c: E2 [08:40:36]MH_I2C_Read... [08:40:36]Read from MH i2c: E2 62 00 [08:40:36]MH_I2C_Read... [08:40:36]Read from MH i2c: E2 62 00 F8 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 69 2A 01 00 0E 04 04 00 72 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 E5 [08:40:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 69 2A 01 00 0E 04 04 00 72 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:40:36]wFMCommunicate OK [08:40:36]SAM_PROTO_GetFieldsCounters done [08:40:36]requested_item shift.num is exist - process it [08:40:36]requested_item shift.opened is exist - process it [08:40:36]req_shift_opened [08:40:36]FM_GetShiftState [08:40:36]SAM_PROTO_GetShiftState [08:40:36]wFMCommunicate request_size=4 [08:40:36]MH_SAM_APDU [08:40:36]CAPDU: 80 13 01 00 [08:40:36]Write to MH i2c: E2 08 00 F9 22 80 13 01 00 00 00 00 00 98 [08:40:36]Write i2c OK [08:40:36]MH_I2C_Read... [08:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:36]Read from MH i2c: E2 [08:40:36]MH_I2C_Read... [08:40:36]Read from MH i2c: E2 0E 00 [08:40:36]MH_I2C_Read... [08:40:36]Read from MH i2c: E2 0E 00 F9 22 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 7D [08:40:36]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:40:36]wFMCommunicate OK [08:40:36]SAM_PROTO_GetShiftState done [08:40:36]FM_GetShiftState done [08:40:36]req_shift_opened done [08:40:36]requested_item shift.open_date is exist - process it [08:40:36]req_shift_open_date [08:40:36]req_shift_open_date done [08:40:36]produce_requested_data done [08:40:36]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76393,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [08:40:36]process_action_free print_text [08:40:36]json_value_free [08:40:36]json_value_free done [08:40:36]process_json_proto returns [08:40:36]Send response to host [08:40:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76393,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [08:40:36]free response buf [08:40:36]execute_script done [08:40:36]execute_script returns [08:40:36]free content buf [08:40:36]Sock 7.Close socket [08:40:36]Sock 7.Thread stoped [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]accept exits with 9 [08:41:19]New connection [08:41:19]New thread 3066629476 created [08:41:19]Thread 3066486116 joined [08:41:19]Waiting for new connection... [08:41:19] Sock 9.Parse request [08:41:19]Sock 9.Check first char [08:41:19]Sock 9.First char is OK [08:41:19]request: POST /json_proto HTTP/1.0 [08:41:19]Method: POST [08:41:19]URL: /json_proto [08:41:19]Method is POST - this is cgi request [08:41:19]url: /json_proto [08:41:19]query_string will be loaded in cgi processing [08:41:19]execute_cgi json_proto POST (null) [08:41:19]execute_cgi path=json_proto method=POST [08:41:19]POST find Content-Length [08:41:19]Host: 172.17.62.5:8080 [08:41:19]Content-Length: 682 [08:41:19]Content-Type: application/json [08:41:19] [08:41:19]POST finish read [08:41:19]Found Content-Length = 682 [08:41:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 17.560, "sum" : 1280.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1280.00, "total" : 1280.00, "payments": [ { "type": 0, "sum" : 1280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:19]execute_script... [08:41: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)190837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 17.560, "sum" : 1280.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1280.00, "total" : 1280.00, "payments": [ { "type": 0, "sum" : 1280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:19]POST & json_proto [08:41:19]process_json_proto [08:41:19]json parsed OK: [08:41:19]protocol is kg_v1.0 [08:41:19]action value=close_receipt [08:41:19]process_action close_receipt [08:41:19]cmd_close_receipt [08:41:19]MH_GetDate [08:41:19]Write to MH i2c: F0 00 00 FA 22 0B [08:41:19]Write i2c OK [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: F0 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: F0 09 00 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: F0 09 00 FA 22 00 33 2E 22 66 F4 E9 65 64 A3 [08:41:19]GetLastDocTimeStamp 1713515415 [08:41:19]current date 1713516083 [08:41:19]FM_GetShiftState [08:41:19]SAM_PROTO_GetShiftState [08:41:19]wFMCommunicate request_size=4 [08:41:19]MH_SAM_APDU [08:41:19]CAPDU: 80 13 01 00 [08:41:19]Write to MH i2c: E2 08 00 FB 22 80 13 01 00 00 00 00 00 9A [08:41:19]Write i2c OK [08:41:19]MH_I2C_Read... [08:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:19]Read from MH i2c: E2 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: E2 0E 00 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: E2 0E 00 FB 22 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 7F [08:41:19]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:41:19]wFMCommunicate OK [08:41:19]SAM_PROTO_GetShiftState done [08:41:19]FM_GetShiftState done [08:41:19]opened in 1713486233 [08:41:19]opened+sec_in_day 1713572633 [08:41:19]quantity*price = 128012 [08:41:19]sum+1 = 128013 [08:41:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1280.00 Внесено: 1280.00 СДАЧА: 0.00 НСП 1% : 11.33 НДС 12% : 135.94 Наличными: 1280.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 14 19.04.2024 08:41 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76394 ФПД: 113227947128037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T084123&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76394&fm=113227947128037&tin=02508201610067®Number=0000000000091573&sum=128000 [08:41:20]StoreToDocumentArchive [08:41:20]shift 370 fd 76394 [08:41:20]save to /storage/0370/doc_00076394 [08:41:20]save last doc name /storage/0370/doc_00076394 to /storage/kkm_last_doc_name [08:41:20]save OK [08:41:20]Clear old archive folders... [08:41:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:41:20]tlvbuf is 0092D1B0 [08:41:20]SAM_PROTO_ClearQueue [08:41:20]wFMCommunicate request_size=4 [08:41:20]MH_SAM_APDU [08:41:20]CAPDU: 80 09 00 00 [08:41:20]Write to MH i2c: E2 08 00 08 23 80 09 00 00 00 00 00 00 9D [08:41:20]Write i2c OK [08:41:20]MH_I2C_Read... [08:41:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:20]Read from MH i2c: E2 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: E2 03 00 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: E2 03 00 08 23 00 90 00 9F [08:41:20]RAPDU: 90 00 [08:41:20]wFMCommunicate OK [08:41:20]SAM_PROTO_ClearQueue done [08:41:20]KKMCreateOFDPacket [08:41:20]OFDProtocolAddRootSTLVToBuf [08:41:20]FM_MakeSignedData [08:41:20]FM_MakeSignedData [08:41:20]SAM_PROTO_SignData [08:41:20]wFMCommunicate request_size=4 [08:41:20]MH_SAM_APDU [08:41:20]CAPDU: 80 0D 01 02 [08:41:20]Write to MH i2c: E2 08 00 09 23 80 0D 01 02 00 00 00 00 A5 [08:41:20]Write i2c OK [08:41:20]MH_I2C_Read... [08:41:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:20]Read from MH i2c: E2 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: E2 03 00 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: E2 03 00 09 23 00 90 00 A0 [08:41:20]RAPDU: 90 00 [08:41:20]wFMCommunicate OK [08:41:20]wFMCommunicate request_size=255 [08:41:20]MH_SAM_APDU [08:41: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 98 44 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C F4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 35 00 00 00 00 07 04 06 00 00 F4 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 33 2E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6A 2A 01 00 35 04 06 00 66 [08:41:20]Write to MH i2c: E2 02 01 0A 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 44 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C F4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 35 00 00 00 00 07 04 06 00 00 F4 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 33 2E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6A 2A 01 00 35 04 06 00 66 00 00 35 [08:41:20]Write i2c OK [08:41:20]MH_I2C_Read... [08:41:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:20]Read from MH i2c: E2 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: E2 03 00 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: E2 03 00 0A 23 00 90 00 A1 [08:41:20]RAPDU: 90 00 [08:41:20]wFMCommunicate OK [08:41:20]wFMCommunicate request_size=10 [08:41:20]MH_SAM_APDU [08:41:20]CAPDU: 80 0D 02 02 05 FA EF 91 34 E5 [08:41:20]Write to MH i2c: E2 0D 00 0B 23 80 0D 02 02 05 00 FA EF 91 34 E5 00 00 45 [08:41:20]Write i2c OK [08:41:20]MH_I2C_Read... [08:41:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:20]Read from MH i2c: E2 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: E2 03 00 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: E2 03 00 0B 23 00 90 00 A2 [08:41:20]RAPDU: 90 00 [08:41:20]wFMCommunicate OK [08:41:20]wFMCommunicate request_size=4 [08:41:20]MH_SAM_APDU [08:41:20]CAPDU: 80 0D 03 02 [08:41:20]Write to MH i2c: E2 08 00 0C 23 80 0D 03 02 00 00 00 00 AA [08:41:20]Write i2c OK [08:41:20]MH_I2C_Read... [08:41:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:20]Read from MH i2c: E2 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: E2 0B 00 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: E2 0B 00 0C 23 00 69 F3 B7 C9 C0 F1 EF 39 90 00 60 [08:41:20]RAPDU: 69 F3 B7 C9 C0 F1 EF 39 90 00 [08:41:20]wFMCommunicate OK [08:41:20]SAM_PROTO_SignData done [08:41:20]FM_MakeSignedData done [08:41:20]CreateOFDProtocolMessage [08:41:20]wFMCommunicate request_size=4 [08:41:20]MH_SAM_APDU [08:41:20]CAPDU: 80 11 00 00 [08:41:20]Write to MH i2c: E2 08 00 0D 23 80 11 00 00 00 00 00 00 AA [08:41:20]Write i2c OK [08:41:20]MH_I2C_Read... [08:41:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:20]Read from MH i2c: E2 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: E2 17 00 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: E2 17 00 0D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FD [08:41:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:41:20]wFMCommunicate OK [08:41:20]CreateOFDProtocolMessage done [08:41:20]OFDSenderStorePacket 76394 [08:41:20]StoreOFDPacket docnum=76394 [08:41:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 C3 B4 07 01 7F 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 44 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C F4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 35 00 00 00 00 07 04 06 00 00 F4 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 33 2E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6A 2A 01 00 35 04 06 00 66 FA EF 91 34 E5 69 F3 B7 C9 C0 F1 EF 39 [08:41:20]CheckFolder [08:41:20]dirname=/storage/ofd_packets [08:41:20]CheckFolder done [08:41:20]ProducePacketName [08:41:20]name=ofd_packets/00076394 [08:41:20]NVStorageSaveData ofd_packets/00076394 [08:41:20]File name is /storage/ofd_packets/00076394 [08:41:20]Write 301 bytes [08:41:20]NVStorageSaveData done [08:41:20]OFDSenderStorePacket done [08:41:20]KKMCreateOFDPacket done [08:41:20]NVStorageSaveData kkm_last_timestamp [08:41:20]File name is /storage/kkm_last_timestamp [08:41:20]Write 4 bytes [08:41:20]NVStorageSaveData done [08:41:20]ExternCall_PrintAddStr [08:41:20]wPrintStart [08:41:20]Write to MH i2c: 01 00 00 0E 23 31 [08:41:20]Write i2c OK [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: 01 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: 01 07 00 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: 01 07 00 0E 23 00 00 00 00 00 FF 0F 46 [08:41:20]RasterBufferAndPrint [08:41:20]line Счет N : (1)190837 [08:41:20]line ИНН: 02508201610067 [08:41:20]line Контрольно-Кассовый Чек [08:41:20]line ПРОДАЖА [08:41:20]line ТРК (МРК, ГНК) : 21 [08:41:20]line Товар: 2710124500 [08:41:20]line Аи-95-К-5 [08:41:20]line 17.560 * 72.90 [08:41:20]line = 1280.12 [08:41:20]line НДС 12% НСП 1% [08:41:20]line > о реализуемом товаре [08:41:20]line ОКРУГЛЕНИЕ: -0.12 [08:41:20]line ИТОГО: 1280.00 [08:41:20]line Внесено: 1280.00 [08:41:20]line СДАЧА: 0.00 [08:41:20]line НСП 1% : 11.33 [08:41:20]line НДС 12% : 135.94 [08:41:20]line Наличными: 1280.00 [08:41:20]line Безнал.: 0.00 [08:41:20]line Место: АЗС № 106 "Партнер Нефть" [08:41:20]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:41:20]line СНО: Общий режим [08:41:20]line Чек 14 19.04.2024 08:41 [08:41:20]line Смена: 370 ФФД: 1.0 [08:41:20]line ЗНМ: 0300000141 [08:41:20]line РНМ: 0000000000091573 [08:41:20]line Версия ККМ: 001 [08:41:20]line ФМ: 0000000000874652 [08:41:20]line ФД: 76394 [08:41:20]line ФПД: 113227947128037 [08:41:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T084123&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76394&fm=113227947128037&tin=02508201610067®Number=0000000000091573&sum=128000 [08:41:21]OFD Sender: Processing packet 76394 [packets to send 128, broken 127] [08:41:21]ProducePacketName [08:41:21]name=ofd_packets/00076394 [08:41:21]OFD Sender: To server: pG, [08:41:21]CommunicateWithHost lk.salyk.kg:30040 [08:41:21]ConnectInit lk.salyk.kg [08:41:21]written 0, free lines is 4095 [08:41:21]Connected sock=10 [08:41:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 C3 B4 07 01 7F 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 44 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C F4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 35 00 00 00 00 07 04 06 00 00 F4 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 33 2E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6A 2A 01 00 35 04 06 00 66 FA EF 91 34 E5 69 F3 B7 C9 C0 F1 EF 39 [08:41:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 ED 55 47 00 45 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 34 36 35 32 10 04 04 00 6A 2A 01 00 F4 03 04 00 BF D5 21 66 B6 04 01 00 00 B0 78 68 43 F4 53 F5 39 [08:41:21]CommunicateWithHost err = 0 [08:41:21]CheckOFDResponse [08:41:21]1017 (14) - 77093643461234 [08:41:21]1041 (16) - 0000000000874652 [08:41:21]1040 (4) - 76394 [08:41:21]1012 (4) - 19.04.2024 02:23 [08:41:21]1206 (1) - 0 [08:41:21]OFD Sender: Remove packet 76394 [08:41:21]ProducePacketName [08:41:21]name=ofd_packets/00076394 [08:41:21]NVStorageDeleteData [08:41:21]Write to MH i2c: 01 00 00 38 23 5B [08:41:21]Write i2c OK [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: 01 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: 01 07 00 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: 01 07 00 38 23 00 00 00 00 00 E0 0C 4E [08:41:21]RasterBufferAndPrint [08:41:21]line [08:41:21]line [08:41:21]line [08:41:21]line [08:41:21]line [08:41:21]written 0, free lines is 3302 [08:41:21]MH_Cut [08:41:21]Write to MH i2c: D1 01 00 3F 23 01 34 [08:41:21]Write i2c OK [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: D1 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: D1 01 00 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: D1 01 00 3F 23 00 33 [08:41:21]Write to MH i2c: 01 00 00 40 23 63 [08:41:21]Write i2c OK [08:41:21]MH_I2C_Read... [08:41:22]OFD Sender: No OFD packet to send [08:41:22]*** Cut start [08:41:22]*** Partial cut [08:41:22]*** CUTSNS_PIN = 1 [08:41:22]*** CUTSNS_PIN = 0 [08:41:22]*** Brake cut motor [08:41:23]Read from MH i2c: 01 [08:41:23]MH_I2C_Read... [08:41:23]*** Stop cut motor [08:41:23]*** Cut end [08:41:23]Read from MH i2c: 01 07 00 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: 01 07 00 40 23 00 00 00 00 00 FF 0F 78 [08:41:23]process_action close_receipt done [08:41:23]requested_data is exist [08:41:23]produce_requested_data [08:41:23]requested_item fm.sn is exist - process it [08:41:23]wFMCommunicate request_size=4 [08:41:23]MH_SAM_APDU [08:41:23]CAPDU: 80 11 00 00 [08:41:23]Write to MH i2c: E2 08 00 41 23 80 11 00 00 00 00 00 00 DE [08:41:23]Write i2c OK [08:41:23]MH_I2C_Read... [08:41:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:23]Read from MH i2c: E2 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: E2 17 00 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: E2 17 00 41 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 31 [08:41:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:41:23]wFMCommunicate OK [08:41:23]requested_item fd.num is exist - process it [08:41:23]SAM_PROTO_GetFieldsCounters [08:41:23]wFMCommunicate request_size=4 [08:41:23]MH_SAM_APDU [08:41:23]CAPDU: 80 13 00 00 [08:41:23]Write to MH i2c: E2 08 00 42 23 80 13 00 00 00 00 00 00 E1 [08:41:23]Write i2c OK [08:41:23]MH_I2C_Read... [08:41:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:23]Read from MH i2c: E2 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: E2 62 00 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: E2 62 00 42 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6A 2A 01 00 0E 04 04 00 72 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 34 [08:41:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6A 2A 01 00 0E 04 04 00 72 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:41:23]wFMCommunicate OK [08:41:23]SAM_PROTO_GetFieldsCounters done [08:41:23]requested_item shift.num is exist - process it [08:41:23]requested_item shift.opened is exist - process it [08:41:23]req_shift_opened [08:41:23]FM_GetShiftState [08:41:23]SAM_PROTO_GetShiftState [08:41:23]wFMCommunicate request_size=4 [08:41:23]MH_SAM_APDU [08:41:23]CAPDU: 80 13 01 00 [08:41:23]Write to MH i2c: E2 08 00 43 23 80 13 01 00 00 00 00 00 E3 [08:41:23]Write i2c OK [08:41:23]MH_I2C_Read... [08:41:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:23]Read from MH i2c: E2 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: E2 0E 00 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: E2 0E 00 43 23 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 C8 [08:41:23]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:41:23]wFMCommunicate OK [08:41:23]SAM_PROTO_GetShiftState done [08:41:23]FM_GetShiftState done [08:41:23]req_shift_opened done [08:41:23]requested_item shift.open_date is exist - process it [08:41:23]req_shift_open_date [08:41:23]req_shift_open_date done [08:41:23]produce_requested_data done [08:41:23]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76394,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [08:41:23]process_action_free close_receipt [08:41:23]json_value_free [08:41:23]json_value_free done [08:41:23]process_json_proto returns [08:41:23]Send response to host [08:41:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76394,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [08:41:23]free response buf [08:41:23]execute_script done [08:41:23]execute_script returns [08:41:23]free content buf [08:41:23]Sock 9.Close socket [08:41:23]Sock 9.Thread stoped [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:36]accept exits with 7 [08:42:36]New connection [08:42:36]New thread 3066486116 created [08:42:36]Thread 3066629476 joined [08:42:36]Waiting for new connection... [08:42:36] Sock 7.Parse request [08:42:36]Sock 7.Check first char [08:42:36]Sock 7.First char is OK [08:42:36]request: POST /json_proto HTTP/1.0 [08:42:36]Method: POST [08:42:36]URL: /json_proto [08:42:36]Method is POST - this is cgi request [08:42:36]url: /json_proto [08:42:36]query_string will be loaded in cgi processing [08:42:36]execute_cgi json_proto POST (null) [08:42:36]execute_cgi path=json_proto method=POST [08:42:36]POST find Content-Length [08:42:36]Host: 172.17.62.5:8080 [08:42:36]Content-Length: 681 [08:42:36]Content-Type: application/json [08:42:36] [08:42:36]POST finish read [08:42:36]Found Content-Length = 681 [08:42:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:42:36]execute_script... [08:42:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:42:36]POST & json_proto [08:42:36]process_json_proto [08:42:36]json parsed OK: [08:42:36]protocol is kg_v1.0 [08:42:36]action value=close_receipt [08:42:36]process_action close_receipt [08:42:36]cmd_close_receipt [08:42:36]MH_GetDate [08:42:36]Write to MH i2c: F0 00 00 44 23 56 [08:42:36]Write i2c OK [08:42:36]MH_I2C_Read... [08:42:36]Read from MH i2c: F0 [08:42:36]MH_I2C_Read... [08:42:36]Read from MH i2c: F0 09 00 [08:42:36]MH_I2C_Read... [08:42:36]Read from MH i2c: F0 09 00 44 23 00 80 2E 22 66 F4 E9 65 64 3B [08:42:36]GetLastDocTimeStamp 1713516083 [08:42:36]current date 1713516160 [08:42:36]FM_GetShiftState [08:42:36]SAM_PROTO_GetShiftState [08:42:36]wFMCommunicate request_size=4 [08:42:36]MH_SAM_APDU [08:42:36]CAPDU: 80 13 01 00 [08:42:36]Write to MH i2c: E2 08 00 45 23 80 13 01 00 00 00 00 00 E5 [08:42:36]Write i2c OK [08:42:36]MH_I2C_Read... [08:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:36]Read from MH i2c: E2 [08:42:36]MH_I2C_Read... [08:42:36]Read from MH i2c: E2 0E 00 [08:42:36]MH_I2C_Read... [08:42:36]Read from MH i2c: E2 0E 00 45 23 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 CA [08:42:36]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:42:36]wFMCommunicate OK [08:42:36]SAM_PROTO_GetShiftState done [08:42:36]FM_GetShiftState done [08:42:36]opened in 1713486233 [08:42:36]opened+sec_in_day 1713572633 [08:42:36]quantity*price = 50031 [08:42:36]sum+1 = 50032 [08:42:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 15 19.04.2024 08:42 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76395 ФПД: 269357759935637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T084240&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76395&fm=269357759935637&tin=02508201610067®Number=0000000000091573&sum=50000 [08:42:37]StoreToDocumentArchive [08:42:37]shift 370 fd 76395 [08:42:37]save to /storage/0370/doc_00076395 [08:42:37]save last doc name /storage/0370/doc_00076395 to /storage/kkm_last_doc_name [08:42:37]save OK [08:42:37]Clear old archive folders... [08:42:37]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:42:37]tlvbuf is 00998D90 [08:42:37]SAM_PROTO_ClearQueue [08:42:37]wFMCommunicate request_size=4 [08:42:37]MH_SAM_APDU [08:42:37]CAPDU: 80 09 00 00 [08:42:37]Write to MH i2c: E2 08 00 52 23 80 09 00 00 00 00 00 00 E7 [08:42:37]Write i2c OK [08:42:37]MH_I2C_Read... [08:42:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:37]Read from MH i2c: E2 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: E2 03 00 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: E2 03 00 52 23 00 90 00 E9 [08:42:37]RAPDU: 90 00 [08:42:37]wFMCommunicate OK [08:42:37]SAM_PROTO_ClearQueue done [08:42:37]KKMCreateOFDPacket [08:42:37]OFDProtocolAddRootSTLVToBuf [08:42:37]FM_MakeSignedData [08:42:37]FM_MakeSignedData [08:42:37]SAM_PROTO_SignData [08:42:37]wFMCommunicate request_size=4 [08:42:37]MH_SAM_APDU [08:42:37]CAPDU: 80 0D 01 02 [08:42:37]Write to MH i2c: E2 08 00 53 23 80 0D 01 02 00 00 00 00 EF [08:42:37]Write i2c OK [08:42:37]MH_I2C_Read... [08:42:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:37]Read from MH i2c: E2 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: E2 03 00 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: E2 03 00 53 23 00 90 00 EA [08:42:37]RAPDU: 90 00 [08:42:37]wFMCommunicate OK [08:42:37]wFMCommunicate request_size=255 [08:42:37]MH_SAM_APDU [08:42:37]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0F 00 00 00 F4 03 04 00 80 2E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6B 2A 01 00 35 04 06 00 F4 FA [08:42:37]Write to MH i2c: E2 02 01 54 23 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0F 00 00 00 F4 03 04 00 80 2E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6B 2A 01 00 35 04 06 00 F4 FA 00 00 96 [08:42:37]Write i2c OK [08:42:37]MH_I2C_Read... [08:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:37]Read from MH i2c: E2 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: E2 03 00 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: E2 03 00 54 23 00 90 00 EB [08:42:37]RAPDU: 90 00 [08:42:37]wFMCommunicate OK [08:42:37]wFMCommunicate request_size=9 [08:42:37]MH_SAM_APDU [08:42:37]CAPDU: 80 0D 02 02 04 BD 99 34 95 [08:42:37]Write to MH i2c: E2 0C 00 55 23 80 0D 02 02 04 00 BD 99 34 95 00 00 19 [08:42:37]Write i2c OK [08:42:37]MH_I2C_Read... [08:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:37]Read from MH i2c: E2 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: E2 03 00 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: E2 03 00 55 23 00 90 00 EC [08:42:37]RAPDU: 90 00 [08:42:37]wFMCommunicate OK [08:42:37]wFMCommunicate request_size=4 [08:42:37]MH_SAM_APDU [08:42:37]CAPDU: 80 0D 03 02 [08:42:37]Write to MH i2c: E2 08 00 56 23 80 0D 03 02 00 00 00 00 F4 [08:42:37]Write i2c OK [08:42:37]MH_I2C_Read... [08:42:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:37]Read from MH i2c: E2 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: E2 0B 00 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: E2 0B 00 56 23 00 C0 B8 4B E0 3F A3 4A C8 90 00 8C [08:42:37]RAPDU: C0 B8 4B E0 3F A3 4A C8 90 00 [08:42:37]wFMCommunicate OK [08:42:37]SAM_PROTO_SignData done [08:42:37]FM_MakeSignedData done [08:42:37]CreateOFDProtocolMessage [08:42:37]wFMCommunicate request_size=4 [08:42:37]MH_SAM_APDU [08:42:37]CAPDU: 80 11 00 00 [08:42:37]Write to MH i2c: E2 08 00 57 23 80 11 00 00 00 00 00 00 F4 [08:42:37]Write i2c OK [08:42:37]MH_I2C_Read... [08:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:37]Read from MH i2c: E2 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: E2 17 00 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: E2 17 00 57 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 47 [08:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:42:37]wFMCommunicate OK [08:42:37]CreateOFDProtocolMessage done [08:42:37]OFDSenderStorePacket 76395 [08:42:37]StoreOFDPacket docnum=76395 [08:42:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 B2 A4 06 01 AF 0B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0F 00 00 00 F4 03 04 00 80 2E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6B 2A 01 00 35 04 06 00 F4 FA BD 99 34 95 C0 B8 4B E0 3F A3 4A C8 [08:42:37]CheckFolder [08:42:37]dirname=/storage/ofd_packets [08:42:37]CheckFolder done [08:42:37]ProducePacketName [08:42:37]name=ofd_packets/00076395 [08:42:37]NVStorageSaveData ofd_packets/00076395 [08:42:37]File name is /storage/ofd_packets/00076395 [08:42:37]Write 300 bytes [08:42:37]NVStorageSaveData done [08:42:37]OFDSenderStorePacket done [08:42:37]KKMCreateOFDPacket done [08:42:37]NVStorageSaveData kkm_last_timestamp [08:42:37]File name is /storage/kkm_last_timestamp [08:42:37]Write 4 bytes [08:42:37]NVStorageSaveData done [08:42:38]ExternCall_PrintAddStr [08:42:38]wPrintStart [08:42:38]Write to MH i2c: 01 00 00 58 23 7B [08:42:38]Write i2c OK [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: 01 [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: 01 07 00 [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: 01 07 00 58 23 00 00 00 00 00 FF 0F 90 [08:42:38]RasterBufferAndPrint [08:42:38]line Счет N : (1)190838 [08:42:38]line ИНН: 02508201610067 [08:42:38]line Контрольно-Кассовый Чек [08:42:38]line ПРОДАЖА [08:42:38]line ТРК (МРК, ГНК) : 71 [08:42:38]line Товар: 2711190000 [08:42:38]line ГАЗ-К-5 [08:42:38]line 15.300 * 32.70 [08:42:38]line = 500.31 [08:42:38]line НДС 12% НСП 1% [08:42:38]line > о реализуемом товаре [08:42:38]line ОКРУГЛЕНИЕ: -0.31 [08:42:38]line ИТОГО: 500.00 [08:42:38]line Внесено: 500.00 [08:42:38]line СДАЧА: 0.00 [08:42:38]line НСП 1% : 4.43 [08:42:38]line НДС 12% : 53.13 [08:42:38]line Наличными: 500.00 [08:42:38]line Безнал.: 0.00 [08:42:38]line Место: АЗС № 106 "Партнер Нефть" [08:42:38]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:42:38]line СНО: Общий режим [08:42:38]line Чек 15 19.04.2024 08:42 [08:42:38]line Смена: 370 ФФД: 1.0 [08:42:38]line ЗНМ: 0300000141 [08:42:38]line РНМ: 0000000000091573 [08:42:38]line Версия ККМ: 001 [08:42:38]line ФМ: 0000000000874652 [08:42:38]line ФД: 76395 [08:42:38]line ФПД: 269357759935637 [08:42:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T084240&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76395&fm=269357759935637&tin=02508201610067®Number=0000000000091573&sum=50000 [08:42:38]OFD Sender: Processing packet 76395 [packets to send 128, broken 127] [08:42:38]ProducePacketName [08:42:38]name=ofd_packets/00076395 [08:42:38]OFD Sender: To server: pG, [08:42:38]CommunicateWithHost lk.salyk.kg:30040 [08:42:38]ConnectInit lk.salyk.kg [08:42:38]written 0, free lines is 4095 [08:42:38]Connected sock=10 [08:42:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 B2 A4 06 01 AF 0B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0F 00 00 00 F4 03 04 00 80 2E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6B 2A 01 00 35 04 06 00 F4 FA BD 99 34 95 C0 B8 4B E0 3F A3 4A C8 [08:42:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 2D 05 47 00 CC 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 34 36 35 32 10 04 04 00 6B 2A 01 00 F4 03 04 00 0C D6 21 66 B6 04 01 00 00 6B EE 09 B2 C3 B0 9E 00 [08:42:38]CommunicateWithHost err = 0 [08:42:38]CheckOFDResponse [08:42:38]1017 (14) - 77093643461234 [08:42:38]1041 (16) - 0000000000874652 [08:42:38]1040 (4) - 76395 [08:42:38]1012 (4) - 19.04.2024 02:25 [08:42:38]1206 (1) - 0 [08:42:38]OFD Sender: Remove packet 76395 [08:42:38]ProducePacketName [08:42:38]name=ofd_packets/00076395 [08:42:38]NVStorageDeleteData [08:42:38]Write to MH i2c: 01 00 00 82 23 A5 [08:42:38]Write i2c OK [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: 01 [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: 01 07 00 [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: 01 07 00 82 23 00 00 00 00 00 D6 0C 8E [08:42:38]RasterBufferAndPrint [08:42:38]line [08:42:38]line [08:42:38]line [08:42:38]line [08:42:38]line [08:42:38]written 0, free lines is 3293 [08:42:38]MH_Cut [08:42:38]Write to MH i2c: D1 01 00 89 23 01 7E [08:42:38]Write i2c OK [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: D1 [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: D1 01 00 [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: D1 01 00 89 23 00 7D [08:42:38]Write to MH i2c: 01 00 00 8A 23 AD [08:42:38]Write i2c OK [08:42:38]MH_I2C_Read... [08:42:39]OFD Sender: No OFD packet to send [08:42:39]*** Cut start [08:42:39]*** Partial cut [08:42:39]*** CUTSNS_PIN = 1 [08:42:39]*** CUTSNS_PIN = 0 [08:42:39]*** Brake cut motor [08:42:40]Read from MH i2c: 01 [08:42:40]MH_I2C_Read... [08:42:40]*** Stop cut motor [08:42:40]*** Cut end [08:42:40]Read from MH i2c: 01 07 00 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: 01 07 00 8A 23 00 00 00 00 00 FF 0F C2 [08:42:40]process_action close_receipt done [08:42:40]requested_data is exist [08:42:40]produce_requested_data [08:42:40]requested_item fm.sn is exist - process it [08:42:40]wFMCommunicate request_size=4 [08:42:40]MH_SAM_APDU [08:42:40]CAPDU: 80 11 00 00 [08:42:40]Write to MH i2c: E2 08 00 8B 23 80 11 00 00 00 00 00 00 28 [08:42:40]Write i2c OK [08:42:40]MH_I2C_Read... [08:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:40]Read from MH i2c: E2 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: E2 17 00 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: E2 17 00 8B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7B [08:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:42:40]wFMCommunicate OK [08:42:40]requested_item fd.num is exist - process it [08:42:40]SAM_PROTO_GetFieldsCounters [08:42:40]wFMCommunicate request_size=4 [08:42:40]MH_SAM_APDU [08:42:40]CAPDU: 80 13 00 00 [08:42:40]Write to MH i2c: E2 08 00 8C 23 80 13 00 00 00 00 00 00 2B [08:42:40]Write i2c OK [08:42:40]MH_I2C_Read... [08:42:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:40]Read from MH i2c: E2 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: E2 62 00 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: E2 62 00 8C 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6B 2A 01 00 0E 04 04 00 72 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 82 [08:42:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6B 2A 01 00 0E 04 04 00 72 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:42:40]wFMCommunicate OK [08:42:40]SAM_PROTO_GetFieldsCounters done [08:42:40]requested_item shift.num is exist - process it [08:42:40]requested_item shift.opened is exist - process it [08:42:40]req_shift_opened [08:42:40]FM_GetShiftState [08:42:40]SAM_PROTO_GetShiftState [08:42:40]wFMCommunicate request_size=4 [08:42:40]MH_SAM_APDU [08:42:40]CAPDU: 80 13 01 00 [08:42:40]Write to MH i2c: E2 08 00 8D 23 80 13 01 00 00 00 00 00 2D [08:42:40]Write i2c OK [08:42:40]MH_I2C_Read... [08:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:40]Read from MH i2c: E2 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: E2 0E 00 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: E2 0E 00 8D 23 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 12 [08:42:40]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:42:40]wFMCommunicate OK [08:42:40]SAM_PROTO_GetShiftState done [08:42:40]FM_GetShiftState done [08:42:40]req_shift_opened done [08:42:40]requested_item shift.open_date is exist - process it [08:42:40]req_shift_open_date [08:42:40]req_shift_open_date done [08:42:40]produce_requested_data done [08:42:40]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76395,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [08:42:40]process_action_free close_receipt [08:42:40]json_value_free [08:42:40]json_value_free done [08:42:40]process_json_proto returns [08:42:40]Send response to host [08:42:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76395,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [08:42:40]free response buf [08:42:40]execute_script done [08:42:40]execute_script returns [08:42:40]free content buf [08:42:40]Sock 7.Close socket [08:42:40]Sock 7.Thread stoped [08:42:44]OFD Sender: No OFD packet to send [08:42:44]accept exits with 9 [08:42:44]New connection [08:42:44]New thread 3066629476 created [08:42:44]Thread 3066486116 joined [08:42:44]Waiting for new connection... [08:42:44] Sock 9.Parse request [08:42:44]Sock 9.Check first char [08:42:44]Sock 9.First char is OK [08:42:44]request: POST /json_proto HTTP/1.0 [08:42:44]Method: POST [08:42:44]URL: /json_proto [08:42:44]Method is POST - this is cgi request [08:42:44]url: /json_proto [08:42:44]query_string will be loaded in cgi processing [08:42:44]execute_cgi json_proto POST (null) [08:42:44]execute_cgi path=json_proto method=POST [08:42:44]POST find Content-Length [08:42:44]Host: 172.17.62.5:8080 [08:42:44]Content-Length: 1206 [08:42:44]Content-Type: application/json [08:42:44] [08:42:44]POST finish read [08:42:44]Found Content-Length = 1206 [08:42:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190839\u000A19.04.2024 08:24\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 64.40\u000A\u0418\u0422\u041E\u0413: 644.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\u000A74642\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:44]execute_script... [08:42:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190839\u000A19.04.2024 08:24\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 64.40\u000A\u0418\u0422\u041E\u0413: 644.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\u000A74642\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:44]POST & json_proto [08:42:44]process_json_proto [08:42:44]json parsed OK: [08:42:44]protocol is kg_v1.0 [08:42:44]action value=print_text [08:42:44]process_action print_text [08:42:44]cmd_print_text [08:42:44]ExternCall_PrintAddStr [08:42:44]wPrintStart [08:42:44]Write to MH i2c: 01 00 00 8E 23 B1 [08:42:44]Write i2c OK [08:42:44]MH_I2C_Read... [08:42:44]Read from MH i2c: 01 [08:42:44]MH_I2C_Read... [08:42:44]Read from MH i2c: 01 07 00 [08:42:44]MH_I2C_Read... [08:42:44]Read from MH i2c: 01 07 00 8E 23 00 00 00 00 00 FF 0F C6 [08:42:44]RasterBufferAndPrint [08:42:44]line *****ТОВАРНЫЙ ЧЕК***** [08:42:44]line АЗС 106 [08:42:44]line Партнер нефть [08:42:44]line 02508201610067 [08:42:44]line Кассир : Табалдиева М. [08:42:44]line Счет N : (1)190839 [08:42:44]line 19.04.2024 08:24 [08:42:44]line ПРОДАЖА [08:42:44]line ТРК (МРК, ГНК): 12 [08:42:44]line Вид ГСМ : 2710124130 [08:42:44]line Аи-92-К-5 [08:42:44]line 10.000 x 64.40 [08:42:44]line ИТОГ: 644.00 [08:42:44]line Тип оплаты: Талоны: Топливная Карта [08:42:44]line 74642 [08:42:44]line ______________________ [08:42:44]line (подпись) [08:42:44]written 0, free lines is 4095 [08:42:44]Write to MH i2c: 01 00 00 A2 23 C5 [08:42:44]Write i2c OK [08:42:44]MH_I2C_Read... [08:42:44]Read from MH i2c: 01 [08:42:44]MH_I2C_Read... [08:42:44]Read from MH i2c: 01 07 00 [08:42:44]MH_I2C_Read... [08:42:44]Read from MH i2c: 01 07 00 A2 23 00 00 00 00 00 10 0E EA [08:42:44]RasterBufferAndPrint [08:42:44]line [08:42:44]line [08:42:44]line [08:42:44]line [08:42:44]line [08:42:44]written 0, free lines is 3603 [08:42:44]MH_Cut [08:42:44]Write to MH i2c: D1 01 00 A9 23 01 9E [08:42:44]Write i2c OK [08:42:44]MH_I2C_Read... [08:42:44]Read from MH i2c: D1 [08:42:44]MH_I2C_Read... [08:42:44]Read from MH i2c: D1 01 00 [08:42:44]MH_I2C_Read... [08:42:44]Read from MH i2c: D1 01 00 A9 23 00 9D [08:42:44]Write to MH i2c: 01 00 00 AA 23 CD [08:42:44]Write i2c OK [08:42:44]MH_I2C_Read... [08:42:45]*** Cut start [08:42:45]*** Partial cut [08:42:45]*** CUTSNS_PIN = 1 [08:42:45]*** CUTSNS_PIN = 0 [08:42:45]*** Brake cut motor [08:42:46]Read from MH i2c: 01 [08:42:46]MH_I2C_Read... [08:42:46]*** Stop cut motor [08:42:46]*** Cut end [08:42:46]Read from MH i2c: 01 07 00 [08:42:46]MH_I2C_Read... [08:42:46]Read from MH i2c: 01 07 00 AA 23 00 00 00 00 00 FF 0F E2 [08:42:46]process_action print_text done [08:42:46]requested_data is exist [08:42:46]produce_requested_data [08:42:46]requested_item fm.sn is exist - process it [08:42:46]wFMCommunicate request_size=4 [08:42:46]MH_SAM_APDU [08:42:46]CAPDU: 80 11 00 00 [08:42:46]Write to MH i2c: E2 08 00 AB 23 80 11 00 00 00 00 00 00 48 [08:42:46]Write i2c OK [08:42:46]MH_I2C_Read... [08:42:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:46]Read from MH i2c: E2 [08:42:46]MH_I2C_Read... [08:42:46]Read from MH i2c: E2 17 00 [08:42:46]MH_I2C_Read... [08:42:46]Read from MH i2c: E2 17 00 AB 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9B [08:42:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:42:46]wFMCommunicate OK [08:42:46]requested_item fd.num is exist - process it [08:42:46]SAM_PROTO_GetFieldsCounters [08:42:46]wFMCommunicate request_size=4 [08:42:46]MH_SAM_APDU [08:42:46]CAPDU: 80 13 00 00 [08:42:46]Write to MH i2c: E2 08 00 AC 23 80 13 00 00 00 00 00 00 4B [08:42:46]Write i2c OK [08:42:46]MH_I2C_Read... [08:42:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:46]Read from MH i2c: E2 [08:42:46]MH_I2C_Read... [08:42:46]Read from MH i2c: E2 62 00 [08:42:46]MH_I2C_Read... [08:42:46]Read from MH i2c: E2 62 00 AC 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6B 2A 01 00 0E 04 04 00 72 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 A2 [08:42:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6B 2A 01 00 0E 04 04 00 72 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:42:46]wFMCommunicate OK [08:42:46]SAM_PROTO_GetFieldsCounters done [08:42:46]requested_item shift.num is exist - process it [08:42:46]requested_item shift.opened is exist - process it [08:42:46]req_shift_opened [08:42:46]FM_GetShiftState [08:42:46]SAM_PROTO_GetShiftState [08:42:46]wFMCommunicate request_size=4 [08:42:46]MH_SAM_APDU [08:42:46]CAPDU: 80 13 01 00 [08:42:46]Write to MH i2c: E2 08 00 AD 23 80 13 01 00 00 00 00 00 4D [08:42:46]Write i2c OK [08:42:46]MH_I2C_Read... [08:42:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:46]Read from MH i2c: E2 [08:42:46]MH_I2C_Read... [08:42:46]Read from MH i2c: E2 0E 00 [08:42:46]MH_I2C_Read... [08:42:46]Read from MH i2c: E2 0E 00 AD 23 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 32 [08:42:46]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:42:46]wFMCommunicate OK [08:42:46]SAM_PROTO_GetShiftState done [08:42:46]FM_GetShiftState done [08:42:46]req_shift_opened done [08:42:46]requested_item shift.open_date is exist - process it [08:42:46]req_shift_open_date [08:42:46]req_shift_open_date done [08:42:46]produce_requested_data done [08:42:46]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76395,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [08:42:46]process_action_free print_text [08:42:46]json_value_free [08:42:46]json_value_free done [08:42:46]process_json_proto returns [08:42:46]Send response to host [08:42:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76395,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [08:42:46]free response buf [08:42:46]execute_script done [08:42:46]execute_script returns [08:42:46]free content buf [08:42:46]Sock 9.Close socket [08:42:46]Sock 9.Thread stoped [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:09]accept exits with 7 [08:43:09]New connection [08:43:09]New thread 3066486116 created [08:43:09]Thread 3066629476 joined [08:43:09]Waiting for new connection... [08:43:09] Sock 7.Parse request [08:43:09]Sock 7.Check first char [08:43:09]Sock 7.First char is OK [08:43:09]request: POST /json_proto HTTP/1.0 [08:43:09]Method: POST [08:43:09]URL: /json_proto [08:43:09]Method is POST - this is cgi request [08:43:09]url: /json_proto [08:43:09]query_string will be loaded in cgi processing [08:43:09]execute_cgi json_proto POST (null) [08:43:09]execute_cgi path=json_proto method=POST [08:43:09]POST find Content-Length [08:43:09]Host: 172.17.62.5:8080 [08:43:09]Content-Length: 677 [08:43:09]Content-Type: application/json [08:43:09] [08:43:09]POST finish read [08:43:09]Found Content-Length = 677 [08:43:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:43:09]execute_script... [08:43:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:43:09]POST & json_proto [08:43:09]process_json_proto [08:43:09]json parsed OK: [08:43:09]protocol is kg_v1.0 [08:43:09]action value=close_receipt [08:43:09]process_action close_receipt [08:43:09]cmd_close_receipt [08:43:09]MH_GetDate [08:43:09]Write to MH i2c: F0 00 00 AE 23 C0 [08:43:09]Write i2c OK [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: F0 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: F0 09 00 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: F0 09 00 AE 23 00 A1 2E 22 66 F4 E9 65 64 C6 [08:43:09]GetLastDocTimeStamp 1713516160 [08:43:09]current date 1713516193 [08:43:09]FM_GetShiftState [08:43:09]SAM_PROTO_GetShiftState [08:43:09]wFMCommunicate request_size=4 [08:43:09]MH_SAM_APDU [08:43:09]CAPDU: 80 13 01 00 [08:43:09]Write to MH i2c: E2 08 00 AF 23 80 13 01 00 00 00 00 00 4F [08:43:09]Write i2c OK [08:43:09]MH_I2C_Read... [08:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:09]Read from MH i2c: E2 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: E2 0E 00 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: E2 0E 00 AF 23 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 34 [08:43:09]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:43:09]wFMCommunicate OK [08:43:09]SAM_PROTO_GetShiftState done [08:43:09]FM_GetShiftState done [08:43:09]opened in 1713486233 [08:43:09]opened+sec_in_day 1713572633 [08:43:09]quantity*price = 50038 [08:43:09]sum+1 = 50040 [08:43:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 16 19.04.2024 08:43 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76396 ФПД: 57159238061169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T084313&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76396&fm=57159238061169&tin=02508201610067®Number=0000000000091573&sum=50000 [08:43:10]StoreToDocumentArchive [08:43:10]shift 370 fd 76396 [08:43:10]save to /storage/0370/doc_00076396 [08:43:10]save last doc name /storage/0370/doc_00076396 to /storage/kkm_last_doc_name [08:43:10]save OK [08:43:10]Clear old archive folders... [08:43:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:43:10]tlvbuf is 0099DDA0 [08:43:10]SAM_PROTO_ClearQueue [08:43:10]wFMCommunicate request_size=4 [08:43:10]MH_SAM_APDU [08:43:10]CAPDU: 80 09 00 00 [08:43:10]Write to MH i2c: E2 08 00 BC 23 80 09 00 00 00 00 00 00 51 [08:43:10]Write i2c OK [08:43:10]MH_I2C_Read... [08:43:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:10]Read from MH i2c: E2 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 03 00 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 03 00 BC 23 00 90 00 53 [08:43:10]RAPDU: 90 00 [08:43:10]wFMCommunicate OK [08:43:10]SAM_PROTO_ClearQueue done [08:43:10]KKMCreateOFDPacket [08:43:10]OFDProtocolAddRootSTLVToBuf [08:43:10]FM_MakeSignedData [08:43:10]FM_MakeSignedData [08:43:10]SAM_PROTO_SignData [08:43:10]wFMCommunicate request_size=4 [08:43:10]MH_SAM_APDU [08:43:10]CAPDU: 80 0D 01 02 [08:43:10]Write to MH i2c: E2 08 00 BD 23 80 0D 01 02 00 00 00 00 59 [08:43:10]Write i2c OK [08:43:10]MH_I2C_Read... [08:43:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:10]Read from MH i2c: E2 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 03 00 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 03 00 BD 23 00 90 00 54 [08:43:10]RAPDU: 90 00 [08:43:10]wFMCommunicate OK [08:43:10]wFMCommunicate request_size=255 [08:43:10]MH_SAM_APDU [08:43: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A1 2E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6C 2A 01 00 35 04 06 00 33 [08:43:10]Write to MH i2c: E2 02 01 BE 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A1 2E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6C 2A 01 00 35 04 06 00 33 00 00 B2 [08:43:10]Write i2c OK [08:43:10]MH_I2C_Read... [08:43:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:10]Read from MH i2c: E2 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 03 00 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 03 00 BE 23 00 90 00 55 [08:43:10]RAPDU: 90 00 [08:43:10]wFMCommunicate OK [08:43:10]wFMCommunicate request_size=10 [08:43:10]MH_SAM_APDU [08:43:10]CAPDU: 80 0D 02 02 05 FC 6C 14 8C 71 [08:43:10]Write to MH i2c: E2 0D 00 BF 23 80 0D 02 02 05 00 FC 6C 14 8C 71 00 00 DF [08:43:10]Write i2c OK [08:43:10]MH_I2C_Read... [08:43:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:10]Read from MH i2c: E2 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 03 00 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 03 00 BF 23 00 90 00 56 [08:43:10]RAPDU: 90 00 [08:43:10]wFMCommunicate OK [08:43:10]wFMCommunicate request_size=4 [08:43:10]MH_SAM_APDU [08:43:10]CAPDU: 80 0D 03 02 [08:43:10]Write to MH i2c: E2 08 00 C0 23 80 0D 03 02 00 00 00 00 5E [08:43:10]Write i2c OK [08:43:10]MH_I2C_Read... [08:43:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:10]Read from MH i2c: E2 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 0B 00 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 0B 00 C0 23 00 9D 27 9F 8B 8B C8 87 F2 90 00 19 [08:43:10]RAPDU: 9D 27 9F 8B 8B C8 87 F2 90 00 [08:43:10]wFMCommunicate OK [08:43:10]SAM_PROTO_SignData done [08:43:10]FM_MakeSignedData done [08:43:10]CreateOFDProtocolMessage [08:43:10]wFMCommunicate request_size=4 [08:43:10]MH_SAM_APDU [08:43:10]CAPDU: 80 11 00 00 [08:43:10]Write to MH i2c: E2 08 00 C1 23 80 11 00 00 00 00 00 00 5E [08:43:10]Write i2c OK [08:43:10]MH_I2C_Read... [08:43:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:10]Read from MH i2c: E2 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 17 00 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 17 00 C1 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B1 [08:43:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:43:10]wFMCommunicate OK [08:43:10]CreateOFDProtocolMessage done [08:43:10]OFDSenderStorePacket 76396 [08:43:10]StoreOFDPacket docnum=76396 [08:43:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 06 FF 07 01 A5 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A1 2E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6C 2A 01 00 35 04 06 00 33 FC 6C 14 8C 71 9D 27 9F 8B 8B C8 87 F2 [08:43:10]CheckFolder [08:43:10]dirname=/storage/ofd_packets [08:43:10]CheckFolder done [08:43:10]ProducePacketName [08:43:10]name=ofd_packets/00076396 [08:43:10]NVStorageSaveData ofd_packets/00076396 [08:43:10]File name is /storage/ofd_packets/00076396 [08:43:10]Write 301 bytes [08:43:10]NVStorageSaveData done [08:43:10]OFDSenderStorePacket done [08:43:10]KKMCreateOFDPacket done [08:43:10]NVStorageSaveData kkm_last_timestamp [08:43:10]File name is /storage/kkm_last_timestamp [08:43:10]Write 4 bytes [08:43:10]NVStorageSaveData done [08:43:10]ExternCall_PrintAddStr [08:43:10]wPrintStart [08:43:10]Write to MH i2c: 01 00 00 C2 23 E5 [08:43:10]Write i2c OK [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: 01 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: 01 07 00 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: 01 07 00 C2 23 00 00 00 00 00 FF 0F FA [08:43:10]RasterBufferAndPrint [08:43:10]line Счет N : (1)190840 [08:43:10]line ИНН: 02508201610067 [08:43:10]line Контрольно-Кассовый Чек [08:43:10]line ПРОДАЖА [08:43:10]line ТРК (МРК, ГНК) : 33 [08:43:10]line Товар: 2710124130 [08:43:10]line Аи-92-К-5 [08:43:10]line 7.770 * 64.40 [08:43:10]line = 500.39 [08:43:10]line НДС 12% НСП 1% [08:43:10]line > о реализуемом товаре [08:43:10]line ОКРУГЛЕНИЕ: -0.39 [08:43:10]line ИТОГО: 500.00 [08:43:10]line Внесено: 500.00 [08:43:10]line СДАЧА: 0.00 [08:43:10]line НСП 1% : 4.43 [08:43:10]line НДС 12% : 53.14 [08:43:10]line Наличными: 500.00 [08:43:10]line Безнал.: 0.00 [08:43:10]line Место: АЗС № 106 "Партнер Нефть" [08:43:10]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:43:10]line СНО: Общий режим [08:43:10]line Чек 16 19.04.2024 08:43 [08:43:10]line Смена: 370 ФФД: 1.0 [08:43:10]line ЗНМ: 0300000141 [08:43:10]line РНМ: 0000000000091573 [08:43:10]line Версия ККМ: 001 [08:43:10]line ФМ: 0000000000874652 [08:43:10]line ФД: 76396 [08:43:10]line ФПД: 57159238061169 [08:43:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T084313&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76396&fm=57159238061169&tin=02508201610067®Number=0000000000091573&sum=50000 [08:43:11]written 0, free lines is 4095 [08:43:11]OFD Sender: Processing packet 76396 [packets to send 128, broken 127] [08:43:11]ProducePacketName [08:43:11]name=ofd_packets/00076396 [08:43:11]OFD Sender: To server: pG, [08:43:11]CommunicateWithHost lk.salyk.kg:30040 [08:43:11]ConnectInit lk.salyk.kg [08:43:11]Connected sock=10 [08:43:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 06 FF 07 01 A5 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A1 2E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6C 2A 01 00 35 04 06 00 33 FC 6C 14 8C 71 9D 27 9F 8B 8B C8 87 F2 [08:43:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D2 56 47 00 F9 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 34 36 35 32 10 04 04 00 6C 2A 01 00 F4 03 04 00 2D D6 21 66 B6 04 01 00 00 93 03 A5 B9 63 34 75 17 [08:43:11]CommunicateWithHost err = 0 [08:43:11]CheckOFDResponse [08:43:11]1017 (14) - 77093643461234 [08:43:11]1041 (16) - 0000000000874652 [08:43:11]1040 (4) - 76396 [08:43:11]1012 (4) - 19.04.2024 02:25 [08:43:11]1206 (1) - 0 [08:43:11]OFD Sender: Remove packet 76396 [08:43:11]ProducePacketName [08:43:11]name=ofd_packets/00076396 [08:43:11]NVStorageDeleteData [08:43:11]Write to MH i2c: 01 00 00 EC 23 0F [08:43:11]Write i2c OK [08:43:11]MH_I2C_Read... [08:43:11]Read from MH i2c: 01 [08:43:11]MH_I2C_Read... [08:43:11]Read from MH i2c: 01 07 00 [08:43:11]MH_I2C_Read... [08:43:11]Read from MH i2c: 01 07 00 EC 23 00 00 00 00 00 E3 0C 05 [08:43:11]RasterBufferAndPrint [08:43:11]line [08:43:11]line [08:43:11]line [08:43:11]line [08:43:11]line [08:43:11]written 0, free lines is 3305 [08:43:11]MH_Cut [08:43:11]Write to MH i2c: D1 01 00 F3 23 01 E8 [08:43:11]Write i2c OK [08:43:11]MH_I2C_Read... [08:43:11]Read from MH i2c: D1 [08:43:11]MH_I2C_Read... [08:43:11]Read from MH i2c: D1 01 00 [08:43:11]MH_I2C_Read... [08:43:11]Read from MH i2c: D1 01 00 F3 23 00 E7 [08:43:11]Write to MH i2c: 01 00 00 F4 23 17 [08:43:11]Write i2c OK [08:43:11]MH_I2C_Read... [08:43:12]OFD Sender: No OFD packet to send [08:43:12]*** Cut start [08:43:12]*** Partial cut [08:43:12]*** CUTSNS_PIN = 1 [08:43:12]*** CUTSNS_PIN = 0 [08:43:12]*** Brake cut motor [08:43:13]Read from MH i2c: 01 [08:43:13]MH_I2C_Read... [08:43:13]*** Stop cut motor [08:43:13]*** Cut end [08:43:13]Read from MH i2c: 01 07 00 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: 01 07 00 F4 23 00 00 00 00 00 FF 0F 2C [08:43:13]process_action close_receipt done [08:43:13]requested_data is exist [08:43:13]produce_requested_data [08:43:13]requested_item fm.sn is exist - process it [08:43:13]wFMCommunicate request_size=4 [08:43:13]MH_SAM_APDU [08:43:13]CAPDU: 80 11 00 00 [08:43:13]Write to MH i2c: E2 08 00 F5 23 80 11 00 00 00 00 00 00 92 [08:43:13]Write i2c OK [08:43:13]MH_I2C_Read... [08:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:13]Read from MH i2c: E2 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: E2 17 00 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: E2 17 00 F5 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E5 [08:43:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:43:13]wFMCommunicate OK [08:43:13]requested_item fd.num is exist - process it [08:43:13]SAM_PROTO_GetFieldsCounters [08:43:13]wFMCommunicate request_size=4 [08:43:13]MH_SAM_APDU [08:43:13]CAPDU: 80 13 00 00 [08:43:13]Write to MH i2c: E2 08 00 F6 23 80 13 00 00 00 00 00 00 95 [08:43:13]Write i2c OK [08:43:13]MH_I2C_Read... [08:43:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:13]Read from MH i2c: E2 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: E2 62 00 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: E2 62 00 F6 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6C 2A 01 00 0E 04 04 00 72 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 F0 [08:43:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6C 2A 01 00 0E 04 04 00 72 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:43:13]wFMCommunicate OK [08:43:13]SAM_PROTO_GetFieldsCounters done [08:43:13]requested_item shift.num is exist - process it [08:43:13]requested_item shift.opened is exist - process it [08:43:13]req_shift_opened [08:43:13]FM_GetShiftState [08:43:13]SAM_PROTO_GetShiftState [08:43:13]wFMCommunicate request_size=4 [08:43:13]MH_SAM_APDU [08:43:13]CAPDU: 80 13 01 00 [08:43:13]Write to MH i2c: E2 08 00 F7 23 80 13 01 00 00 00 00 00 97 [08:43:13]Write i2c OK [08:43:13]MH_I2C_Read... [08:43:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:13]Read from MH i2c: E2 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: E2 0E 00 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: E2 0E 00 F7 23 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 7C [08:43:13]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:43:13]wFMCommunicate OK [08:43:13]SAM_PROTO_GetShiftState done [08:43:13]FM_GetShiftState done [08:43:13]req_shift_opened done [08:43:13]requested_item shift.open_date is exist - process it [08:43:13]req_shift_open_date [08:43:13]req_shift_open_date done [08:43:13]produce_requested_data done [08:43:13]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76396,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [08:43:13]process_action_free close_receipt [08:43:13]json_value_free [08:43:13]json_value_free done [08:43:13]process_json_proto returns [08:43:13]Send response to host [08:43:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76396,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [08:43:13]free response buf [08:43:13]execute_script done [08:43:13]execute_script returns [08:43:13]free content buf [08:43:13]Sock 7.Close socket [08:43:13]Sock 7.Thread stoped [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:13]accept exits with 9 [08:47:13]New connection [08:47:13]New thread 3066629476 created [08:47:13]Thread 3066486116 joined [08:47:13]Waiting for new connection... [08:47:13] Sock 9.Parse request [08:47:13]Sock 9.Check first char [08:47:13]Sock 9.First char is OK [08:47:13]request: POST /json_proto HTTP/1.0 [08:47:13]Method: POST [08:47:13]URL: /json_proto [08:47:13]Method is POST - this is cgi request [08:47:13]url: /json_proto [08:47:13]query_string will be loaded in cgi processing [08:47:13]execute_cgi json_proto POST (null) [08:47:13]execute_cgi path=json_proto method=POST [08:47:13]POST find Content-Length [08:47:13]Host: 172.17.62.5:8080 [08:47:13]Content-Length: 678 [08:47:13]Content-Type: application/json [08:47:13] [08:47:13]POST finish read [08:47:13]Found Content-Length = 678 [08:47:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.570, "sum" : 487.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 487.00, "payments": [ { "type": 0, "sum" : 487.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:13]execute_script... [08:47: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)190841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.570, "sum" : 487.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 487.00, "payments": [ { "type": 0, "sum" : 487.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:13]POST & json_proto [08:47:13]process_json_proto [08:47:13]json parsed OK: [08:47:13]protocol is kg_v1.0 [08:47:13]action value=close_receipt [08:47:13]process_action close_receipt [08:47:13]cmd_close_receipt [08:47:13]MH_GetDate [08:47:13]Write to MH i2c: F0 00 00 F8 23 0A [08:47:13]Write i2c OK [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: F0 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: F0 09 00 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: F0 09 00 F8 23 00 96 2F 22 66 F4 E9 65 64 06 [08:47:13]GetLastDocTimeStamp 1713516193 [08:47:13]current date 1713516438 [08:47:13]FM_GetShiftState [08:47:13]SAM_PROTO_GetShiftState [08:47:13]wFMCommunicate request_size=4 [08:47:13]MH_SAM_APDU [08:47:13]CAPDU: 80 13 01 00 [08:47:13]Write to MH i2c: E2 08 00 F9 23 80 13 01 00 00 00 00 00 99 [08:47:13]Write i2c OK [08:47:13]MH_I2C_Read... [08:47:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:13]Read from MH i2c: E2 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: E2 0E 00 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: E2 0E 00 F9 23 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 7E [08:47:13]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:47:13]wFMCommunicate OK [08:47:13]SAM_PROTO_GetShiftState done [08:47:13]FM_GetShiftState done [08:47:13]opened in 1713486233 [08:47:13]opened+sec_in_day 1713572633 [08:47:13]quantity*price = 48750 [08:47:13]sum+1 = 48752 [08:47:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 487.00 Внесено: 1000.00 СДАЧА: 513.00 НСП 1% : 4.31 НДС 12% : 51.77 Наличными: 487.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 17 19.04.2024 08:47 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76397 ФПД: 149098253239844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T084718&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76397&fm=149098253239844&tin=02508201610067®Number=0000000000091573&sum=48700 [08:47:15]StoreToDocumentArchive [08:47:15]shift 370 fd 76397 [08:47:15]save to /storage/0370/doc_00076397 [08:47:15]save last doc name /storage/0370/doc_00076397 to /storage/kkm_last_doc_name [08:47:15]save OK [08:47:15]Clear old archive folders... [08:47:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:47:15]tlvbuf is 00942A80 [08:47:15]SAM_PROTO_ClearQueue [08:47:15]wFMCommunicate request_size=4 [08:47:15]MH_SAM_APDU [08:47:15]CAPDU: 80 09 00 00 [08:47:15]Write to MH i2c: E2 08 00 06 24 80 09 00 00 00 00 00 00 9C [08:47:15]Write i2c OK [08:47:15]MH_I2C_Read... [08:47:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:15]Read from MH i2c: E2 [08:47:15]MH_I2C_Read... [08:47:15]Read from MH i2c: E2 03 00 [08:47:15]MH_I2C_Read... [08:47:15]Read from MH i2c: E2 03 00 06 24 00 90 00 9E [08:47:15]RAPDU: 90 00 [08:47:15]wFMCommunicate OK [08:47:15]SAM_PROTO_ClearQueue done [08:47:15]KKMCreateOFDPacket [08:47:15]OFDProtocolAddRootSTLVToBuf [08:47:15]FM_MakeSignedData [08:47:15]FM_MakeSignedData [08:47:15]SAM_PROTO_SignData [08:47:15]wFMCommunicate request_size=4 [08:47:15]MH_SAM_APDU [08:47:15]CAPDU: 80 0D 01 02 [08:47:15]Write to MH i2c: E2 08 00 07 24 80 0D 01 02 00 00 00 00 A4 [08:47:15]Write i2c OK [08:47:15]MH_I2C_Read... [08:47:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:15]Read from MH i2c: E2 [08:47:15]MH_I2C_Read... [08:47:15]Read from MH i2c: E2 03 00 [08:47:15]MH_I2C_Read... [08:47:15]Read from MH i2c: E2 03 00 07 24 00 90 00 9F [08:47:15]RAPDU: 90 00 [08:47:15]wFMCommunicate OK [08:47:15]wFMCommunicate request_size=255 [08:47:15]MH_SAM_APDU [08:47: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 92 1D 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 6F BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 14 00 00 00 00 07 04 06 00 3C BE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 96 2F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6D 2A 01 00 35 04 06 00 87 [08:47:15]Write to MH i2c: E2 02 01 08 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 92 1D 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 6F BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 14 00 00 00 00 07 04 06 00 3C BE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 96 2F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6D 2A 01 00 35 04 06 00 87 00 00 AC [08:47:15]Write i2c OK [08:47:15]MH_I2C_Read... [08:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:15]Read from MH i2c: E2 [08:47:15]MH_I2C_Read... [08:47:15]Read from MH i2c: E2 03 00 [08:47:15]MH_I2C_Read... [08:47:15]Read from MH i2c: E2 03 00 08 24 00 90 00 A0 [08:47:15]RAPDU: 90 00 [08:47:15]wFMCommunicate OK [08:47:15]wFMCommunicate request_size=10 [08:47:15]MH_SAM_APDU [08:47:15]CAPDU: 80 0D 02 02 05 9A A4 6B C6 24 [08:47:15]Write to MH i2c: E2 0D 00 09 24 80 0D 02 02 05 00 9A A4 6B C6 24 00 00 44 [08:47:15]Write i2c OK [08:47:15]MH_I2C_Read... [08:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:15]Read from MH i2c: E2 [08:47:15]MH_I2C_Read... [08:47:15]Read from MH i2c: E2 03 00 [08:47:15]MH_I2C_Read... [08:47:15]Read from MH i2c: E2 03 00 09 24 00 90 00 A1 [08:47:15]RAPDU: 90 00 [08:47:15]wFMCommunicate OK [08:47:15]wFMCommunicate request_size=4 [08:47:15]MH_SAM_APDU [08:47:15]CAPDU: 80 0D 03 02 [08:47:15]Write to MH i2c: E2 08 00 0A 24 80 0D 03 02 00 00 00 00 A9 [08:47:15]Write i2c OK [08:47:15]MH_I2C_Read... [08:47:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:15]Read from MH i2c: E2 [08:47:15]MH_I2C_Read... [08:47:15]Read from MH i2c: E2 0B 00 [08:47:15]MH_I2C_Read... [08:47:15]Read from MH i2c: E2 0B 00 0A 24 00 C7 F3 11 5D 52 F3 DA F9 90 00 EA [08:47:15]RAPDU: C7 F3 11 5D 52 F3 DA F9 90 00 [08:47:15]wFMCommunicate OK [08:47:15]SAM_PROTO_SignData done [08:47:15]FM_MakeSignedData done [08:47:15]CreateOFDProtocolMessage [08:47:15]wFMCommunicate request_size=4 [08:47:15]MH_SAM_APDU [08:47:15]CAPDU: 80 11 00 00 [08:47:15]Write to MH i2c: E2 08 00 0B 24 80 11 00 00 00 00 00 00 A9 [08:47:15]Write i2c OK [08:47:15]MH_I2C_Read... [08:47:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:15]Read from MH i2c: E2 [08:47:15]MH_I2C_Read... [08:47:15]Read from MH i2c: E2 17 00 [08:47:15]MH_I2C_Read... [08:47:15]Read from MH i2c: E2 17 00 0B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FC [08:47:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:47:15]wFMCommunicate OK [08:47:15]CreateOFDProtocolMessage done [08:47:15]OFDSenderStorePacket 76397 [08:47:15]StoreOFDPacket docnum=76397 [08:47:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 6B AE 07 01 F2 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 92 1D 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 6F BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 14 00 00 00 00 07 04 06 00 3C BE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 96 2F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6D 2A 01 00 35 04 06 00 87 9A A4 6B C6 24 C7 F3 11 5D 52 F3 DA F9 [08:47:15]CheckFolder [08:47:15]dirname=/storage/ofd_packets [08:47:15]CheckFolder done [08:47:15]ProducePacketName [08:47:15]name=ofd_packets/00076397 [08:47:15]NVStorageSaveData ofd_packets/00076397 [08:47:15]File name is /storage/ofd_packets/00076397 [08:47:15]Write 301 bytes [08:47:15]NVStorageSaveData done [08:47:15]OFDSenderStorePacket done [08:47:15]KKMCreateOFDPacket done [08:47:15]NVStorageSaveData kkm_last_timestamp [08:47:15]File name is /storage/kkm_last_timestamp [08:47:15]Write 4 bytes [08:47:15]NVStorageSaveData done [08:47:15]ExternCall_PrintAddStr [08:47:15]wPrintStart [08:47:15]Write to MH i2c: 01 00 00 0C 24 30 [08:47:15]Write i2c OK [08:47:15]MH_I2C_Read... [08:47:15]Read from MH i2c: 01 [08:47:15]MH_I2C_Read... [08:47:15]Read from MH i2c: 01 07 00 [08:47:15]MH_I2C_Read... [08:47:15]Read from MH i2c: 01 07 00 0C 24 00 00 00 00 00 FF 0F 45 [08:47:15]RasterBufferAndPrint [08:47:15]line Счет N : (1)190841 [08:47:15]line ИНН: 02508201610067 [08:47:15]line Контрольно-Кассовый Чек [08:47:15]line ПРОДАЖА [08:47:15]line ТРК (МРК, ГНК) : 43 [08:47:15]line Товар: 2710124130 [08:47:15]line Аи-92-К-5 [08:47:15]line 7.570 * 64.40 [08:47:15]line = 487.51 [08:47:15]line НДС 12% НСП 1% [08:47:15]line > о реализуемом товаре [08:47:15]line ОКРУГЛЕНИЕ: -0.51 [08:47:15]line ИТОГО: 487.00 [08:47:15]line Внесено: 1000.00 [08:47:15]line СДАЧА: 513.00 [08:47:15]line НСП 1% : 4.31 [08:47:15]line НДС 12% : 51.77 [08:47:15]line Наличными: 487.00 [08:47:15]line Безнал.: 0.00 [08:47:15]line Место: АЗС № 106 "Партнер Нефть" [08:47:15]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:47:15]line СНО: Общий режим [08:47:15]line Чек 17 19.04.2024 08:47 [08:47:15]line Смена: 370 ФФД: 1.0 [08:47:15]line ЗНМ: 0300000141 [08:47:15]line РНМ: 0000000000091573 [08:47:15]line Версия ККМ: 001 [08:47:15]line ФМ: 0000000000874652 [08:47:15]line ФД: 76397 [08:47:15]line ФПД: 149098253239844 [08:47:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T084718&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76397&fm=149098253239844&tin=02508201610067®Number=0000000000091573&sum=48700 [08:47:15]written 0, free lines is 4095 [08:47:15]OFD Sender: Processing packet 76397 [packets to send 128, broken 127] [08:47:15]ProducePacketName [08:47:15]name=ofd_packets/00076397 [08:47:15]OFD Sender: To server: pG, [08:47:15]CommunicateWithHost lk.salyk.kg:30040 [08:47:15]ConnectInit lk.salyk.kg [08:47:16]Connected sock=11 [08:47:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 6B AE 07 01 F2 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 92 1D 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 6F BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 14 00 00 00 00 07 04 06 00 3C BE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 96 2F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6D 2A 01 00 35 04 06 00 87 9A A4 6B C6 24 C7 F3 11 5D 52 F3 DA F9 [08:47:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 93 B8 47 00 CA 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 34 36 35 32 10 04 04 00 6D 2A 01 00 F4 03 04 00 22 D7 21 66 B6 04 01 00 00 68 D6 E3 B9 BC 68 1F 31 [08:47:16]CommunicateWithHost err = 0 [08:47:16]CheckOFDResponse [08:47:16]1017 (14) - 77093643461234 [08:47:16]1041 (16) - 0000000000874652 [08:47:16]1040 (4) - 76397 [08:47:16]1012 (4) - 19.04.2024 02:29 [08:47:16]1206 (1) - 0 [08:47:16]OFD Sender: Remove packet 76397 [08:47:16]ProducePacketName [08:47:16]name=ofd_packets/00076397 [08:47:16]NVStorageDeleteData [08:47:16]Write to MH i2c: 01 00 00 36 24 5A [08:47:16]Write i2c OK [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: 01 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: 01 07 00 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: 01 07 00 36 24 00 00 00 00 00 DF 0C 4C [08:47:16]RasterBufferAndPrint [08:47:16]line [08:47:16]line [08:47:16]line [08:47:16]line [08:47:16]line [08:47:16]written 0, free lines is 3302 [08:47:16]MH_Cut [08:47:16]Write to MH i2c: D1 01 00 3D 24 01 33 [08:47:16]Write i2c OK [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: D1 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: D1 01 00 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: D1 01 00 3D 24 00 32 [08:47:16]Write to MH i2c: 01 00 00 3E 24 62 [08:47:16]Write i2c OK [08:47:16]MH_I2C_Read... [08:47:16]OFD Sender: No OFD packet to send [08:47:17]*** Cut start [08:47:17]*** Partial cut [08:47:17]*** CUTSNS_PIN = 1 [08:47:17]*** CUTSNS_PIN = 0 [08:47:17]*** Brake cut motor [08:47:17]Read from MH i2c: 01 [08:47:17]MH_I2C_Read... [08:47:17]*** Stop cut motor [08:47:17]*** Cut end [08:47:17]Read from MH i2c: 01 07 00 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: 01 07 00 3E 24 00 00 00 00 00 FF 0F 77 [08:47:17]process_action close_receipt done [08:47:17]requested_data is exist [08:47:17]produce_requested_data [08:47:17]requested_item fm.sn is exist - process it [08:47:17]wFMCommunicate request_size=4 [08:47:17]MH_SAM_APDU [08:47:17]CAPDU: 80 11 00 00 [08:47:17]Write to MH i2c: E2 08 00 3F 24 80 11 00 00 00 00 00 00 DD [08:47:17]Write i2c OK [08:47:17]MH_I2C_Read... [08:47:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:17]Read from MH i2c: E2 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: E2 17 00 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: E2 17 00 3F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 30 [08:47:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:47:17]wFMCommunicate OK [08:47:17]requested_item fd.num is exist - process it [08:47:17]SAM_PROTO_GetFieldsCounters [08:47:17]wFMCommunicate request_size=4 [08:47:17]MH_SAM_APDU [08:47:17]CAPDU: 80 13 00 00 [08:47:17]Write to MH i2c: E2 08 00 40 24 80 13 00 00 00 00 00 00 E0 [08:47:17]Write i2c OK [08:47:17]MH_I2C_Read... [08:47:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:17]Read from MH i2c: E2 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: E2 62 00 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: E2 62 00 40 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6D 2A 01 00 0E 04 04 00 72 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 3F [08:47:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6D 2A 01 00 0E 04 04 00 72 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:47:17]wFMCommunicate OK [08:47:17]SAM_PROTO_GetFieldsCounters done [08:47:17]requested_item shift.num is exist - process it [08:47:17]requested_item shift.opened is exist - process it [08:47:17]req_shift_opened [08:47:17]FM_GetShiftState [08:47:17]SAM_PROTO_GetShiftState [08:47:17]wFMCommunicate request_size=4 [08:47:17]MH_SAM_APDU [08:47:17]CAPDU: 80 13 01 00 [08:47:17]Write to MH i2c: E2 08 00 41 24 80 13 01 00 00 00 00 00 E2 [08:47:17]Write i2c OK [08:47:17]MH_I2C_Read... [08:47:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:17]Read from MH i2c: E2 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: E2 0E 00 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: E2 0E 00 41 24 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 C7 [08:47:17]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:47:17]wFMCommunicate OK [08:47:17]SAM_PROTO_GetShiftState done [08:47:17]FM_GetShiftState done [08:47:17]req_shift_opened done [08:47:17]requested_item shift.open_date is exist - process it [08:47:17]req_shift_open_date [08:47:17]req_shift_open_date done [08:47:17]produce_requested_data done [08:47:17]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76397,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [08:47:17]process_action_free close_receipt [08:47:17]json_value_free [08:47:17]json_value_free done [08:47:17]process_json_proto returns [08:47:17]Send response to host [08:47:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76397,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [08:47:17]free response buf [08:47:17]execute_script done [08:47:17]execute_script returns [08:47:17]free content buf [08:47:17]Sock 9.Close socket [08:47:17]Sock 9.Thread stoped [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:46]accept exits with 7 [08:47:46]New connection [08:47:46]New thread 3066486116 created [08:47:46]Thread 3066629476 joined [08:47:46]Waiting for new connection... [08:47:46] Sock 7.Parse request [08:47:46]Sock 7.Check first char [08:47:46]Sock 7.First char is OK [08:47:46]request: POST /json_proto HTTP/1.0 [08:47:46]Method: POST [08:47:46]URL: /json_proto [08:47:46]Method is POST - this is cgi request [08:47:46]url: /json_proto [08:47:46]query_string will be loaded in cgi processing [08:47:46]execute_cgi json_proto POST (null) [08:47:46]execute_cgi path=json_proto method=POST [08:47:46]POST find Content-Length [08:47:46]Host: 172.17.62.5:8080 [08:47:46]Content-Length: 677 [08:47:46]Content-Type: application/json [08:47:46] [08:47:46]POST finish read [08:47:46]Found Content-Length = 677 [08:47:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.970, "sum" : 513.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 513.00, "total" : 513.00, "payments": [ { "type": 0, "sum" : 513.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:46]execute_script... [08:47: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)190842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.970, "sum" : 513.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 513.00, "total" : 513.00, "payments": [ { "type": 0, "sum" : 513.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:46]POST & json_proto [08:47:46]process_json_proto [08:47:46]json parsed OK: [08:47:46]protocol is kg_v1.0 [08:47:46]action value=close_receipt [08:47:46]process_action close_receipt [08:47:46]cmd_close_receipt [08:47:46]MH_GetDate [08:47:46]Write to MH i2c: F0 00 00 42 24 55 [08:47:46]Write i2c OK [08:47:46]MH_I2C_Read... [08:47:46]Read from MH i2c: F0 [08:47:46]MH_I2C_Read... [08:47:46]Read from MH i2c: F0 09 00 [08:47:46]MH_I2C_Read... [08:47:46]Read from MH i2c: F0 09 00 42 24 00 B7 2F 22 66 F4 E9 65 64 72 [08:47:46]GetLastDocTimeStamp 1713516438 [08:47:46]current date 1713516471 [08:47:46]FM_GetShiftState [08:47:46]SAM_PROTO_GetShiftState [08:47:46]wFMCommunicate request_size=4 [08:47:46]MH_SAM_APDU [08:47:46]CAPDU: 80 13 01 00 [08:47:46]Write to MH i2c: E2 08 00 43 24 80 13 01 00 00 00 00 00 E4 [08:47:46]Write i2c OK [08:47:46]MH_I2C_Read... [08:47:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:46]Read from MH i2c: E2 [08:47:46]MH_I2C_Read... [08:47:46]Read from MH i2c: E2 0E 00 [08:47:46]MH_I2C_Read... [08:47:46]Read from MH i2c: E2 0E 00 43 24 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 C9 [08:47:46]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:47:46]wFMCommunicate OK [08:47:46]SAM_PROTO_GetShiftState done [08:47:46]FM_GetShiftState done [08:47:46]opened in 1713486233 [08:47:46]opened+sec_in_day 1713572633 [08:47:46]quantity*price = 51326 [08:47:46]sum+1 = 51328 [08:47:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 513.00 Внесено: 513.00 СДАЧА: 0.00 НСП 1% : 4.54 НДС 12% : 54.51 Наличными: 513.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 18 19.04.2024 08:47 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76398 ФПД: 193452953750642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T084751&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76398&fm=193452953750642&tin=02508201610067®Number=0000000000091573&sum=51300 [08:47:48]StoreToDocumentArchive [08:47:48]shift 370 fd 76398 [08:47:48]save to /storage/0370/doc_00076398 [08:47:48]save last doc name /storage/0370/doc_00076398 to /storage/kkm_last_doc_name [08:47:48]save OK [08:47:48]Clear old archive folders... [08:47:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:47:48]tlvbuf is 00930FC0 [08:47:48]SAM_PROTO_ClearQueue [08:47:48]wFMCommunicate request_size=4 [08:47:48]MH_SAM_APDU [08:47:48]CAPDU: 80 09 00 00 [08:47:48]Write to MH i2c: E2 08 00 50 24 80 09 00 00 00 00 00 00 E6 [08:47:48]Write i2c OK [08:47:48]MH_I2C_Read... [08:47:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:48]Read from MH i2c: E2 [08:47:48]MH_I2C_Read... [08:47:48]Read from MH i2c: E2 03 00 [08:47:48]MH_I2C_Read... [08:47:48]Read from MH i2c: E2 03 00 50 24 00 90 00 E8 [08:47:48]RAPDU: 90 00 [08:47:48]wFMCommunicate OK [08:47:48]SAM_PROTO_ClearQueue done [08:47:48]KKMCreateOFDPacket [08:47:48]OFDProtocolAddRootSTLVToBuf [08:47:48]FM_MakeSignedData [08:47:48]FM_MakeSignedData [08:47:48]SAM_PROTO_SignData [08:47:48]wFMCommunicate request_size=4 [08:47:48]MH_SAM_APDU [08:47:48]CAPDU: 80 0D 01 02 [08:47:48]Write to MH i2c: E2 08 00 51 24 80 0D 01 02 00 00 00 00 EE [08:47:48]Write i2c OK [08:47:48]MH_I2C_Read... [08:47:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:48]Read from MH i2c: E2 [08:47:48]MH_I2C_Read... [08:47:48]Read from MH i2c: E2 03 00 [08:47:48]MH_I2C_Read... [08:47:48]Read from MH i2c: E2 03 00 51 24 00 90 00 E9 [08:47:48]RAPDU: 90 00 [08:47:48]wFMCommunicate OK [08:47:48]wFMCommunicate request_size=255 [08:47:48]MH_SAM_APDU [08:47: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 22 1F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 7F C8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 C8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 15 00 00 00 00 07 04 06 00 64 C8 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 B7 2F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6E 2A 01 00 35 04 06 00 AF [08:47:48]Write to MH i2c: E2 02 01 52 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 22 1F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 7F C8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 C8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 15 00 00 00 00 07 04 06 00 64 C8 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 B7 2F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6E 2A 01 00 35 04 06 00 AF 00 00 7B [08:47:48]Write i2c OK [08:47:48]MH_I2C_Read... [08:47:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:48]Read from MH i2c: E2 [08:47:48]MH_I2C_Read... [08:47:48]Read from MH i2c: E2 03 00 [08:47:48]MH_I2C_Read... [08:47:48]Read from MH i2c: E2 03 00 52 24 00 90 00 EA [08:47:48]RAPDU: 90 00 [08:47:48]wFMCommunicate OK [08:47:48]wFMCommunicate request_size=10 [08:47:48]MH_SAM_APDU [08:47:48]CAPDU: 80 0D 02 02 05 F1 C6 96 CC 72 [08:47:48]Write to MH i2c: E2 0D 00 53 24 80 0D 02 02 05 00 F1 C6 96 CC 72 00 00 86 [08:47:48]Write i2c OK [08:47:48]MH_I2C_Read... [08:47:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:48]Read from MH i2c: E2 [08:47:48]MH_I2C_Read... [08:47:48]Read from MH i2c: E2 03 00 [08:47:48]MH_I2C_Read... [08:47:48]Read from MH i2c: E2 03 00 53 24 00 90 00 EB [08:47:48]RAPDU: 90 00 [08:47:48]wFMCommunicate OK [08:47:48]wFMCommunicate request_size=4 [08:47:48]MH_SAM_APDU [08:47:48]CAPDU: 80 0D 03 02 [08:47:48]Write to MH i2c: E2 08 00 54 24 80 0D 03 02 00 00 00 00 F3 [08:47:48]Write i2c OK [08:47:48]MH_I2C_Read... [08:47:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:48]Read from MH i2c: E2 [08:47:48]MH_I2C_Read... [08:47:48]Read from MH i2c: E2 0B 00 [08:47:48]MH_I2C_Read... [08:47:48]Read from MH i2c: E2 0B 00 54 24 00 B3 E0 63 35 9A 9D 87 25 90 00 02 [08:47:48]RAPDU: B3 E0 63 35 9A 9D 87 25 90 00 [08:47:48]wFMCommunicate OK [08:47:48]SAM_PROTO_SignData done [08:47:48]FM_MakeSignedData done [08:47:48]CreateOFDProtocolMessage [08:47:48]wFMCommunicate request_size=4 [08:47:48]MH_SAM_APDU [08:47:48]CAPDU: 80 11 00 00 [08:47:48]Write to MH i2c: E2 08 00 55 24 80 11 00 00 00 00 00 00 F3 [08:47:48]Write i2c OK [08:47:48]MH_I2C_Read... [08:47:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:48]Read from MH i2c: E2 [08:47:48]MH_I2C_Read... [08:47:48]Read from MH i2c: E2 17 00 [08:47:48]MH_I2C_Read... [08:47:48]Read from MH i2c: E2 17 00 55 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 46 [08:47:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:47:48]wFMCommunicate OK [08:47:48]CreateOFDProtocolMessage done [08:47:48]OFDSenderStorePacket 76398 [08:47:48]StoreOFDPacket docnum=76398 [08:47:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 F6 CA 07 01 61 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 7F C8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 C8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 15 00 00 00 00 07 04 06 00 64 C8 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 B7 2F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6E 2A 01 00 35 04 06 00 AF F1 C6 96 CC 72 B3 E0 63 35 9A 9D 87 25 [08:47:48]CheckFolder [08:47:48]dirname=/storage/ofd_packets [08:47:48]CheckFolder done [08:47:48]ProducePacketName [08:47:48]name=ofd_packets/00076398 [08:47:48]NVStorageSaveData ofd_packets/00076398 [08:47:48]File name is /storage/ofd_packets/00076398 [08:47:48]Write 301 bytes [08:47:48]NVStorageSaveData done [08:47:48]OFDSenderStorePacket done [08:47:48]KKMCreateOFDPacket done [08:47:48]NVStorageSaveData kkm_last_timestamp [08:47:48]File name is /storage/kkm_last_timestamp [08:47:48]Write 4 bytes [08:47:48]NVStorageSaveData done [08:47:48]ExternCall_PrintAddStr [08:47:48]wPrintStart [08:47:48]Write to MH i2c: 01 00 00 56 24 7A [08:47:48]Write i2c OK [08:47:48]MH_I2C_Read... [08:47:48]Read from MH i2c: 01 [08:47:48]MH_I2C_Read... [08:47:48]Read from MH i2c: 01 07 00 [08:47:48]MH_I2C_Read... [08:47:48]Read from MH i2c: 01 07 00 56 24 00 00 00 00 00 FF 0F 8F [08:47:48]RasterBufferAndPrint [08:47:48]line Счет N : (1)190842 [08:47:48]line ИНН: 02508201610067 [08:47:48]line Контрольно-Кассовый Чек [08:47:48]line ПРОДАЖА [08:47:48]line ТРК (МРК, ГНК) : 43 [08:47:48]line Товар: 2710124130 [08:47:48]line Аи-92-К-5 [08:47:48]line 7.970 * 64.40 [08:47:48]line = 513.27 [08:47:48]line НДС 12% НСП 1% [08:47:48]line > о реализуемом товаре [08:47:48]line ОКРУГЛЕНИЕ: -0.27 [08:47:48]line ИТОГО: 513.00 [08:47:48]line Внесено: 513.00 [08:47:48]line СДАЧА: 0.00 [08:47:48]line НСП 1% : 4.54 [08:47:48]line НДС 12% : 54.51 [08:47:48]line Наличными: 513.00 [08:47:48]line Безнал.: 0.00 [08:47:48]line Место: АЗС № 106 "Партнер Нефть" [08:47:48]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:47:48]line СНО: Общий режим [08:47:48]line Чек 18 19.04.2024 08:47 [08:47:48]line Смена: 370 ФФД: 1.0 [08:47:48]line ЗНМ: 0300000141 [08:47:48]line РНМ: 0000000000091573 [08:47:48]line Версия ККМ: 001 [08:47:48]line ФМ: 0000000000874652 [08:47:48]line ФД: 76398 [08:47:48]line ФПД: 193452953750642 [08:47:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T084751&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76398&fm=193452953750642&tin=02508201610067®Number=0000000000091573&sum=51300 [08:47:48]OFD Sender: Processing packet 76398 [packets to send 128, broken 127] [08:47:48]ProducePacketName [08:47:48]name=ofd_packets/00076398 [08:47:48]OFD Sender: To server: pG, [08:47:48]CommunicateWithHost lk.salyk.kg:30040 [08:47:48]ConnectInit lk.salyk.kg [08:47:48]written 0, free lines is 4095 [08:47:49]Connected sock=10 [08:47:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 F6 CA 07 01 61 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 7F C8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 C8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 15 00 00 00 00 07 04 06 00 64 C8 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 B7 2F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6E 2A 01 00 35 04 06 00 AF F1 C6 96 CC 72 B3 E0 63 35 9A 9D 87 25 [08:47:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 2B 44 47 00 01 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 34 36 35 32 10 04 04 00 6E 2A 01 00 F4 03 04 00 43 D7 21 66 B6 04 01 00 00 47 B7 B3 A8 44 CA 64 D3 [08:47:49]CommunicateWithHost err = 0 [08:47:49]CheckOFDResponse [08:47:49]1017 (14) - 77093643461234 [08:47:49]1041 (16) - 0000000000874652 [08:47:49]1040 (4) - 76398 [08:47:49]1012 (4) - 19.04.2024 02:30 [08:47:49]1206 (1) - 0 [08:47:49]OFD Sender: Remove packet 76398 [08:47:49]ProducePacketName [08:47:49]name=ofd_packets/00076398 [08:47:49]NVStorageDeleteData [08:47:49]Write to MH i2c: 01 00 00 80 24 A4 [08:47:49]Write i2c OK [08:47:49]MH_I2C_Read... [08:47:49]Read from MH i2c: 01 [08:47:49]MH_I2C_Read... [08:47:49]Read from MH i2c: 01 07 00 [08:47:49]MH_I2C_Read... [08:47:49]Read from MH i2c: 01 07 00 80 24 00 00 00 00 00 E8 0C 9F [08:47:49]RasterBufferAndPrint [08:47:49]line [08:47:49]line [08:47:49]line [08:47:49]line [08:47:49]line [08:47:49]written 0, free lines is 3310 [08:47:49]MH_Cut [08:47:49]Write to MH i2c: D1 01 00 87 24 01 7D [08:47:49]Write i2c OK [08:47:49]MH_I2C_Read... [08:47:49]Read from MH i2c: D1 [08:47:49]MH_I2C_Read... [08:47:49]Read from MH i2c: D1 01 00 [08:47:49]MH_I2C_Read... [08:47:49]Read from MH i2c: D1 01 00 87 24 00 7C [08:47:49]Write to MH i2c: 01 00 00 88 24 AC [08:47:49]Write i2c OK [08:47:49]MH_I2C_Read... [08:47:49]OFD Sender: No OFD packet to send [08:47:50]*** Cut start [08:47:50]*** Partial cut [08:47:50]*** CUTSNS_PIN = 1 [08:47:50]*** CUTSNS_PIN = 0 [08:47:50]*** Brake cut motor [08:47:50]Read from MH i2c: 01 [08:47:50]MH_I2C_Read... [08:47:50]*** Stop cut motor [08:47:50]*** Cut end [08:47:50]Read from MH i2c: 01 07 00 [08:47:50]MH_I2C_Read... [08:47:50]Read from MH i2c: 01 07 00 88 24 00 00 00 00 00 FF 0F C1 [08:47:50]process_action close_receipt done [08:47:50]requested_data is exist [08:47:50]produce_requested_data [08:47:50]requested_item fm.sn is exist - process it [08:47:50]wFMCommunicate request_size=4 [08:47:50]MH_SAM_APDU [08:47:50]CAPDU: 80 11 00 00 [08:47:50]Write to MH i2c: E2 08 00 89 24 80 11 00 00 00 00 00 00 27 [08:47:50]Write i2c OK [08:47:50]MH_I2C_Read... [08:47:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:50]Read from MH i2c: E2 [08:47:50]MH_I2C_Read... [08:47:50]Read from MH i2c: E2 17 00 [08:47:50]MH_I2C_Read... [08:47:50]Read from MH i2c: E2 17 00 89 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7A [08:47:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:47:50]wFMCommunicate OK [08:47:50]requested_item fd.num is exist - process it [08:47:50]SAM_PROTO_GetFieldsCounters [08:47:50]wFMCommunicate request_size=4 [08:47:50]MH_SAM_APDU [08:47:50]CAPDU: 80 13 00 00 [08:47:50]Write to MH i2c: E2 08 00 8A 24 80 13 00 00 00 00 00 00 2A [08:47:50]Write i2c OK [08:47:50]MH_I2C_Read... [08:47:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:50]Read from MH i2c: E2 [08:47:50]MH_I2C_Read... [08:47:50]Read from MH i2c: E2 62 00 [08:47:50]MH_I2C_Read... [08:47:50]Read from MH i2c: E2 62 00 8A 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6E 2A 01 00 0E 04 04 00 72 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 8D [08:47: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6E 2A 01 00 0E 04 04 00 72 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:47:50]wFMCommunicate OK [08:47:50]SAM_PROTO_GetFieldsCounters done [08:47:50]requested_item shift.num is exist - process it [08:47:50]requested_item shift.opened is exist - process it [08:47:50]req_shift_opened [08:47:50]FM_GetShiftState [08:47:50]SAM_PROTO_GetShiftState [08:47:50]wFMCommunicate request_size=4 [08:47:50]MH_SAM_APDU [08:47:50]CAPDU: 80 13 01 00 [08:47:50]Write to MH i2c: E2 08 00 8B 24 80 13 01 00 00 00 00 00 2C [08:47:50]Write i2c OK [08:47:50]MH_I2C_Read... [08:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:50]Read from MH i2c: E2 [08:47:50]MH_I2C_Read... [08:47:50]Read from MH i2c: E2 0E 00 [08:47:50]MH_I2C_Read... [08:47:50]Read from MH i2c: E2 0E 00 8B 24 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 11 [08:47:50]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:47:50]wFMCommunicate OK [08:47:50]SAM_PROTO_GetShiftState done [08:47:50]FM_GetShiftState done [08:47:50]req_shift_opened done [08:47:50]requested_item shift.open_date is exist - process it [08:47:50]req_shift_open_date [08:47:50]req_shift_open_date done [08:47:50]produce_requested_data done [08:47:50]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76398,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [08:47:50]process_action_free close_receipt [08:47:50]json_value_free [08:47:50]json_value_free done [08:47:50]process_json_proto returns [08:47:50]Send response to host [08:47:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76398,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [08:47:50]free response buf [08:47:50]execute_script done [08:47:50]execute_script returns [08:47:50]free content buf [08:47:50]Sock 7.Close socket [08:47:50]Sock 7.Thread stoped [08:47:54]OFD Sender: No OFD packet to send [08:47:59]OFD Sender: No OFD packet to send [08:48:04]OFD Sender: No OFD packet to send [08:48:09]OFD Sender: No OFD packet to send [08:48:14]OFD Sender: No OFD packet to send [08:48:19]OFD Sender: No OFD packet to send [08:48:24]OFD Sender: No OFD packet to send [08:48:29]OFD Sender: No OFD packet to send [08:48:34]OFD Sender: No OFD packet to send [08:48:39]OFD Sender: No OFD packet to send [08:48:42]accept exits with 9 [08:48:42]New connection [08:48:42]New thread 3066629476 created [08:48:42]Thread 3066486116 joined [08:48:42]Waiting for new connection... [08:48:42] Sock 9.Parse request [08:48:42]Sock 9.Check first char [08:48:42]Sock 9.First char is OK [08:48:42]request: POST /json_proto HTTP/1.0 [08:48:42]Method: POST [08:48:42]URL: /json_proto [08:48:42]Method is POST - this is cgi request [08:48:42]url: /json_proto [08:48:42]query_string will be loaded in cgi processing [08:48:42]execute_cgi json_proto POST (null) [08:48:42]execute_cgi path=json_proto method=POST [08:48:42]POST find Content-Length [08:48:42]Host: 172.17.62.5:8080 [08:48:42]Content-Length: 1168 [08:48:42]Content-Type: application/json [08:48:42] [08:48:42]POST finish read [08:48:42]Found Content-Length = 1168 [08:48:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190843\u000A19.04.2024 08:30\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 10.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 644.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:42]execute_script... [08:48:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190843\u000A19.04.2024 08:30\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 10.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 644.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:42]POST & json_proto [08:48:42]process_json_proto [08:48:42]json parsed OK: [08:48:42]protocol is kg_v1.0 [08:48:42]action value=print_text [08:48:42]process_action print_text [08:48:42]cmd_print_text [08:48:42]ExternCall_PrintAddStr [08:48:42]wPrintStart [08:48:42]Write to MH i2c: 01 00 00 8C 24 B0 [08:48:42]Write i2c OK [08:48:42]MH_I2C_Read... [08:48:42]Read from MH i2c: 01 [08:48:42]MH_I2C_Read... [08:48:42]Read from MH i2c: 01 07 00 [08:48:42]MH_I2C_Read... [08:48:42]Read from MH i2c: 01 07 00 8C 24 00 00 00 00 00 FF 0F C5 [08:48:42]RasterBufferAndPrint [08:48:42]line *****ТОВАРНЫЙ ЧЕК***** [08:48:42]line АЗС 106 [08:48:42]line Партнер нефть [08:48:42]line 02508201610067 [08:48:42]line Кассир : Табалдиева М. [08:48:42]line Счет N : (1)190843 [08:48:42]line 19.04.2024 08:30 [08:48:42]line ПРОДАЖА [08:48:42]line ТРК (МРК, ГНК): 22 [08:48:42]line Вид ГСМ : 2710124130 [08:48:42]line Аи-92-К-5 [08:48:42]line 10.000 x 64.40 [08:48:42]line ИТОГ: 644.00 [08:48:42]line Тип оплаты: Талоны: ТК ГПНА Online [08:48:42]line 30102984 [08:48:42]line ______________________ [08:48:42]line (подпись) [08:48:42]written 0, free lines is 4095 [08:48:43]Write to MH i2c: 01 00 00 A0 24 C4 [08:48:43]Write i2c OK [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: 01 [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: 01 07 00 [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: 01 07 00 A0 24 00 00 00 00 00 10 0E E9 [08:48:43]RasterBufferAndPrint [08:48:43]line [08:48:43]line [08:48:43]line [08:48:43]line [08:48:43]line [08:48:43]written 0, free lines is 3602 [08:48:43]MH_Cut [08:48:43]Write to MH i2c: D1 01 00 A7 24 01 9D [08:48:43]Write i2c OK [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: D1 [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: D1 01 00 [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: D1 01 00 A7 24 00 9C [08:48:43]Write to MH i2c: 01 00 00 A8 24 CC [08:48:43]Write i2c OK [08:48:43]MH_I2C_Read... [08:48:43]*** Cut start [08:48:43]*** Partial cut [08:48:43]*** CUTSNS_PIN = 1 [08:48:43]*** CUTSNS_PIN = 0 [08:48:43]*** Brake cut motor [08:48:44]Read from MH i2c: 01 [08:48:44]MH_I2C_Read... [08:48:44]*** Stop cut motor [08:48:44]*** Cut end [08:48:44]Read from MH i2c: 01 07 00 [08:48:44]MH_I2C_Read... [08:48:44]Read from MH i2c: 01 07 00 A8 24 00 00 00 00 00 FF 0F E1 [08:48:44]process_action print_text done [08:48:44]requested_data is exist [08:48:44]produce_requested_data [08:48:44]requested_item fm.sn is exist - process it [08:48:44]wFMCommunicate request_size=4 [08:48:44]MH_SAM_APDU [08:48:44]CAPDU: 80 11 00 00 [08:48:44]Write to MH i2c: E2 08 00 A9 24 80 11 00 00 00 00 00 00 47 [08:48:44]Write i2c OK [08:48:44]MH_I2C_Read... [08:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:44]Read from MH i2c: E2 [08:48:44]MH_I2C_Read... [08:48:44]Read from MH i2c: E2 17 00 [08:48:44]MH_I2C_Read... [08:48:44]Read from MH i2c: E2 17 00 A9 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9A [08:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:48:44]wFMCommunicate OK [08:48:44]requested_item fd.num is exist - process it [08:48:44]SAM_PROTO_GetFieldsCounters [08:48:44]wFMCommunicate request_size=4 [08:48:44]MH_SAM_APDU [08:48:44]CAPDU: 80 13 00 00 [08:48:44]Write to MH i2c: E2 08 00 AA 24 80 13 00 00 00 00 00 00 4A [08:48:44]Write i2c OK [08:48:44]MH_I2C_Read... [08:48:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:44]Read from MH i2c: E2 [08:48:44]MH_I2C_Read... [08:48:44]Read from MH i2c: E2 62 00 [08:48:44]MH_I2C_Read... [08:48:44]Read from MH i2c: E2 62 00 AA 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6E 2A 01 00 0E 04 04 00 72 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 AD [08:48:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6E 2A 01 00 0E 04 04 00 72 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:48:44]wFMCommunicate OK [08:48:44]SAM_PROTO_GetFieldsCounters done [08:48:44]requested_item shift.num is exist - process it [08:48:44]requested_item shift.opened is exist - process it [08:48:44]req_shift_opened [08:48:44]FM_GetShiftState [08:48:44]SAM_PROTO_GetShiftState [08:48:44]wFMCommunicate request_size=4 [08:48:44]MH_SAM_APDU [08:48:44]CAPDU: 80 13 01 00 [08:48:44]Write to MH i2c: E2 08 00 AB 24 80 13 01 00 00 00 00 00 4C [08:48:44]Write i2c OK [08:48:44]MH_I2C_Read... [08:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:44]Read from MH i2c: E2 [08:48:44]MH_I2C_Read... [08:48:44]Read from MH i2c: E2 0E 00 [08:48:44]MH_I2C_Read... [08:48:44]Read from MH i2c: E2 0E 00 AB 24 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 31 [08:48:44]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:48:44]wFMCommunicate OK [08:48:44]SAM_PROTO_GetShiftState done [08:48:44]FM_GetShiftState done [08:48:44]req_shift_opened done [08:48:44]requested_item shift.open_date is exist - process it [08:48:44]req_shift_open_date [08:48:44]req_shift_open_date done [08:48:44]produce_requested_data done [08:48:44]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76398,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [08:48:44]process_action_free print_text [08:48:44]json_value_free [08:48:44]json_value_free done [08:48:44]process_json_proto returns [08:48:44]Send response to host [08:48:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76398,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [08:48:44]free response buf [08:48:44]execute_script done [08:48:44]execute_script returns [08:48:44]free content buf [08:48:44]Sock 9.Close socket [08:48:44]Sock 9.Thread stoped [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:54]OFD Sender: No OFD packet to send [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:39]OFD Sender: No OFD packet to send [08:49:44]OFD Sender: No OFD packet to send [08:49:49]OFD Sender: No OFD packet to send [08:49:54]OFD Sender: No OFD packet to send [08:49:59]OFD Sender: No OFD packet to send [08:50:04]OFD Sender: No OFD packet to send [08:50:09]OFD Sender: No OFD packet to send [08:50:14]OFD Sender: No OFD packet to send [08:50:19]accept exits with 7 [08:50:19]New connection [08:50:19]New thread 3066486116 created [08:50:19]Thread 3066629476 joined [08:50:19]Waiting for new connection... [08:50:19] Sock 7.Parse request [08:50:19]Sock 7.Check first char [08:50:19]Sock 7.First char is OK [08:50:19]request: POST /json_proto HTTP/1.0 [08:50:19]Method: POST [08:50:19]URL: /json_proto [08:50:19]Method is POST - this is cgi request [08:50:19]url: /json_proto [08:50:19]query_string will be loaded in cgi processing [08:50:19]execute_cgi json_proto POST (null) [08:50:19]execute_cgi path=json_proto method=POST [08:50:19]POST find Content-Length [08:50:19]Host: 172.17.62.5:8080 [08:50:19]Content-Length: 817 [08:50:19]Content-Type: application/json [08:50:19] [08:50:19]POST finish read [08:50:19]Found Content-Length = 817 [08:50:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 10.000, "sum" : 729.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 729.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:19]execute_script... [08:50: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)190844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 10.000, "sum" : 729.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 729.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:19]POST & json_proto [08:50:19]process_json_proto [08:50:19]json parsed OK: [08:50:19]protocol is kg_v1.0 [08:50:19]action value=close_receipt [08:50:19]process_action close_receipt [08:50:19]cmd_close_receipt [08:50:19]MH_GetDate [08:50:19]Write to MH i2c: F0 00 00 AC 24 BF [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: F0 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: F0 09 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: F0 09 00 AC 24 00 50 30 22 66 F4 E9 65 64 76 [08:50:19]GetLastDocTimeStamp 1713516471 [08:50:19]current date 1713516624 [08:50:19]FM_GetShiftState [08:50:19]SAM_PROTO_GetShiftState [08:50:19]wFMCommunicate request_size=4 [08:50:19]MH_SAM_APDU [08:50:19]CAPDU: 80 13 01 00 [08:50:19]Write to MH i2c: E2 08 00 AD 24 80 13 01 00 00 00 00 00 4E [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:19]Read from MH i2c: E2 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 0E 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 0E 00 AD 24 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 33 [08:50:19]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:50:19]wFMCommunicate OK [08:50:19]SAM_PROTO_GetShiftState done [08:50:19]FM_GetShiftState done [08:50:19]opened in 1713486233 [08:50:19]opened+sec_in_day 1713572633 [08:50:19]quantity*price = 72900 [08:50:19]sum+1 = 72901 [08:50:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 729.00 НСП 1% : 6.45 НДС 12% : 77.42 Наличными: 0.00 Безнал.: 729.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 19 19.04.2024 08:50 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76399 ФПД: 92968286780114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T085024&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76399&fm=92968286780114&tin=02508201610067®Number=0000000000091573&sum=72900 [08:50:20]StoreToDocumentArchive [08:50:20]shift 370 fd 76399 [08:50:20]save to /storage/0370/doc_00076399 [08:50:20]save last doc name /storage/0370/doc_00076399 to /storage/kkm_last_doc_name [08:50:20]save OK [08:50:20]Clear old archive folders... [08:50:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:20]tlvbuf is 00927F20 [08:50:20]SAM_PROTO_ClearQueue [08:50:20]wFMCommunicate request_size=4 [08:50:20]MH_SAM_APDU [08:50:20]CAPDU: 80 09 00 00 [08:50:20]Write to MH i2c: E2 08 00 BA 24 80 09 00 00 00 00 00 00 50 [08:50:20]Write i2c OK [08:50:20]MH_I2C_Read... [08:50:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:20]Read from MH i2c: E2 [08:50:20]MH_I2C_Read... [08:50:20]Read from MH i2c: E2 03 00 [08:50:20]MH_I2C_Read... [08:50:20]Read from MH i2c: E2 03 00 BA 24 00 90 00 52 [08:50:20]RAPDU: 90 00 [08:50:20]wFMCommunicate OK [08:50:20]SAM_PROTO_ClearQueue done [08:50:20]KKMCreateOFDPacket [08:50:20]OFDProtocolAddRootSTLVToBuf [08:50:20]FM_MakeSignedData [08:50:20]FM_MakeSignedData [08:50:20]SAM_PROTO_SignData [08:50:20]wFMCommunicate request_size=4 [08:50:20]MH_SAM_APDU [08:50:20]CAPDU: 80 0D 01 02 [08:50:20]Write to MH i2c: E2 08 00 BB 24 80 0D 01 02 00 00 00 00 58 [08:50:20]Write i2c OK [08:50:20]MH_I2C_Read... [08:50:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:20]Read from MH i2c: E2 [08:50:20]MH_I2C_Read... [08:50:20]Read from MH i2c: E2 03 00 [08:50:20]MH_I2C_Read... [08:50:20]Read from MH i2c: E2 03 00 BB 24 00 90 00 53 [08:50:20]RAPDU: 90 00 [08:50:20]wFMCommunicate OK [08:50:20]wFMCommunicate request_size=255 [08:50:20]MH_SAM_APDU [08:50: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 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 1C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 50 30 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6F 2A 01 00 35 04 06 00 54 [08:50:21]Write to MH i2c: E2 02 01 BC 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 1C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 50 30 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6F 2A 01 00 35 04 06 00 54 00 00 35 [08:50:21]Write i2c OK [08:50:21]MH_I2C_Read... [08:50:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:21]Read from MH i2c: E2 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 03 00 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 03 00 BC 24 00 90 00 54 [08:50:21]RAPDU: 90 00 [08:50:21]wFMCommunicate OK [08:50:21]wFMCommunicate request_size=10 [08:50:21]MH_SAM_APDU [08:50:21]CAPDU: 80 0D 02 02 05 8D DD B5 7A D2 [08:50:21]Write to MH i2c: E2 0D 00 BD 24 80 0D 02 02 05 00 8D DD B5 7A D2 00 00 D0 [08:50:21]Write i2c OK [08:50:21]MH_I2C_Read... [08:50:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:21]Read from MH i2c: E2 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 03 00 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 03 00 BD 24 00 90 00 55 [08:50:21]RAPDU: 90 00 [08:50:21]wFMCommunicate OK [08:50:21]wFMCommunicate request_size=4 [08:50:21]MH_SAM_APDU [08:50:21]CAPDU: 80 0D 03 02 [08:50:21]Write to MH i2c: E2 08 00 BE 24 80 0D 03 02 00 00 00 00 5D [08:50:21]Write i2c OK [08:50:21]MH_I2C_Read... [08:50:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:21]Read from MH i2c: E2 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 0B 00 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 0B 00 BE 24 00 EE FD A2 83 47 14 50 01 90 00 1A [08:50:21]RAPDU: EE FD A2 83 47 14 50 01 90 00 [08:50:21]wFMCommunicate OK [08:50:21]SAM_PROTO_SignData done [08:50:21]FM_MakeSignedData done [08:50:21]CreateOFDProtocolMessage [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 BF 24 80 11 00 00 00 00 00 00 5D [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 BF 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B0 [08:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:50:21]wFMCommunicate OK [08:50:21]CreateOFDProtocolMessage done [08:50:21]OFDSenderStorePacket 76399 [08:50:21]StoreOFDPacket docnum=76399 [08:50:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 9F 05 07 01 4D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 1C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 50 30 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6F 2A 01 00 35 04 06 00 54 8D DD B5 7A D2 EE FD A2 83 47 14 50 01 [08:50:21]CheckFolder [08:50:21]dirname=/storage/ofd_packets [08:50:21]CheckFolder done [08:50:21]ProducePacketName [08:50:21]name=ofd_packets/00076399 [08:50:21]NVStorageSaveData ofd_packets/00076399 [08:50:21]File name is /storage/ofd_packets/00076399 [08:50:21]Write 301 bytes [08:50:21]NVStorageSaveData done [08:50:21]OFDSenderStorePacket done [08:50:21]KKMCreateOFDPacket done [08:50:21]NVStorageSaveData kkm_last_timestamp [08:50:21]File name is /storage/kkm_last_timestamp [08:50:21]Write 4 bytes [08:50:21]NVStorageSaveData done [08:50:21]ExternCall_PrintAddStr [08:50:21]wPrintStart [08:50:21]Write to MH i2c: 01 00 00 C0 24 E4 [08:50:21]Write i2c OK [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: 01 [08:50:21]MH_I2C_Read... [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 C0 24 00 00 00 00 00 FF 0F F9 [08:50:21]RasterBufferAndPrint [08:50:21]line Счет N : (1)190844 [08:50:21]line ИНН: 02508201610067 [08:50:21]line Контрольно-Кассовый Чек [08:50:21]line ПРОДАЖА [08:50:21]line ТРК (МРК, ГНК) : 11 [08:50:21]line Товар: 2710124500 [08:50:21]line Аи-95-К-5 [08:50:21]line 10.000 * 72.90 [08:50:21]line = 729.00 [08:50:21]line НДС 12% НСП 1% [08:50:21]line > о реализуемом товаре [08:50:21]line ИТОГО: 729.00 [08:50:21]line НСП 1% : 6.45 [08:50:21]line НДС 12% : 77.42 [08:50:21]line Наличными: 0.00 [08:50:21]line Безнал.: 729.00 [08:50:21]line Место: АЗС № 106 "Партнер Нефть" [08:50:21]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:50:21]line СНО: Общий режим [08:50:21]line Чек 19 19.04.2024 08:50 [08:50:21]line Смена: 370 ФФД: 1.0 [08:50:21]line ЗНМ: 0300000141 [08:50:21]line РНМ: 0000000000091573 [08:50:21]line Версия ККМ: 001 [08:50:21]line Платежная система: Бакай Банк [08:50:21]line ФМ: 0000000000874652 [08:50:21]line ФД: 76399 [08:50:21]line ФПД: 92968286780114 [08:50:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T085024&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76399&fm=92968286780114&tin=02508201610067®Number=0000000000091573&sum=72900 [08:50:21]written 0, free lines is 4095 [08:50:21]OFD Sender: Processing packet 76399 [packets to send 128, broken 127] [08:50:21]ProducePacketName [08:50:21]name=ofd_packets/00076399 [08:50:21]OFD Sender: To server: pG, [08:50:21]CommunicateWithHost lk.salyk.kg:30040 [08:50:21]ConnectInit lk.salyk.kg [08:50:21]Write to MH i2c: 01 00 00 E9 24 0D [08:50:21]Write i2c OK [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: 01 [08:50:21]MH_I2C_Read... [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 E9 24 00 00 00 00 00 F3 0C 13 [08:50:21]RasterBufferAndPrint [08:50:21]line [08:50:21]line [08:50:21]line [08:50:21]line [08:50:21]line [08:50:21]written 0, free lines is 3322 [08:50:21]MH_Cut [08:50:21]Write to MH i2c: D1 01 00 F0 24 01 E6 [08:50:21]Write i2c OK [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: D1 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: D1 01 00 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: D1 01 00 F0 24 00 E5 [08:50:21]Write to MH i2c: 01 00 00 F1 24 15 [08:50:21]Write i2c OK [08:50:21]MH_I2C_Read... [08:50:21]Connected sock=10 [08:50:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 9F 05 07 01 4D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 1C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 50 30 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6F 2A 01 00 35 04 06 00 54 8D DD B5 7A D2 EE FD A2 83 47 14 50 01 [08:50:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 8E 74 47 00 64 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 6F 2A 01 00 F4 03 04 00 DC D7 21 66 B6 04 01 00 00 B1 90 52 D3 AA 17 8C 65 [08:50:22]CommunicateWithHost err = 0 [08:50:22]CheckOFDResponse [08:50:22]1017 (14) - 77093643461234 [08:50:22]1041 (16) - 0000000000874652 [08:50:22]1040 (4) - 76399 [08:50:22]1012 (4) - 19.04.2024 02:33 [08:50:22]1206 (1) - 0 [08:50:22]OFD Sender: Remove packet 76399 [08:50:22]ProducePacketName [08:50:22]name=ofd_packets/00076399 [08:50:22]NVStorageDeleteData [08:50:22]*** Cut start [08:50:22]*** Partial cut [08:50:22]*** CUTSNS_PIN = 1 [08:50:22]OFD Sender: No OFD packet to send [08:50:22]*** CUTSNS_PIN = 0 [08:50:22]*** Brake cut motor [08:50:23]Read from MH i2c: 01 [08:50:23]MH_I2C_Read... [08:50:23]*** Stop cut motor [08:50:23]*** Cut end [08:50:23]Read from MH i2c: 01 07 00 [08:50:23]MH_I2C_Read... [08:50:23]Read from MH i2c: 01 07 00 F1 24 00 00 00 00 00 FF 0F 2A [08:50:23]process_action close_receipt done [08:50:23]requested_data is exist [08:50:23]produce_requested_data [08:50:23]requested_item fm.sn is exist - process it [08:50:23]wFMCommunicate request_size=4 [08:50:23]MH_SAM_APDU [08:50:23]CAPDU: 80 11 00 00 [08:50:23]Write to MH i2c: E2 08 00 F2 24 80 11 00 00 00 00 00 00 90 [08:50:23]Write i2c OK [08:50:23]MH_I2C_Read... [08:50:23]Read from MH i2c: E2 [08:50:23]MH_I2C_Read... [08:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:23]Read from MH i2c: E2 17 00 [08:50:23]MH_I2C_Read... [08:50:23]Read from MH i2c: E2 17 00 F2 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E3 [08:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:50:23]wFMCommunicate OK [08:50:23]requested_item fd.num is exist - process it [08:50:23]SAM_PROTO_GetFieldsCounters [08:50:23]wFMCommunicate request_size=4 [08:50:23]MH_SAM_APDU [08:50:23]CAPDU: 80 13 00 00 [08:50:23]Write to MH i2c: E2 08 00 F3 24 80 13 00 00 00 00 00 00 93 [08:50:23]Write i2c OK [08:50:23]MH_I2C_Read... [08:50:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:23]Read from MH i2c: E2 [08:50:23]MH_I2C_Read... [08:50:23]Read from MH i2c: E2 62 00 [08:50:23]MH_I2C_Read... [08:50:23]Read from MH i2c: E2 62 00 F3 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6F 2A 01 00 0E 04 04 00 72 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 FA [08:50:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 6F 2A 01 00 0E 04 04 00 72 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:50:23]wFMCommunicate OK [08:50:23]SAM_PROTO_GetFieldsCounters done [08:50:23]requested_item shift.num is exist - process it [08:50:23]requested_item shift.opened is exist - process it [08:50:23]req_shift_opened [08:50:23]FM_GetShiftState [08:50:23]SAM_PROTO_GetShiftState [08:50:23]wFMCommunicate request_size=4 [08:50:23]MH_SAM_APDU [08:50:23]CAPDU: 80 13 01 00 [08:50:23]Write to MH i2c: E2 08 00 F4 24 80 13 01 00 00 00 00 00 95 [08:50:23]Write i2c OK [08:50:23]MH_I2C_Read... [08:50:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:23]Read from MH i2c: E2 [08:50:23]MH_I2C_Read... [08:50:23]Read from MH i2c: E2 0E 00 [08:50:23]MH_I2C_Read... [08:50:23]Read from MH i2c: E2 0E 00 F4 24 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 7A [08:50:23]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:50:23]wFMCommunicate OK [08:50:23]SAM_PROTO_GetShiftState done [08:50:23]FM_GetShiftState done [08:50:23]req_shift_opened done [08:50:23]requested_item shift.open_date is exist - process it [08:50:23]req_shift_open_date [08:50:23]req_shift_open_date done [08:50:23]produce_requested_data done [08:50:23]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76399,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [08:50:23]process_action_free close_receipt [08:50:23]json_value_free [08:50:23]json_value_free done [08:50:23]process_json_proto returns [08:50:23]Send response to host [08:50:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76399,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [08:50:23]free response buf [08:50:23]execute_script done [08:50:23]execute_script returns [08:50:23]free content buf [08:50:23]Sock 7.Close socket [08:50:23]Sock 7.Thread stoped [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:26]accept exits with 9 [08:52:26]New connection [08:52:26]New thread 3066629476 created [08:52:26]Thread 3066486116 joined [08:52:26]Waiting for new connection... [08:52:26] Sock 9.Parse request [08:52:26]Sock 9.Check first char [08:52:26]Sock 9.First char is OK [08:52:26]request: POST /json_proto HTTP/1.0 [08:52:26]Method: POST [08:52:26]URL: /json_proto [08:52:26]Method is POST - this is cgi request [08:52:26]url: /json_proto [08:52:26]query_string will be loaded in cgi processing [08:52:26]execute_cgi json_proto POST (null) [08:52:26]execute_cgi path=json_proto method=POST [08:52:26]POST find Content-Length [08:52:26]Host: 172.17.62.5:8080 [08:52:26]Content-Length: 679 [08:52:26]Content-Type: application/json [08:52:26] [08:52:26]POST finish read [08:52:26]Found Content-Length = 679 [08:52:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190846", "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:26]execute_script... [08: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)190846", "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:26]POST & json_proto [08:52:26]process_json_proto [08:52:26]json parsed OK: [08:52:26]protocol is kg_v1.0 [08:52:26]action value=close_receipt [08:52:26]process_action close_receipt [08:52:26]cmd_close_receipt [08:52:26]MH_GetDate [08:52:26]Write to MH i2c: F0 00 00 F5 24 08 [08:52:26]Write i2c OK [08:52:26]MH_I2C_Read... [08:52:26]Read from MH i2c: F0 [08:52:26]MH_I2C_Read... [08:52:26]Read from MH i2c: F0 09 00 [08:52:26]MH_I2C_Read... [08:52:26]Read from MH i2c: F0 09 00 F5 24 00 CE 30 22 66 F4 E9 65 64 3D [08:52:26]GetLastDocTimeStamp 1713516624 [08:52:26]current date 1713516750 [08:52:26]FM_GetShiftState [08:52:26]SAM_PROTO_GetShiftState [08:52:26]wFMCommunicate request_size=4 [08:52:26]MH_SAM_APDU [08:52:26]CAPDU: 80 13 01 00 [08:52:26]Write to MH i2c: E2 08 00 F6 24 80 13 01 00 00 00 00 00 97 [08:52:26]Write i2c OK [08:52:26]MH_I2C_Read... [08:52:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:26]Read from MH i2c: E2 [08:52:26]MH_I2C_Read... [08:52:26]Read from MH i2c: E2 0E 00 [08:52:26]MH_I2C_Read... [08:52:26]Read from MH i2c: E2 0E 00 F6 24 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 7C [08:52:26]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:52:26]wFMCommunicate OK [08:52:26]SAM_PROTO_GetShiftState done [08:52:26]FM_GetShiftState done [08:52:26]opened in 1713486233 [08:52:26]opened+sec_in_day 1713572633 [08:52:26]quantity*price = 100018 [08:52:26]sum+1 = 100020 [08:52: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 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 20 19.04.2024 08:52 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76400 ФПД: 88943132113297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T085230&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76400&fm=88943132113297&tin=02508201610067®Number=0000000000091573&sum=100000 [08:52:27]StoreToDocumentArchive [08:52:27]shift 370 fd 76400 [08:52:27]save to /storage/0370/doc_00076400 [08:52:27]save last doc name /storage/0370/doc_00076400 to /storage/kkm_last_doc_name [08:52:27]save OK [08:52:27]Clear old archive folders... [08:52:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:52:27]tlvbuf is 00958C20 [08:52:27]SAM_PROTO_ClearQueue [08:52:27]wFMCommunicate request_size=4 [08:52:27]MH_SAM_APDU [08:52:27]CAPDU: 80 09 00 00 [08:52:27]Write to MH i2c: E2 08 00 03 25 80 09 00 00 00 00 00 00 9A [08:52:27]Write i2c OK [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 [08:52:27]MH_I2C_Read... [08:52:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:27]Read from MH i2c: E2 03 00 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 03 00 03 25 00 90 00 9C [08:52:27]RAPDU: 90 00 [08:52:27]wFMCommunicate OK [08:52:27]SAM_PROTO_ClearQueue done [08:52:27]KKMCreateOFDPacket [08:52:27]OFDProtocolAddRootSTLVToBuf [08:52:27]FM_MakeSignedData [08:52:27]FM_MakeSignedData [08:52:27]SAM_PROTO_SignData [08:52:27]wFMCommunicate request_size=4 [08:52:27]MH_SAM_APDU [08:52:27]CAPDU: 80 0D 01 02 [08:52:27]Write to MH i2c: E2 08 00 04 25 80 0D 01 02 00 00 00 00 A2 [08:52:27]Write i2c OK [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 [08:52:27]MH_I2C_Read... [08:52:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:27]Read from MH i2c: E2 03 00 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 03 00 04 25 00 90 00 9D [08:52:27]RAPDU: 90 00 [08:52:27]wFMCommunicate OK [08:52:27]wFMCommunicate request_size=255 [08:52:27]MH_SAM_APDU [08:52: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 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 14 00 00 00 F4 03 04 00 CE 30 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 70 2A 01 00 35 04 06 00 50 E4 AF CB [08:52:27]Write to MH i2c: E2 02 01 05 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 14 00 00 00 F4 03 04 00 CE 30 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 70 2A 01 00 35 04 06 00 50 E4 AF CB 00 00 5E [08:52:27]Write i2c OK [08:52:27]MH_I2C_Read... [08:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:27]Read from MH i2c: E2 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 03 00 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 03 00 05 25 00 90 00 9E [08:52:27]RAPDU: 90 00 [08:52:27]wFMCommunicate OK [08:52:27]wFMCommunicate request_size=7 [08:52:27]MH_SAM_APDU [08:52:27]CAPDU: 80 0D 02 02 02 79 91 [08:52:27]Write to MH i2c: E2 0A 00 06 25 80 0D 02 02 02 00 79 91 00 00 B3 [08:52:27]Write i2c OK [08:52:27]MH_I2C_Read... [08:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:27]Read from MH i2c: E2 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 03 00 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 03 00 06 25 00 90 00 9F [08:52:27]RAPDU: 90 00 [08:52:27]wFMCommunicate OK [08:52:27]wFMCommunicate request_size=4 [08:52:27]MH_SAM_APDU [08:52:27]CAPDU: 80 0D 03 02 [08:52:27]Write to MH i2c: E2 08 00 07 25 80 0D 03 02 00 00 00 00 A7 [08:52:27]Write i2c OK [08:52:27]MH_I2C_Read... [08:52:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:27]Read from MH i2c: E2 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 0B 00 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 0B 00 07 25 00 56 71 D6 B1 3B CD 92 93 90 00 23 [08:52:27]RAPDU: 56 71 D6 B1 3B CD 92 93 90 00 [08:52:27]wFMCommunicate OK [08:52:27]SAM_PROTO_SignData done [08:52:27]FM_MakeSignedData done [08:52:27]CreateOFDProtocolMessage [08:52:27]wFMCommunicate request_size=4 [08:52:27]MH_SAM_APDU [08:52:27]CAPDU: 80 11 00 00 [08:52:27]Write to MH i2c: E2 08 00 08 25 80 11 00 00 00 00 00 00 A7 [08:52:27]Write i2c OK [08:52:27]MH_I2C_Read... [08:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:27]Read from MH i2c: E2 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 17 00 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 17 00 08 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FA [08:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:52:27]wFMCommunicate OK [08:52:27]CreateOFDProtocolMessage done [08:52:27]OFDSenderStorePacket 76400 [08:52:27]StoreOFDPacket docnum=76400 [08:52:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 7F 5B 04 01 BD 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 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 14 00 00 00 F4 03 04 00 CE 30 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 70 2A 01 00 35 04 06 00 50 E4 AF CB 79 91 56 71 D6 B1 3B CD 92 93 [08:52:27]CheckFolder [08:52:27]dirname=/storage/ofd_packets [08:52:27]CheckFolder done [08:52:27]ProducePacketName [08:52:27]name=ofd_packets/00076400 [08:52:27]NVStorageSaveData ofd_packets/00076400 [08:52:27]File name is /storage/ofd_packets/00076400 [08:52:27]Write 298 bytes [08:52:27]NVStorageSaveData done [08:52:27]OFDSenderStorePacket done [08:52:27]KKMCreateOFDPacket done [08:52:27]NVStorageSaveData kkm_last_timestamp [08:52:27]File name is /storage/kkm_last_timestamp [08:52:27]Write 4 bytes [08:52:27]NVStorageSaveData done [08:52:27]ExternCall_PrintAddStr [08:52:27]wPrintStart [08:52:27]Write to MH i2c: 01 00 00 09 25 2E [08:52:27]Write i2c OK [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: 01 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: 01 07 00 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: 01 07 00 09 25 00 00 00 00 00 FF 0F 43 [08:52:27]RasterBufferAndPrint [08:52:27]line Счет N : (1)190846 [08:52:27]line ИНН: 02508201610067 [08:52:27]line Контрольно-Кассовый Чек [08:52:27]line ПРОДАЖА [08:52:27]line ТРК (МРК, ГНК) : 51 [08:52:27]line Товар: 2710194210 [08:52:27]line ДТ-К-5 [08:52:27]line 13.720 * 72.90 [08:52:27]line = 1000.19 [08:52:27]line НДС 12% НСП 1% [08:52:27]line > о реализуемом товаре [08:52:27]line ОКРУГЛЕНИЕ: -0.19 [08:52:27]line ИТОГО: 1000.00 [08:52:27]line Внесено: 1000.00 [08:52:27]line СДАЧА: 0.00 [08:52:27]line НСП 1% : 8.85 [08:52:27]line НДС 12% : 106.21 [08:52:27]line Наличными: 1000.00 [08:52:27]line Безнал.: 0.00 [08:52:27]line Место: АЗС № 106 "Партнер Нефть" [08:52:27]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:52:27]line СНО: Общий режим [08:52:27]line Чек 20 19.04.2024 08:52 [08:52:27]line Смена: 370 ФФД: 1.0 [08:52:27]line ЗНМ: 0300000141 [08:52:27]line РНМ: 0000000000091573 [08:52:27]line Версия ККМ: 001 [08:52:27]line ФМ: 0000000000874652 [08:52:27]line ФД: 76400 [08:52:27]line ФПД: 88943132113297 [08:52:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T085230&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76400&fm=88943132113297&tin=02508201610067®Number=0000000000091573&sum=100000 [08:52:28]OFD Sender: Processing packet 76400 [packets to send 128, broken 127] [08:52:28]ProducePacketName [08:52:28]name=ofd_packets/00076400 [08:52:28]OFD Sender: To server: pG, [08:52:28]CommunicateWithHost lk.salyk.kg:30040 [08:52:28]ConnectInit lk.salyk.kg [08:52:28]written 0, free lines is 4095 [08:52:28]Connected sock=10 [08: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 34 36 35 32 0C 01 00 00 7F 5B 04 01 BD 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 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 14 00 00 00 F4 03 04 00 CE 30 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 70 2A 01 00 35 04 06 00 50 E4 AF CB 79 91 56 71 D6 B1 3B CD 92 93 [08:52:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 88 65 47 00 5B 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 34 36 35 32 10 04 04 00 70 2A 01 00 F4 03 04 00 5A D8 21 66 B6 04 01 00 00 02 01 F9 10 E2 78 EF F1 [08:52:28]CommunicateWithHost err = 0 [08:52:28]CheckOFDResponse [08:52:28]1017 (14) - 77093643461234 [08:52:28]1041 (16) - 0000000000874652 [08:52:28]1040 (4) - 76400 [08:52:28]1012 (4) - 19.04.2024 02:35 [08:52:28]1206 (1) - 0 [08:52:28]OFD Sender: Remove packet 76400 [08:52:28]ProducePacketName [08:52:28]name=ofd_packets/00076400 [08:52:28]NVStorageDeleteData [08:52:28]Write to MH i2c: 01 00 00 33 25 58 [08:52:28]Write i2c OK [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: 01 [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: 01 07 00 [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: 01 07 00 33 25 00 00 00 00 00 F2 0C 5D [08:52:28]RasterBufferAndPrint [08:52:28]line [08:52:28]line [08:52:28]line [08:52:28]line [08:52:28]line [08:52:28]written 0, free lines is 3322 [08:52:28]MH_Cut [08:52:28]Write to MH i2c: D1 01 00 3A 25 01 31 [08:52:28]Write i2c OK [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: D1 [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: D1 01 00 [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: D1 01 00 3A 25 00 30 [08:52:28]Write to MH i2c: 01 00 00 3B 25 60 [08:52:28]Write i2c OK [08:52:28]MH_I2C_Read... [08:52:28]OFD Sender: No OFD packet to send [08:52:29]*** Cut start [08:52:29]*** Partial cut [08:52:29]*** CUTSNS_PIN = 1 [08:52:29]*** CUTSNS_PIN = 0 [08:52:29]*** Brake cut motor [08:52:29]Read from MH i2c: 01 [08:52:29]MH_I2C_Read... [08:52:29]*** Stop cut motor [08:52:29]*** Cut end [08:52:29]Read from MH i2c: 01 07 00 [08:52:29]MH_I2C_Read... [08:52:29]Read from MH i2c: 01 07 00 3B 25 00 00 00 00 00 FF 0F 75 [08:52:29]process_action close_receipt done [08:52:29]requested_data is exist [08:52:29]produce_requested_data [08:52:29]requested_item fm.sn is exist - process it [08:52:29]wFMCommunicate request_size=4 [08:52:29]MH_SAM_APDU [08:52:29]CAPDU: 80 11 00 00 [08:52:29]Write to MH i2c: E2 08 00 3C 25 80 11 00 00 00 00 00 00 DB [08:52:29]Write i2c OK [08:52:29]MH_I2C_Read... [08:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:30]Read from MH i2c: E2 [08:52:30]MH_I2C_Read... [08:52:30]Read from MH i2c: E2 17 00 [08:52:30]MH_I2C_Read... [08:52:30]Read from MH i2c: E2 17 00 3C 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2E [08:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:52:30]wFMCommunicate OK [08:52:30]requested_item fd.num is exist - process it [08:52:30]SAM_PROTO_GetFieldsCounters [08:52:30]wFMCommunicate request_size=4 [08:52:30]MH_SAM_APDU [08:52:30]CAPDU: 80 13 00 00 [08:52:30]Write to MH i2c: E2 08 00 3D 25 80 13 00 00 00 00 00 00 DE [08:52:30]Write i2c OK [08:52:30]MH_I2C_Read... [08:52:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:30]Read from MH i2c: E2 [08:52:30]MH_I2C_Read... [08:52:30]Read from MH i2c: E2 62 00 [08:52:30]MH_I2C_Read... [08:52:30]Read from MH i2c: E2 62 00 3D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 70 2A 01 00 0E 04 04 00 72 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:52: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 70 2A 01 00 0E 04 04 00 72 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:52:30]wFMCommunicate OK [08:52:30]SAM_PROTO_GetFieldsCounters done [08:52:30]requested_item shift.num is exist - process it [08:52:30]requested_item shift.opened is exist - process it [08:52:30]req_shift_opened [08:52:30]FM_GetShiftState [08:52:30]SAM_PROTO_GetShiftState [08:52:30]wFMCommunicate request_size=4 [08:52:30]MH_SAM_APDU [08:52:30]CAPDU: 80 13 01 00 [08:52:30]Write to MH i2c: E2 08 00 3E 25 80 13 01 00 00 00 00 00 E0 [08:52:30]Write i2c OK [08:52:30]MH_I2C_Read... [08:52:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:30]Read from MH i2c: E2 [08:52:30]MH_I2C_Read... [08:52:30]Read from MH i2c: E2 0E 00 [08:52:30]MH_I2C_Read... [08:52:30]Read from MH i2c: E2 0E 00 3E 25 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 C5 [08:52:30]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:52:30]wFMCommunicate OK [08:52:30]SAM_PROTO_GetShiftState done [08:52:30]FM_GetShiftState done [08:52:30]req_shift_opened done [08:52:30]requested_item shift.open_date is exist - process it [08:52:30]req_shift_open_date [08:52:30]req_shift_open_date done [08:52:30]produce_requested_data done [08:52:30]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76400,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [08:52:30]process_action_free close_receipt [08:52:30]json_value_free [08:52:30]json_value_free done [08:52:30]process_json_proto returns [08:52:30]Send response to host [08:52:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76400,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [08:52:30]free response buf [08:52:30]execute_script done [08:52:30]execute_script returns [08:52:30]free content buf [08:52:30]Sock 9.Close socket [08:52:30]Sock 9.Thread stoped [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53: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:08]accept exits with 7 [08:54:08]New connection [08:54:08]New thread 3066486116 created [08:54:08]Thread 3066629476 joined [08:54:08]Waiting for new connection... [08:54:08] Sock 7.Parse request [08:54:08]Sock 7.Check first char [08:54:08]Sock 7.First char is OK [08:54:08]request: POST /json_proto HTTP/1.0 [08:54:08]Method: POST [08:54:08]URL: /json_proto [08:54:08]Method is POST - this is cgi request [08:54:08]url: /json_proto [08:54:08]query_string will be loaded in cgi processing [08:54:08]execute_cgi json_proto POST (null) [08:54:08]execute_cgi path=json_proto method=POST [08:54:08]POST find Content-Length [08:54:08]Host: 172.17.62.5:8080 [08:54:08]Content-Length: 682 [08:54:08]Content-Type: application/json [08:54:08] [08:54:08]POST finish read [08:54:08]Found Content-Length = 682 [08:54:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 45.530, "sum" : 3319.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3645.00, "total" : 3319.00, "payments": [ { "type": 0, "sum" : 3319.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:08]execute_script... [08:54: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)190845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 45.530, "sum" : 3319.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3645.00, "total" : 3319.00, "payments": [ { "type": 0, "sum" : 3319.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:08]POST & json_proto [08:54:08]process_json_proto [08:54:08]json parsed OK: [08:54:08]protocol is kg_v1.0 [08:54:08]action value=close_receipt [08:54:08]process_action close_receipt [08:54:08]cmd_close_receipt [08:54:08]MH_GetDate [08:54:08]Write to MH i2c: F0 00 00 3F 25 53 [08:54:08]Write i2c OK [08:54:08]MH_I2C_Read... [08:54:08]Read from MH i2c: F0 [08:54:08]MH_I2C_Read... [08:54:08]Read from MH i2c: F0 09 00 [08:54:08]MH_I2C_Read... [08:54:08]Read from MH i2c: F0 09 00 3F 25 00 34 31 22 66 F4 E9 65 64 EF [08:54:08]GetLastDocTimeStamp 1713516750 [08:54:08]current date 1713516852 [08:54:08]FM_GetShiftState [08:54:08]SAM_PROTO_GetShiftState [08:54:08]wFMCommunicate request_size=4 [08:54:08]MH_SAM_APDU [08:54:08]CAPDU: 80 13 01 00 [08:54:08]Write to MH i2c: E2 08 00 40 25 80 13 01 00 00 00 00 00 E2 [08:54:08]Write i2c OK [08:54:08]MH_I2C_Read... [08:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:08]Read from MH i2c: E2 [08:54:08]MH_I2C_Read... [08:54:08]Read from MH i2c: E2 0E 00 [08:54:08]MH_I2C_Read... [08:54:08]Read from MH i2c: E2 0E 00 40 25 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 C7 [08:54:08]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:54:08]wFMCommunicate OK [08:54:08]SAM_PROTO_GetShiftState done [08:54:08]FM_GetShiftState done [08:54:08]opened in 1713486233 [08:54:08]opened+sec_in_day 1713572633 [08:54:08]quantity*price = 331913 [08:54:08]sum+1 = 331915 [08:54:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 3319.00 Внесено: 3645.00 СДАЧА: 326.00 НСП 1% : 29.37 НДС 12% : 352.47 Наличными: 3319.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 21 19.04.2024 08:54 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76401 ФПД: 186204178244301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T085412&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76401&fm=186204178244301&tin=02508201610067®Number=0000000000091573&sum=331900 [08:54:09]StoreToDocumentArchive [08:54:09]shift 370 fd 76401 [08:54:09]save to /storage/0370/doc_00076401 [08:54:09]save last doc name /storage/0370/doc_00076401 to /storage/kkm_last_doc_name [08:54:09]save OK [08:54:09]Clear old archive folders... [08:54:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:09]tlvbuf is B6E8BB10 [08:54:09]SAM_PROTO_ClearQueue [08:54:09]wFMCommunicate request_size=4 [08:54:09]MH_SAM_APDU [08:54:09]CAPDU: 80 09 00 00 [08:54:09]Write to MH i2c: E2 08 00 4D 25 80 09 00 00 00 00 00 00 E4 [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:09]Read from MH i2c: E2 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 4D 25 00 90 00 E6 [08:54:09]RAPDU: 90 00 [08:54:09]wFMCommunicate OK [08:54:09]SAM_PROTO_ClearQueue done [08:54:09]KKMCreateOFDPacket [08:54:09]OFDProtocolAddRootSTLVToBuf [08:54:09]FM_MakeSignedData [08:54:09]FM_MakeSignedData [08:54:09]SAM_PROTO_SignData [08:54:09]wFMCommunicate request_size=4 [08:54:09]MH_SAM_APDU [08:54:09]CAPDU: 80 0D 01 02 [08:54:09]Write to MH i2c: E2 08 00 4E 25 80 0D 01 02 00 00 00 00 EC [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:09]Read from MH i2c: E2 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 4E 25 00 90 00 E7 [08:54:09]RAPDU: 90 00 [08:54:09]wFMCommunicate OK [08:54:09]wFMCommunicate request_size=255 [08:54:09]MH_SAM_APDU [08:54:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DA B1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8A 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 89 00 00 00 00 07 04 06 00 7C 10 05 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 34 31 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 71 2A 01 00 35 04 06 00 A9 [08:54:09]Write to MH i2c: E2 02 01 4F 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 DA B1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8A 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 89 00 00 00 00 07 04 06 00 7C 10 05 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 34 31 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 71 2A 01 00 35 04 06 00 A9 00 00 52 [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:09]Read from MH i2c: E2 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 4F 25 00 90 00 E8 [08:54:09]RAPDU: 90 00 [08:54:09]wFMCommunicate OK [08:54:09]wFMCommunicate request_size=10 [08:54:09]MH_SAM_APDU [08:54:09]CAPDU: 80 0D 02 02 05 5A 09 E6 62 CD [08:54:09]Write to MH i2c: E2 0D 00 50 25 80 0D 02 02 05 00 5A 09 E6 62 CD 00 00 71 [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:09]Read from MH i2c: E2 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 50 25 00 90 00 E9 [08:54:09]RAPDU: 90 00 [08:54:09]wFMCommunicate OK [08:54:09]wFMCommunicate request_size=4 [08:54:09]MH_SAM_APDU [08:54:09]CAPDU: 80 0D 03 02 [08:54:09]Write to MH i2c: E2 08 00 51 25 80 0D 03 02 00 00 00 00 F1 [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:09]Read from MH i2c: E2 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 0B 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 0B 00 51 25 00 36 2B 20 BB 62 FD 65 AA 90 00 9C [08:54:09]RAPDU: 36 2B 20 BB 62 FD 65 AA 90 00 [08:54:09]wFMCommunicate OK [08:54:09]SAM_PROTO_SignData done [08:54:09]FM_MakeSignedData done [08:54:09]CreateOFDProtocolMessage [08:54:09]wFMCommunicate request_size=4 [08:54:09]MH_SAM_APDU [08:54:09]CAPDU: 80 11 00 00 [08:54:09]Write to MH i2c: E2 08 00 52 25 80 11 00 00 00 00 00 00 F1 [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:09]Read from MH i2c: E2 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 17 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 17 00 52 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 44 [08:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:54:09]wFMCommunicate OK [08:54:09]CreateOFDProtocolMessage done [08:54:09]OFDSenderStorePacket 76401 [08:54:09]StoreOFDPacket docnum=76401 [08:54:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E9 01 07 01 0C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DA B1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8A 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 89 00 00 00 00 07 04 06 00 7C 10 05 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 34 31 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 71 2A 01 00 35 04 06 00 A9 5A 09 E6 62 CD 36 2B 20 BB 62 FD 65 AA [08:54:09]CheckFolder [08:54:09]dirname=/storage/ofd_packets [08:54:09]CheckFolder done [08:54:09]ProducePacketName [08:54:09]name=ofd_packets/00076401 [08:54:09]NVStorageSaveData ofd_packets/00076401 [08:54:09]File name is /storage/ofd_packets/00076401 [08:54:09]Write 301 bytes [08:54:09]NVStorageSaveData done [08:54:09]OFDSenderStorePacket done [08:54:09]KKMCreateOFDPacket done [08:54:09]NVStorageSaveData kkm_last_timestamp [08:54:09]File name is /storage/kkm_last_timestamp [08:54:09]Write 4 bytes [08:54:09]NVStorageSaveData done [08:54:09]ExternCall_PrintAddStr [08:54:09]wPrintStart [08:54:09]Write to MH i2c: 01 00 00 53 25 78 [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: 01 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: 01 07 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: 01 07 00 53 25 00 00 00 00 00 FF 0F 8D [08:54:09]RasterBufferAndPrint [08:54:09]line Счет N : (1)190845 [08:54:09]line ИНН: 02508201610067 [08:54:09]line Контрольно-Кассовый Чек [08:54:09]line ПРОДАЖА [08:54:09]line ТРК (МРК, ГНК) : 21 [08:54:09]line Товар: 2710124500 [08:54:09]line Аи-95-К-5 [08:54:09]line 45.530 * 72.90 [08:54:09]line = 3319.14 [08:54:09]line НДС 12% НСП 1% [08:54:09]line > о реализуемом товаре [08:54:09]line ОКРУГЛЕНИЕ: -0.14 [08:54:09]line ИТОГО: 3319.00 [08:54:09]line Внесено: 3645.00 [08:54:09]line СДАЧА: 326.00 [08:54:09]line НСП 1% : 29.37 [08:54:09]line НДС 12% : 352.47 [08:54:09]line Наличными: 3319.00 [08:54:09]line Безнал.: 0.00 [08:54:09]line Место: АЗС № 106 "Партнер Нефть" [08:54:09]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:54:09]line СНО: Общий режим [08:54:09]line Чек 21 19.04.2024 08:54 [08:54:09]line Смена: 370 ФФД: 1.0 [08:54:09]line ЗНМ: 0300000141 [08:54:09]line РНМ: 0000000000091573 [08:54:09]line Версия ККМ: 001 [08:54:09]line ФМ: 0000000000874652 [08:54:09]line ФД: 76401 [08:54:09]line ФПД: 186204178244301 [08:54:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T085412&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76401&fm=186204178244301&tin=02508201610067®Number=0000000000091573&sum=331900 [08:54:10]OFD Sender: Processing packet 76401 [packets to send 128, broken 127] [08:54:10]ProducePacketName [08:54:10]name=ofd_packets/00076401 [08:54:10]OFD Sender: To server: pG, [08:54:10]CommunicateWithHost lk.salyk.kg:30040 [08:54:10]ConnectInit lk.salyk.kg [08:54:10]written 0, free lines is 4095 [08:54:10]Connected sock=10 [08:54:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E9 01 07 01 0C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DA B1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8A 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 89 00 00 00 00 07 04 06 00 7C 10 05 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 34 31 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 71 2A 01 00 35 04 06 00 A9 5A 09 E6 62 CD 36 2B 20 BB 62 FD 65 AA [08:54:10]Write to MH i2c: 01 00 00 7D 25 A2 [08:54:10]Write i2c OK [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: 01 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: 01 07 00 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: 01 07 00 7D 25 00 00 00 00 00 E0 0C 95 [08:54:10]RasterBufferAndPrint [08:54:10]line [08:54:10]line [08:54:10]line [08:54:10]line [08:54:10]line [08:54:10]written 0, free lines is 3302 [08:54:10]MH_Cut [08:54:10]Write to MH i2c: D1 01 00 84 25 01 7B [08:54:10]Write i2c OK [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: D1 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: D1 01 00 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: D1 01 00 84 25 00 7A [08:54:10]Write to MH i2c: 01 00 00 85 25 AA [08:54:10]Write i2c OK [08:54:10]MH_I2C_Read... [08:54:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 1F FB 47 00 35 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 71 2A 01 00 F4 03 04 00 C0 D8 21 66 B6 04 01 00 00 68 6D AA 72 81 3E 62 66 [08:54:10]CommunicateWithHost err = 0 [08:54:10]CheckOFDResponse [08:54:10]1017 (14) - 77093643461234 [08:54:10]1041 (16) - 0000000000874652 [08:54:10]1040 (4) - 76401 [08:54:10]1012 (4) - 19.04.2024 02:36 [08:54:10]1206 (1) - 0 [08:54:10]OFD Sender: Remove packet 76401 [08:54:10]ProducePacketName [08:54:10]name=ofd_packets/00076401 [08:54:10]NVStorageDeleteData [08:54:11]OFD Sender: No OFD packet to send [08:54:11]*** Cut start [08:54:11]*** Partial cut [08:54:11]*** CUTSNS_PIN = 1 [08:54:11]*** CUTSNS_PIN = 0 [08:54:11]*** Brake cut motor [08:54:12]Read from MH i2c: 01 [08:54:12]MH_I2C_Read... [08:54:12]*** Stop cut motor [08:54:12]Read from MH i2c: *** Cut end [08:54:12]01 07 00 [08:54:12]MH_I2C_Read... [08:54:12]Read from MH i2c: 01 07 00 85 25 00 00 00 00 00 FF 0F BF [08:54:12]process_action close_receipt done [08:54:12]requested_data is exist [08:54:12]produce_requested_data [08:54:12]requested_item fm.sn is exist - process it [08:54:12]wFMCommunicate request_size=4 [08:54:12]MH_SAM_APDU [08:54:12]CAPDU: 80 11 00 00 [08:54:12]Write to MH i2c: E2 08 00 86 25 80 11 00 00 00 00 00 00 25 [08:54:12]Write i2c OK [08:54:12]MH_I2C_Read... [08:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:12]Read from MH i2c: E2 [08:54:12]MH_I2C_Read... [08:54:12]Read from MH i2c: E2 17 00 [08:54:12]MH_I2C_Read... [08:54:12]Read from MH i2c: E2 17 00 86 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 78 [08:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:54:12]wFMCommunicate OK [08:54:12]requested_item fd.num is exist - process it [08:54:12]SAM_PROTO_GetFieldsCounters [08:54:12]wFMCommunicate request_size=4 [08:54:12]MH_SAM_APDU [08:54:12]CAPDU: 80 13 00 00 [08:54:12]Write to MH i2c: E2 08 00 87 25 80 13 00 00 00 00 00 00 28 [08:54:12]Write i2c OK [08:54:12]MH_I2C_Read... [08:54:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:12]Read from MH i2c: E2 [08:54:12]MH_I2C_Read... [08:54:12]Read from MH i2c: E2 62 00 [08:54:12]MH_I2C_Read... [08:54:12]Read from MH i2c: E2 62 00 87 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 71 2A 01 00 0E 04 04 00 72 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 97 [08:54: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 71 2A 01 00 0E 04 04 00 72 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:54:12]wFMCommunicate OK [08:54:12]SAM_PROTO_GetFieldsCounters done [08:54:12]requested_item shift.num is exist - process it [08:54:12]requested_item shift.opened is exist - process it [08:54:12]req_shift_opened [08:54:12]FM_GetShiftState [08:54:12]SAM_PROTO_GetShiftState [08:54:12]wFMCommunicate request_size=4 [08:54:12]MH_SAM_APDU [08:54:12]CAPDU: 80 13 01 00 [08:54:12]Write to MH i2c: E2 08 00 88 25 80 13 01 00 00 00 00 00 2A [08:54:12]Write i2c OK [08:54:12]MH_I2C_Read... [08:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:12]Read from MH i2c: E2 [08:54:12]MH_I2C_Read... [08:54:12]Read from MH i2c: E2 0E 00 [08:54:12]MH_I2C_Read... [08:54:12]Read from MH i2c: E2 0E 00 88 25 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 0F [08:54:12]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:54:12]wFMCommunicate OK [08:54:12]SAM_PROTO_GetShiftState done [08:54:12]FM_GetShiftState done [08:54:12]req_shift_opened done [08:54:12]requested_item shift.open_date is exist - process it [08:54:12]req_shift_open_date [08:54:12]req_shift_open_date done [08:54:12]produce_requested_data done [08:54:12]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76401,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [08:54:12]process_action_free close_receipt [08:54:12]json_value_free [08:54:12]json_value_free done [08:54:12]process_json_proto returns [08:54:12]Send response to host [08:54:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76401,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [08:54:12]free response buf [08:54:12]execute_script done [08:54:12]execute_script returns [08:54:12]free content buf [08:54:12]Sock 7.Close socket [08:54:12]Sock 7.Thread stoped [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:35]accept exits with 9 [08:56:35]New connection [08:56:35]New thread 3066629476 created [08:56:35]Thread 3066486116 joined [08:56:35]Waiting for new connection... [08:56:35] Sock 9.Parse request [08:56:35]Sock 9.Check first char [08:56:35]Sock 9.First char is OK [08:56:35]request: POST /json_proto HTTP/1.0 [08:56:35]Method: POST [08:56:35]URL: /json_proto [08:56:35]Method is POST - this is cgi request [08:56:35]url: /json_proto [08:56:35]query_string will be loaded in cgi processing [08:56:35]execute_cgi json_proto POST (null) [08:56:35]execute_cgi path=json_proto method=POST [08:56:35]POST find Content-Length [08:56:35]Host: 172.17.62.5:8080 [08:56:35]Content-Length: 1169 [08:56:35]Content-Type: application/json [08:56:35] [08:56:35]POST finish read [08:56:35]Found Content-Length = 1169 [08:56:35]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190848\u000A19.04.2024 08:38\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 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:35]execute_script... [08:56:35]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190848\u000A19.04.2024 08:38\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 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:35]POST & json_proto [08:56:35]process_json_proto [08:56:35]json parsed OK: [08:56:35]protocol is kg_v1.0 [08:56:35]action value=print_text [08:56:35]process_action print_text [08:56:35]cmd_print_text [08:56:35]ExternCall_PrintAddStr [08:56:35]wPrintStart [08:56:35]Write to MH i2c: 01 00 00 89 25 AE [08:56:35]Write i2c OK [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: 01 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: 01 07 00 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: 01 07 00 89 25 00 00 00 00 00 FF 0F C3 [08:56:35]RasterBufferAndPrint [08:56:35]line *****ТОВАРНЫЙ ЧЕК***** [08:56:35]line АЗС 106 [08:56:35]line Партнер нефть [08:56:35]line 02508201610067 [08:56:35]line Кассир : Табалдиева М. [08:56:35]line Счет N : (1)190848 [08:56:35]line 19.04.2024 08:38 [08:56:35]line ПРОДАЖА [08:56:35]line ТРК (МРК, ГНК): 12 [08:56:35]line Вид ГСМ : 2710124130 [08:56:35]line Аи-92-К-5 [08:56:35]line 20.000 x 64.40 [08:56:35]line ИТОГ: 1288.00 [08:56:35]line Тип оплаты: Талоны: ТК ГПНА Online [08:56:35]line 30102984 [08:56:35]line ______________________ [08:56:35]line (подпись) [08:56:35]written 0, free lines is 4095 [08:56:35]Write to MH i2c: 01 00 00 9D 25 C2 [08:56:35]Write i2c OK [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: 01 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: 01 07 00 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: 01 07 00 9D 25 00 00 00 00 00 11 0E E8 [08:56:35]RasterBufferAndPrint [08:56:35]line [08:56:35]line [08:56:35]line [08:56:35]line [08:56:35]line [08:56:35]written 0, free lines is 3602 [08:56:36]MH_Cut [08:56:36]Write to MH i2c: D1 01 00 A4 25 01 9B [08:56:36]Write i2c OK [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: D1 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: D1 01 00 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: D1 01 00 A4 25 00 9A [08:56:36]Write to MH i2c: 01 00 00 A5 25 CA [08:56:36]Write i2c OK [08:56:36]MH_I2C_Read... [08:56:36]OFD Sender: No OFD packet to send [08:56:36]*** Cut start [08:56:36]*** Partial cut [08:56:36]*** CUTSNS_PIN = 1 [08:56:36]*** CUTSNS_PIN = 0 [08:56:36]*** Brake cut motor [08:56:37]Read from MH i2c: 01 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: 01 07 00 [08:56:37]MH_I2C_Read... [08:56:37]*** Stop cut motor [08:56:37]*** Cut end [08:56:37]Read from MH i2c: 01 07 00 A5 25 00 00 00 00 00 FF 0F DF [08:56:37]process_action print_text done [08:56:37]requested_data is exist [08:56:37]produce_requested_data [08:56:37]requested_item fm.sn is exist - process it [08:56:37]wFMCommunicate request_size=4 [08:56:37]MH_SAM_APDU [08:56:37]CAPDU: 80 11 00 00 [08:56:37]Write to MH i2c: E2 08 00 A6 25 80 11 00 00 00 00 00 00 45 [08:56:37]Write i2c OK [08:56:37]MH_I2C_Read... [08:56:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:37]Read from MH i2c: E2 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: E2 17 00 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: E2 17 00 A6 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 98 [08:56:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:56:37]wFMCommunicate OK [08:56:37]requested_item fd.num is exist - process it [08:56:37]SAM_PROTO_GetFieldsCounters [08:56:37]wFMCommunicate request_size=4 [08:56:37]MH_SAM_APDU [08:56:37]CAPDU: 80 13 00 00 [08:56:37]Write to MH i2c: E2 08 00 A7 25 80 13 00 00 00 00 00 00 48 [08:56:37]Write i2c OK [08:56:37]MH_I2C_Read... [08:56:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:37]Read from MH i2c: E2 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: E2 62 00 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: E2 62 00 A7 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 71 2A 01 00 0E 04 04 00 72 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 B7 [08:56:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 71 2A 01 00 0E 04 04 00 72 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:56:37]wFMCommunicate OK [08:56:37]SAM_PROTO_GetFieldsCounters done [08:56:37]requested_item shift.num is exist - process it [08:56:37]requested_item shift.opened is exist - process it [08:56:37]req_shift_opened [08:56:37]FM_GetShiftState [08:56:37]SAM_PROTO_GetShiftState [08:56:37]wFMCommunicate request_size=4 [08:56:37]MH_SAM_APDU [08:56:37]CAPDU: 80 13 01 00 [08:56:37]Write to MH i2c: E2 08 00 A8 25 80 13 01 00 00 00 00 00 4A [08:56:37]Write i2c OK [08:56:37]MH_I2C_Read... [08:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:37]Read from MH i2c: E2 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: E2 0E 00 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: E2 0E 00 A8 25 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 2F [08:56:37]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [08:56:37]wFMCommunicate OK [08:56:37]SAM_PROTO_GetShiftState done [08:56:37]FM_GetShiftState done [08:56:37]req_shift_opened done [08:56:37]requested_item shift.open_date is exist - process it [08:56:37]req_shift_open_date [08:56:37]req_shift_open_date done [08:56:37]produce_requested_data done [08:56:37]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76401,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [08:56:37]process_action_free print_text [08:56:37]json_value_free [08:56:37]json_value_free done [08:56:37]process_json_proto returns [08:56:37]Send response to host [08:56:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76401,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [08:56:37]free response buf [08:56:37]execute_script done [08:56:37]execute_script returns [08:56:37]free content buf [08:56:37]Sock 9.Close socket [08:56:37]Sock 9.Thread stoped [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:04]int [09:03:04]Write to MH i2c: 01 00 00 A9 25 CE [09:03:04]*** FLAG_PRN_PAP1 set [09:03:04]Write i2c OK [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: 01 [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: 01 07 00 [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: 01 07 00 A9 25 00 01 00 00 00 FF 0F E4 [09:03:04]state=0 [09:03:04]No paper [09:03:04]int [09:03:04]Write to MH i2c: 01 00 00 AA 25 CF [09:03:04]*** FLAG_PRN_PAP2 set [09:03:04]Write i2c OK [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: 01 [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: 01 07 00 [09:03:04]MH_I2C_Read... [09:03:04]Read from MH i2c: 01 07 00 AA 25 00 03 00 00 00 FF 0F E7 [09:03:04]state=0 [09:03:04]No paper [09:03:04]Cover opened [09:03:06]int [09:03:06]Write to MH i2c: 01 00 00 AB 25 D0 [09:03:06]*** FLAG_PRN_PAP2 reset [09:03:06]Write i2c OK [09:03:06]MH_I2C_Read... [09:03:06]Read from MH i2c: 01 [09:03:06]MH_I2C_Read... [09:03:06]Read from MH i2c: 01 07 00 [09:03:06]MH_I2C_Read... [09:03:06]Read from MH i2c: 01 07 00 AB 25 00 01 00 00 00 FF 0F E6 [09:03:06]state=3 [09:03:06]No paper [09:03:06]Cover closed [09:03:06]int [09:03:06]Write to MH i2c: 01 00 00 AC 25 D1 [09:03:06]*** FLAG_PRN_PAP2 set [09:03:06]Write i2c OK [09:03:06]MH_I2C_Read... [09:03:06]Read from MH i2c: 01 [09:03:06]MH_I2C_Read... [09:03:06]Read from MH i2c: 01 07 00 [09:03:06]MH_I2C_Read... [09:03:06]Read from MH i2c: 01 07 00 AC 25 00 03 00 00 00 FF 0F E9 [09:03:06]state=0 [09:03:06]No paper [09:03:06]Cover opened [09:03:06]OFD Sender: No OFD packet to send [09:03:11]Write to MH i2c: 01 00 00 AD 25 D2 [09:03:11]Write i2c OK [09:03:11]MH_I2C_Read... [09:03:11]Read from MH i2c: 01 [09:03:11]MH_I2C_Read... [09:03:11]Read from MH i2c: 01 07 00 [09:03:11]MH_I2C_Read... [09:03:11]Read from MH i2c: 01 07 00 AD 25 00 03 00 00 00 FF 0F EA [09:03:11]state=3 [09:03:11]No paper [09:03:11]Cover opened [09:03:11]OFD Sender: No OFD packet to send [09:03:16]Write to MH i2c: 01 00 00 AE 25 D3 [09:03:16]Write i2c OK [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: 01 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: 01 07 00 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: 01 07 00 AE 25 00 03 00 00 00 FF 0F EB [09:03:16]state=3 [09:03:16]No paper [09:03:16]Cover opened [09:03:16]int [09:03:16]Write to MH i2c: 01 00 00 AF 25 D4 [09:03:16]*** FLAG_PRN_PAP1 reset [09:03:16]*** FLAG_PRN_PAP2 reset [09:03:16]Write i2c OK [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: 01 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: 01 07 00 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: 01 07 00 AF 25 00 00 00 00 00 FF 0F E9 [09:03:16]state=3 [09:03:16]Cover closed [09:03:16]int [09:03:16]Write to MH i2c: 01 00 00 B0 25 D5 [09:03:16]Write i2c OK [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: 01 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: 01 07 00 [09:03:16]MH_I2C_Read... [09:03:16]*** FLAG_PRN_PAP1 set [09:03:16]*** FLAG_PRN_PAP1 reset [09:03:16]Read from MH i2c: 01 07 00 B0 25 00 00 00 00 00 FF 0F EA [09:03:16]state=0 [09:03:16]int [09:03:16]Write to MH i2c: 01 00 00 B1 25 D6 [09:03:16]Write i2c OK [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: 01 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: 01 07 00 [09:03:16]MH_I2C_Read... [09:03:16]*** FLAG_PRN_PAP1 set [09:03:16]*** FLAG_PRN_PAP1 reset [09:03:16]Read from MH i2c: 01 07 00 B1 25 00 00 00 00 00 FF 0F EB [09:03:16]state=0 [09:03:16]OFD Sender: No OFD packet to send [09:03:17]int [09:03:17]Write to MH i2c: 01 00 00 B2 25 D7 [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 07 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 07 00 B2 25 00 00 00 00 00 FF 0F EC [09:03:17]state=0 [09:03:17]int [09:03:17]Write to MH i2c: 01 00 00 B3 25 D8 [09:03:17]*** FLAG_PRN_KEY set [09:03:17]*** FLAG_PRN_KEY reset [09:03:17]*** FLAG_PRN_KEY set [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 07 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 07 00 B3 25 00 08 00 00 00 FF 0F F5 [09:03:17]state=0 [09:03:17]Key pressed [09:03:17]Feed [09:03:17]Write to MH i2c: D8 00 00 B4 25 B0 [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: D8 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: D8 01 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: D8 01 00 B4 25 00 B1 [09:03:17]int [09:03:17]Write to MH i2c: 01 00 00 B5 25 DA [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 07 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 07 00 B5 25 00 48 00 00 00 3C 00 65 [09:03:17]state=2 [09:03:17]Key pressed [09:03:17]int [09:03:17]Write to MH i2c: 01 00 00 B6 25 DB [09:03:17]*** FLAG_PRN_PAP1 set [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 [09:03:17]MH_I2C_Read... [09:03:17]*** FLAG_PRN_PAP1 reset [09:03:17]Read from MH i2c: 01 07 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 07 00 B6 25 00 48 00 00 00 3C 00 66 [09:03:17]state=2 [09:03:17]Key pressed [09:03:18]int [09:03:18]Write to MH i2c: 01 00 00 B7 25 DC [09:03:18]*** FLAG_PRN_KEY reset [09:03:18]Write i2c OK [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: 01 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: 01 07 00 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: 01 07 00 B7 25 00 00 00 00 00 F6 0F E8 [09:03:18]state=2 [09:03:18]Stop feed [09:03:20]int [09:03:20]Write to MH i2c: 01 00 00 B8 25 DD [09:03:20]*** FLAG_PRN_KEY set [09:03:20]Write i2c OK [09:03:20]MH_I2C_Read... [09:03:20]Read from MH i2c: 01 [09:03:20]MH_I2C_Read... [09:03:20]Read from MH i2c: 01 07 00 [09:03:20]MH_I2C_Read... [09:03:20]Read from MH i2c: 01 07 00 B8 25 00 08 00 00 00 FF 0F FA [09:03:20]state=0 [09:03:20]Key pressed [09:03:20]Feed [09:03:20]Write to MH i2c: D8 00 00 B9 25 B5 [09:03:20]Write i2c OK [09:03:20]MH_I2C_Read... [09:03:20]Read from MH i2c: D8 [09:03:20]MH_I2C_Read... [09:03:20]Read from MH i2c: D8 01 00 [09:03:20]MH_I2C_Read... [09:03:20]Read from MH i2c: D8 01 00 B9 25 00 B6 [09:03:20]int [09:03:20]Write to MH i2c: 01 00 00 BA 25 DF [09:03:20]Write i2c OK [09:03:20]MH_I2C_Read... [09:03:20]Read from MH i2c: 01 [09:03:20]MH_I2C_Read... [09:03:20]Read from MH i2c: 01 07 00 [09:03:20]MH_I2C_Read... [09:03:20]Read from MH i2c: 01 07 00 BA 25 00 48 00 00 00 3C 00 6A [09:03:20]state=2 [09:03:20]Key pressed [09:03:20]int [09:03:20]Write to MH i2c: 01 00 00 BB 25 E0 [09:03:20]*** FLAG_PRN_KEY reset [09:03:20]Write i2c OK [09:03:20]MH_I2C_Read... [09:03:20]Read from MH i2c: 01 [09:03:20]MH_I2C_Read... [09:03:20]Read from MH i2c: 01 07 00 [09:03:20]MH_I2C_Read... [09:03:20]Read from MH i2c: 01 07 00 BB 25 00 00 00 00 00 F6 0F EC [09:03:20]state=2 [09:03:20]Stop feed [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:47]OFD Sender: No OFD packet to send [09:04:52]OFD Sender: No OFD packet to send [09:04:57]OFD Sender: No OFD packet to send [09:05:02]OFD Sender: No OFD packet to send [09:05:07]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:30]accept exits with 7 [09:05:30]New connection [09:05:30]New thread 3066486116 created [09:05:30]Thread 3066629476 joined [09:05:30]Waiting for new connection... [09:05:30] Sock 7.Parse request [09:05:30]Sock 7.Check first char [09:05:30]Sock 7.First char is OK [09:05:30]request: POST /json_proto HTTP/1.0 [09:05:30]Method: POST [09:05:30]URL: /json_proto [09:05:30]Method is POST - this is cgi request [09:05:30]url: /json_proto [09:05:30]query_string will be loaded in cgi processing [09:05:30]execute_cgi json_proto POST (null) [09:05:30]execute_cgi path=json_proto method=POST [09:05:30]POST find Content-Length [09:05:30]Host: 172.17.62.5:8080 [09:05:30]Content-Length: 1168 [09:05:30]Content-Type: application/json [09:05:30] [09:05:30]POST finish read [09:05:30]Found Content-Length = 1168 [09:05:30]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190849\u000A19.04.2024 08:47\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 64.40\u000A\u0418\u0422\u041E\u0413: 644.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102901\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:30]execute_script... [09:05:30]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190849\u000A19.04.2024 08:47\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 64.40\u000A\u0418\u0422\u041E\u0413: 644.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102901\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:30]POST & json_proto [09:05:30]process_json_proto [09:05:30]json parsed OK: [09:05:30]protocol is kg_v1.0 [09:05:30]action value=print_text [09:05:30]process_action print_text [09:05:30]cmd_print_text [09:05:30]ExternCall_PrintAddStr [09:05:30]wPrintStart [09:05:30]Write to MH i2c: 01 00 00 BC 25 E1 [09:05:30]Write i2c OK [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: 01 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: 01 07 00 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: 01 07 00 BC 25 00 00 00 00 00 FF 0F F6 [09:05:30]RasterBufferAndPrint [09:05:30]line *****ТОВАРНЫЙ ЧЕК***** [09:05:30]line АЗС 106 [09:05:30]line Партнер нефть [09:05:30]line 02508201610067 [09:05:30]line Кассир : Табалдиева М. [09:05:30]line Счет N : (1)190849 [09:05:30]line 19.04.2024 08:47 [09:05:30]line ПРОДАЖА [09:05:30]line ТРК (МРК, ГНК): 12 [09:05:30]line Вид ГСМ : 2710124130 [09:05:30]line Аи-92-К-5 [09:05:30]line 10.000 x 64.40 [09:05:30]line ИТОГ: 644.00 [09:05:30]line Тип оплаты: Талоны: ТК ГПНА Online [09:05:30]line 30102901 [09:05:30]line ______________________ [09:05:30]line (подпись) [09:05:30]written 0, free lines is 4095 [09:05:30]Write to MH i2c: 01 00 00 D0 25 F5 [09:05:30]Write i2c OK [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: 01 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: 01 07 00 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: 01 07 00 D0 25 00 00 00 00 00 12 0E 1C [09:05:30]RasterBufferAndPrint [09:05:30]line [09:05:30]line [09:05:30]line [09:05:30]line [09:05:30]line [09:05:30]written 0, free lines is 3603 [09:05:30]MH_Cut [09:05:30]Write to MH i2c: D1 01 00 D7 25 01 CE [09:05:30]Write i2c OK [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: D1 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: D1 01 00 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: D1 01 00 D7 25 00 CD [09:05:30]Write to MH i2c: 01 00 00 D8 25 FD [09:05:30]Write i2c OK [09:05:30]MH_I2C_Read... [09:05:30]*** Cut start [09:05:30]*** Partial cut [09:05:30]*** CUTSNS_PIN = 1 [09:05:30]*** CUTSNS_PIN = 0 [09:05:31]*** Brake cut motor [09:05:31]Read from MH i2c: 01 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: 01 07 00 [09:05:31]MH_I2C_Read... [09:05:31]*** Stop cut motor [09:05:31]*** Cut end [09:05:31]Read from MH i2c: 01 07 00 D8 25 00 00 00 00 00 FF 0F 12 [09:05:31]process_action print_text done [09:05:31]requested_data is exist [09:05:31]produce_requested_data [09:05:31]requested_item fm.sn is exist - process it [09:05:31]wFMCommunicate request_size=4 [09:05:31]MH_SAM_APDU [09:05:31]CAPDU: 80 11 00 00 [09:05:31]Write to MH i2c: E2 08 00 D9 25 80 11 00 00 00 00 00 00 78 [09:05:31]Write i2c OK [09:05:31]MH_I2C_Read... [09:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:31]Read from MH i2c: E2 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: E2 17 00 [09:05:31]MH_I2C_Read... [09:05:31]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 34 36 35 32 90 00 CB [09:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:05:31]wFMCommunicate OK [09:05:31]requested_item fd.num is exist - process it [09:05:31]SAM_PROTO_GetFieldsCounters [09:05:31]wFMCommunicate request_size=4 [09:05:31]MH_SAM_APDU [09:05:31]CAPDU: 80 13 00 00 [09:05:31]Write to MH i2c: E2 08 00 DA 25 80 13 00 00 00 00 00 00 7B [09:05:31]Write i2c OK [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: E2 [09:05:31]MH_I2C_Read... [09:05:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:31]Read from MH i2c: E2 62 00 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: E2 62 00 DA 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 71 2A 01 00 0E 04 04 00 72 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 EA [09:05: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 71 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:31]wFMCommunicate OK [09:05:31]SAM_PROTO_GetFieldsCounters done [09:05:31]requested_item shift.num is exist - process it [09:05:31]requested_item shift.opened is exist - process it [09:05:31]req_shift_opened [09:05:31]FM_GetShiftState [09:05:31]SAM_PROTO_GetShiftState [09:05:31]wFMCommunicate request_size=4 [09:05:31]MH_SAM_APDU [09:05:31]CAPDU: 80 13 01 00 [09:05:31]Write to MH i2c: E2 08 00 DB 25 80 13 01 00 00 00 00 00 7D [09:05:31]Write i2c OK [09:05:31]MH_I2C_Read... [09:05:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:31]Read from MH i2c: E2 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: E2 0E 00 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: E2 0E 00 DB 25 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 62 [09:05:31]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:05:31]wFMCommunicate OK [09:05:31]SAM_PROTO_GetShiftState done [09:05:31]FM_GetShiftState done [09:05:31]req_shift_opened done [09:05:31]requested_item shift.open_date is exist - process it [09:05:31]req_shift_open_date [09:05:31]req_shift_open_date done [09:05:31]produce_requested_data done [09:05:31]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76401,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [09:05:31]process_action_free print_text [09:05:31]json_value_free [09:05:31]json_value_free done [09:05:31]process_json_proto returns [09:05:31]Send response to host [09:05:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76401,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [09:05:31]free response buf [09:05:31]execute_script done [09:05:31]execute_script returns [09:05:31]free content buf [09:05:31]Sock 7.Close socket [09:05:31]Sock 7.Thread stoped [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:12]OFD Sender: No OFD packet to send [09:16:15]accept exits with 9 [09:16:15]New connection [09:16:15]New thread 3066629476 created [09:16:15]Thread 3066486116 joined [09:16:15]Waiting for new connection... [09:16:15] Sock 9.Parse request [09:16:15]Sock 9.Check first char [09:16:15]Sock 9.First char is OK [09:16:15]request: POST /json_proto HTTP/1.0 [09:16:15]Method: POST [09:16:15]URL: /json_proto [09:16:15]Method is POST - this is cgi request [09:16:15]url: /json_proto [09:16:15]query_string will be loaded in cgi processing [09:16:15]execute_cgi json_proto POST (null) [09:16:15]execute_cgi path=json_proto method=POST [09:16:15]POST find Content-Length [09:16:15]Host: 172.17.62.5:8080 [09:16:15]Content-Length: 1166 [09:16:15]Content-Type: application/json [09:16:15] [09:16:15]POST finish read [09:16:15]Found Content-Length = 1166 [09:16:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190850\u000A19.04.2024 08:57\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\u000A30103446\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:15]execute_script... [09:16:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190850\u000A19.04.2024 08:57\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\u000A30103446\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:15]POST & json_proto [09:16:15]process_json_proto [09:16:15]json parsed OK: [09:16:15]protocol is kg_v1.0 [09:16:15]action value=print_text [09:16:15]process_action print_text [09:16:15]cmd_print_text [09:16:15]ExternCall_PrintAddStr [09:16:15]wPrintStart [09:16:15]Write to MH i2c: 01 00 00 DC 25 01 [09:16:15]Write i2c OK [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: 01 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: 01 07 00 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: 01 07 00 DC 25 00 00 00 00 00 FF 0F 16 [09:16:15]RasterBufferAndPrint [09:16:15]line *****ТОВАРНЫЙ ЧЕК***** [09:16:15]line АЗС 106 [09:16:15]line Партнер нефть [09:16:15]line 02508201610067 [09:16:15]line Кассир : Табалдиева М. [09:16:15]line Счет N : (1)190850 [09:16:15]line 19.04.2024 08:57 [09:16:15]line ПРОДАЖА [09:16:15]line ТРК (МРК, ГНК): 51 [09:16:15]line Вид ГСМ : 2710194210 [09:16:15]line ДТ-К-5 [09:16:15]line 20.000 x 72.90 [09:16:15]line ИТОГ: 1458.00 [09:16:15]line Тип оплаты: Талоны: ТК ГПНА Online [09:16:15]line 30103446 [09:16:15]line ______________________ [09:16:15]line (подпись) [09:16:15]written 0, free lines is 4095 [09:16:16]Write to MH i2c: 01 00 00 F0 25 15 [09:16:16]Write i2c OK [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: 01 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: 01 07 00 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: 01 07 00 F0 25 00 00 00 00 00 10 0E 3A [09:16:16]RasterBufferAndPrint [09:16:16]line [09:16:16]line [09:16:16]line [09:16:16]line [09:16:16]line [09:16:16]written 0, free lines is 3601 [09:16:16]MH_Cut [09:16:16]Write to MH i2c: D1 01 00 F7 25 01 EE [09:16:16]Write i2c OK [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: D1 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: D1 01 00 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: D1 01 00 F7 25 00 ED [09:16:16]Write to MH i2c: 01 00 00 F8 25 1D [09:16:16]Write i2c OK [09:16:16]MH_I2C_Read... [09:16:16]*** Cut start [09:16:16]*** Partial cut [09:16:16]*** CUTSNS_PIN = 1 [09:16:16]*** CUTSNS_PIN = 0 [09:16:16]*** Brake cut motor [09:16:17]Read from MH i2c: 01 [09:16:17]MH_I2C_Read... [09:16:17]*** Stop cut motor [09:16:17]*** Cut end [09:16:17]Read from MH i2c: 01 07 00 [09:16:17]MH_I2C_Read... [09:16:17]Read from MH i2c: 01 07 00 F8 25 00 00 00 00 00 FF 0F 32 [09:16:17]process_action print_text done [09:16:17]requested_data is exist [09:16:17]produce_requested_data [09:16:17]requested_item fm.sn is exist - process it [09:16:17]wFMCommunicate request_size=4 [09:16:17]MH_SAM_APDU [09:16:17]CAPDU: 80 11 00 00 [09:16:17]Write to MH i2c: E2 08 00 F9 25 80 11 00 00 00 00 00 00 98 [09:16:17]Write i2c OK [09:16:17]MH_I2C_Read... [09:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:17]Read from MH i2c: E2 [09:16:17]MH_I2C_Read... [09:16:17]Read from MH i2c: E2 17 00 [09:16:17]MH_I2C_Read... [09:16:17]Read from MH i2c: E2 17 00 F9 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EB [09:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:16:17]wFMCommunicate OK [09:16:17]requested_item fd.num is exist - process it [09:16:17]SAM_PROTO_GetFieldsCounters [09:16:17]wFMCommunicate request_size=4 [09:16:17]MH_SAM_APDU [09:16:17]CAPDU: 80 13 00 00 [09:16:17]Write to MH i2c: E2 08 00 FA 25 80 13 00 00 00 00 00 00 9B [09:16:17]Write i2c OK [09:16:17]MH_I2C_Read... [09:16:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:17]Read from MH i2c: E2 [09:16:17]MH_I2C_Read... [09:16:17]Read from MH i2c: E2 62 00 [09:16:17]MH_I2C_Read... [09:16:17]Read from MH i2c: E2 62 00 FA 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 71 2A 01 00 0E 04 04 00 72 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 0A [09:16:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 71 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:17]wFMCommunicate OK [09:16:17]SAM_PROTO_GetFieldsCounters done [09:16:17]requested_item shift.num is exist - process it [09:16:17]requested_item shift.opened is exist - process it [09:16:17]req_shift_opened [09:16:17]FM_GetShiftState [09:16:17]SAM_PROTO_GetShiftState [09:16:17]wFMCommunicate request_size=4 [09:16:17]MH_SAM_APDU [09:16:17]CAPDU: 80 13 01 00 [09:16:17]Write to MH i2c: E2 08 00 FB 25 80 13 01 00 00 00 00 00 9D [09:16:17]Write i2c OK [09:16:17]MH_I2C_Read... [09:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:17]Read from MH i2c: E2 [09:16:17]MH_I2C_Read... [09:16:17]Read from MH i2c: E2 0E 00 [09:16:17]MH_I2C_Read... [09:16:17]Read from MH i2c: E2 0E 00 FB 25 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 82 [09:16:17]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:16:17]wFMCommunicate OK [09:16:17]SAM_PROTO_GetShiftState done [09:16:17]FM_GetShiftState done [09:16:17]req_shift_opened done [09:16:17]requested_item shift.open_date is exist - process it [09:16:17]req_shift_open_date [09:16:17]req_shift_open_date done [09:16:17]produce_requested_data done [09:16:17]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76401,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [09:16:17]process_action_free print_text [09:16:17]json_value_free [09:16:17]json_value_free done [09:16:17]process_json_proto returns [09:16:17]Send response to host [09:16:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76401,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [09:16:17]free response buf [09:16:17]execute_script done [09:16:17]execute_script returns [09:16:17]free content buf [09:16:17]Sock 9.Close socket [09:16:17]Sock 9.Thread stoped [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:46]accept exits with 7 [09:16:46]New connection [09:16:46]New thread 3066486116 created [09:16:46]Thread 3066629476 joined [09:16:46]Waiting for new connection... [09:16:46] Sock 7.Parse request [09:16:46]Sock 7.Check first char [09:16:46]Sock 7.First char is OK [09:16:46]request: POST /json_proto HTTP/1.0 [09:16:46]Method: POST [09:16:46]URL: /json_proto [09:16:46]Method is POST - this is cgi request [09:16:46]url: /json_proto [09:16:46]query_string will be loaded in cgi processing [09:16:46]execute_cgi json_proto POST (null) [09:16:46]execute_cgi path=json_proto method=POST [09:16:46]POST find Content-Length [09:16:46]Host: 172.17.62.5:8080 [09:16:46]Content-Length: 682 [09:16:46]Content-Type: application/json [09:16:46] [09:16:46]POST finish read [09:16:46]Found Content-Length = 682 [09:16:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190851", "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" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:46]execute_script... [09: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)190851", "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" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:46]POST & json_proto [09:16:46]process_json_proto [09:16:46]json parsed OK: [09:16:46]protocol is kg_v1.0 [09:16:46]action value=close_receipt [09:16:46]process_action close_receipt [09:16:46]cmd_close_receipt [09:16:46]MH_GetDate [09:16:46]Write to MH i2c: F0 00 00 FC 25 10 [09:16:46]Write i2c OK [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: F0 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: F0 09 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: F0 09 00 FC 25 00 82 36 22 66 F4 E9 65 64 FF [09:16:46]GetLastDocTimeStamp 1713516852 [09:16:46]current date 1713518210 [09:16:46]FM_GetShiftState [09:16:46]SAM_PROTO_GetShiftState [09:16:46]wFMCommunicate request_size=4 [09:16:46]MH_SAM_APDU [09:16:46]CAPDU: 80 13 01 00 [09:16:46]Write to MH i2c: E2 08 00 FD 25 80 13 01 00 00 00 00 00 9F [09:16:46]Write i2c OK [09:16:46]MH_I2C_Read... [09:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:46]Read from MH i2c: E2 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 0E 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 0E 00 FD 25 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 84 [09:16:46]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:16:46]wFMCommunicate OK [09:16:46]SAM_PROTO_GetShiftState done [09:16:46]FM_GetShiftState done [09:16:46]opened in 1713486233 [09:16:46]opened+sec_in_day 1713572633 [09:16:46]quantity*price = 100013 [09:16:46]sum+1 = 100014 [09:16:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 22 19.04.2024 09:16 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76402 ФПД: 266851179288397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T091650&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76402&fm=266851179288397&tin=02508201610067®Number=0000000000091573&sum=100000 [09:16:47]StoreToDocumentArchive [09:16:47]shift 370 fd 76402 [09:16:47]save to /storage/0370/doc_00076402 [09:16:47]save last doc name /storage/0370/doc_00076402 to /storage/kkm_last_doc_name [09:16:47]save OK [09:16:47]Clear old archive folders... [09:16:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:16:47]tlvbuf is 009552A0 [09:16:47]SAM_PROTO_ClearQueue [09:16:47]wFMCommunicate request_size=4 [09:16:47]MH_SAM_APDU [09:16:47]CAPDU: 80 09 00 00 [09:16:47]Write to MH i2c: E2 08 00 0A 26 80 09 00 00 00 00 00 00 A2 [09:16:47]Write i2c OK [09:16:47]MH_I2C_Read... [09:16:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:47]Read from MH i2c: E2 [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: E2 03 00 [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: E2 03 00 0A 26 00 90 00 A4 [09:16:47]RAPDU: 90 00 [09:16:47]wFMCommunicate OK [09:16:47]SAM_PROTO_ClearQueue done [09:16:47]KKMCreateOFDPacket [09:16:47]OFDProtocolAddRootSTLVToBuf [09:16:47]FM_MakeSignedData [09:16:47]FM_MakeSignedData [09:16:47]SAM_PROTO_SignData [09:16:47]wFMCommunicate request_size=4 [09:16:47]MH_SAM_APDU [09:16:47]CAPDU: 80 0D 01 02 [09:16:47]Write to MH i2c: E2 08 00 0B 26 80 0D 01 02 00 00 00 00 AA [09:16:47]Write i2c OK [09:16:47]MH_I2C_Read... [09:16:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:47]Read from MH i2c: E2 [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: E2 03 00 [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: E2 03 00 0B 26 00 90 00 A5 [09:16:47]RAPDU: 90 00 [09:16:47]wFMCommunicate OK [09:16:47]wFMCommunicate request_size=255 [09:16:47]MH_SAM_APDU [09: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 82 36 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 72 2A 01 00 35 04 06 00 F2 [09:16:47]Write to MH i2c: E2 02 01 0C 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 82 36 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 72 2A 01 00 35 04 06 00 F2 00 00 D3 [09:16:47]Write i2c OK [09:16:47]MH_I2C_Read... [09:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:47]Read from MH i2c: E2 [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: E2 03 00 [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: E2 03 00 0C 26 00 90 00 A6 [09:16:47]RAPDU: 90 00 [09:16:47]wFMCommunicate OK [09:16:47]wFMCommunicate request_size=10 [09:16:47]MH_SAM_APDU [09:16:47]CAPDU: 80 0D 02 02 05 B3 21 BF D7 4D [09:16:47]Write to MH i2c: E2 0D 00 0D 26 80 0D 02 02 05 00 B3 21 BF D7 4D 00 00 6E [09:16:47]Write i2c OK [09:16:47]MH_I2C_Read... [09:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:47]Read from MH i2c: E2 [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: E2 03 00 [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: E2 03 00 0D 26 00 90 00 A7 [09:16:47]RAPDU: 90 00 [09:16:47]wFMCommunicate OK [09:16:47]wFMCommunicate request_size=4 [09:16:47]MH_SAM_APDU [09:16:47]CAPDU: 80 0D 03 02 [09:16:47]Write to MH i2c: E2 08 00 0E 26 80 0D 03 02 00 00 00 00 AF [09:16:47]Write i2c OK [09:16:47]MH_I2C_Read... [09:16:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:47]Read from MH i2c: E2 [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: E2 0B 00 [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: E2 0B 00 0E 26 00 AF A9 10 57 9F 06 78 73 90 00 FF [09:16:47]RAPDU: AF A9 10 57 9F 06 78 73 90 00 [09:16:47]wFMCommunicate OK [09:16:47]SAM_PROTO_SignData done [09:16:47]FM_MakeSignedData done [09:16:47]CreateOFDProtocolMessage [09:16:47]wFMCommunicate request_size=4 [09:16:47]MH_SAM_APDU [09:16:47]CAPDU: 80 11 00 00 [09:16:47]Write to MH i2c: E2 08 00 0F 26 80 11 00 00 00 00 00 00 AF [09:16:47]Write i2c OK [09:16:47]MH_I2C_Read... [09:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:47]Read from MH i2c: E2 [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: E2 17 00 [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: E2 17 00 0F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 02 [09:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:16:47]wFMCommunicate OK [09:16:47]CreateOFDProtocolMessage done [09:16:47]OFDSenderStorePacket 76402 [09:16:47]StoreOFDPacket docnum=76402 [09:16:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 F1 3B 07 01 63 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 82 36 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 72 2A 01 00 35 04 06 00 F2 B3 21 BF D7 4D AF A9 10 57 9F 06 78 73 [09:16:47]CheckFolder [09:16:47]dirname=/storage/ofd_packets [09:16:47]CheckFolder done [09:16:47]ProducePacketName [09:16:47]name=ofd_packets/00076402 [09:16:47]NVStorageSaveData ofd_packets/00076402 [09:16:47]File name is /storage/ofd_packets/00076402 [09:16:47]Write 301 bytes [09:16:47]NVStorageSaveData done [09:16:47]OFDSenderStorePacket done [09:16:47]KKMCreateOFDPacket done [09:16:47]NVStorageSaveData kkm_last_timestamp [09:16:47]File name is /storage/kkm_last_timestamp [09:16:47]Write 4 bytes [09:16:47]NVStorageSaveData done [09:16:47]ExternCall_PrintAddStr [09:16:47]wPrintStart [09:16:47]Write to MH i2c: 01 00 00 10 26 36 [09:16:47]Write i2c OK [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: 01 [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: 01 07 00 [09:16:47]MH_I2C_Read... [09:16:47]Read from MH i2c: 01 07 00 10 26 00 00 00 00 00 FF 0F 4B [09:16:47]RasterBufferAndPrint [09:16:47]line Счет N : (1)190851 [09:16:47]line ИНН: 02508201610067 [09:16:47]line Контрольно-Кассовый Чек [09:16:47]line ПРОДАЖА [09:16:47]line ТРК (МРК, ГНК) : 12 [09:16:47]line Товар: 2710124130 [09:16:47]line Аи-92-К-5 [09:16:47]line 15.530 * 64.40 [09:16:47]line = 1000.13 [09:16:47]line НДС 12% НСП 1% [09:16:47]line > о реализуемом товаре [09:16:47]line ОКРУГЛЕНИЕ: -0.13 [09:16:47]line ИТОГО: 1000.00 [09:16:47]line Внесено: 1000.00 [09:16:47]line СДАЧА: 0.00 [09:16:47]line НСП 1% : 8.85 [09:16:47]line НДС 12% : 106.21 [09:16:47]line Наличными: 1000.00 [09:16:47]line Безнал.: 0.00 [09:16:47]line Место: АЗС № 106 "Партнер Нефть" [09:16:47]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:16:47]line СНО: Общий режим [09:16:47]line Чек 22 19.04.2024 09:16 [09:16:47]line Смена: 370 ФФД: 1.0 [09:16:47]line ЗНМ: 0300000141 [09:16:47]line РНМ: 0000000000091573 [09:16:47]line Версия ККМ: 001 [09:16:47]line ФМ: 0000000000874652 [09:16:47]line ФД: 76402 [09:16:47]line ФПД: 266851179288397 [09:16:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T091650&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76402&fm=266851179288397&tin=02508201610067®Number=0000000000091573&sum=100000 [09:16:48]written 0, free lines is 4095 [09:16:48]OFD Sender: Processing packet 76402 [packets to send 128, broken 127] [09:16:48]ProducePacketName [09:16:48]name=ofd_packets/00076402 [09:16:48]OFD Sender: To server: pG, [09:16:48]CommunicateWithHost lk.salyk.kg:30040 [09:16:48]ConnectInit lk.salyk.kg [09:16:48]Connected sock=10 [09: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 34 36 35 32 0F 01 00 00 F1 3B 07 01 63 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 82 36 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 72 2A 01 00 35 04 06 00 F2 B3 21 BF D7 4D AF A9 10 57 9F 06 78 73 [09:16:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 FA E2 47 00 6E 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 34 36 35 32 10 04 04 00 72 2A 01 00 F4 03 04 00 0E DE 21 66 B6 04 01 00 00 40 9B 30 86 78 F9 8D AE [09:16:48]CommunicateWithHost err = 0 [09:16:48]CheckOFDResponse [09:16:48]1017 (14) - 77093643461234 [09:16:48]1041 (16) - 0000000000874652 [09:16:48]1040 (4) - 76402 [09:16:48]1012 (4) - 19.04.2024 02:59 [09:16:48]1206 (1) - 0 [09:16:48]OFD Sender: Remove packet 76402 [09:16:48]ProducePacketName [09:16:48]name=ofd_packets/00076402 [09:16:48]NVStorageDeleteData [09:16:48]Write to MH i2c: 01 00 00 3A 26 60 [09:16:48]Write i2c OK [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: 01 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: 01 07 00 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: 01 07 00 3A 26 00 00 00 00 00 0A 0D 7E [09:16:48]RasterBufferAndPrint [09:16:48]line [09:16:48]line [09:16:48]line [09:16:48]line [09:16:48]line [09:16:48]written 0, free lines is 3344 [09:16:48]MH_Cut [09:16:48]Write to MH i2c: D1 01 00 41 26 01 39 [09:16:48]Write i2c OK [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: D1 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: D1 01 00 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: D1 01 00 41 26 00 38 [09:16:48]Write to MH i2c: 01 00 00 42 26 68 [09:16:48]Write i2c OK [09:16:48]MH_I2C_Read... [09:16:49]OFD Sender: No OFD packet to send [09:16:49]*** Cut start [09:16:49]*** Partial cut [09:16:49]*** CUTSNS_PIN = 1 [09:16:49]*** CUTSNS_PIN = 0 [09:16:49]*** Brake cut motor [09:16:49]Read from MH i2c: 01 [09:16:49]MH_I2C_Read... [09:16:49]*** Stop cut motor [09:16:49]*** Cut end [09:16:49]Read from MH i2c: 01 07 00 [09:16:49]MH_I2C_Read... [09:16:49]Read from MH i2c: 01 07 00 42 26 00 00 00 00 00 FF 0F 7D [09:16:49]process_action close_receipt done [09:16:49]requested_data is exist [09:16:49]produce_requested_data [09:16:49]requested_item fm.sn is exist - process it [09:16:49]wFMCommunicate request_size=4 [09:16:49]MH_SAM_APDU [09:16:49]CAPDU: 80 11 00 00 [09:16:49]Write to MH i2c: E2 08 00 43 26 80 11 00 00 00 00 00 00 E3 [09:16:49]Write i2c OK [09:16:49]MH_I2C_Read... [09:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:50]Read from MH i2c: E2 [09:16:50]MH_I2C_Read... [09:16:50]Read from MH i2c: E2 17 00 [09:16:50]MH_I2C_Read... [09:16:50]Read from MH i2c: E2 17 00 43 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 36 [09:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:16:50]wFMCommunicate OK [09:16:50]requested_item fd.num is exist - process it [09:16:50]SAM_PROTO_GetFieldsCounters [09:16:50]wFMCommunicate request_size=4 [09:16:50]MH_SAM_APDU [09:16:50]CAPDU: 80 13 00 00 [09:16:50]Write to MH i2c: E2 08 00 44 26 80 13 00 00 00 00 00 00 E6 [09:16:50]Write i2c OK [09:16:50]MH_I2C_Read... [09:16:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:50]Read from MH i2c: E2 [09:16:50]MH_I2C_Read... [09:16:50]Read from MH i2c: E2 62 00 [09:16:50]MH_I2C_Read... [09:16:50]Read from MH i2c: E2 62 00 44 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 72 2A 01 00 0E 04 04 00 72 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 59 [09: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 72 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:50]wFMCommunicate OK [09:16:50]SAM_PROTO_GetFieldsCounters done [09:16:50]requested_item shift.num is exist - process it [09:16:50]requested_item shift.opened is exist - process it [09:16:50]req_shift_opened [09:16:50]FM_GetShiftState [09:16:50]SAM_PROTO_GetShiftState [09:16:50]wFMCommunicate request_size=4 [09:16:50]MH_SAM_APDU [09:16:50]CAPDU: 80 13 01 00 [09:16:50]Write to MH i2c: E2 08 00 45 26 80 13 01 00 00 00 00 00 E8 [09:16:50]Write i2c OK [09:16:50]MH_I2C_Read... [09:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:50]Read from MH i2c: E2 [09:16:50]MH_I2C_Read... [09:16:50]Read from MH i2c: E2 0E 00 [09:16:50]MH_I2C_Read... [09:16:50]Read from MH i2c: E2 0E 00 45 26 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 CD [09:16:50]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:16:50]wFMCommunicate OK [09:16:50]SAM_PROTO_GetShiftState done [09:16:50]FM_GetShiftState done [09:16:50]req_shift_opened done [09:16:50]requested_item shift.open_date is exist - process it [09:16:50]req_shift_open_date [09:16:50]req_shift_open_date done [09:16:50]produce_requested_data done [09:16:50]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76402,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [09:16:50]process_action_free close_receipt [09:16:50]json_value_free [09:16:50]json_value_free done [09:16:50]process_json_proto returns [09:16:50]Send response to host [09:16:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76402,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [09:16:50]free response buf [09:16:50]execute_script done [09:16:50]execute_script returns [09:16:50]free content buf [09:16:50]Sock 7.Close socket [09:16:50]Sock 7.Thread stoped [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:24]OFD Sender: No OFD packet to send [09:17:29]OFD Sender: No OFD packet to send [09:17:34]OFD Sender: No OFD packet to send [09:17:39]OFD Sender: No OFD packet to send [09:17:44]OFD Sender: No OFD packet to send [09:17:49]OFD Sender: No OFD packet to send [09:17:54]OFD Sender: No OFD packet to send [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:57]accept exits with 9 [09:20:57]New connection [09:20:57]New thread 3066629476 created [09:20:57]Thread 3066486116 joined [09:20:57]Waiting for new connection... [09:20:57] Sock 9.Parse request [09:20:57]Sock 9.Check first char [09:20:57]Sock 9.First char is OK [09:20:57]request: POST /json_proto HTTP/1.0 [09:20:57]Method: POST [09:20:57]URL: /json_proto [09:20:57]Method is POST - this is cgi request [09:20:57]url: /json_proto [09:20:57]query_string will be loaded in cgi processing [09:20:57]execute_cgi json_proto POST (null) [09:20:57]execute_cgi path=json_proto method=POST [09:20:57]POST find Content-Length [09:20:57]Host: 172.17.62.5:8080 [09:20:57]Content-Length: 1168 [09:20:57]Content-Type: application/json [09:20:57] [09:20:57]POST finish read [09:20:57]Found Content-Length = 1168 [09:20: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190852\u000A19.04.2024 09:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 966.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:57]execute_script... [09:20: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190852\u000A19.04.2024 09:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 966.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:57]POST & json_proto [09:20:57]process_json_proto [09:20:57]json parsed OK: [09:20:57]protocol is kg_v1.0 [09:20:57]action value=print_text [09:20:57]process_action print_text [09:20:57]cmd_print_text [09:20:57]ExternCall_PrintAddStr [09:20:57]wPrintStart [09:20:57]Write to MH i2c: 01 00 00 46 26 6C [09:20:57]Write i2c OK [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: 01 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: 01 07 00 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: 01 07 00 46 26 00 00 00 00 00 FF 0F 81 [09:20:57]RasterBufferAndPrint [09:20:57]line *****ТОВАРНЫЙ ЧЕК***** [09:20:57]line АЗС 106 [09:20:57]line Партнер нефть [09:20:57]line 02508201610067 [09:20:57]line Кассир : Табалдиева М. [09:20:57]line Счет N : (1)190852 [09:20:57]line 19.04.2024 09:02 [09:20:57]line ПРОДАЖА [09:20:57]line ТРК (МРК, ГНК): 43 [09:20:57]line Вид ГСМ : 2710124130 [09:20:57]line Аи-92-К-5 [09:20:57]line 15.000 x 64.40 [09:20:57]line ИТОГ: 966.00 [09:20:57]line Тип оплаты: Талоны: ТК ГПНА Online [09:20:57]line 30102984 [09:20:57]line ______________________ [09:20:57]line (подпись) [09:20:57]written 0, free lines is 4095 [09:20:57]Write to MH i2c: 01 00 00 5A 26 80 [09:20:57]Write i2c OK [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: 01 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: 01 07 00 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: 01 07 00 5A 26 00 00 00 00 00 11 0E A6 [09:20:57]RasterBufferAndPrint [09:20:57]line [09:20:57]line [09:20:57]line [09:20:57]line [09:20:57]line [09:20:57]written 0, free lines is 3603 [09:20:57]MH_Cut [09:20:57]Write to MH i2c: D1 01 00 61 26 01 59 [09:20:57]Write i2c OK [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: D1 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: D1 01 00 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: D1 01 00 61 26 00 58 [09:20:57]Write to MH i2c: 01 00 00 62 26 88 [09:20:57]Write i2c OK [09:20:57]MH_I2C_Read... [09:20:57]*** Cut start [09:20:57]*** Partial cut [09:20:57]*** CUTSNS_PIN = 1 [09:20:58]*** CUTSNS_PIN = 0 [09:20:58]*** Brake cut motor [09:20:58]Read from MH i2c: 01 [09:20:58]MH_I2C_Read... [09:20:58]*** Stop cut motor [09:20:58]*** Cut end [09:20:58]Read from MH i2c: 01 07 00 [09:20:58]MH_I2C_Read... [09:20:58]Read from MH i2c: 01 07 00 62 26 00 00 00 00 00 FF 0F 9D [09:20:58]process_action print_text done [09:20:58]requested_data is exist [09:20:58]produce_requested_data [09:20:58]requested_item fm.sn is exist - process it [09:20:58]wFMCommunicate request_size=4 [09:20:58]MH_SAM_APDU [09:20:58]CAPDU: 80 11 00 00 [09:20:58]Write to MH i2c: E2 08 00 63 26 80 11 00 00 00 00 00 00 03 [09:20:58]Write i2c OK [09:20:58]MH_I2C_Read... [09:20:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:58]Read from MH i2c: E2 [09:20:58]MH_I2C_Read... [09:20:58]Read from MH i2c: E2 17 00 [09:20:58]MH_I2C_Read... [09:20:58]Read from MH i2c: E2 17 00 63 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 56 [09:20:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:20:58]wFMCommunicate OK [09:20:58]requested_item fd.num is exist - process it [09:20:58]SAM_PROTO_GetFieldsCounters [09:20:58]wFMCommunicate request_size=4 [09:20:58]MH_SAM_APDU [09:20:58]CAPDU: 80 13 00 00 [09:20:58]Write to MH i2c: E2 08 00 64 26 80 13 00 00 00 00 00 00 06 [09:20:58]Write i2c OK [09:20:58]MH_I2C_Read... [09:20:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:58]Read from MH i2c: E2 [09:20:58]MH_I2C_Read... [09:20:58]Read from MH i2c: E2 62 00 [09:20:58]MH_I2C_Read... [09:20:58]Read from MH i2c: E2 62 00 64 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 72 2A 01 00 0E 04 04 00 72 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 79 [09:20:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 72 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:58]wFMCommunicate OK [09:20:58]SAM_PROTO_GetFieldsCounters done [09:20:58]requested_item shift.num is exist - process it [09:20:58]requested_item shift.opened is exist - process it [09:20:58]req_shift_opened [09:20:58]FM_GetShiftState [09:20:58]SAM_PROTO_GetShiftState [09:20:58]wFMCommunicate request_size=4 [09:20:58]MH_SAM_APDU [09:20:58]CAPDU: 80 13 01 00 [09:20:58]Write to MH i2c: E2 08 00 65 26 80 13 01 00 00 00 00 00 08 [09:20:58]Write i2c OK [09:20:58]MH_I2C_Read... [09:20:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:58]Read from MH i2c: E2 [09:20:58]MH_I2C_Read... [09:20:58]Read from MH i2c: E2 0E 00 [09:20:58]MH_I2C_Read... [09:20:58]Read from MH i2c: E2 0E 00 65 26 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 ED [09:20:58]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:20:58]wFMCommunicate OK [09:20:58]SAM_PROTO_GetShiftState done [09:20:58]FM_GetShiftState done [09:20:58]req_shift_opened done [09:20:58]requested_item shift.open_date is exist - process it [09:20:58]req_shift_open_date [09:20:58]req_shift_open_date done [09:20:58]produce_requested_data done [09:20:58]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76402,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [09:20:58]process_action_free print_text [09:20:58]json_value_free [09:20:58]json_value_free done [09:20:58]process_json_proto returns [09:20:58]Send response to host [09:20:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76402,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [09:20:58]free response buf [09:20:58]execute_script done [09:20:58]execute_script returns [09:20:58]free content buf [09:20:58]Sock 9.Close socket [09:20:58]Sock 9.Thread stoped [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:49]OFD Sender: No OFD packet to send [09:23:54]OFD Sender: No OFD packet to send [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:57]accept exits with 7 [09:25:57]New connection [09:25:57]New thread 3066486116 created [09:25:57]Thread 3066629476 joined [09:25:57]Waiting for new connection... [09:25:57] Sock 7.Parse request [09:25:57]Sock 7.Check first char [09:25:57]Sock 7.First char is OK [09:25:57]request: POST /json_proto HTTP/1.0 [09:25:57]Method: POST [09:25:57]URL: /json_proto [09:25:57]Method is POST - this is cgi request [09:25:57]url: /json_proto [09:25:57]query_string will be loaded in cgi processing [09:25:57]execute_cgi json_proto POST (null) [09:25:57]execute_cgi path=json_proto method=POST [09:25:57]POST find Content-Length [09:25:57]Host: 172.17.62.5:8080 [09:25:57]Content-Length: 1204 [09:25:57]Content-Type: application/json [09:25:57] [09:25:57]POST finish read [09:25:57]Found Content-Length = 1204 [09: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190854\u000A19.04.2024 09:07\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\u000A68975\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:57]execute_script... [09: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190854\u000A19.04.2024 09:07\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\u000A68975\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:57]POST & json_proto [09:25:57]process_json_proto [09:25:57]json parsed OK: [09:25:57]protocol is kg_v1.0 [09:25:57]action value=print_text [09:25:57]process_action print_text [09:25:57]cmd_print_text [09:25:57]ExternCall_PrintAddStr [09:25:57]wPrintStart [09:25:57]Write to MH i2c: 01 00 00 66 26 8C [09:25:57]Write i2c OK [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: 01 [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: 01 07 00 [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: 01 07 00 66 26 00 00 00 00 00 FF 0F A1 [09:25:57]RasterBufferAndPrint [09:25:57]line *****ТОВАРНЫЙ ЧЕК***** [09:25:57]line АЗС 106 [09:25:57]line Партнер нефть [09:25:57]line 02508201610067 [09:25:57]line Кассир : Табалдиева М. [09:25:57]line Счет N : (1)190854 [09:25:57]line 19.04.2024 09:07 [09:25:57]line ПРОДАЖА [09:25:57]line ТРК (МРК, ГНК): 51 [09:25:57]line Вид ГСМ : 2710194210 [09:25:57]line ДТ-К-5 [09:25:57]line 30.000 x 72.90 [09:25:57]line ИТОГ: 2187.00 [09:25:57]line Тип оплаты: Талоны: Топливная Карта [09:25:57]line 68975 [09:25:57]line ______________________ [09:25:57]line (подпись) [09:25:57]written 0, free lines is 4095 [09:25:57]Write to MH i2c: 01 00 00 7A 26 A0 [09:25:57]Write i2c OK [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: 01 [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: 01 07 00 [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: 01 07 00 7A 26 00 00 00 00 00 10 0E C5 [09:25:57]RasterBufferAndPrint [09:25:57]line [09:25:57]line [09:25:57]line [09:25:57]line [09:25:57]line [09:25:57]written 0, free lines is 3602 [09:25:57]MH_Cut [09:25:57]Write to MH i2c: D1 01 00 81 26 01 79 [09:25:57]Write i2c OK [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: D1 [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: D1 01 00 [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: D1 01 00 81 26 00 78 [09:25:57]Write to MH i2c: 01 00 00 82 26 A8 [09:25:57]Write i2c OK [09:25:57]MH_I2C_Read... [09:25:58]*** Cut start [09:25:58]*** Partial cut [09:25:58]*** CUTSNS_PIN = 1 [09:25:58]*** CUTSNS_PIN = 0 [09:25:58]*** Brake cut motor [09:25:59]Read from MH i2c: 01 [09:25:59]MH_I2C_Read... [09:25:59]*** Stop cut motor [09:25:59]*** Cut end [09:25:59]Read from MH i2c: 01 07 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: 01 07 00 82 26 00 00 00 00 00 FF 0F BD [09:25:59]process_action print_text done [09:25:59]requested_data is exist [09:25:59]produce_requested_data [09:25:59]requested_item fm.sn is exist - process it [09:25:59]wFMCommunicate request_size=4 [09:25:59]MH_SAM_APDU [09:25:59]CAPDU: 80 11 00 00 [09:25:59]Write to MH i2c: E2 08 00 83 26 80 11 00 00 00 00 00 00 23 [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:59]Read from MH i2c: E2 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 17 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 17 00 83 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 76 [09:25:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:25:59]wFMCommunicate OK [09:25:59]requested_item fd.num is exist - process it [09:25:59]SAM_PROTO_GetFieldsCounters [09:25:59]wFMCommunicate request_size=4 [09:25:59]MH_SAM_APDU [09:25:59]CAPDU: 80 13 00 00 [09:25:59]Write to MH i2c: E2 08 00 84 26 80 13 00 00 00 00 00 00 26 [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:59]Read from MH i2c: E2 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 62 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 62 00 84 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 72 2A 01 00 0E 04 04 00 72 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 99 [09:25: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 72 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:59]wFMCommunicate OK [09:25:59]SAM_PROTO_GetFieldsCounters done [09:25:59]requested_item shift.num is exist - process it [09:25:59]requested_item shift.opened is exist - process it [09:25:59]req_shift_opened [09:25:59]FM_GetShiftState [09:25:59]SAM_PROTO_GetShiftState [09:25:59]wFMCommunicate request_size=4 [09:25:59]MH_SAM_APDU [09:25:59]CAPDU: 80 13 01 00 [09:25:59]Write to MH i2c: E2 08 00 85 26 80 13 01 00 00 00 00 00 28 [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:59]Read from MH i2c: E2 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 0E 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 0E 00 85 26 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 0D [09:25:59]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:25:59]wFMCommunicate OK [09:25:59]SAM_PROTO_GetShiftState done [09:25:59]FM_GetShiftState done [09:25:59]req_shift_opened done [09:25:59]requested_item shift.open_date is exist - process it [09:25:59]req_shift_open_date [09:25:59]req_shift_open_date done [09:25:59]produce_requested_data done [09:25:59]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76402,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [09:25:59]process_action_free print_text [09:25:59]json_value_free [09:25:59]json_value_free done [09:25:59]process_json_proto returns [09:25:59]Send response to host [09:25:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76402,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [09:25:59]free response buf [09:25:59]execute_script done [09:25:59]execute_script returns [09:25:59]free content buf [09:25:59]Sock 7.Close socket [09:25:59]Sock 7.Thread stoped [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:25]accept exits with 9 [09:27:25]New connection [09:27:25]New thread 3066629476 created [09:27:25]Thread 3066486116 joined [09:27:25]Waiting for new connection... [09:27:25] Sock 9.Parse request [09:27:25]Sock 9.Check first char [09:27:25]Sock 9.First char is OK [09:27:25]request: POST /json_proto HTTP/1.0 [09:27:25]Method: POST [09:27:25]URL: /json_proto [09:27:25]Method is POST - this is cgi request [09:27:25]url: /json_proto [09:27:25]query_string will be loaded in cgi processing [09:27:25]execute_cgi json_proto POST (null) [09:27:25]execute_cgi path=json_proto method=POST [09:27:25]POST find Content-Length [09:27:25]Host: 172.17.62.5:8080 [09:27:25]Content-Length: 670 [09:27:25]Content-Type: application/json [09:27:25] [09:27:25]POST finish read [09:27:25]Found Content-Length = 670 [09:27:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 9.940, "sum" : 650.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:25]execute_script... [09:27: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)190855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 9.940, "sum" : 650.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:25]POST & json_proto [09:27:25]process_json_proto [09:27:25]json parsed OK: [09:27:25]protocol is kg_v1.0 [09:27:25]action value=close_receipt [09:27:25]process_action close_receipt [09:27:25]cmd_close_receipt [09:27:25]MH_GetDate [09:27:25]Write to MH i2c: F0 00 00 86 26 9B [09:27:25]Write i2c OK [09:27:25]MH_I2C_Read... [09:27:25]Read from MH i2c: F0 [09:27:25]MH_I2C_Read... [09:27:25]Read from MH i2c: F0 09 00 [09:27:25]MH_I2C_Read... [09:27:25]Read from MH i2c: F0 09 00 86 26 00 02 39 22 66 F4 E9 65 64 0D [09:27:25]GetLastDocTimeStamp 1713518210 [09:27:25]current date 1713518850 [09:27:25]FM_GetShiftState [09:27:25]SAM_PROTO_GetShiftState [09:27:25]wFMCommunicate request_size=4 [09:27:25]MH_SAM_APDU [09:27:25]CAPDU: 80 13 01 00 [09:27:25]Write to MH i2c: E2 08 00 87 26 80 13 01 00 00 00 00 00 2A [09:27:25]Write i2c OK [09:27:25]MH_I2C_Read... [09:27:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:25]Read from MH i2c: E2 [09:27:25]MH_I2C_Read... [09:27:25]Read from MH i2c: E2 0E 00 [09:27:25]MH_I2C_Read... [09:27:25]Read from MH i2c: E2 0E 00 87 26 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 0F [09:27:25]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:27:25]wFMCommunicate OK [09:27:25]SAM_PROTO_GetShiftState done [09:27:25]FM_GetShiftState done [09:27:25]opened in 1713486233 [09:27:25]opened+sec_in_day 1713572633 [09:27:25]quantity*price = 65007 [09:27:25]sum+1 = 65009 [09:27:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 23 19.04.2024 09:27 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76403 ФПД: 13685656142784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T092730&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76403&fm=13685656142784&tin=02508201610067®Number=0000000000091573&sum=65000 [09:27:27]StoreToDocumentArchive [09:27:27]shift 370 fd 76403 [09:27:27]save to /storage/0370/doc_00076403 [09:27:27]save last doc name /storage/0370/doc_00076403 to /storage/kkm_last_doc_name [09:27:27]save OK [09:27:27]Clear old archive folders... [09:27:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:27:27]tlvbuf is B6F06770 [09:27:27]SAM_PROTO_ClearQueue [09:27:27]wFMCommunicate request_size=4 [09:27:27]MH_SAM_APDU [09:27:27]CAPDU: 80 09 00 00 [09:27:27]Write to MH i2c: E2 08 00 94 26 80 09 00 00 00 00 00 00 2C [09:27:27]Write i2c OK [09:27:27]MH_I2C_Read... [09:27:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:27]Read from MH i2c: E2 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: E2 03 00 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: E2 03 00 94 26 00 90 00 2E [09:27:27]RAPDU: 90 00 [09:27:27]wFMCommunicate OK [09:27:27]SAM_PROTO_ClearQueue done [09:27:27]KKMCreateOFDPacket [09:27:27]OFDProtocolAddRootSTLVToBuf [09:27:27]FM_MakeSignedData [09:27:27]FM_MakeSignedData [09:27:27]SAM_PROTO_SignData [09:27:27]wFMCommunicate request_size=4 [09:27:27]MH_SAM_APDU [09:27:27]CAPDU: 80 0D 01 02 [09:27:27]Write to MH i2c: E2 08 00 95 26 80 0D 01 02 00 00 00 00 34 [09:27:27]Write i2c OK [09:27:27]MH_I2C_Read... [09:27:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:27]Read from MH i2c: E2 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: E2 03 00 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: E2 03 00 95 26 00 90 00 2F [09:27:27]RAPDU: 90 00 [09:27:27]wFMCommunicate OK [09:27:27]wFMCommunicate request_size=255 [09:27:27]MH_SAM_APDU [09:27:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 26 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 F0 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 02 39 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 73 2A 01 00 35 04 06 00 [09:27:27]Write to MH i2c: E2 02 01 96 26 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 D4 26 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 F0 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 02 39 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 73 2A 01 00 35 04 06 00 00 00 6E [09:27:27]Write i2c OK [09:27:27]MH_I2C_Read... [09:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:27]Read from MH i2c: E2 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: E2 03 00 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: E2 03 00 96 26 00 90 00 30 [09:27:27]RAPDU: 90 00 [09:27:27]wFMCommunicate OK [09:27:27]wFMCommunicate request_size=11 [09:27:27]MH_SAM_APDU [09:27:27]CAPDU: 80 0D 02 02 06 0C 72 70 AC 43 C0 [09:27:27]Write to MH i2c: E2 0E 00 97 26 80 0D 02 02 06 00 0C 72 70 AC 43 C0 00 00 E0 [09:27:27]Write i2c OK [09:27:27]MH_I2C_Read... [09:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:27]Read from MH i2c: E2 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: E2 03 00 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: E2 03 00 97 26 00 90 00 31 [09:27:27]RAPDU: 90 00 [09:27:27]wFMCommunicate OK [09:27:27]wFMCommunicate request_size=4 [09:27:27]MH_SAM_APDU [09:27:27]CAPDU: 80 0D 03 02 [09:27:27]Write to MH i2c: E2 08 00 98 26 80 0D 03 02 00 00 00 00 39 [09:27:27]Write i2c OK [09:27:27]MH_I2C_Read... [09:27:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:27]Read from MH i2c: E2 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: E2 0B 00 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: E2 0B 00 98 26 00 E8 11 71 D6 97 61 4D F2 90 00 B1 [09:27:27]RAPDU: E8 11 71 D6 97 61 4D F2 90 00 [09:27:27]wFMCommunicate OK [09:27:27]SAM_PROTO_SignData done [09:27:27]FM_MakeSignedData done [09:27:27]CreateOFDProtocolMessage [09:27:27]wFMCommunicate request_size=4 [09:27:27]MH_SAM_APDU [09:27:27]CAPDU: 80 11 00 00 [09:27:27]Write to MH i2c: E2 08 00 99 26 80 11 00 00 00 00 00 00 39 [09:27:27]Write i2c OK [09:27:27]MH_I2C_Read... [09:27:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:27]Read from MH i2c: E2 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: E2 17 00 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: E2 17 00 99 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8C [09:27:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:27:27]wFMCommunicate OK [09:27:27]CreateOFDProtocolMessage done [09:27:27]OFDSenderStorePacket 76403 [09:27:27]StoreOFDPacket docnum=76403 [09:27:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 81 07 08 01 63 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 D4 26 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 F0 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 02 39 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 73 2A 01 00 35 04 06 00 0C 72 70 AC 43 C0 E8 11 71 D6 97 61 4D F2 [09:27:27]CheckFolder [09:27:27]dirname=/storage/ofd_packets [09:27:27]CheckFolder done [09:27:27]ProducePacketName [09:27:27]name=ofd_packets/00076403 [09:27:27]NVStorageSaveData ofd_packets/00076403 [09:27:27]File name is /storage/ofd_packets/00076403 [09:27:27]Write 302 bytes [09:27:27]NVStorageSaveData done [09:27:27]OFDSenderStorePacket done [09:27:27]KKMCreateOFDPacket done [09:27:27]NVStorageSaveData kkm_last_timestamp [09:27:27]File name is /storage/kkm_last_timestamp [09:27:27]Write 4 bytes [09:27:27]NVStorageSaveData done [09:27:27]OFD Sender: Processing packet 76403 [packets to send 128, broken 127] [09:27:27]ProducePacketName [09:27:27]name=ofd_packets/00076403 [09:27:27]OFD Sender: To server: pG, [09:27:27]CommunicateWithHost lk.salyk.kg:30040 [09:27:27]ConnectInit lk.salyk.kg [09:27:27]ExternCall_PrintAddStr [09:27:27]wPrintStart [09:27:27]Write to MH i2c: 01 00 00 9A 26 C0 [09:27:27]Write i2c OK [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: 01 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: 01 07 00 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: 01 07 00 9A 26 00 00 00 00 00 FF 0F D5 [09:27:27]RasterBufferAndPrint [09:27:27]line Счет N : (1)190855 [09:27:27]line ИНН: 02508201610067 [09:27:27]line Контрольно-Кассовый Чек [09:27:27]line ПРОДАЖА [09:27:27]line ТРК (МРК, ГНК) : 31 [09:27:27]line Товар: 2710124130 [09:27:27]line SUPER 92-К-5 [09:27:27]line 9.940 * 65.40 [09:27:27]line = 650.08 [09:27:27]line НДС 12% НСП 1% [09:27:27]line > о реализуемом товаре [09:27:27]line ОКРУГЛЕНИЕ: -0.08 [09:27:27]line ИТОГО: 650.00 [09:27:27]line Внесено: 650.00 [09:27:27]line СДАЧА: 0.00 [09:27:27]line НСП 1% : 5.75 [09:27:27]line НДС 12% : 69.03 [09:27:27]line Наличными: 650.00 [09:27:27]line Безнал.: 0.00 [09:27:27]line Место: АЗС № 106 "Партнер Нефть" [09:27:27]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:27:27]line СНО: Общий режим [09:27:27]line Чек 23 19.04.2024 09:27 [09:27:27]line Смена: 370 ФФД: 1.0 [09:27:27]line ЗНМ: 0300000141 [09:27:27]line РНМ: 0000000000091573 [09:27:27]line Версия ККМ: 001 [09:27:27]line ФМ: 0000000000874652 [09:27:27]line ФД: 76403 [09:27:27]line ФПД: 13685656142784 [09:27:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T092730&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76403&fm=13685656142784&tin=02508201610067®Number=0000000000091573&sum=65000 [09:27:27]Connected sock=11 [09:27:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 81 07 08 01 63 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 D4 26 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 F0 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 02 39 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 73 2A 01 00 35 04 06 00 0C 72 70 AC 43 C0 E8 11 71 D6 97 61 4D F2 [09:27:27]written 0, free lines is 4095 [09:27:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 48 E8 47 00 48 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 73 2A 01 00 F4 03 04 00 8E E0 21 66 B6 04 01 00 00 1F 40 C5 B9 73 A7 3E F2 [09:27:28]CommunicateWithHost err = 0 [09:27:28]CheckOFDResponse [09:27:28]1017 (14) - 77093643461234 [09:27:28]1041 (16) - 0000000000874652 [09:27:28]1040 (4) - 76403 [09:27:28]1012 (4) - 19.04.2024 03:10 [09:27:28]1206 (1) - 0 [09:27:28]OFD Sender: Remove packet 76403 [09:27:28]ProducePacketName [09:27:28]name=ofd_packets/00076403 [09:27:28]NVStorageDeleteData [09:27:28]Write to MH i2c: 01 00 00 C4 26 EA [09:27:28]Write i2c OK [09:27:28]MH_I2C_Read... [09:27:28]Read from MH i2c: 01 [09:27:28]MH_I2C_Read... [09:27:28]Read from MH i2c: 01 07 00 [09:27:28]MH_I2C_Read... [09:27:28]Read from MH i2c: 01 07 00 C4 26 00 00 00 00 00 E0 0C DD [09:27:28]RasterBufferAndPrint [09:27:28]line [09:27:28]line [09:27:28]line [09:27:28]line [09:27:28]line [09:27:28]written 0, free lines is 3302 [09:27:28]MH_Cut [09:27:28]Write to MH i2c: D1 01 00 CB 26 01 C3 [09:27:28]Write i2c OK [09:27:28]MH_I2C_Read... [09:27:28]Read from MH i2c: D1 [09:27:28]MH_I2C_Read... [09:27:28]Read from MH i2c: D1 01 00 [09:27:28]MH_I2C_Read... [09:27:28]Read from MH i2c: D1 01 00 CB 26 00 C2 [09:27:28]Write to MH i2c: 01 00 00 CC 26 F2 [09:27:28]Write i2c OK [09:27:28]MH_I2C_Read... [09:27:28]OFD Sender: No OFD packet to send [09:27:29]*** Cut start [09:27:29]*** Partial cut [09:27:29]*** CUTSNS_PIN = 1 [09:27:29]*** CUTSNS_PIN = 0 [09:27:29]*** Brake cut motor [09:27:29]Read from MH i2c: 01 [09:27:29]MH_I2C_Read... [09:27:29]*** Stop cut motor [09:27:29]*** Cut end [09:27:29]Read from MH i2c: 01 07 00 [09:27:29]MH_I2C_Read... [09:27:29]Read from MH i2c: 01 07 00 CC 26 00 00 00 00 00 FF 0F 07 [09:27:29]process_action close_receipt done [09:27:29]requested_data is exist [09:27:29]produce_requested_data [09:27:29]requested_item fm.sn is exist - process it [09:27:29]wFMCommunicate request_size=4 [09:27:29]MH_SAM_APDU [09:27:29]CAPDU: 80 11 00 00 [09:27:29]Write to MH i2c: E2 08 00 CD 26 80 11 00 00 00 00 00 00 6D [09:27:29]Write i2c OK [09:27:29]MH_I2C_Read... [09:27:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:29]Read from MH i2c: E2 [09:27:29]MH_I2C_Read... [09:27:29]Read from MH i2c: E2 17 00 [09:27:29]MH_I2C_Read... [09:27:29]Read from MH i2c: E2 17 00 CD 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C0 [09:27:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:27:29]wFMCommunicate OK [09:27:29]requested_item fd.num is exist - process it [09:27:29]SAM_PROTO_GetFieldsCounters [09:27:29]wFMCommunicate request_size=4 [09:27:29]MH_SAM_APDU [09:27:29]CAPDU: 80 13 00 00 [09:27:29]Write to MH i2c: E2 08 00 CE 26 80 13 00 00 00 00 00 00 70 [09:27:29]Write i2c OK [09:27:29]MH_I2C_Read... [09:27:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:29]Read from MH i2c: E2 [09:27:29]MH_I2C_Read... [09:27:29]Read from MH i2c: E2 62 00 [09:27:29]MH_I2C_Read... [09:27:29]Read from MH i2c: E2 62 00 CE 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 73 2A 01 00 0E 04 04 00 72 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 E7 [09:27:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 73 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:27:29]wFMCommunicate OK [09:27:29]SAM_PROTO_GetFieldsCounters done [09:27:29]requested_item shift.num is exist - process it [09:27:29]requested_item shift.opened is exist - process it [09:27:29]req_shift_opened [09:27:29]FM_GetShiftState [09:27:29]SAM_PROTO_GetShiftState [09:27:29]wFMCommunicate request_size=4 [09:27:30]MH_SAM_APDU [09:27:30]CAPDU: 80 13 01 00 [09:27:30]Write to MH i2c: E2 08 00 CF 26 80 13 01 00 00 00 00 00 72 [09:27:30]Write i2c OK [09:27:30]MH_I2C_Read... [09:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:30]Read from MH i2c: E2 [09:27:30]MH_I2C_Read... [09:27:30]Read from MH i2c: E2 0E 00 [09:27:30]MH_I2C_Read... [09:27:30]Read from MH i2c: E2 0E 00 CF 26 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 57 [09:27:30]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:27:30]wFMCommunicate OK [09:27:30]SAM_PROTO_GetShiftState done [09:27:30]FM_GetShiftState done [09:27:30]req_shift_opened done [09:27:30]requested_item shift.open_date is exist - process it [09:27:30]req_shift_open_date [09:27:30]req_shift_open_date done [09:27:30]produce_requested_data done [09:27:30]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76403,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [09:27:30]process_action_free close_receipt [09:27:30]json_value_free [09:27:30]json_value_free done [09:27:30]process_json_proto returns [09:27:30]Send response to host [09:27:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76403,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [09:27:30]free response buf [09:27:30]execute_script done [09:27:30]execute_script returns [09:27:30]free content buf [09:27:30]Sock 9.Close socket [09:27:30]Sock 9.Thread stoped [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:40]accept exits with 7 [09:28:40]New connection [09:28:40]New thread 3066486116 created [09:28:40]Thread 3066629476 joined [09:28:40]Waiting for new connection... [09:28:40] Sock 7.Parse request [09:28:40]Sock 7.Check first char [09:28:40]Sock 7.First char is OK [09:28:40]request: POST /json_proto HTTP/1.0 [09:28:40]Method: POST [09:28:40]URL: /json_proto [09:28:40]Method is POST - this is cgi request [09:28:40]url: /json_proto [09:28:40]query_string will be loaded in cgi processing [09:28:40]execute_cgi json_proto POST (null) [09:28:40]execute_cgi path=json_proto method=POST [09:28:40]POST find Content-Length [09:28:40]Host: 172.17.62.5:8080 [09:28:40]Content-Length: 1209 [09:28:40]Content-Type: application/json [09:28:40] [09:28:40]POST finish read [09:28:40]Found Content-Length = 1209 [09:28:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190853\u000A19.04.2024 09:10\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 240.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 15456.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\u000A02104\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:40]execute_script... [09:28:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190853\u000A19.04.2024 09:10\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 240.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 15456.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\u000A02104\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:40]POST & json_proto [09:28:40]process_json_proto [09:28:40]json parsed OK: [09:28:40]protocol is kg_v1.0 [09:28:40]action value=print_text [09:28:40]process_action print_text [09:28:40]cmd_print_text [09:28:40]ExternCall_PrintAddStr [09:28:40]wPrintStart [09:28:40]Write to MH i2c: 01 00 00 D0 26 F6 [09:28:40]Write i2c OK [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: 01 [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: 01 07 00 [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: 01 07 00 D0 26 00 00 00 00 00 FF 0F 0B [09:28:40]RasterBufferAndPrint [09:28:40]line *****ТОВАРНЫЙ ЧЕК***** [09:28:40]line АЗС 106 [09:28:40]line Партнер нефть [09:28:40]line 02508201610067 [09:28:40]line Кассир : Табалдиева М. [09:28:40]line Счет N : (1)190853 [09:28:40]line 19.04.2024 09:10 [09:28:40]line ПРОДАЖА [09:28:40]line ТРК (МРК, ГНК): 22 [09:28:40]line Вид ГСМ : 2710124130 [09:28:40]line Аи-92-К-5 [09:28:40]line 240.000 x 64.40 [09:28:40]line ИТОГ: 15456.00 [09:28:40]line Тип оплаты: Талоны: Топливная Карта [09:28:40]line 02104 [09:28:40]line ______________________ [09:28:40]line (подпись) [09:28:40]written 0, free lines is 4095 [09:28:40]Write to MH i2c: 01 00 00 E4 26 0A [09:28:40]Write i2c OK [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: 01 [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: 01 07 00 [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: 01 07 00 E4 26 00 00 00 00 00 11 0E 30 [09:28:40]RasterBufferAndPrint [09:28:40]line [09:28:40]line [09:28:40]line [09:28:40]line [09:28:40]line [09:28:40]written 0, free lines is 3602 [09:28:40]MH_Cut [09:28:40]Write to MH i2c: D1 01 00 EB 26 01 E3 [09:28:40]Write i2c OK [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: D1 [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: D1 01 00 [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: D1 01 00 EB 26 00 E2 [09:28:40]Write to MH i2c: 01 00 00 EC 26 12 [09:28:40]Write i2c OK [09:28:40]MH_I2C_Read... [09:28:41]*** Cut start [09:28:41]*** Partial cut [09:28:41]*** CUTSNS_PIN = 1 [09:28:41]*** CUTSNS_PIN = 0 [09:28:41]*** Brake cut motor [09:28:42]Read from MH i2c: 01 [09:28:42]MH_I2C_Read... [09:28:42]*** Stop cut motor [09:28:42]*** Cut end [09:28:42]Read from MH i2c: 01 07 00 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: 01 07 00 EC 26 00 00 00 00 00 FF 0F 27 [09:28:42]process_action print_text done [09:28:42]requested_data is exist [09:28:42]produce_requested_data [09:28:42]requested_item fm.sn is exist - process it [09:28:42]wFMCommunicate request_size=4 [09:28:42]MH_SAM_APDU [09:28:42]CAPDU: 80 11 00 00 [09:28:42]Write to MH i2c: E2 08 00 ED 26 80 11 00 00 00 00 00 00 8D [09:28:42]Write i2c OK [09:28:42]MH_I2C_Read... [09:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:42]Read from MH i2c: E2 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 17 00 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 17 00 ED 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E0 [09:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:28:42]wFMCommunicate OK [09:28:42]requested_item fd.num is exist - process it [09:28:42]SAM_PROTO_GetFieldsCounters [09:28:42]wFMCommunicate request_size=4 [09:28:42]MH_SAM_APDU [09:28:42]CAPDU: 80 13 00 00 [09:28:42]Write to MH i2c: E2 08 00 EE 26 80 13 00 00 00 00 00 00 90 [09:28:42]Write i2c OK [09:28:42]MH_I2C_Read... [09:28:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:42]Read from MH i2c: E2 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 62 00 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 62 00 EE 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 73 2A 01 00 0E 04 04 00 72 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 07 [09:28: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 73 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:42]wFMCommunicate OK [09:28:42]SAM_PROTO_GetFieldsCounters done [09:28:42]requested_item shift.num is exist - process it [09:28:42]requested_item shift.opened is exist - process it [09:28:42]req_shift_opened [09:28:42]FM_GetShiftState [09:28:42]SAM_PROTO_GetShiftState [09:28:42]wFMCommunicate request_size=4 [09:28:42]MH_SAM_APDU [09:28:42]CAPDU: 80 13 01 00 [09:28:42]Write to MH i2c: E2 08 00 EF 26 80 13 01 00 00 00 00 00 92 [09:28:42]Write i2c OK [09:28:42]MH_I2C_Read... [09:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:42]Read from MH i2c: E2 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 0E 00 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 0E 00 EF 26 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 77 [09:28:42]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:28:42]wFMCommunicate OK [09:28:42]SAM_PROTO_GetShiftState done [09:28:42]FM_GetShiftState done [09:28:42]req_shift_opened done [09:28:42]requested_item shift.open_date is exist - process it [09:28:42]req_shift_open_date [09:28:42]req_shift_open_date done [09:28:42]produce_requested_data done [09:28:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76403,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [09:28:42]process_action_free print_text [09:28:42]json_value_free [09:28:42]json_value_free done [09:28:42]process_json_proto returns [09:28:42]Send response to host [09:28:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76403,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [09:28:42]free response buf [09:28:42]execute_script done [09:28:42]execute_script returns [09:28:42]free content buf [09:28:42]Sock 7.Close socket [09:28:42]Sock 7.Thread stoped [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:01]accept exits with 9 [09:31:01]New connection [09:31:01]New thread 3066629476 created [09:31:01]Thread 3066486116 joined [09:31:01]Waiting for new connection... [09:31:01] Sock 9.Parse request [09:31:01]Sock 9.Check first char [09:31:01]Sock 9.First char is OK [09:31:01]request: POST /json_proto HTTP/1.0 [09:31:01]Method: POST [09:31:01]URL: /json_proto [09:31:01]Method is POST - this is cgi request [09:31:01]url: /json_proto [09:31:01]query_string will be loaded in cgi processing [09:31:01]execute_cgi json_proto POST (null) [09:31:01]execute_cgi path=json_proto method=POST [09:31:01]POST find Content-Length [09:31:01]Host: 172.17.62.5:8080 [09:31:01]Content-Length: 1207 [09:31:01]Content-Type: application/json [09:31:01] [09:31:01]POST finish read [09:31:01]Found Content-Length = 1207 [09:31:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190857\u000A19.04.2024 09:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.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\u000A00308\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:01]execute_script... [09:31:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190857\u000A19.04.2024 09:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.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\u000A00308\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:01]POST & json_proto [09:31:01]process_json_proto [09:31:01]json parsed OK: [09:31:01]protocol is kg_v1.0 [09:31:01]action value=print_text [09:31:01]process_action print_text [09:31:01]cmd_print_text [09:31:01]ExternCall_PrintAddStr [09:31:01]wPrintStart [09:31:01]Write to MH i2c: 01 00 00 F0 26 16 [09:31:01]Write i2c OK [09:31:01]MH_I2C_Read... [09:31:01]Read from MH i2c: 01 [09:31:01]MH_I2C_Read... [09:31:01]Read from MH i2c: 01 07 00 [09:31:01]MH_I2C_Read... [09:31:01]Read from MH i2c: 01 07 00 F0 26 00 00 00 00 00 FF 0F 2B [09:31:01]RasterBufferAndPrint [09:31:01]line *****ТОВАРНЫЙ ЧЕК***** [09:31:01]line АЗС 106 [09:31:01]line Партнер нефть [09:31:01]line 02508201610067 [09:31:01]line Кассир : Табалдиева М. [09:31:01]line Счет N : (1)190857 [09:31:01]line 19.04.2024 09:12 [09:31:01]line ПРОДАЖА [09:31:01]line ТРК (МРК, ГНК): 33 [09:31:01]line Вид ГСМ : 2710124130 [09:31:01]line Аи-92-К-5 [09:31:01]line 20.000 x 64.40 [09:31:01]line ИТОГ: 1288.00 [09:31:01]line Тип оплаты: Талоны: Топливная Карта [09:31:01]line 00308 [09:31:01]line ______________________ [09:31:01]line (подпись) [09:31:01]written 0, free lines is 4095 [09:31:02]Write to MH i2c: 01 00 00 04 27 2B [09:31:02]Write i2c OK [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: 01 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: 01 07 00 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: 01 07 00 04 27 00 00 00 00 00 11 0E 51 [09:31:02]RasterBufferAndPrint [09:31:02]line [09:31:02]line [09:31:02]line [09:31:02]line [09:31:02]line [09:31:02]written 0, free lines is 3603 [09:31:02]MH_Cut [09:31:02]Write to MH i2c: D1 01 00 0B 27 01 04 [09:31:02]Write i2c OK [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: D1 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: D1 01 00 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: D1 01 00 0B 27 00 03 [09:31:02]Write to MH i2c: 01 00 00 0C 27 33 [09:31:02]Write i2c OK [09:31:02]MH_I2C_Read... [09:31:02]*** Cut start [09:31:02]*** Partial cut [09:31:02]*** CUTSNS_PIN = 1 [09:31:02]*** CUTSNS_PIN = 0 [09:31:03]*** Brake cut motor [09:31:03]Read from MH i2c: 01 [09:31:03]MH_I2C_Read... [09:31:03]*** Stop cut motor [09:31:03]*** Cut end [09:31:03]Read from MH i2c: 01 07 00 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: 01 07 00 0C 27 00 00 00 00 00 FF 0F 48 [09:31:03]process_action print_text done [09:31:03]requested_data is exist [09:31:03]produce_requested_data [09:31:03]requested_item fm.sn is exist - process it [09:31:03]wFMCommunicate request_size=4 [09:31:03]MH_SAM_APDU [09:31:03]CAPDU: 80 11 00 00 [09:31:03]Write to MH i2c: E2 08 00 0D 27 80 11 00 00 00 00 00 00 AE [09:31:03]Write i2c OK [09:31:03]MH_I2C_Read... [09:31:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:03]Read from MH i2c: E2 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 17 00 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 17 00 0D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 01 [09:31:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:31:03]wFMCommunicate OK [09:31:03]requested_item fd.num is exist - process it [09:31:03]SAM_PROTO_GetFieldsCounters [09:31:03]wFMCommunicate request_size=4 [09:31:03]MH_SAM_APDU [09:31:03]CAPDU: 80 13 00 00 [09:31:03]Write to MH i2c: E2 08 00 0E 27 80 13 00 00 00 00 00 00 B1 [09:31:03]Write i2c OK [09:31:03]MH_I2C_Read... [09:31:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:03]Read from MH i2c: E2 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 62 00 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 62 00 0E 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 73 2A 01 00 0E 04 04 00 72 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 28 [09:31:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 73 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:03]wFMCommunicate OK [09:31:03]SAM_PROTO_GetFieldsCounters done [09:31:03]requested_item shift.num is exist - process it [09:31:03]requested_item shift.opened is exist - process it [09:31:03]req_shift_opened [09:31:03]FM_GetShiftState [09:31:03]SAM_PROTO_GetShiftState [09:31:03]wFMCommunicate request_size=4 [09:31:03]MH_SAM_APDU [09:31:03]CAPDU: 80 13 01 00 [09:31:03]Write to MH i2c: E2 08 00 0F 27 80 13 01 00 00 00 00 00 B3 [09:31:03]Write i2c OK [09:31:03]MH_I2C_Read... [09:31:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:03]Read from MH i2c: E2 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 0E 00 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 0E 00 0F 27 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 98 [09:31:03]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:31:03]wFMCommunicate OK [09:31:03]SAM_PROTO_GetShiftState done [09:31:03]FM_GetShiftState done [09:31:03]req_shift_opened done [09:31:03]requested_item shift.open_date is exist - process it [09:31:03]req_shift_open_date [09:31:03]req_shift_open_date done [09:31:03]produce_requested_data done [09:31:03]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76403,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [09:31:03]process_action_free print_text [09:31:03]json_value_free [09:31:03]json_value_free done [09:31:03]process_json_proto returns [09:31:03]Send response to host [09:31:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76403,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [09:31:03]free response buf [09:31:03]execute_script done [09:31:03]execute_script returns [09:31:03]free content buf [09:31:03]Sock 9.Close socket [09:31:03]Sock 9.Thread stoped [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]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:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:11]accept exits with 7 [09:36:11]New connection [09:36:11]New thread 3066486116 created [09:36:11]Thread 3066629476 joined [09:36:11]Waiting for new connection... [09:36:11] Sock 7.Parse request [09:36:11]Sock 7.Check first char [09:36:11]Sock 7.First char is OK [09:36:11]request: POST /json_proto HTTP/1.0 [09:36:11]Method: POST [09:36:11]URL: /json_proto [09:36:11]Method is POST - this is cgi request [09:36:11]url: /json_proto [09:36:11]query_string will be loaded in cgi processing [09:36:11]execute_cgi json_proto POST (null) [09:36:11]execute_cgi path=json_proto method=POST [09:36:11]POST find Content-Length [09:36:11]Host: 172.17.62.5:8080 [09:36:11]Content-Length: 215 [09:36:11]Content-Type: application/json [09:36:11] [09:36:11]POST finish read [09:36:11]Found Content-Length = 215 [09:36:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:11]execute_script... [09:36:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:11]POST & json_proto [09:36:11]process_json_proto [09:36:11]json parsed OK: [09:36:11]protocol is kg_v1.0 [09:36:11]action value=get_value [09:36:11]process_action get_value [09:36:11]cmd_get_value [09:36:11]process_action get_value done [09:36:11]requested_data is exist [09:36:11]produce_requested_data [09:36:11]requested_item kkm.sn is exist - process it [09:36:11]requested_item kkm.ver is exist - process it [09:36:11]requested_item fm.sn is exist - process it [09:36:11]wFMCommunicate request_size=4 [09:36:11]MH_SAM_APDU [09:36:11]CAPDU: 80 11 00 00 [09:36:11]Write to MH i2c: E2 08 00 10 27 80 11 00 00 00 00 00 00 B1 [09:36:11]Write i2c OK [09:36:11]MH_I2C_Read... [09:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:12]Read from MH i2c: E2 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 17 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 17 00 10 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 04 [09:36:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:36:12]wFMCommunicate OK [09:36:12]requested_item fd.num is exist - process it [09:36:12]SAM_PROTO_GetFieldsCounters [09:36:12]wFMCommunicate request_size=4 [09:36:12]MH_SAM_APDU [09:36:12]CAPDU: 80 13 00 00 [09:36:12]Write to MH i2c: E2 08 00 11 27 80 13 00 00 00 00 00 00 B4 [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:12]Read from MH i2c: E2 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 62 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 62 00 11 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 73 2A 01 00 0E 04 04 00 72 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 2B [09:36: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 73 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:12]wFMCommunicate OK [09:36:12]SAM_PROTO_GetFieldsCounters done [09:36:12]requested_item shift.num is exist - process it [09:36:12]requested_item shift.opened is exist - process it [09:36:12]req_shift_opened [09:36:12]FM_GetShiftState [09:36:12]SAM_PROTO_GetShiftState [09:36:12]wFMCommunicate request_size=4 [09:36:12]MH_SAM_APDU [09:36:12]CAPDU: 80 13 01 00 [09:36:12]Write to MH i2c: E2 08 00 12 27 80 13 01 00 00 00 00 00 B6 [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:12]Read from MH i2c: E2 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 0E 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 0E 00 12 27 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 9B [09:36:12]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:36:12]wFMCommunicate OK [09:36:12]SAM_PROTO_GetShiftState done [09:36:12]FM_GetShiftState done [09:36:12]req_shift_opened done [09:36:12]requested_item shift.open_date is exist - process it [09:36:12]req_shift_open_date [09:36:12]req_shift_open_date done [09:36:12]produce_requested_data done [09:36:12]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76403,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [09:36:12]process_action_free get_value [09:36:12]json_value_free [09:36:12]json_value_free done [09:36:12]process_json_proto returns [09:36:12]Send response to host [09:36:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76403,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [09:36:12]free response buf [09:36:12]execute_script done [09:36:12]execute_script returns [09:36:12]free content buf [09:36:12]Sock 7.Close socket [09:36:12]Sock 7.Thread stoped [09:36:12]accept exits with 9 [09:36:12]New connection [09:36:12]New thread 3066629476 created [09:36:12]Thread 3066486116 joined [09:36:12]Waiting for new connection... [09:36:12] Sock 9.Parse request [09:36:12]Sock 9.Check first char [09:36:12]Sock 9.First char is OK [09:36:12]request: POST /json_proto HTTP/1.0 [09:36:12]Method: POST [09:36:12]URL: /json_proto [09:36:12]Method is POST - this is cgi request [09:36:12]url: /json_proto [09:36:12]query_string will be loaded in cgi processing [09:36:12]execute_cgi json_proto POST (null) [09:36:12]execute_cgi path=json_proto method=POST [09:36:12]POST find Content-Length [09:36:12]Host: 172.17.62.5:8080 [09:36:12]Content-Length: 331 [09:36:12]Content-Type: application/json [09:36:12] [09:36:12]POST finish read [09:36:12]Found Content-Length = 331 [09:36:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:36:12]execute_script... [09:36:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:36:12]POST & json_proto [09:36:12]process_json_proto [09:36:12]json parsed OK: [09:36:12]protocol is kg_v1.0 [09:36:12]action value=get_value [09:36:12]process_action get_value [09:36:12]cmd_get_value [09:36:12]process_action get_value done [09:36:12]requested_data is exist [09:36:12]produce_requested_data [09:36:12]requested_item fm.sale.total is exist - process it [09:36:12]SAM_PROTO_GetFMData [09:36:12]wFMCommunicate request_size=4 [09:36:12]MH_SAM_APDU [09:36:12]CAPDU: 80 13 03 00 [09:36:12]Write to MH i2c: E2 08 00 13 27 80 13 03 00 00 00 00 00 B9 [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:36:12]Read from MH i2c: E2 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 FD 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 FD 00 13 27 00 C8 04 85 04 C4 04 6E 04 04 00 8F 27 01 00 69 04 A3 00 6F 04 04 00 A1 25 01 00 B1 04 05 00 88 4F 7B B7 02 70 04 05 00 50 F9 17 74 02 72 04 04 00 38 56 63 43 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 62 E9 DD 49 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 A0 C2 27 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 DC [09:36:12]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 8F 27 01 00 69 04 A3 00 6F 04 04 00 A1 25 01 00 B1 04 05 00 88 4F 7B B7 02 70 04 05 00 50 F9 17 74 02 72 04 04 00 38 56 63 43 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 62 E9 DD 49 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 A0 C2 27 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 [09:36:12]wFMCommunicate OK [09:36:12]wFMCommunicate request_size=4 [09:36:12]MH_SAM_APDU [09:36:12]CAPDU: 80 17 00 00 [09:36:12]Write to MH i2c: E2 08 00 14 27 80 17 00 00 00 00 00 00 BB [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:36:13]Read from MH i2c: E2 [09:36:13]MH_I2C_Read... [09:36:13]Read from MH i2c: E2 FD 00 [09:36:13]MH_I2C_Read... [09:36:13]Read from MH i2c: E2 FD 00 14 27 00 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 B4 2D 75 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 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 90 00 22 [09:36:13]RAPDU: 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 B4 2D 75 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 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 90 00 [09:36:13]wFMCommunicate OK [09:36:13]wFMCommunicate request_size=4 [09:36:13]MH_SAM_APDU [09:36:13]CAPDU: 80 17 00 00 [09:36:13]Write to MH i2c: E2 08 00 15 27 80 17 00 00 00 00 00 00 BC [09:36:13]Write i2c OK [09:36:13]MH_I2C_Read... [09:36:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:36:13]Read from MH i2c: E2 [09:36:13]MH_I2C_Read... [09:36:13]Read from MH i2c: E2 FD 00 [09:36:13]MH_I2C_Read... [09:36:13]Read from MH i2c: E2 FD 00 15 27 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 94 [09:36:13]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:36:13]wFMCommunicate OK [09:36:13]wFMCommunicate request_size=4 [09:36:13]MH_SAM_APDU [09:36:13]CAPDU: 80 17 00 00 [09:36:13]Write to MH i2c: E2 08 00 16 27 80 17 00 00 00 00 00 00 BD [09:36:13]Write i2c OK [09:36:13]MH_I2C_Read... [09:36:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:36:13]Read from MH i2c: E2 [09:36:13]MH_I2C_Read... [09:36:13]Read from MH i2c: E2 FD 00 [09:36:13]MH_I2C_Read... [09:36:13]Read from MH i2c: E2 FD 00 16 27 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 90 00 35 [09:36:13]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [09:36:13]wFMCommunicate OK [09:36:13]wFMCommunicate request_size=4 [09:36:13]MH_SAM_APDU [09:36:13]CAPDU: 80 17 00 00 [09:36:13]Write to MH i2c: E2 08 00 17 27 80 17 00 00 00 00 00 00 BE [09:36:13]Write i2c OK [09:36:13]MH_I2C_Read... [09:36:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [09:36:13]Read from MH i2c: E2 [09:36:13]MH_I2C_Read... [09:36:13]Read from MH i2c: E2 E5 00 [09:36:13]MH_I2C_Read... [09:36:13]Read from MH i2c: E2 E5 00 17 27 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A2 [09:36:13]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:36:13]wFMCommunicate OK [09:36:13]SAM_PROTO_GetFMData done [09:36:13]requested_item fm.sale_refund.total is exist - process it [09:36:13]requested_item fm.buy.total is exist - process it [09:36:13]requested_item shift.sale.total is exist - process it [09:36:13]SAM_PROTO_GetShiftData [09:36:13]wFMCommunicate request_size=4 [09:36:13]MH_SAM_APDU [09:36:13]CAPDU: 80 13 02 00 [09:36:13]Write to MH i2c: E2 08 00 18 27 80 13 02 00 00 00 00 00 BD [09:36:13]Write i2c OK [09:36:13]MH_I2C_Read... [09:36:14]OFD Sender: No OFD packet to send [09:36:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:36:14]Read from MH i2c: E2 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: E2 FD 00 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: E2 FD 00 18 27 00 AE 04 AA 04 AA 04 6E 04 04 00 17 00 00 00 69 04 9B 00 6F 04 04 00 17 00 00 00 B1 04 03 00 A5 A0 25 70 04 03 00 B4 BE 1E 72 04 03 00 F1 E1 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 27 FF 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3D [09:36:14]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 17 00 00 00 69 04 9B 00 6F 04 04 00 17 00 00 00 B1 04 03 00 A5 A0 25 70 04 03 00 B4 BE 1E 72 04 03 00 F1 E1 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 27 FF 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:36:14]wFMCommunicate OK [09:36:14]wFMCommunicate request_size=4 [09:36:14]MH_SAM_APDU [09:36:14]CAPDU: 80 17 00 00 [09:36:14]Write to MH i2c: E2 08 00 19 27 80 17 00 00 00 00 00 00 C0 [09:36:14]Write i2c OK [09:36:14]MH_I2C_Read... [09:36:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:36:14]Read from MH i2c: E2 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: E2 FD 00 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: E2 FD 00 19 27 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 E2 [09:36:14]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 [09:36:14]wFMCommunicate OK [09:36:14]wFMCommunicate request_size=4 [09:36:14]MH_SAM_APDU [09:36:14]CAPDU: 80 17 00 00 [09:36:14]Write to MH i2c: E2 08 00 1A 27 80 17 00 00 00 00 00 00 C1 [09:36:14]Write i2c OK [09:36:14]MH_I2C_Read... [09:36:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:36:14]Read from MH i2c: E2 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: E2 FD 00 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: E2 FD 00 1A 27 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 78 [09:36:14]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 [09:36:14]wFMCommunicate OK [09:36:14]wFMCommunicate request_size=4 [09:36:14]MH_SAM_APDU [09:36:14]CAPDU: 80 17 00 00 [09:36:14]Write to MH i2c: E2 08 00 1B 27 80 17 00 00 00 00 00 00 C2 [09:36:14]Write i2c OK [09:36:14]MH_I2C_Read... [09:36:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:36:15]Read from MH i2c: E2 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: E2 FD 00 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: E2 FD 00 1B 27 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 34 [09:36:15]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 [09:36:15]wFMCommunicate OK [09:36:15]wFMCommunicate request_size=4 [09:36:15]MH_SAM_APDU [09:36:15]CAPDU: 80 17 00 00 [09:36:15]Write to MH i2c: E2 08 00 1C 27 80 17 00 00 00 00 00 00 C3 [09:36:15]Write i2c OK [09:36:15]MH_I2C_Read... [09:36:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:36:15]Read from MH i2c: E2 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: E2 CB 00 [09:36:15]MH_I2C_Read... [09:36:15]Read from MH i2c: E2 CB 00 1C 27 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 AC [09:36:15]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 [09:36:15]wFMCommunicate OK [09:36:15]SAM_PROTO_GetShiftData done [09:36:15]requested_item shift.sale.total_cash is exist - process it [09:36:15]requested_item shift.sale_refund.total is exist - process it [09:36:15]requested_item shift.sale_refund.total_cash is exist - process it [09:36:15]requested_item shift.buy.total is exist - process it [09:36:15]requested_item shift.buy.total_cash is exist - process it [09:36:15]produce_requested_data done [09:36:15]produce_requested_data return {"fm.sale.total":116682464.08,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":24659.57,"shift.sale.total_cash":20149.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:36:15]process_action_free get_value [09:36:15]json_value_free [09:36:15]json_value_free done [09:36:15]process_json_proto returns [09:36:15]Send response to host [09:36:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":116682464.08,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":24659.57,"shift.sale.total_cash":20149.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:36:15]free response buf [09:36:15]execute_script done [09:36:15]execute_script returns [09:36:15]free content buf [09:36:15]Sock 9.Close socket [09:36:15]Sock 9.Thread stoped [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [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:03]accept exits with 7 [09:37:03]New connection [09:37:03]New thread 3066486116 created [09:37:03]Thread 3066629476 joined [09:37:03]Waiting for new connection... [09:37:03] Sock 7.Parse request [09:37:03]Sock 7.Check first char [09:37:03]Sock 7.First char is OK [09:37:03]request: POST /json_proto HTTP/1.0 [09:37:03]Method: POST [09:37:03]URL: /json_proto [09:37:03]Method is POST - this is cgi request [09:37:03]url: /json_proto [09:37:03]query_string will be loaded in cgi processing [09:37:03]execute_cgi json_proto POST (null) [09:37:03]execute_cgi path=json_proto method=POST [09:37:03]POST find Content-Length [09:37:03]Host: 172.17.62.5:8080 [09:37:03]Content-Length: 1206 [09:37:03]Content-Type: application/json [09:37:03] [09:37:03]POST finish read [09:37:03]Found Content-Length = 1206 [09:37:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190856\u000A19.04.2024 09:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124100\u000A\u0414\u0422-\u041A-1\u000A 200.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 14580.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\u000A02104\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:03]execute_script... [09:37:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190856\u000A19.04.2024 09:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124100\u000A\u0414\u0422-\u041A-1\u000A 200.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 14580.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\u000A02104\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:03]POST & json_proto [09:37:03]process_json_proto [09:37:03]json parsed OK: [09:37:03]protocol is kg_v1.0 [09:37:03]action value=print_text [09:37:03]process_action print_text [09:37:03]cmd_print_text [09:37:03]ExternCall_PrintAddStr [09:37:03]wPrintStart [09:37:03]Write to MH i2c: 01 00 00 1D 27 44 [09:37:03]Write i2c OK [09:37:03]MH_I2C_Read... [09:37:03]Read from MH i2c: 01 [09:37:03]MH_I2C_Read... [09:37:03]Read from MH i2c: 01 07 00 [09:37:03]MH_I2C_Read... [09:37:03]Read from MH i2c: 01 07 00 1D 27 00 00 00 00 00 FF 0F 59 [09:37:03]RasterBufferAndPrint [09:37:03]line *****ТОВАРНЫЙ ЧЕК***** [09:37:03]line АЗС 106 [09:37:03]line Партнер нефть [09:37:03]line 02508201610067 [09:37:03]line Кассир : Табалдиева М. [09:37:03]line Счет N : (1)190856 [09:37:03]line 19.04.2024 09:18 [09:37:03]line ПРОДАЖА [09:37:03]line ТРК (МРК, ГНК): 23 [09:37:03]line Вид ГСМ : 2710124100 [09:37:03]line ДТ-К-1 [09:37:03]line 200.000 x 72.90 [09:37:03]line ИТОГ: 14580.00 [09:37:03]line Тип оплаты: Талоны: Топливная Карта [09:37:03]line 02104 [09:37:03]line ______________________ [09:37:03]line (подпись) [09:37:03]written 0, free lines is 4095 [09:37:03]Write to MH i2c: 01 00 00 31 27 58 [09:37:03]Write i2c OK [09:37:03]MH_I2C_Read... [09:37:03]Read from MH i2c: 01 [09:37:03]MH_I2C_Read... [09:37:03]Read from MH i2c: 01 07 00 [09:37:03]MH_I2C_Read... [09:37:03]Read from MH i2c: 01 07 00 31 27 00 00 00 00 00 10 0E 7D [09:37:03]RasterBufferAndPrint [09:37:03]line [09:37:03]line [09:37:03]line [09:37:03]line [09:37:03]line [09:37:03]written 0, free lines is 3601 [09:37:03]MH_Cut [09:37:03]Write to MH i2c: D1 01 00 38 27 01 31 [09:37:03]Write i2c OK [09:37:03]MH_I2C_Read... [09:37:03]Read from MH i2c: D1 [09:37:03]MH_I2C_Read... [09:37:03]Read from MH i2c: D1 01 00 [09:37:03]MH_I2C_Read... [09:37:03]Read from MH i2c: D1 01 00 38 27 00 30 [09:37:03]Write to MH i2c: 01 00 00 39 27 60 [09:37:03]Write i2c OK [09:37:03]MH_I2C_Read... [09:37:04]*** Cut start [09:37:04]*** Partial cut [09:37:04]*** CUTSNS_PIN = 1 [09:37:04]*** CUTSNS_PIN = 0 [09:37:04]OFD Sender: No OFD packet to send [09:37:04]*** Brake cut motor [09:37:04]Read from MH i2c: 01 [09:37:04]MH_I2C_Read... [09:37:04]*** Stop cut motor [09:37:04]*** Cut end [09:37:04]Read from MH i2c: 01 07 00 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: 01 07 00 39 27 00 00 00 00 00 FF 0F 75 [09:37:04]process_action print_text done [09:37:04]requested_data is exist [09:37:04]produce_requested_data [09:37:04]requested_item fm.sn is exist - process it [09:37:04]wFMCommunicate request_size=4 [09:37:04]MH_SAM_APDU [09:37:04]CAPDU: 80 11 00 00 [09:37:04]Write to MH i2c: E2 08 00 3A 27 80 11 00 00 00 00 00 00 DB [09:37:04]Write i2c OK [09:37:04]MH_I2C_Read... [09:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:04]Read from MH i2c: E2 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: E2 17 00 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: E2 17 00 3A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2E [09:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:37:04]wFMCommunicate OK [09:37:04]requested_item fd.num is exist - process it [09:37:04]SAM_PROTO_GetFieldsCounters [09:37:04]wFMCommunicate request_size=4 [09:37:04]MH_SAM_APDU [09:37:04]CAPDU: 80 13 00 00 [09:37:04]Write to MH i2c: E2 08 00 3B 27 80 13 00 00 00 00 00 00 DE [09:37:04]Write i2c OK [09:37:04]MH_I2C_Read... [09:37:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:04]Read from MH i2c: E2 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: E2 62 00 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: E2 62 00 3B 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 73 2A 01 00 0E 04 04 00 72 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 55 [09:37:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 73 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:04]wFMCommunicate OK [09:37:04]SAM_PROTO_GetFieldsCounters done [09:37:04]requested_item shift.num is exist - process it [09:37:04]requested_item shift.opened is exist - process it [09:37:04]req_shift_opened [09:37:04]FM_GetShiftState [09:37:04]SAM_PROTO_GetShiftState [09:37:04]wFMCommunicate request_size=4 [09:37:04]MH_SAM_APDU [09:37:04]CAPDU: 80 13 01 00 [09:37:04]Write to MH i2c: E2 08 00 3C 27 80 13 01 00 00 00 00 00 E0 [09:37:04]Write i2c OK [09:37:04]MH_I2C_Read... [09:37:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:05]Read from MH i2c: E2 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: E2 0E 00 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: E2 0E 00 3C 27 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 C5 [09:37:05]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:37:05]wFMCommunicate OK [09:37:05]SAM_PROTO_GetShiftState done [09:37:05]FM_GetShiftState done [09:37:05]req_shift_opened done [09:37:05]requested_item shift.open_date is exist - process it [09:37:05]req_shift_open_date [09:37:05]req_shift_open_date done [09:37:05]produce_requested_data done [09:37:05]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76403,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [09:37:05]process_action_free print_text [09:37:05]json_value_free [09:37:05]json_value_free done [09:37:05]process_json_proto returns [09:37:05]Send response to host [09:37:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76403,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [09:37:05]free response buf [09:37:05]execute_script done [09:37:05]execute_script returns [09:37:05]free content buf [09:37:05]Sock 7.Close socket [09:37:05]Sock 7.Thread stoped [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:27]accept exits with 9 [09:38:27]New connection [09:38:27]New thread 3066629476 created [09:38:27]Thread 3066486116 joined [09:38:27]Waiting for new connection... [09:38:27] Sock 9.Parse request [09:38:27]Sock 9.Check first char [09:38:27]Sock 9.First char is OK [09:38:27]request: POST /json_proto HTTP/1.0 [09:38:27]Method: POST [09:38:27]URL: /json_proto [09:38:27]Method is POST - this is cgi request [09:38:27]url: /json_proto [09:38:27]query_string will be loaded in cgi processing [09:38:27]execute_cgi json_proto POST (null) [09:38:27]execute_cgi path=json_proto method=POST [09:38:27]POST find Content-Length [09:38:27]Host: 172.17.62.5:8080 [09:38:27]Content-Length: 674 [09:38:27]Content-Type: application/json [09:38:27] [09:38:27]POST finish read [09:38:27]Found Content-Length = 674 [09:38:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190859", "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" ] } } [09:38:27]execute_script... [09:38: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)190859", "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" ] } } [09:38:27]POST & json_proto [09:38:27]process_json_proto [09:38:27]json parsed OK: [09:38:27]protocol is kg_v1.0 [09:38:27]action value=close_receipt [09:38:27]process_action close_receipt [09:38:27]cmd_close_receipt [09:38:27]MH_GetDate [09:38:27]Write to MH i2c: F0 00 00 3D 27 53 [09:38:27]Write i2c OK [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: F0 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: F0 09 00 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: F0 09 00 3D 27 00 98 3B 22 66 F4 E9 65 64 5D [09:38:27]GetLastDocTimeStamp 1713518850 [09:38:27]current date 1713519512 [09:38:27]FM_GetShiftState [09:38:27]SAM_PROTO_GetShiftState [09:38:27]wFMCommunicate request_size=4 [09:38:27]MH_SAM_APDU [09:38:27]CAPDU: 80 13 01 00 [09:38:27]Write to MH i2c: E2 08 00 3E 27 80 13 01 00 00 00 00 00 E2 [09:38:27]Write i2c OK [09:38:27]MH_I2C_Read... [09:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:27]Read from MH i2c: E2 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: E2 0E 00 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: E2 0E 00 3E 27 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 C7 [09:38:27]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:38:27]wFMCommunicate OK [09:38:27]SAM_PROTO_GetShiftState done [09:38:27]FM_GetShiftState done [09:38:27]opened in 1713486233 [09:38:27]opened+sec_in_day 1713572633 [09:38:27]quantity*price = 50009 [09:38:27]sum+1 = 50010 [09:38: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 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 24 19.04.2024 09:38 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76404 ФПД: 151620367776748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T093832&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76404&fm=151620367776748&tin=02508201610067®Number=0000000000091573&sum=50000 [09:38:29]StoreToDocumentArchive [09:38:29]shift 370 fd 76404 [09:38:29]save to /storage/0370/doc_00076404 [09:38:29]save last doc name /storage/0370/doc_00076404 to /storage/kkm_last_doc_name [09:38:29]save OK [09:38:29]Clear old archive folders... [09:38:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:38:29]tlvbuf is B6F067E0 [09:38:29]SAM_PROTO_ClearQueue [09:38:29]wFMCommunicate request_size=4 [09:38:29]MH_SAM_APDU [09:38:29]CAPDU: 80 09 00 00 [09:38:29]Write to MH i2c: E2 08 00 4B 27 80 09 00 00 00 00 00 00 E4 [09:38:29]Write i2c OK [09:38:29]MH_I2C_Read... [09:38:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:29]Read from MH i2c: E2 [09:38:29]MH_I2C_Read... [09:38:29]Read from MH i2c: E2 03 00 [09:38:29]MH_I2C_Read... [09:38:29]Read from MH i2c: E2 03 00 4B 27 00 90 00 E6 [09:38:29]RAPDU: 90 00 [09:38:29]wFMCommunicate OK [09:38:29]SAM_PROTO_ClearQueue done [09:38:29]KKMCreateOFDPacket [09:38:29]OFDProtocolAddRootSTLVToBuf [09:38:29]FM_MakeSignedData [09:38:29]FM_MakeSignedData [09:38:29]SAM_PROTO_SignData [09:38:29]wFMCommunicate request_size=4 [09:38:29]MH_SAM_APDU [09:38:29]CAPDU: 80 0D 01 02 [09:38:29]Write to MH i2c: E2 08 00 4C 27 80 0D 01 02 00 00 00 00 EC [09:38:29]Write i2c OK [09:38:29]MH_I2C_Read... [09:38:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:29]Read from MH i2c: E2 [09:38:29]MH_I2C_Read... [09:38:29]Read from MH i2c: E2 03 00 [09:38:29]MH_I2C_Read... [09:38:29]Read from MH i2c: E2 03 00 4C 27 00 90 00 E7 [09:38:29]RAPDU: 90 00 [09:38:29]wFMCommunicate OK [09:38:29]wFMCommunicate request_size=255 [09:38:29]MH_SAM_APDU [09:38: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 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 18 00 00 00 F4 03 04 00 98 3B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 74 2A 01 00 35 04 06 00 89 E5 DE 29 [09:38:29]Write to MH i2c: E2 02 01 4D 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 18 00 00 00 F4 03 04 00 98 3B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 74 2A 01 00 35 04 06 00 89 E5 DE 29 00 00 90 [09:38:29]Write i2c OK [09:38:29]MH_I2C_Read... [09:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:29]Read from MH i2c: E2 [09:38:29]MH_I2C_Read... [09:38:29]Read from MH i2c: E2 03 00 [09:38:29]MH_I2C_Read... [09:38:29]Read from MH i2c: E2 03 00 4D 27 00 90 00 E8 [09:38:29]RAPDU: 90 00 [09:38:29]wFMCommunicate OK [09:38:29]wFMCommunicate request_size=7 [09:38:29]MH_SAM_APDU [09:38:29]CAPDU: 80 0D 02 02 02 7B EC [09:38:29]Write to MH i2c: E2 0A 00 4E 27 80 0D 02 02 02 00 7B EC 00 00 5A [09:38:29]Write i2c OK [09:38:29]MH_I2C_Read... [09:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:29]Read from MH i2c: E2 [09:38:29]MH_I2C_Read... [09:38:29]Read from MH i2c: E2 03 00 [09:38:29]MH_I2C_Read... [09:38:29]Read from MH i2c: E2 03 00 4E 27 00 90 00 E9 [09:38:29]RAPDU: 90 00 [09:38:29]wFMCommunicate OK [09:38:29]wFMCommunicate request_size=4 [09:38:29]MH_SAM_APDU [09:38:29]CAPDU: 80 0D 03 02 [09:38:29]Write to MH i2c: E2 08 00 4F 27 80 0D 03 02 00 00 00 00 F1 [09:38:29]Write i2c OK [09:38:29]MH_I2C_Read... [09:38:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:29]Read from MH i2c: E2 [09:38:29]MH_I2C_Read... [09:38:29]Read from MH i2c: E2 0B 00 [09:38:29]MH_I2C_Read... [09:38:29]Read from MH i2c: E2 0B 00 4F 27 00 38 0A 4F CD 33 52 F3 62 90 00 2A [09:38:29]RAPDU: 38 0A 4F CD 33 52 F3 62 90 00 [09:38:29]wFMCommunicate OK [09:38:29]SAM_PROTO_SignData done [09:38:29]FM_MakeSignedData done [09:38:29]CreateOFDProtocolMessage [09:38:29]wFMCommunicate request_size=4 [09:38:29]MH_SAM_APDU [09:38:29]CAPDU: 80 11 00 00 [09:38:29]Write to MH i2c: E2 08 00 50 27 80 11 00 00 00 00 00 00 F1 [09:38:29]Write i2c OK [09:38:29]MH_I2C_Read... [09:38:29]OFD Sender: No OFD packet to send [09:38:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:29]Read from MH i2c: E2 [09:38:29]MH_I2C_Read... [09:38:29]Read from MH i2c: E2 17 00 [09:38:29]MH_I2C_Read... [09:38:29]Read from MH i2c: E2 17 00 50 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 44 [09:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:38:29]wFMCommunicate OK [09:38:29]CreateOFDProtocolMessage done [09:38:29]OFDSenderStorePacket 76404 [09:38:29]StoreOFDPacket docnum=76404 [09:38:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 8A DC 04 01 0B 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 18 00 00 00 F4 03 04 00 98 3B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 74 2A 01 00 35 04 06 00 89 E5 DE 29 7B EC 38 0A 4F CD 33 52 F3 62 [09:38:29]CheckFolder [09:38:29]dirname=/storage/ofd_packets [09:38:29]CheckFolder done [09:38:29]ProducePacketName [09:38:29]name=ofd_packets/00076404 [09:38:29]NVStorageSaveData ofd_packets/00076404 [09:38:29]File name is /storage/ofd_packets/00076404 [09:38:29]Write 298 bytes [09:38:29]NVStorageSaveData done [09:38:29]OFDSenderStorePacket done [09:38:29]KKMCreateOFDPacket done [09:38:29]NVStorageSaveData kkm_last_timestamp [09:38:29]File name is /storage/kkm_last_timestamp [09:38:29]Write 4 bytes [09:38:29]NVStorageSaveData done [09:38:29]ExternCall_PrintAddStr [09:38:29]wPrintStart [09:38:29]Write to MH i2c: 01 00 00 51 27 78 [09:38:29]Write i2c OK [09:38:29]MH_I2C_Read... [09:38:29]Read from MH i2c: 01 [09:38:29]MH_I2C_Read... [09:38:29]Read from MH i2c: 01 07 00 [09:38:29]MH_I2C_Read... [09:38:29]Read from MH i2c: 01 07 00 51 27 00 00 00 00 00 FF 0F 8D [09:38:29]RasterBufferAndPrint [09:38:29]line Счет N : (1)190859 [09:38:29]line ИНН: 02508201610067 [09:38:29]line Контрольно-Кассовый Чек [09:38:29]line ПРОДАЖА [09:38:29]line ТРК (МРК, ГНК) : 51 [09:38:29]line Товар: 2710194210 [09:38:29]line ДТ-К-5 [09:38:29]line 6.860 * 72.90 [09:38:29]line = 500.09 [09:38:29]line НДС 12% НСП 1% [09:38:29]line > о реализуемом товаре [09:38:29]line ОКРУГЛЕНИЕ: -0.09 [09:38:29]line ИТОГО: 500.00 [09:38:29]line Внесено: 500.00 [09:38:29]line СДАЧА: 0.00 [09:38:29]line НСП 1% : 4.43 [09:38:29]line НДС 12% : 53.11 [09:38:29]line Наличными: 500.00 [09:38:29]line Безнал.: 0.00 [09:38:29]line Место: АЗС № 106 "Партнер Нефть" [09:38:29]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:38:29]line СНО: Общий режим [09:38:29]line Чек 24 19.04.2024 09:38 [09:38:29]line Смена: 370 ФФД: 1.0 [09:38:29]line ЗНМ: 0300000141 [09:38:29]line РНМ: 0000000000091573 [09:38:29]line Версия ККМ: 001 [09:38:29]line ФМ: 0000000000874652 [09:38:29]line ФД: 76404 [09:38:29]line ФПД: 151620367776748 [09:38:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T093832&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76404&fm=151620367776748&tin=02508201610067®Number=0000000000091573&sum=50000 [09:38:29]OFD Sender: Processing packet 76404 [packets to send 128, broken 127] [09:38:29]ProducePacketName [09:38:29]name=ofd_packets/00076404 [09:38:29]OFD Sender: To server: pG, [09:38:29]CommunicateWithHost lk.salyk.kg:30040 [09:38:29]ConnectInit lk.salyk.kg [09:38:29]written 0, free lines is 4095 [09:38:30]Connected sock=10 [09:38:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 8A DC 04 01 0B 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 18 00 00 00 F4 03 04 00 98 3B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 74 2A 01 00 35 04 06 00 89 E5 DE 29 7B EC 38 0A 4F CD 33 52 F3 62 [09:38:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D1 36 47 00 85 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 74 2A 01 00 F4 03 04 00 24 E3 21 66 B6 04 01 00 00 B1 10 1D 0C 13 5E 9B C8 [09:38:30]CommunicateWithHost err = 0 [09:38:30]CheckOFDResponse [09:38:30]1017 (14) - 77093643461234 [09:38:30]1041 (16) - 0000000000874652 [09:38:30]1040 (4) - 76404 [09:38:30]1012 (4) - 19.04.2024 03:21 [09:38:30]1206 (1) - 0 [09:38:30]OFD Sender: Remove packet 76404 [09:38:30]ProducePacketName [09:38:30]name=ofd_packets/00076404 [09:38:30]NVStorageDeleteData [09:38:30]Write to MH i2c: 01 00 00 7B 27 A2 [09:38:30]Write i2c OK [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: 01 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: 01 07 00 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: 01 07 00 7B 27 00 00 00 00 00 F7 0C AC [09:38:30]RasterBufferAndPrint [09:38:30]line [09:38:30]line [09:38:30]line [09:38:30]line [09:38:30]line [09:38:30]written 0, free lines is 3326 [09:38:30]MH_Cut [09:38:30]Write to MH i2c: D1 01 00 82 27 01 7B [09:38:30]Write i2c OK [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: D1 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: D1 01 00 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: D1 01 00 82 27 00 7A [09:38:30]Write to MH i2c: 01 00 00 83 27 AA [09:38:30]Write i2c OK [09:38:30]MH_I2C_Read... [09:38:30]OFD Sender: No OFD packet to send [09:38:31]*** Cut start [09:38:31]*** Partial cut [09:38:31]*** CUTSNS_PIN = 1 [09:38:31]*** CUTSNS_PIN = 0 [09:38:31]*** Brake cut motor [09:38:31]Read from MH i2c: 01 [09:38:31]MH_I2C_Read... [09:38:31]*** Stop cut motor [09:38:31]*** Cut end [09:38:31]Read from MH i2c: 01 07 00 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: 01 07 00 83 27 00 00 00 00 00 FF 0F BF [09:38:31]process_action close_receipt done [09:38:31]requested_data is exist [09:38:31]produce_requested_data [09:38:31]requested_item fm.sn is exist - process it [09:38:31]wFMCommunicate request_size=4 [09:38:31]MH_SAM_APDU [09:38:31]CAPDU: 80 11 00 00 [09:38:31]Write to MH i2c: E2 08 00 84 27 80 11 00 00 00 00 00 00 25 [09:38:31]Write i2c OK [09:38:31]MH_I2C_Read... [09:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:31]Read from MH i2c: E2 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 17 00 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 17 00 84 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 78 [09:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:38:31]wFMCommunicate OK [09:38:31]requested_item fd.num is exist - process it [09:38:31]SAM_PROTO_GetFieldsCounters [09:38:31]wFMCommunicate request_size=4 [09:38:31]MH_SAM_APDU [09:38:31]CAPDU: 80 13 00 00 [09:38:31]Write to MH i2c: E2 08 00 85 27 80 13 00 00 00 00 00 00 28 [09:38:31]Write i2c OK [09:38:31]MH_I2C_Read... [09:38:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:31]Read from MH i2c: E2 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 62 00 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 62 00 85 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 74 2A 01 00 0E 04 04 00 72 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 A3 [09:38: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 74 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:38:31]wFMCommunicate OK [09:38:31]SAM_PROTO_GetFieldsCounters done [09:38:31]requested_item shift.num is exist - process it [09:38:31]requested_item shift.opened is exist - process it [09:38:31]req_shift_opened [09:38:31]FM_GetShiftState [09:38:31]SAM_PROTO_GetShiftState [09:38:31]wFMCommunicate request_size=4 [09:38:31]MH_SAM_APDU [09:38:31]CAPDU: 80 13 01 00 [09:38:31]Write to MH i2c: E2 08 00 86 27 80 13 01 00 00 00 00 00 2A [09:38:31]Write i2c OK [09:38:31]MH_I2C_Read... [09:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:31]Read from MH i2c: E2 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 0E 00 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 0E 00 86 27 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 0F [09:38:31]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:38:31]wFMCommunicate OK [09:38:31]SAM_PROTO_GetShiftState done [09:38:31]FM_GetShiftState done [09:38:31]req_shift_opened done [09:38:31]requested_item shift.open_date is exist - process it [09:38:31]req_shift_open_date [09:38:31]req_shift_open_date done [09:38:31]produce_requested_data done [09:38:31]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76404,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [09:38:31]process_action_free close_receipt [09:38:31]json_value_free [09:38:31]json_value_free done [09:38:31]process_json_proto returns [09:38:31]Send response to host [09:38:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76404,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [09:38:31]free response buf [09:38:31]execute_script done [09:38:31]execute_script returns [09:38:31]free content buf [09:38:31]Sock 9.Close socket [09:38:31]Sock 9.Thread stoped [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:29]accept exits with 7 [09:41:29]New connection [09:41:29]New thread 3066486116 created [09:41:29]Thread 3066629476 joined [09:41:29]Waiting for new connection... [09:41:29] Sock 7.Parse request [09:41:29]Sock 7.Check first char [09:41:29]Sock 7.First char is OK [09:41:29]request: POST /json_proto HTTP/1.0 [09:41:29]Method: POST [09:41:29]URL: /json_proto [09:41:29]Method is POST - this is cgi request [09:41:29]url: /json_proto [09:41:29]query_string will be loaded in cgi processing [09:41:29]execute_cgi json_proto POST (null) [09:41:29]execute_cgi path=json_proto method=POST [09:41:29]POST find Content-Length [09:41:29]Host: 172.17.62.5:8080 [09:41:29]Content-Length: 987 [09:41:29]Content-Type: application/json [09:41:29] [09:41:29]POST finish read [09:41:29]Found Content-Length = 987 [09:41:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 30.470, "sum" : 965.90, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.47 \u0441\u043E\u043C", "deposit" : 1000.00, "total" : 965.00, "payments": [ { "type": 0, "sum" : 965.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:29]execute_script... [09:41:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 30.470, "sum" : 965.90, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.47 \u0441\u043E\u043C", "deposit" : 1000.00, "total" : 965.00, "payments": [ { "type": 0, "sum" : 965.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:29]POST & json_proto [09:41:29]process_json_proto [09:41:29]json parsed OK: [09:41:29]protocol is kg_v1.0 [09:41:29]action value=close_receipt [09:41:29]process_action close_receipt [09:41:29]cmd_close_receipt [09:41:29]MH_GetDate [09:41:29]Write to MH i2c: F0 00 00 87 27 9D [09:41:29]Write i2c OK [09:41:29]MH_I2C_Read... [09:41:29]Read from MH i2c: F0 [09:41:29]MH_I2C_Read... [09:41:29]Read from MH i2c: F0 09 00 [09:41:29]MH_I2C_Read... [09:41:29]Read from MH i2c: F0 09 00 87 27 00 4E 3C 22 66 F4 E9 65 64 5E [09:41:29]GetLastDocTimeStamp 1713519512 [09:41:29]current date 1713519694 [09:41:29]FM_GetShiftState [09:41:29]SAM_PROTO_GetShiftState [09:41:29]wFMCommunicate request_size=4 [09:41:29]MH_SAM_APDU [09:41:29]CAPDU: 80 13 01 00 [09:41:29]Write to MH i2c: E2 08 00 88 27 80 13 01 00 00 00 00 00 2C [09:41:29]Write i2c OK [09:41:29]MH_I2C_Read... [09:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:29]Read from MH i2c: E2 [09:41:29]MH_I2C_Read... [09:41:29]Read from MH i2c: E2 0E 00 [09:41:29]MH_I2C_Read... [09:41:29]Read from MH i2c: E2 0E 00 88 27 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 11 [09:41:29]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:41:29]wFMCommunicate OK [09:41:29]SAM_PROTO_GetShiftState done [09:41:29]FM_GetShiftState done [09:41:29]opened in 1713486233 [09:41:29]opened+sec_in_day 1713572633 [09:41:29]quantity*price = 96589 [09:41:29]sum+1 = 96591 [09:41:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.90 ИТОГО: 965.00 Внесено: 1000.00 СДАЧА: 35.00 НСП 1% : 8.55 НДС 12% : 102.57 Наличными: 965.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 25 19.04.2024 09:41 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 30.47 сом ФМ: 0000000000874652 ФД: 76405 ФПД: 104664254228656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T094134&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76405&fm=104664254228656&tin=02508201610067®Number=0000000000091573&sum=96500 [09:41:30]StoreToDocumentArchive [09:41:30]shift 370 fd 76405 [09:41:30]save to /storage/0370/doc_00076405 [09:41:30]save last doc name /storage/0370/doc_00076405 to /storage/kkm_last_doc_name [09:41:30]save OK [09:41:30]Clear old archive folders... [09:41:30]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:41:30]tlvbuf is 009621F0 [09:41:30]SAM_PROTO_ClearQueue [09:41:30]wFMCommunicate request_size=4 [09:41:30]MH_SAM_APDU [09:41:30]CAPDU: 80 09 00 00 [09:41:30]Write to MH i2c: E2 08 00 95 27 80 09 00 00 00 00 00 00 2E [09:41:30]Write i2c OK [09:41:30]MH_I2C_Read... [09:41:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:30]Read from MH i2c: E2 [09:41:30]MH_I2C_Read... [09:41:30]Read from MH i2c: E2 03 00 [09:41:30]MH_I2C_Read... [09:41:30]Read from MH i2c: E2 03 00 95 27 00 90 00 30 [09:41:30]RAPDU: 90 00 [09:41:30]wFMCommunicate OK [09:41:30]SAM_PROTO_ClearQueue done [09:41:30]KKMCreateOFDPacket [09:41:30]OFDProtocolAddRootSTLVToBuf [09:41:30]FM_MakeSignedData [09:41:30]FM_MakeSignedData [09:41:30]SAM_PROTO_SignData [09:41:30]wFMCommunicate request_size=4 [09:41:30]MH_SAM_APDU [09:41:30]CAPDU: 80 0D 01 02 [09:41:30]Write to MH i2c: E2 08 00 96 27 80 0D 01 02 00 00 00 00 36 [09:41:30]Write i2c OK [09:41:30]MH_I2C_Read... [09:41:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:30]Read from MH i2c: E2 [09:41:30]MH_I2C_Read... [09:41:30]Read from MH i2c: E2 03 00 [09:41:30]MH_I2C_Read... [09:41:30]Read from MH i2c: E2 03 00 96 27 00 90 00 31 [09:41:30]RAPDU: 90 00 [09:41:30]wFMCommunicate OK [09:41:30]wFMCommunicate request_size=255 [09:41:30]MH_SAM_APDU [09:41:30]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 06 77 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 4E 79 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 78 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 28 00 00 00 00 07 04 06 00 F4 78 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 4E 3C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 75 2A 01 00 35 04 06 00 5F 31 [09:41:30]Write to MH i2c: E2 02 01 97 27 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 06 77 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 4E 79 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 78 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 28 00 00 00 00 07 04 06 00 F4 78 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 4E 3C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 75 2A 01 00 35 04 06 00 5F 31 00 00 D5 [09:41:30]Write i2c OK [09:41:30]MH_I2C_Read... [09:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:31]OFD Sender: No OFD packet to send [09:41:31]Read from MH i2c: E2 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: E2 03 00 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: E2 03 00 97 27 00 90 00 32 [09:41:31]RAPDU: 90 00 [09:41:31]wFMCommunicate OK [09:41:31]wFMCommunicate request_size=9 [09:41:31]MH_SAM_APDU [09:41:31]CAPDU: 80 0D 02 02 04 0B B1 A8 B0 [09:41:31]Write to MH i2c: E2 0C 00 98 27 80 0D 02 02 04 00 0B B1 A8 B0 00 00 55 [09:41:31]Write i2c OK [09:41:31]MH_I2C_Read... [09:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:31]Read from MH i2c: E2 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: E2 03 00 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: E2 03 00 98 27 00 90 00 33 [09:41:31]RAPDU: 90 00 [09:41:31]wFMCommunicate OK [09:41:31]wFMCommunicate request_size=4 [09:41:31]MH_SAM_APDU [09:41:31]CAPDU: 80 0D 03 02 [09:41:31]Write to MH i2c: E2 08 00 99 27 80 0D 03 02 00 00 00 00 3B [09:41:31]Write i2c OK [09:41:31]MH_I2C_Read... [09:41:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:31]Read from MH i2c: E2 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: E2 0B 00 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: E2 0B 00 99 27 00 8D FA CF F1 93 27 D9 36 90 00 4C [09:41:31]RAPDU: 8D FA CF F1 93 27 D9 36 90 00 [09:41:31]wFMCommunicate OK [09:41:31]SAM_PROTO_SignData done [09:41:31]FM_MakeSignedData done [09:41:31]CreateOFDProtocolMessage [09:41:31]wFMCommunicate request_size=4 [09:41:31]MH_SAM_APDU [09:41:31]CAPDU: 80 11 00 00 [09:41:31]Write to MH i2c: E2 08 00 9A 27 80 11 00 00 00 00 00 00 3B [09:41:31]Write i2c OK [09:41:31]MH_I2C_Read... [09:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:31]Read from MH i2c: E2 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: E2 17 00 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: E2 17 00 9A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8E [09:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:41:31]wFMCommunicate OK [09:41:31]CreateOFDProtocolMessage done [09:41:31]OFDSenderStorePacket 76405 [09:41:31]StoreOFDPacket docnum=76405 [09:41:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 3E E2 06 01 3F 1D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 06 77 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 4E 79 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 78 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 28 00 00 00 00 07 04 06 00 F4 78 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 4E 3C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 75 2A 01 00 35 04 06 00 5F 31 0B B1 A8 B0 8D FA CF F1 93 27 D9 36 [09:41:31]CheckFolder [09:41:31]dirname=/storage/ofd_packets [09:41:31]CheckFolder done [09:41:31]ProducePacketName [09:41:31]name=ofd_packets/00076405 [09:41:31]NVStorageSaveData ofd_packets/00076405 [09:41:31]File name is /storage/ofd_packets/00076405 [09:41:31]Write 300 bytes [09:41:31]NVStorageSaveData done [09:41:31]OFDSenderStorePacket done [09:41:31]KKMCreateOFDPacket done [09:41:31]NVStorageSaveData kkm_last_timestamp [09:41:31]File name is /storage/kkm_last_timestamp [09:41:31]Write 4 bytes [09:41:31]NVStorageSaveData done [09:41:31]ExternCall_PrintAddStr [09:41:31]wPrintStart [09:41:31]Write to MH i2c: 01 00 00 9B 27 C2 [09:41:31]Write i2c OK [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: 01 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: 01 07 00 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: 01 07 00 9B 27 00 00 00 00 00 FF 0F D7 [09:41:31]RasterBufferAndPrint [09:41:31]line Счет N : (1)190858 [09:41:31]line ИНН: 02508201610067 [09:41:31]line Контрольно-Кассовый Чек [09:41:31]line ПРОДАЖА [09:41:31]line ТРК (МРК, ГНК) : 71 [09:41:31]line Товар: 2711190000 [09:41:31]line ГАЗ-К-5 [09:41:31]line 30.470 * 31.70 [09:41:31]line = 965.90 [09:41:31]line НДС 12% НСП 1% [09:41:31]line > о реализуемом товаре [09:41:31]line ОКРУГЛЕНИЕ: -0.90 [09:41:31]line ИТОГО: 965.00 [09:41:31]line Внесено: 1000.00 [09:41:31]line СДАЧА: 35.00 [09:41:31]line НСП 1% : 8.55 [09:41:31]line НДС 12% : 102.57 [09:41:31]line Наличными: 965.00 [09:41:31]line Безнал.: 0.00 [09:41:31]line Место: АЗС № 106 "Партнер Нефть" [09:41:31]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:41:31]line СНО: Общий режим [09:41:31]line Чек 25 19.04.2024 09:41 [09:41:31]line Смена: 370 ФФД: 1.0 [09:41:31]line ЗНМ: 0300000141 [09:41:31]line РНМ: 0000000000091573 [09:41:31]line Версия ККМ: 001 [09:41:31]line [09:41:31]line Дисконтная программа [09:41:31]line СУГ [09:41:31]line номер 106 [09:41:31]line сэкономлено 30.47 сом [09:41:31]line ФМ: 0000000000874652 [09:41:31]line ФД: 76405 [09:41:31]line ФПД: 104664254228656 [09:41:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T094134&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76405&fm=104664254228656&tin=02508201610067®Number=0000000000091573&sum=96500 [09:41:31]OFD Sender: Processing packet 76405 [packets to send 128, broken 127] [09:41:31]ProducePacketName [09:41:31]name=ofd_packets/00076405 [09:41:31]OFD Sender: To server: pG, [09:41:31]CommunicateWithHost lk.salyk.kg:30040 [09:41:31]ConnectInit lk.salyk.kg [09:41:31]written 0, free lines is 4095 [09:41:31]Connected sock=10 [09:41:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 3E E2 06 01 3F 1D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 06 77 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 4E 79 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 78 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 28 00 00 00 00 07 04 06 00 F4 78 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 4E 3C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 75 2A 01 00 35 04 06 00 5F 31 0B B1 A8 B0 8D FA CF F1 93 27 D9 36 [09:41:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 52 8A 47 00 3A 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 34 36 35 32 10 04 04 00 75 2A 01 00 F4 03 04 00 DA E3 21 66 B6 04 01 00 00 31 A4 39 9C 29 44 88 48 [09:41:31]CommunicateWithHost err = 0 [09:41:31]CheckOFDResponse [09:41:31]1017 (14) - 77093643461234 [09:41:31]1041 (16) - 0000000000874652 [09:41:31]1040 (4) - 76405 [09:41:31]1012 (4) - 19.04.2024 03:24 [09:41:31]1206 (1) - 0 [09:41:31]OFD Sender: Remove packet 76405 [09:41:31]ProducePacketName [09:41:31]name=ofd_packets/00076405 [09:41:31]NVStorageDeleteData [09:41:32]Write to MH i2c: 01 00 00 CA 27 F1 [09:41:32]Write i2c OK [09:41:32]MH_I2C_Read... [09:41:32]Read from MH i2c: 01 [09:41:32]MH_I2C_Read... [09:41:32]Read from MH i2c: 01 07 00 [09:41:32]MH_I2C_Read... [09:41:32]Read from MH i2c: 01 07 00 CA 27 00 00 00 00 00 A0 0C A4 [09:41:32]RasterBufferAndPrint [09:41:32]line [09:41:32]line [09:41:32]line [09:41:32]line [09:41:32]line [09:41:32]written 0, free lines is 3238 [09:41:32]MH_Cut [09:41:32]Write to MH i2c: D1 01 00 D1 27 01 CA [09:41:32]Write i2c OK [09:41:32]MH_I2C_Read... [09:41:32]Read from MH i2c: D1 [09:41:32]MH_I2C_Read... [09:41:32]Read from MH i2c: D1 01 00 [09:41:32]MH_I2C_Read... [09:41:32]Read from MH i2c: D1 01 00 D1 27 00 C9 [09:41:32]Write to MH i2c: 01 00 00 D2 27 F9 [09:41:32]Write i2c OK [09:41:32]MH_I2C_Read... [09:41:32]OFD Sender: No OFD packet to send [09:41:32]*** Cut start [09:41:32]*** Partial cut [09:41:32]*** CUTSNS_PIN = 1 [09:41:32]*** CUTSNS_PIN = 0 [09:41:33]*** Brake cut motor [09:41:33]Read from MH i2c: 01 [09:41:33]MH_I2C_Read... [09:41:33]*** Stop cut motor [09:41:33]*** Cut end [09:41:33]Read from MH i2c: 01 07 00 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: 01 07 00 D2 27 00 00 00 00 00 FF 0F 0E [09:41:33]process_action close_receipt done [09:41:33]requested_data is exist [09:41:33]produce_requested_data [09:41:33]requested_item fm.sn is exist - process it [09:41:33]wFMCommunicate request_size=4 [09:41:33]MH_SAM_APDU [09:41:33]CAPDU: 80 11 00 00 [09:41:33]Write to MH i2c: E2 08 00 D3 27 80 11 00 00 00 00 00 00 74 [09:41:33]Write i2c OK [09:41:33]MH_I2C_Read... [09:41:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:33]Read from MH i2c: E2 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: E2 17 00 [09:41:33]MH_I2C_Read... [09:41: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 34 36 35 32 90 00 C7 [09:41:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:41:33]wFMCommunicate OK [09:41:33]requested_item fd.num is exist - process it [09:41:33]SAM_PROTO_GetFieldsCounters [09:41:33]wFMCommunicate request_size=4 [09:41:33]MH_SAM_APDU [09:41:33]CAPDU: 80 13 00 00 [09:41:33]Write to MH i2c: E2 08 00 D4 27 80 13 00 00 00 00 00 00 77 [09:41:33]Write i2c OK [09:41:33]MH_I2C_Read... [09:41:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:33]Read from MH i2c: E2 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: E2 62 00 [09:41:33]MH_I2C_Read... [09:41: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 75 2A 01 00 0E 04 04 00 72 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 F6 [09:41:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 75 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:33]wFMCommunicate OK [09:41:33]SAM_PROTO_GetFieldsCounters done [09:41:33]requested_item shift.num is exist - process it [09:41:33]requested_item shift.opened is exist - process it [09:41:33]req_shift_opened [09:41:33]FM_GetShiftState [09:41:33]SAM_PROTO_GetShiftState [09:41:33]wFMCommunicate request_size=4 [09:41:33]MH_SAM_APDU [09:41:33]CAPDU: 80 13 01 00 [09:41:33]Write to MH i2c: E2 08 00 D5 27 80 13 01 00 00 00 00 00 79 [09:41:33]Write i2c OK [09:41:33]MH_I2C_Read... [09:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:33]Read from MH i2c: E2 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: E2 0E 00 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: E2 0E 00 D5 27 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 5E [09:41:33]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:41:33]wFMCommunicate OK [09:41:33]SAM_PROTO_GetShiftState done [09:41:33]FM_GetShiftState done [09:41:33]req_shift_opened done [09:41:33]requested_item shift.open_date is exist - process it [09:41:33]req_shift_open_date [09:41:33]req_shift_open_date done [09:41:33]produce_requested_data done [09:41:33]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76405,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [09:41:33]process_action_free close_receipt [09:41:33]json_value_free [09:41:33]json_value_free done [09:41:33]process_json_proto returns [09:41:33]Send response to host [09:41:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76405,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [09:41:33]free response buf [09:41:33]execute_script done [09:41:33]execute_script returns [09:41:33]free content buf [09:41:33]Sock 7.Close socket [09:41:33]Sock 7.Thread stoped [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [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:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:44:59]accept exits with 9 [09:44:59]New connection [09:44:59]New thread 3066629476 created [09:44:59]Thread 3066486116 joined [09:44:59]Waiting for new connection... [09:44:59] Sock 9.Parse request [09:44:59]Sock 9.Check first char [09:44:59]Sock 9.First char is OK [09:44:59]request: POST /json_proto HTTP/1.0 [09:44:59]Method: POST [09:44:59]URL: /json_proto [09:44:59]Method is POST - this is cgi request [09:44:59]url: /json_proto [09:44:59]query_string will be loaded in cgi processing [09:44:59]execute_cgi json_proto POST (null) [09:44:59]execute_cgi path=json_proto method=POST [09:44:59]POST find Content-Length [09:44:59]Host: 172.17.62.5:8080 [09:44:59]Content-Length: 671 [09:44:59]Content-Type: application/json [09:44:59] [09:44:59]POST finish read [09:44:59]Found Content-Length = 671 [09:44:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 13.770, "sum" : 900.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:59]execute_script... [09:44: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)190860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 13.770, "sum" : 900.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:59]POST & json_proto [09:44:59]process_json_proto [09:44:59]json parsed OK: [09:44:59]protocol is kg_v1.0 [09:44:59]action value=close_receipt [09:44:59]process_action close_receipt [09:44:59]cmd_close_receipt [09:44:59]MH_GetDate [09:44:59]Write to MH i2c: F0 00 00 D6 27 EC [09:44:59]Write i2c OK [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: F0 [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: F0 09 00 [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: F0 09 00 D6 27 00 20 3D 22 66 F4 E9 65 64 80 [09:44:59]GetLastDocTimeStamp 1713519694 [09:44:59]current date 1713519904 [09:44:59]FM_GetShiftState [09:44:59]SAM_PROTO_GetShiftState [09:44:59]wFMCommunicate request_size=4 [09:44:59]MH_SAM_APDU [09:44:59]CAPDU: 80 13 01 00 [09:44:59]Write to MH i2c: E2 08 00 D7 27 80 13 01 00 00 00 00 00 7B [09:44:59]Write i2c OK [09:44:59]MH_I2C_Read... [09:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:59]Read from MH i2c: E2 [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: E2 0E 00 [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: E2 0E 00 D7 27 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 60 [09:44:59]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:44:59]wFMCommunicate OK [09:44:59]SAM_PROTO_GetShiftState done [09:44:59]FM_GetShiftState done [09:44:59]opened in 1713486233 [09:44:59]opened+sec_in_day 1713572633 [09:44:59]quantity*price = 90055 [09:44:59]sum+1 = 90057 [09:44:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.63 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 26 19.04.2024 09:45 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76406 ФПД: 79586656421864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T094504&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76406&fm=79586656421864&tin=02508201610067®Number=0000000000091573&sum=90000 [09:45:00]StoreToDocumentArchive [09:45:00]shift 370 fd 76406 [09:45:00]save to /storage/0370/doc_00076406 [09:45:00]save last doc name /storage/0370/doc_00076406 to /storage/kkm_last_doc_name [09:45:00]save OK [09:45:00]Clear old archive folders... [09:45:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:45:00]tlvbuf is B6F09910 [09:45:00]SAM_PROTO_ClearQueue [09:45:00]wFMCommunicate request_size=4 [09:45:00]MH_SAM_APDU [09:45:00]CAPDU: 80 09 00 00 [09:45:00]Write to MH i2c: E2 08 00 E4 27 80 09 00 00 00 00 00 00 7D [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:00]Read from MH i2c: E2 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 03 00 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 03 00 E4 27 00 90 00 7F [09:45:00]RAPDU: 90 00 [09:45:00]wFMCommunicate OK [09:45:00]SAM_PROTO_ClearQueue done [09:45:00]KKMCreateOFDPacket [09:45:00]OFDProtocolAddRootSTLVToBuf [09:45:00]FM_MakeSignedData [09:45:00]FM_MakeSignedData [09:45:00]SAM_PROTO_SignData [09:45:00]wFMCommunicate request_size=4 [09:45:00]MH_SAM_APDU [09:45:00]CAPDU: 80 0D 01 02 [09:45:00]Write to MH i2c: E2 08 00 E5 27 80 0D 01 02 00 00 00 00 85 [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:00]Read from MH i2c: E2 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 03 00 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 03 00 E5 27 00 90 00 80 [09:45:00]RAPDU: 90 00 [09:45:00]wFMCommunicate OK [09:45:00]wFMCommunicate request_size=255 [09:45:00]MH_SAM_APDU [09:45: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 CA 35 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 C8 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 20 3D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 76 2A 01 00 35 04 06 00 [09:45:00]Write to MH i2c: E2 02 01 E6 27 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 35 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 C8 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 20 3D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 76 2A 01 00 35 04 06 00 00 00 8B [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:01]Read from MH i2c: E2 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 03 00 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 03 00 E6 27 00 90 00 81 [09:45:01]RAPDU: 90 00 [09:45:01]wFMCommunicate OK [09:45:01]wFMCommunicate request_size=11 [09:45:01]MH_SAM_APDU [09:45:01]CAPDU: 80 0D 02 02 06 48 62 36 62 87 E8 [09:45:01]Write to MH i2c: E2 0E 00 E7 27 80 0D 02 02 06 00 48 62 36 62 87 E8 00 00 45 [09:45:01]Write i2c OK [09:45:01]MH_I2C_Read... [09:45:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:01]Read from MH i2c: E2 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 03 00 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 03 00 E7 27 00 90 00 82 [09:45:01]RAPDU: 90 00 [09:45:01]wFMCommunicate OK [09:45:01]wFMCommunicate request_size=4 [09:45:01]MH_SAM_APDU [09:45:01]CAPDU: 80 0D 03 02 [09:45:01]Write to MH i2c: E2 08 00 E8 27 80 0D 03 02 00 00 00 00 8A [09:45:01]Write i2c OK [09:45:01]MH_I2C_Read... [09:45:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:01]Read from MH i2c: E2 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 0B 00 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 0B 00 E8 27 00 65 93 0A AA 9D A3 7C 63 90 00 56 [09:45:01]RAPDU: 65 93 0A AA 9D A3 7C 63 90 00 [09:45:01]wFMCommunicate OK [09:45:01]SAM_PROTO_SignData done [09:45:01]FM_MakeSignedData done [09:45:01]CreateOFDProtocolMessage [09:45:01]wFMCommunicate request_size=4 [09:45:01]MH_SAM_APDU [09:45:01]CAPDU: 80 11 00 00 [09:45:01]Write to MH i2c: E2 08 00 E9 27 80 11 00 00 00 00 00 00 8A [09:45:01]Write i2c OK [09:45:01]MH_I2C_Read... [09:45:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:01]Read from MH i2c: E2 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 17 00 [09:45:01]MH_I2C_Read... [09:45:01]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 34 36 35 32 90 00 DD [09:45:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:45:01]wFMCommunicate OK [09:45:01]CreateOFDProtocolMessage done [09:45:01]OFDSenderStorePacket 76406 [09:45:01]StoreOFDPacket docnum=76406 [09:45:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 6E 5A 08 01 10 F2 5A 03 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 35 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 C8 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 20 3D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 76 2A 01 00 35 04 06 00 48 62 36 62 87 E8 65 93 0A AA 9D A3 7C 63 [09:45:01]CheckFolder [09:45:01]dirname=/storage/ofd_packets [09:45:01]CheckFolder done [09:45:01]ProducePacketName [09:45:01]name=ofd_packets/00076406 [09:45:01]NVStorageSaveData ofd_packets/00076406 [09:45:01]File name is /storage/ofd_packets/00076406 [09:45:01]Write 302 bytes [09:45:01]NVStorageSaveData done [09:45:01]OFDSenderStorePacket done [09:45:01]KKMCreateOFDPacket done [09:45:01]NVStorageSaveData kkm_last_timestamp [09:45:01]File name is /storage/kkm_last_timestamp [09:45:01]Write 4 bytes [09:45:01]NVStorageSaveData done [09:45:01]ExternCall_PrintAddStr [09:45:01]wPrintStart [09:45:01]Write to MH i2c: 01 00 00 EA 27 11 [09:45:01]Write i2c OK [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: 01 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: 01 07 00 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: 01 07 00 EA 27 00 00 00 00 00 FF 0F 26 [09:45:01]RasterBufferAndPrint [09:45:01]line Счет N : (1)190860 [09:45:01]line ИНН: 02508201610067 [09:45:01]line Контрольно-Кассовый Чек [09:45:01]line ПРОДАЖА [09:45:01]line ТРК (МРК, ГНК) : 41 [09:45:01]line Товар: 2710124130 [09:45:01]line SUPER 92-К-5 [09:45:01]line 13.770 * 65.40 [09:45:01]line = 900.56 [09:45:01]line НДС 12% НСП 1% [09:45:01]line > о реализуемом товаре [09:45:01]line ОКРУГЛЕНИЕ: -0.56 [09:45:01]line ИТОГО: 900.00 [09:45:01]line Внесено: 900.00 [09:45:01]line СДАЧА: 0.00 [09:45:01]line НСП 1% : 7.97 [09:45:01]line НДС 12% : 95.63 [09:45:01]line Наличными: 900.00 [09:45:01]line Безнал.: 0.00 [09:45:01]line Место: АЗС № 106 "Партнер Нефть" [09:45:01]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:45:01]line СНО: Общий режим [09:45:01]line Чек 26 19.04.2024 09:45 [09:45:01]line Смена: 370 ФФД: 1.0 [09:45:01]line ЗНМ: 0300000141 [09:45:01]line РНМ: 0000000000091573 [09:45:01]line Версия ККМ: 001 [09:45:01]line ФМ: 0000000000874652 [09:45:01]line ФД: 76406 [09:45:01]line ФПД: 79586656421864 [09:45:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T094504&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76406&fm=79586656421864&tin=02508201610067®Number=0000000000091573&sum=90000 [09:45:01]written 0, free lines is 4095 [09:45:01]OFD Sender: Processing packet 76406 [packets to send 128, broken 127] [09:45:01]ProducePacketName [09:45:01]name=ofd_packets/00076406 [09:45:01]OFD Sender: To server: pG, [09:45:01]CommunicateWithHost lk.salyk.kg:30040 [09:45:01]ConnectInit lk.salyk.kg [09:45:01]Connected sock=10 [09:45:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 6E 5A 08 01 10 F2 5A 03 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 35 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 C8 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 20 3D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 76 2A 01 00 35 04 06 00 48 62 36 62 87 E8 65 93 0A AA 9D A3 7C 63 [09:45:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 E7 69 47 00 AD BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 76 2A 01 00 F4 03 04 00 AC E4 21 66 B6 04 01 00 00 D0 88 AE C8 E0 88 08 2A [09:45:02]CommunicateWithHost err = 0 [09:45:02]CheckOFDResponse [09:45:02]1017 (14) - 77093643461234 [09:45:02]1041 (16) - 0000000000874652 [09:45:02]1040 (4) - 76406 [09:45:02]1012 (4) - 19.04.2024 03:27 [09:45:02]1206 (1) - 0 [09:45:02]OFD Sender: Remove packet 76406 [09:45:02]ProducePacketName [09:45:02]name=ofd_packets/00076406 [09:45:02]NVStorageDeleteData [09:45:02]Write to MH i2c: 01 00 00 14 28 3C [09:45:02]Write i2c OK [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: 01 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: 01 07 00 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: 01 07 00 14 28 00 00 00 00 00 E2 0C 31 [09:45:02]RasterBufferAndPrint [09:45:02]line [09:45:02]line [09:45:02]line [09:45:02]line [09:45:02]line [09:45:02]written 0, free lines is 3304 [09:45:02]MH_Cut [09:45:02]Write to MH i2c: D1 01 00 1B 28 01 15 [09:45:02]Write i2c OK [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: D1 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: D1 01 00 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: D1 01 00 1B 28 00 14 [09:45:02]Write to MH i2c: 01 00 00 1C 28 44 [09:45:02]Write i2c OK [09:45:02]MH_I2C_Read... [09:45:02]OFD Sender: No OFD packet to send [09:45:02]*** Cut start [09:45:02]*** Partial cut [09:45:02]*** CUTSNS_PIN = 1 [09:45:02]*** CUTSNS_PIN = 0 [09:45:03]*** Brake cut motor [09:45:03]Read from MH i2c: 01 [09:45:03]MH_I2C_Read... [09:45:03]*** Stop cut motor [09:45:03]*** Cut end [09:45:03]Read from MH i2c: 01 07 00 [09:45:03]MH_I2C_Read... [09:45:03]Read from MH i2c: 01 07 00 1C 28 00 00 00 00 00 FF 0F 59 [09:45:03]process_action close_receipt done [09:45:03]requested_data is exist [09:45:03]produce_requested_data [09:45:03]requested_item fm.sn is exist - process it [09:45:03]wFMCommunicate request_size=4 [09:45:03]MH_SAM_APDU [09:45:03]CAPDU: 80 11 00 00 [09:45:03]Write to MH i2c: E2 08 00 1D 28 80 11 00 00 00 00 00 00 BF [09:45:03]Write i2c OK [09:45:03]MH_I2C_Read... [09:45:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:03]Read from MH i2c: E2 [09:45:03]MH_I2C_Read... [09:45:03]Read from MH i2c: E2 17 00 [09:45:03]MH_I2C_Read... [09:45:03]Read from MH i2c: E2 17 00 1D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 12 [09:45:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:45:03]wFMCommunicate OK [09:45:03]requested_item fd.num is exist - process it [09:45:03]SAM_PROTO_GetFieldsCounters [09:45:03]wFMCommunicate request_size=4 [09:45:03]MH_SAM_APDU [09:45:03]CAPDU: 80 13 00 00 [09:45:03]Write to MH i2c: E2 08 00 1E 28 80 13 00 00 00 00 00 00 C2 [09:45:03]Write i2c OK [09:45:03]MH_I2C_Read... [09:45:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:03]Read from MH i2c: E2 [09:45:03]MH_I2C_Read... [09:45:03]Read from MH i2c: E2 62 00 [09:45:03]MH_I2C_Read... [09:45:03]Read from MH i2c: E2 62 00 1E 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 76 2A 01 00 0E 04 04 00 72 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 45 [09:45:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 76 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:03]wFMCommunicate OK [09:45:03]SAM_PROTO_GetFieldsCounters done [09:45:03]requested_item shift.num is exist - process it [09:45:03]requested_item shift.opened is exist - process it [09:45:03]req_shift_opened [09:45:03]FM_GetShiftState [09:45:03]SAM_PROTO_GetShiftState [09:45:03]wFMCommunicate request_size=4 [09:45:03]MH_SAM_APDU [09:45:03]CAPDU: 80 13 01 00 [09:45:03]Write to MH i2c: E2 08 00 1F 28 80 13 01 00 00 00 00 00 C4 [09:45:03]Write i2c OK [09:45:03]MH_I2C_Read... [09:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:03]Read from MH i2c: E2 [09:45:03]MH_I2C_Read... [09:45:03]Read from MH i2c: E2 0E 00 [09:45:03]MH_I2C_Read... [09:45:03]Read from MH i2c: E2 0E 00 1F 28 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 A9 [09:45:03]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:45:03]wFMCommunicate OK [09:45:03]SAM_PROTO_GetShiftState done [09:45:03]FM_GetShiftState done [09:45:03]req_shift_opened done [09:45:03]requested_item shift.open_date is exist - process it [09:45:03]req_shift_open_date [09:45:03]req_shift_open_date done [09:45:03]produce_requested_data done [09:45:03]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76406,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [09:45:03]process_action_free close_receipt [09:45:03]json_value_free [09:45:03]json_value_free done [09:45:03]process_json_proto returns [09:45:03]Send response to host [09:45:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76406,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [09:45:03]free response buf [09:45:03]execute_script done [09:45:03]execute_script returns [09:45:03]free content buf [09:45:03]Sock 9.Close socket [09:45:03]Sock 9.Thread stoped [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:28]accept exits with 7 [09:50:28]New connection [09:50:28]New thread 3066486116 created [09:50:28]Thread 3066629476 joined [09:50:28]Waiting for new connection... [09:50:28] Sock 7.Parse request [09:50:28]Sock 7.Check first char [09:50:28]Sock 7.First char is OK [09:50:28]request: POST /json_proto HTTP/1.0 [09:50:28]Method: POST [09:50:28]URL: /json_proto [09:50:28]Method is POST - this is cgi request [09:50:28]url: /json_proto [09:50:28]query_string will be loaded in cgi processing [09:50:28]execute_cgi json_proto POST (null) [09:50:28]execute_cgi path=json_proto method=POST [09:50:28]POST find Content-Length [09:50:28]Host: 172.17.62.5:8080 [09:50:28]Content-Length: 990 [09:50:28]Content-Type: application/json [09:50:28] [09:50:28]POST finish read [09:50:28]Found Content-Length = 990 [09:50:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 34.710, "sum" : 1100.31, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 34.71 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:28]execute_script... [09:50:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 34.710, "sum" : 1100.31, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 34.71 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:28]POST & json_proto [09:50:28]process_json_proto [09:50:28]json parsed OK: [09:50:28]protocol is kg_v1.0 [09:50:28]action value=close_receipt [09:50:28]process_action close_receipt [09:50:28]cmd_close_receipt [09:50:28]MH_GetDate [09:50:28]Write to MH i2c: F0 00 00 20 28 37 [09:50:28]Write i2c OK [09:50:28]MH_I2C_Read... [09:50:28]Read from MH i2c: F0 [09:50:28]MH_I2C_Read... [09:50:28]Read from MH i2c: F0 09 00 [09:50:28]MH_I2C_Read... [09:50:28]Read from MH i2c: F0 09 00 20 28 00 68 3E 22 66 F4 E9 65 64 14 [09:50:28]GetLastDocTimeStamp 1713519904 [09:50:28]current date 1713520232 [09:50:28]FM_GetShiftState [09:50:28]SAM_PROTO_GetShiftState [09:50:28]wFMCommunicate request_size=4 [09:50:28]MH_SAM_APDU [09:50:28]CAPDU: 80 13 01 00 [09:50:28]Write to MH i2c: E2 08 00 21 28 80 13 01 00 00 00 00 00 C6 [09:50:28]Write i2c OK [09:50:28]MH_I2C_Read... [09:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:28]Read from MH i2c: E2 [09:50:28]MH_I2C_Read... [09:50:28]Read from MH i2c: E2 0E 00 [09:50:28]MH_I2C_Read... [09:50:28]Read from MH i2c: E2 0E 00 21 28 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 AB [09:50:28]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:50:28]wFMCommunicate OK [09:50:28]SAM_PROTO_GetShiftState done [09:50:28]FM_GetShiftState done [09:50:28]opened in 1713486233 [09:50:28]opened+sec_in_day 1713572633 [09:50:28]quantity*price = 110030 [09:50:28]sum+1 = 110032 [09:50:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 1100.00 Внесено: 2000.00 СДАЧА: 900.00 НСП 1% : 9.74 НДС 12% : 116.85 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 27 19.04.2024 09:50 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 34.71 сом ФМ: 0000000000874652 ФД: 76407 ФПД: 206973103638555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T095032&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76407&fm=206973103638555&tin=02508201610067®Number=0000000000091573&sum=110000 [09:50:29]StoreToDocumentArchive [09:50:29]shift 370 fd 76407 [09:50:29]save to /storage/0370/doc_00076407 [09:50:29]save last doc name /storage/0370/doc_00076407 to /storage/kkm_last_doc_name [09:50:29]save OK [09:50:29]Clear old archive folders... [09:50:29]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:50:29]tlvbuf is 009949A0 [09:50:29]SAM_PROTO_ClearQueue [09:50:29]wFMCommunicate request_size=4 [09:50:29]MH_SAM_APDU [09:50:29]CAPDU: 80 09 00 00 [09:50:29]Write to MH i2c: E2 08 00 2E 28 80 09 00 00 00 00 00 00 C8 [09:50:29]Write i2c OK [09:50:29]MH_I2C_Read... [09:50:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:29]Read from MH i2c: E2 [09:50:29]MH_I2C_Read... [09:50:29]Read from MH i2c: E2 03 00 [09:50:29]MH_I2C_Read... [09:50:29]Read from MH i2c: E2 03 00 2E 28 00 90 00 CA [09:50:29]RAPDU: 90 00 [09:50:29]wFMCommunicate OK [09:50:29]SAM_PROTO_ClearQueue done [09:50:29]KKMCreateOFDPacket [09:50:29]OFDProtocolAddRootSTLVToBuf [09:50:29]FM_MakeSignedData [09:50:29]FM_MakeSignedData [09:50:29]SAM_PROTO_SignData [09:50:29]wFMCommunicate request_size=4 [09:50:29]MH_SAM_APDU [09:50:29]CAPDU: 80 0D 01 02 [09:50:29]Write to MH i2c: E2 08 00 2F 28 80 0D 01 02 00 00 00 00 D0 [09:50:29]Write i2c OK [09:50:29]MH_I2C_Read... [09:50:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:29]Read from MH i2c: E2 [09:50:29]MH_I2C_Read... [09:50:29]Read from MH i2c: E2 03 00 [09:50:29]MH_I2C_Read... [09:50:29]Read from MH i2c: E2 03 00 2F 28 00 90 00 CB [09:50:29]RAPDU: 90 00 [09:50:29]wFMCommunicate OK [09:50:29]wFMCommunicate request_size=255 [09:50:29]MH_SAM_APDU [09:50:29]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 96 87 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 CF AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 68 3E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 77 2A 01 00 35 04 06 00 BC 3D [09:50:29]Write to MH i2c: E2 02 01 30 28 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 96 87 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 CF AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 68 3E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 77 2A 01 00 35 04 06 00 BC 3D 00 00 3F [09:50:29]Write i2c OK [09:50:29]MH_I2C_Read... [09:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:29]Read from MH i2c: E2 [09:50:29]MH_I2C_Read... [09:50:29]Read from MH i2c: E2 03 00 [09:50:29]MH_I2C_Read... [09:50:29]Read from MH i2c: E2 03 00 30 28 00 90 00 CC [09:50:29]RAPDU: 90 00 [09:50:29]wFMCommunicate OK [09:50:29]wFMCommunicate request_size=9 [09:50:29]MH_SAM_APDU [09:50:29]CAPDU: 80 0D 02 02 04 AE 52 08 1B [09:50:29]Write to MH i2c: E2 0C 00 31 28 80 0D 02 02 04 00 AE 52 08 1B 00 00 FE [09:50:29]Write i2c OK [09:50:29]MH_I2C_Read... [09:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:29]Read from MH i2c: E2 [09:50:29]MH_I2C_Read... [09:50:29]Read from MH i2c: E2 03 00 [09:50:29]MH_I2C_Read... [09:50:29]Read from MH i2c: E2 03 00 31 28 00 90 00 CD [09:50:29]RAPDU: 90 00 [09:50:29]wFMCommunicate OK [09:50:29]wFMCommunicate request_size=4 [09:50:29]MH_SAM_APDU [09:50:29]CAPDU: 80 0D 03 02 [09:50:29]Write to MH i2c: E2 08 00 32 28 80 0D 03 02 00 00 00 00 D5 [09:50:29]Write i2c OK [09:50:29]MH_I2C_Read... [09:50:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:29]Read from MH i2c: E2 [09:50:29]MH_I2C_Read... [09:50:29]Read from MH i2c: E2 0B 00 [09:50:29]MH_I2C_Read... [09:50:29]Read from MH i2c: E2 0B 00 32 28 00 9E 18 16 55 82 C5 B5 51 90 00 44 [09:50:29]RAPDU: 9E 18 16 55 82 C5 B5 51 90 00 [09:50:29]wFMCommunicate OK [09:50:29]SAM_PROTO_SignData done [09:50:29]FM_MakeSignedData done [09:50:29]CreateOFDProtocolMessage [09:50:29]wFMCommunicate request_size=4 [09:50:29]MH_SAM_APDU [09:50:29]CAPDU: 80 11 00 00 [09:50:29]Write to MH i2c: E2 08 00 33 28 80 11 00 00 00 00 00 00 D5 [09:50:29]Write i2c OK [09:50:29]MH_I2C_Read... [09:50:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:29]Read from MH i2c: E2 [09:50:29]MH_I2C_Read... [09:50:29]Read from MH i2c: E2 17 00 [09:50:29]MH_I2C_Read... [09:50:29]Read from MH i2c: E2 17 00 33 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 28 [09:50:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:50:29]wFMCommunicate OK [09:50:29]CreateOFDProtocolMessage done [09:50:29]OFDSenderStorePacket 76407 [09:50:29]StoreOFDPacket docnum=76407 [09:50:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 25 4D 06 01 E5 B1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 96 87 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 CF AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 68 3E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 77 2A 01 00 35 04 06 00 BC 3D AE 52 08 1B 9E 18 16 55 82 C5 B5 51 [09:50:29]CheckFolder [09:50:29]dirname=/storage/ofd_packets [09:50:29]CheckFolder done [09:50:29]ProducePacketName [09:50:29]name=ofd_packets/00076407 [09:50:29]NVStorageSaveData ofd_packets/00076407 [09:50:29]File name is /storage/ofd_packets/00076407 [09:50:29]Write 300 bytes [09:50:29]NVStorageSaveData done [09:50:29]OFDSenderStorePacket done [09:50:29]KKMCreateOFDPacket done [09:50:29]NVStorageSaveData kkm_last_timestamp [09:50:29]File name is /storage/kkm_last_timestamp [09:50:29]Write 4 bytes [09:50:29]NVStorageSaveData done [09:50:29]ExternCall_PrintAddStr [09:50:29]wPrintStart [09:50:29]Write to MH i2c: 01 00 00 34 28 5C [09:50:29]Write i2c OK [09:50:29]MH_I2C_Read... [09:50:29]Read from MH i2c: 01 [09:50:29]MH_I2C_Read... [09:50:29]Read from MH i2c: 01 07 00 [09:50:29]MH_I2C_Read... [09:50:29]Read from MH i2c: 01 07 00 34 28 00 00 00 00 00 FF 0F 71 [09:50:29]RasterBufferAndPrint [09:50:29]line Счет N : (1)190861 [09:50:29]line ИНН: 02508201610067 [09:50:29]line Контрольно-Кассовый Чек [09:50:29]line ПРОДАЖА [09:50:29]line ТРК (МРК, ГНК) : 71 [09:50:29]line Товар: 2711190000 [09:50:29]line ГАЗ-К-5 [09:50:29]line 34.710 * 31.70 [09:50:29]line = 1100.31 [09:50:29]line НДС 12% НСП 1% [09:50:29]line > о реализуемом товаре [09:50:29]line ОКРУГЛЕНИЕ: -0.31 [09:50:29]line ИТОГО: 1100.00 [09:50:29]line Внесено: 2000.00 [09:50:29]line СДАЧА: 900.00 [09:50:29]line НСП 1% : 9.74 [09:50:29]line НДС 12% : 116.85 [09:50:29]line Наличными: 1100.00 [09:50:29]line Безнал.: 0.00 [09:50:29]line Место: АЗС № 106 "Партнер Нефть" [09:50:29]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:50:29]line СНО: Общий режим [09:50:29]line Чек 27 19.04.2024 09:50 [09:50:29]line Смена: 370 ФФД: 1.0 [09:50:29]line ЗНМ: 0300000141 [09:50:29]line РНМ: 0000000000091573 [09:50:29]line Версия ККМ: 001 [09:50:29]line [09:50:29]line Дисконтная программа [09:50:29]line СУГ [09:50:29]line номер 106 [09:50:29]line сэкономлено 34.71 сом [09:50:30]line ФМ: 0000000000874652 [09:50:30]line ФД: 76407 [09:50:30]line ФПД: 206973103638555 [09:50:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T095032&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76407&fm=206973103638555&tin=02508201610067®Number=0000000000091573&sum=110000 [09:50:30]OFD Sender: Processing packet 76407 [packets to send 128, broken 127] [09:50:30]ProducePacketName [09:50:30]name=ofd_packets/00076407 [09:50:30]OFD Sender: To server: pG, [09:50:30]CommunicateWithHost lk.salyk.kg:30040 [09:50:30]ConnectInit lk.salyk.kg [09:50:30]written 0, free lines is 4095 [09:50:30]Connected sock=10 [09:50:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 25 4D 06 01 E5 B1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 96 87 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 CF AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 68 3E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 77 2A 01 00 35 04 06 00 BC 3D AE 52 08 1B 9E 18 16 55 82 C5 B5 51 [09:50:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 9C ED 47 00 11 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 34 36 35 32 10 04 04 00 77 2A 01 00 F4 03 04 00 F4 E5 21 66 B6 04 01 00 00 92 4C 22 B6 B3 E9 8E B0 [09:50:30]CommunicateWithHost err = 0 [09:50:30]CheckOFDResponse [09:50:30]1017 (14) - 77093643461234 [09:50:30]1041 (16) - 0000000000874652 [09:50:30]1040 (4) - 76407 [09:50:30]1012 (4) - 19.04.2024 03:33 [09:50:30]1206 (1) - 0 [09:50:30]OFD Sender: Remove packet 76407 [09:50:30]ProducePacketName [09:50:30]name=ofd_packets/00076407 [09:50:30]NVStorageDeleteData [09:50:30]Write to MH i2c: 01 00 00 63 28 8B [09:50:30]Write i2c OK [09:50:30]MH_I2C_Read... [09:50:30]Read from MH i2c: 01 [09:50:30]MH_I2C_Read... [09:50:30]Read from MH i2c: 01 07 00 [09:50:30]MH_I2C_Read... [09:50:30]Read from MH i2c: 01 07 00 63 28 00 00 00 00 00 8D 0C 2B [09:50:30]RasterBufferAndPrint [09:50:30]line [09:50:30]line [09:50:30]line [09:50:30]line [09:50:30]line [09:50:30]written 0, free lines is 3217 [09:50:30]MH_Cut [09:50:30]Write to MH i2c: D1 01 00 6A 28 01 64 [09:50:30]Write i2c OK [09:50:30]MH_I2C_Read... [09:50:30]Read from MH i2c: D1 [09:50:30]MH_I2C_Read... [09:50:30]Read from MH i2c: D1 01 00 [09:50:30]MH_I2C_Read... [09:50:30]Read from MH i2c: D1 01 00 6A 28 00 63 [09:50:30]Write to MH i2c: 01 00 00 6B 28 93 [09:50:30]Write i2c OK [09:50:30]MH_I2C_Read... [09:50:31]OFD Sender: No OFD packet to send [09:50:31]*** Cut start [09:50:31]*** Partial cut [09:50:31]*** CUTSNS_PIN = 1 [09:50:31]*** CUTSNS_PIN = 0 [09:50:31]*** Brake cut motor [09:50:32]Read from MH i2c: 01 [09:50:32]MH_I2C_Read... [09:50:32]*** Stop cut motor [09:50:32]*** Cut end [09:50:32]Read from MH i2c: 01 07 00 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: 01 07 00 6B 28 00 00 00 00 00 FF 0F A8 [09:50:32]process_action close_receipt done [09:50:32]requested_data is exist [09:50:32]produce_requested_data [09:50:32]requested_item fm.sn is exist - process it [09:50:32]wFMCommunicate request_size=4 [09:50:32]MH_SAM_APDU [09:50:32]CAPDU: 80 11 00 00 [09:50:32]Write to MH i2c: E2 08 00 6C 28 80 11 00 00 00 00 00 00 0E [09:50:32]Write i2c OK [09:50:32]MH_I2C_Read... [09:50:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:32]Read from MH i2c: E2 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 17 00 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 17 00 6C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 61 [09:50:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:50:32]wFMCommunicate OK [09:50:32]requested_item fd.num is exist - process it [09:50:32]SAM_PROTO_GetFieldsCounters [09:50:32]wFMCommunicate request_size=4 [09:50:32]MH_SAM_APDU [09:50:32]CAPDU: 80 13 00 00 [09:50:32]Write to MH i2c: E2 08 00 6D 28 80 13 00 00 00 00 00 00 11 [09:50:32]Write i2c OK [09:50:32]MH_I2C_Read... [09:50:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:32]Read from MH i2c: E2 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 62 00 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 62 00 6D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 77 2A 01 00 0E 04 04 00 72 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 98 [09:50: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 77 2A 01 00 0E 04 04 00 72 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:50:32]wFMCommunicate OK [09:50:32]SAM_PROTO_GetFieldsCounters done [09:50:32]requested_item shift.num is exist - process it [09:50:32]requested_item shift.opened is exist - process it [09:50:32]req_shift_opened [09:50:32]FM_GetShiftState [09:50:32]SAM_PROTO_GetShiftState [09:50:32]wFMCommunicate request_size=4 [09:50:32]MH_SAM_APDU [09:50:32]CAPDU: 80 13 01 00 [09:50:32]Write to MH i2c: E2 08 00 6E 28 80 13 01 00 00 00 00 00 13 [09:50:32]Write i2c OK [09:50:32]MH_I2C_Read... [09:50:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:32]Read from MH i2c: E2 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 0E 00 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 0E 00 6E 28 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 F8 [09:50:32]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:50:32]wFMCommunicate OK [09:50:32]SAM_PROTO_GetShiftState done [09:50:32]FM_GetShiftState done [09:50:32]req_shift_opened done [09:50:32]requested_item shift.open_date is exist - process it [09:50:32]req_shift_open_date [09:50:32]req_shift_open_date done [09:50:32]produce_requested_data done [09:50:32]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76407,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [09:50:32]process_action_free close_receipt [09:50:32]json_value_free [09:50:32]json_value_free done [09:50:32]process_json_proto returns [09:50:32]Send response to host [09:50:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76407,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [09:50:32]free response buf [09:50:32]execute_script done [09:50:32]execute_script returns [09:50:32]free content buf [09:50:32]Sock 7.Close socket [09:50:32]Sock 7.Thread stoped [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:06]OFD Sender: No OFD packet to send [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:21]OFD Sender: No OFD packet to send [09:52:26]OFD Sender: No OFD packet to send [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:38]accept exits with 9 [09:52:38]New connection [09:52:38]New thread 3066629476 created [09:52:38]Thread 3066486116 joined [09:52:38]Waiting for new connection... [09:52:38] Sock 9.Parse request [09:52:38]Sock 9.Check first char [09:52:38]Sock 9.First char is OK [09:52:38]request: POST /json_proto HTTP/1.0 [09:52:38]Method: POST [09:52:38]URL: /json_proto [09:52:38]Method is POST - this is cgi request [09:52:38]url: /json_proto [09:52:38]query_string will be loaded in cgi processing [09:52:38]execute_cgi json_proto POST (null) [09:52:38]execute_cgi path=json_proto method=POST [09:52:38]POST find Content-Length [09:52:38]Host: 172.17.62.5:8080 [09:52:38]Content-Length: 682 [09:52:38]Content-Type: application/json [09:52:38] [09:52:38]POST finish read [09:52:38]Found Content-Length = 682 [09:52:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:38]execute_script... [09:52:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:38]POST & json_proto [09:52:38]process_json_proto [09:52:38]json parsed OK: [09:52:38]protocol is kg_v1.0 [09:52:38]action value=close_receipt [09:52:38]process_action close_receipt [09:52:38]cmd_close_receipt [09:52:38]MH_GetDate [09:52:38]Write to MH i2c: F0 00 00 6F 28 86 [09:52:38]Write i2c OK [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: F0 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: F0 09 00 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: F0 09 00 6F 28 00 EB 3E 22 66 F4 E9 65 64 E6 [09:52:38]GetLastDocTimeStamp 1713520232 [09:52:38]current date 1713520363 [09:52:38]FM_GetShiftState [09:52:38]SAM_PROTO_GetShiftState [09:52:38]wFMCommunicate request_size=4 [09:52:38]MH_SAM_APDU [09:52:38]CAPDU: 80 13 01 00 [09:52:38]Write to MH i2c: E2 08 00 70 28 80 13 01 00 00 00 00 00 15 [09:52:38]Write i2c OK [09:52:38]MH_I2C_Read... [09:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:38]Read from MH i2c: E2 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: E2 0E 00 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: E2 0E 00 70 28 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 FA [09:52:38]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:52:38]wFMCommunicate OK [09:52:38]SAM_PROTO_GetShiftState done [09:52:38]FM_GetShiftState done [09:52:38]opened in 1713486233 [09:52:38]opened+sec_in_day 1713572633 [09:52:38]quantity*price = 100013 [09:52:38]sum+1 = 100014 [09:52:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 28 19.04.2024 09:52 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76408 ФПД: 242976027925014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T095243&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76408&fm=242976027925014&tin=02508201610067®Number=0000000000091573&sum=100000 [09:52:40]StoreToDocumentArchive [09:52:40]shift 370 fd 76408 [09:52:40]save to /storage/0370/doc_00076408 [09:52:40]save last doc name /storage/0370/doc_00076408 to /storage/kkm_last_doc_name [09:52:40]save OK [09:52:40]Clear old archive folders... [09:52:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:40]tlvbuf is 00915F90 [09:52:40]SAM_PROTO_ClearQueue [09:52:40]wFMCommunicate request_size=4 [09:52:40]MH_SAM_APDU [09:52:40]CAPDU: 80 09 00 00 [09:52:40]Write to MH i2c: E2 08 00 7D 28 80 09 00 00 00 00 00 00 17 [09:52:40]Write i2c OK [09:52:40]MH_I2C_Read... [09:52:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:40]Read from MH i2c: E2 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 03 00 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 03 00 7D 28 00 90 00 19 [09:52:40]RAPDU: 90 00 [09:52:40]wFMCommunicate OK [09:52:40]SAM_PROTO_ClearQueue done [09:52:40]KKMCreateOFDPacket [09:52:40]OFDProtocolAddRootSTLVToBuf [09:52:40]FM_MakeSignedData [09:52:40]FM_MakeSignedData [09:52:40]SAM_PROTO_SignData [09:52:40]wFMCommunicate request_size=4 [09:52:40]MH_SAM_APDU [09:52:40]CAPDU: 80 0D 01 02 [09:52:40]Write to MH i2c: E2 08 00 7E 28 80 0D 01 02 00 00 00 00 1F [09:52:40]Write i2c OK [09:52:40]MH_I2C_Read... [09:52:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:40]Read from MH i2c: E2 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 03 00 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 03 00 7E 28 00 90 00 1A [09:52:40]RAPDU: 90 00 [09:52:40]wFMCommunicate OK [09:52:40]wFMCommunicate request_size=255 [09:52:40]MH_SAM_APDU [09:52: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 EB 3E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 78 2A 01 00 35 04 06 00 DC [09:52:40]Write to MH i2c: E2 02 01 7F 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 EB 3E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 78 2A 01 00 35 04 06 00 DC 00 00 AF [09:52:40]Write i2c OK [09:52:40]MH_I2C_Read... [09:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:40]Read from MH i2c: E2 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 03 00 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 03 00 7F 28 00 90 00 1B [09:52:40]RAPDU: 90 00 [09:52:40]wFMCommunicate OK [09:52:40]wFMCommunicate request_size=10 [09:52:40]MH_SAM_APDU [09:52:40]CAPDU: 80 0D 02 02 05 FC 43 D5 5A 16 [09:52:40]Write to MH i2c: E2 0D 00 80 28 80 0D 02 02 05 00 FC 43 D5 5A 16 00 00 B0 [09:52:40]Write i2c OK [09:52:40]MH_I2C_Read... [09:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:40]Read from MH i2c: E2 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 03 00 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 03 00 80 28 00 90 00 1C [09:52:40]RAPDU: 90 00 [09:52:40]wFMCommunicate OK [09:52:40]wFMCommunicate request_size=4 [09:52:40]MH_SAM_APDU [09:52:40]CAPDU: 80 0D 03 02 [09:52:40]Write to MH i2c: E2 08 00 81 28 80 0D 03 02 00 00 00 00 24 [09:52:40]Write i2c OK [09:52:40]MH_I2C_Read... [09:52:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:40]Read from MH i2c: E2 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 0B 00 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 0B 00 81 28 00 F3 F1 98 48 A1 90 4D 04 90 00 6B [09:52:40]RAPDU: F3 F1 98 48 A1 90 4D 04 90 00 [09:52:40]wFMCommunicate OK [09:52:40]SAM_PROTO_SignData done [09:52:40]FM_MakeSignedData done [09:52:40]CreateOFDProtocolMessage [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 82 28 80 11 00 00 00 00 00 00 24 [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 82 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 77 [09:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:52:40]wFMCommunicate OK [09:52:40]CreateOFDProtocolMessage done [09:52:40]OFDSenderStorePacket 76408 [09:52:40]StoreOFDPacket docnum=76408 [09:52:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 B9 AB 07 01 F1 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 EB 3E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 78 2A 01 00 35 04 06 00 DC FC 43 D5 5A 16 F3 F1 98 48 A1 90 4D 04 [09:52:40]CheckFolder [09:52:40]dirname=/storage/ofd_packets [09:52:40]CheckFolder done [09:52:40]ProducePacketName [09:52:40]name=ofd_packets/00076408 [09:52:40]NVStorageSaveData ofd_packets/00076408 [09:52:40]File name is /storage/ofd_packets/00076408 [09:52:40]Write 301 bytes [09:52:40]NVStorageSaveData done [09:52:40]OFDSenderStorePacket done [09:52:40]KKMCreateOFDPacket done [09:52:40]NVStorageSaveData kkm_last_timestamp [09:52:40]File name is /storage/kkm_last_timestamp [09:52:40]Write 4 bytes [09:52:40]NVStorageSaveData done [09:52:40]ExternCall_PrintAddStr [09:52:40]wPrintStart [09:52:40]Write to MH i2c: 01 00 00 83 28 AB [09:52:40]Write i2c OK [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: 01 [09:52:40]MH_I2C_Read... [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 83 28 00 00 00 00 00 FF 0F C0 [09:52:40]RasterBufferAndPrint [09:52:40]line Счет N : (1)190862 [09:52:40]line ИНН: 02508201610067 [09:52:40]line Контрольно-Кассовый Чек [09:52:40]line ПРОДАЖА [09:52:40]line ТРК (МРК, ГНК) : 43 [09:52:40]line Товар: 2710124130 [09:52:40]line Аи-92-К-5 [09:52:40]line 15.530 * 64.40 [09:52:40]line = 1000.13 [09:52:40]line НДС 12% НСП 1% [09:52:40]line > о реализуемом товаре [09:52:40]line ОКРУГЛЕНИЕ: -0.13 [09:52:40]line ИТОГО: 1000.00 [09:52:40]line Внесено: 1000.00 [09:52:40]line СДАЧА: 0.00 [09:52:40]line НСП 1% : 8.85 [09:52:40]line НДС 12% : 106.21 [09:52:40]line Наличными: 1000.00 [09:52:40]line Безнал.: 0.00 [09:52:40]line Место: АЗС № 106 "Партнер Нефть" [09:52:40]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:52:40]line СНО: Общий режим [09:52:40]line Чек 28 19.04.2024 09:52 [09:52:40]line Смена: 370 ФФД: 1.0 [09:52:40]line ЗНМ: 0300000141 [09:52:40]line РНМ: 0000000000091573 [09:52:40]line Версия ККМ: 001 [09:52:40]line ФМ: 0000000000874652 [09:52:40]line ФД: 76408 [09:52:40]line ФПД: 242976027925014 [09:52:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T095243&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76408&fm=242976027925014&tin=02508201610067®Number=0000000000091573&sum=100000 [09:52:40]written 0, free lines is 4095 [09:52:40]OFD Sender: Processing packet 76408 [packets to send 128, broken 127] [09:52:40]ProducePacketName [09:52:40]name=ofd_packets/00076408 [09:52:40]OFD Sender: To server: pG, [09:52:40]CommunicateWithHost lk.salyk.kg:30040 [09:52:40]ConnectInit lk.salyk.kg [09:52:41]Connected sock=10 [09:52:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 B9 AB 07 01 F1 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 EB 3E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 78 2A 01 00 35 04 06 00 DC FC 43 D5 5A 16 F3 F1 98 48 A1 90 4D 04 [09:52:41]Write to MH i2c: 01 00 00 AD 28 D5 [09:52:41]Write i2c OK [09:52:41]MH_I2C_Read... [09:52:41]Read from MH i2c: 01 [09:52:41]MH_I2C_Read... [09:52:41]Read from MH i2c: 01 07 00 [09:52:41]MH_I2C_Read... [09:52:41]Read from MH i2c: 01 07 00 AD 28 00 00 00 00 00 DC 0C C4 [09:52:41]RasterBufferAndPrint [09:52:41]line [09:52:41]line [09:52:41]line [09:52:41]line [09:52:41]line [09:52:41]written 0, free lines is 3298 [09:52:41]MH_Cut [09:52:41]Write to MH i2c: D1 01 00 B4 28 01 AE [09:52:41]Write i2c OK [09:52:41]MH_I2C_Read... [09:52:41]Read from MH i2c: D1 [09:52:41]MH_I2C_Read... [09:52:41]Read from MH i2c: D1 01 00 [09:52:41]MH_I2C_Read... [09:52:41]Read from MH i2c: D1 01 00 B4 28 00 AD [09:52:41]Write to MH i2c: 01 00 00 B5 28 DD [09:52:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 F8 F4 47 00 00 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 34 36 35 32 10 04 04 00 78 2A 01 00 F4 03 04 00 77 E6 21 66 B6 04 01 00 00 78 BC 5B 72 A1 B5 68 E1 [09:52:41]CommunicateWithHost err = 0 [09:52:41]CheckOFDResponse [09:52:41]1017 (14) - 77093643461234 [09:52:41]1041 (16) - 0000000000874652 [09:52:41]1040 (4) - 76408 [09:52:41]1012 (4) - 19.04.2024 03:35 [09:52:41]1206 (1) - 0 [09:52:41]OFD Sender: Remove packet 76408 [09:52:41]ProducePacketName [09:52:41]name=ofd_packets/00076408 [09:52:41]NVStorageDeleteData [09:52:41]Write i2c OK [09:52:41]MH_I2C_Read... [09:52:41]OFD Sender: No OFD packet to send [09:52:42]*** Cut start [09:52:42]*** Partial cut [09:52:42]*** CUTSNS_PIN = 1 [09:52:42]*** CUTSNS_PIN = 0 [09:52:42]*** Brake cut motor [09:52:42]Read from MH i2c: 01 [09:52:42]MH_I2C_Read... [09:52:42]*** Stop cut motor [09:52:42]*** Cut end [09:52:42]Read from MH i2c: 01 07 00 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: 01 07 00 B5 28 00 00 00 00 00 FF 0F F2 [09:52:42]process_action close_receipt done [09:52:42]requested_data is exist [09:52:42]produce_requested_data [09:52:42]requested_item fm.sn is exist - process it [09:52:42]wFMCommunicate request_size=4 [09:52:42]MH_SAM_APDU [09:52:42]CAPDU: 80 11 00 00 [09:52:42]Write to MH i2c: E2 08 00 B6 28 80 11 00 00 00 00 00 00 58 [09:52:42]Write i2c OK [09:52:42]MH_I2C_Read... [09:52:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:42]Read from MH i2c: E2 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 17 00 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 17 00 B6 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AB [09:52:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:52:42]wFMCommunicate OK [09:52:42]requested_item fd.num is exist - process it [09:52:42]SAM_PROTO_GetFieldsCounters [09:52:42]wFMCommunicate request_size=4 [09:52:42]MH_SAM_APDU [09:52:42]CAPDU: 80 13 00 00 [09:52:42]Write to MH i2c: E2 08 00 B7 28 80 13 00 00 00 00 00 00 5B [09:52:42]Write i2c OK [09:52:42]MH_I2C_Read... [09:52:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:42]Read from MH i2c: E2 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 62 00 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 62 00 B7 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 78 2A 01 00 0E 04 04 00 72 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 E6 [09:52: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 78 2A 01 00 0E 04 04 00 72 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:52:42]wFMCommunicate OK [09:52:42]SAM_PROTO_GetFieldsCounters done [09:52:42]requested_item shift.num is exist - process it [09:52:42]requested_item shift.opened is exist - process it [09:52:42]req_shift_opened [09:52:42]FM_GetShiftState [09:52:42]SAM_PROTO_GetShiftState [09:52:42]wFMCommunicate request_size=4 [09:52:42]MH_SAM_APDU [09:52:42]CAPDU: 80 13 01 00 [09:52:42]Write to MH i2c: E2 08 00 B8 28 80 13 01 00 00 00 00 00 5D [09:52:42]Write i2c OK [09:52:42]MH_I2C_Read... [09:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:43]Read from MH i2c: E2 [09:52:43]MH_I2C_Read... [09:52:43]Read from MH i2c: E2 0E 00 [09:52:43]MH_I2C_Read... [09:52:43]Read from MH i2c: E2 0E 00 B8 28 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 42 [09:52:43]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:52:43]wFMCommunicate OK [09:52:43]SAM_PROTO_GetShiftState done [09:52:43]FM_GetShiftState done [09:52:43]req_shift_opened done [09:52:43]requested_item shift.open_date is exist - process it [09:52:43]req_shift_open_date [09:52:43]req_shift_open_date done [09:52:43]produce_requested_data done [09:52:43]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76408,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [09:52:43]process_action_free close_receipt [09:52:43]json_value_free [09:52:43]json_value_free done [09:52:43]process_json_proto returns [09:52:43]Send response to host [09:52:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76408,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [09:52:43]free response buf [09:52:43]execute_script done [09:52:43]execute_script returns [09:52:43]free content buf [09:52:43]Sock 9.Close socket [09:52:43]Sock 9.Thread stoped [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:21]OFD Sender: No OFD packet to send [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:36]OFD Sender: No OFD packet to send [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:51]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:21]accept exits with 7 [09:54:21]New connection [09:54:21]New thread 3066486116 created [09:54:21]Thread 3066629476 joined [09:54:21]Waiting for new connection... [09:54:21] Sock 7.Parse request [09:54:21]Sock 7.Check first char [09:54:21]Sock 7.First char is OK [09:54:21]request: POST /json_proto HTTP/1.0 [09:54:21]Method: POST [09:54:21]URL: /json_proto [09:54:21]Method is POST - this is cgi request [09:54:21]url: /json_proto [09:54:21]query_string will be loaded in cgi processing [09:54:21]execute_cgi json_proto POST (null) [09:54:21]execute_cgi path=json_proto method=POST [09:54:21]POST find Content-Length [09:54:21]Host: 172.17.62.5:8080 [09:54:21]Content-Length: 682 [09:54:21]Content-Type: application/json [09:54:21] [09:54:21]POST finish read [09:54:21]Found Content-Length = 682 [09:54:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190863", "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" : 64.40, "quantity" : 23.300, "sum" : 1500.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:21]execute_script... [09:54: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)190863", "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" : 64.40, "quantity" : 23.300, "sum" : 1500.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:21]POST & json_proto [09:54:21]process_json_proto [09:54:21]json parsed OK: [09:54:21]protocol is kg_v1.0 [09:54:21]action value=close_receipt [09:54:21]process_action close_receipt [09:54:21]cmd_close_receipt [09:54:21]MH_GetDate [09:54:21]Write to MH i2c: F0 00 00 B9 28 D0 [09:54:21]Write i2c OK [09:54:21]MH_I2C_Read... [09:54:21]Read from MH i2c: F0 [09:54:21]MH_I2C_Read... [09:54:21]Read from MH i2c: F0 09 00 [09:54:21]MH_I2C_Read... [09:54:21]Read from MH i2c: F0 09 00 B9 28 00 52 3F 22 66 F4 E9 65 64 98 [09:54:21]GetLastDocTimeStamp 1713520363 [09:54:21]current date 1713520466 [09:54:21]FM_GetShiftState [09:54:21]SAM_PROTO_GetShiftState [09:54:21]wFMCommunicate request_size=4 [09:54:21]MH_SAM_APDU [09:54:21]CAPDU: 80 13 01 00 [09:54:21]Write to MH i2c: E2 08 00 BA 28 80 13 01 00 00 00 00 00 5F [09:54:21]Write i2c OK [09:54:21]MH_I2C_Read... [09:54:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:21]Read from MH i2c: E2 [09:54:21]MH_I2C_Read... [09:54:21]Read from MH i2c: E2 0E 00 [09:54:21]MH_I2C_Read... [09:54:21]Read from MH i2c: E2 0E 00 BA 28 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 44 [09:54:21]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:54:21]wFMCommunicate OK [09:54:21]SAM_PROTO_GetShiftState done [09:54:21]FM_GetShiftState done [09:54:21]opened in 1713486233 [09:54:21]opened+sec_in_day 1713572633 [09:54:21]quantity*price = 150052 [09:54:21]sum+1 = 150053 [09:54:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 29 19.04.2024 09:54 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76409 ФПД: 36143943834600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T095426&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76409&fm=36143943834600&tin=02508201610067®Number=0000000000091573&sum=150000 [09:54:22]StoreToDocumentArchive [09:54:22]shift 370 fd 76409 [09:54:22]save to /storage/0370/doc_00076409 [09:54:22]save last doc name /storage/0370/doc_00076409 to /storage/kkm_last_doc_name [09:54:22]save OK [09:54:22]Clear old archive folders... [09:54:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:22]tlvbuf is 00994590 [09:54:22]SAM_PROTO_ClearQueue [09:54:22]wFMCommunicate request_size=4 [09:54:22]MH_SAM_APDU [09:54:22]CAPDU: 80 09 00 00 [09:54:22]Write to MH i2c: E2 08 00 C7 28 80 09 00 00 00 00 00 00 61 [09:54:22]Write i2c OK [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 [09:54:22]MH_I2C_Read... [09:54:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:22]Read from MH i2c: E2 03 00 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 03 00 C7 28 00 90 00 63 [09:54:22]RAPDU: 90 00 [09:54:23]wFMCommunicate OK [09:54:23]SAM_PROTO_ClearQueue done [09:54:23]KKMCreateOFDPacket [09:54:23]OFDProtocolAddRootSTLVToBuf [09:54:23]FM_MakeSignedData [09:54:23]FM_MakeSignedData [09:54:23]SAM_PROTO_SignData [09:54:23]wFMCommunicate request_size=4 [09:54:23]MH_SAM_APDU [09:54:23]CAPDU: 80 0D 01 02 [09:54:23]Write to MH i2c: E2 08 00 C8 28 80 0D 01 02 00 00 00 00 69 [09:54:23]Write i2c OK [09:54:23]MH_I2C_Read... [09:54:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:23]Read from MH i2c: E2 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: E2 03 00 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: E2 03 00 C8 28 00 90 00 64 [09:54:23]RAPDU: 90 00 [09:54:23]wFMCommunicate OK [09:54:23]wFMCommunicate request_size=255 [09:54:23]MH_SAM_APDU [09:54: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 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 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 1D 00 00 00 F4 03 04 00 52 3F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 79 2A 01 00 35 04 06 00 20 [09:54:23]Write to MH i2c: E2 02 01 C9 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 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 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 1D 00 00 00 F4 03 04 00 52 3F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 79 2A 01 00 35 04 06 00 20 00 00 18 [09:54:23]Write i2c OK [09:54:23]MH_I2C_Read... [09:54:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:23]Read from MH i2c: E2 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: E2 03 00 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: E2 03 00 C9 28 00 90 00 65 [09:54:23]RAPDU: 90 00 [09:54:23]wFMCommunicate OK [09:54:23]wFMCommunicate request_size=10 [09:54:23]MH_SAM_APDU [09:54:23]CAPDU: 80 0D 02 02 05 DF 6A EE DB E8 [09:54:23]Write to MH i2c: E2 0D 00 CA 28 80 0D 02 02 05 00 DF 6A EE DB E8 00 00 70 [09:54:23]Write i2c OK [09:54:23]MH_I2C_Read... [09:54:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:23]Read from MH i2c: E2 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: E2 03 00 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: E2 03 00 CA 28 00 90 00 66 [09:54:23]RAPDU: 90 00 [09:54:23]wFMCommunicate OK [09:54:23]wFMCommunicate request_size=4 [09:54:23]MH_SAM_APDU [09:54:23]CAPDU: 80 0D 03 02 [09:54:23]Write to MH i2c: E2 08 00 CB 28 80 0D 03 02 00 00 00 00 6E [09:54:23]Write i2c OK [09:54:23]MH_I2C_Read... [09:54:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:23]Read from MH i2c: E2 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: E2 0B 00 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: E2 0B 00 CB 28 00 7C 31 42 E4 10 47 A4 14 90 00 51 [09:54:23]RAPDU: 7C 31 42 E4 10 47 A4 14 90 00 [09:54:23]wFMCommunicate OK [09:54:23]SAM_PROTO_SignData done [09:54:23]FM_MakeSignedData done [09:54:23]CreateOFDProtocolMessage [09:54:23]wFMCommunicate request_size=4 [09:54:23]MH_SAM_APDU [09:54:23]CAPDU: 80 11 00 00 [09:54:23]Write to MH i2c: E2 08 00 CC 28 80 11 00 00 00 00 00 00 6E [09:54:23]Write i2c OK [09:54:23]MH_I2C_Read... [09:54:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:23]Read from MH i2c: E2 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: E2 17 00 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: E2 17 00 CC 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C1 [09:54:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:54:23]wFMCommunicate OK [09:54:23]CreateOFDProtocolMessage done [09:54:23]OFDSenderStorePacket 76409 [09:54:23]StoreOFDPacket docnum=76409 [09:54:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 B2 28 07 01 82 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 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 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 1D 00 00 00 F4 03 04 00 52 3F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 79 2A 01 00 35 04 06 00 20 DF 6A EE DB E8 7C 31 42 E4 10 47 A4 14 [09:54:23]CheckFolder [09:54:23]dirname=/storage/ofd_packets [09:54:23]CheckFolder done [09:54:23]ProducePacketName [09:54:23]name=ofd_packets/00076409 [09:54:23]NVStorageSaveData ofd_packets/00076409 [09:54:23]File name is /storage/ofd_packets/00076409 [09:54:23]Write 301 bytes [09:54:23]NVStorageSaveData done [09:54:23]OFDSenderStorePacket done [09:54:23]KKMCreateOFDPacket done [09:54:23]NVStorageSaveData kkm_last_timestamp [09:54:23]File name is /storage/kkm_last_timestamp [09:54:23]Write 4 bytes [09:54:23]NVStorageSaveData done [09:54:23]ExternCall_PrintAddStr [09:54:23]wPrintStart [09:54:23]Write to MH i2c: 01 00 00 CD 28 F5 [09:54:23]Write i2c OK [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: 01 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: 01 07 00 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: 01 07 00 CD 28 00 00 00 00 00 FF 0F 0A [09:54:23]RasterBufferAndPrint [09:54:23]line Счет N : (1)190863 [09:54:23]line ИНН: 02508201610067 [09:54:23]line Контрольно-Кассовый Чек [09:54:23]line ПРОДАЖА [09:54:23]line ТРК (МРК, ГНК) : 22 [09:54:23]line Товар: 2710124130 [09:54:23]line Аи-92-К-5 [09:54:23]line 23.300 * 64.40 [09:54:23]line = 1500.52 [09:54:23]line НДС 12% НСП 1% [09:54:23]line > о реализуемом товаре [09:54:23]line ОКРУГЛЕНИЕ: -0.52 [09:54:23]line ИТОГО: 1500.00 [09:54:23]line Внесено: 1500.00 [09:54:23]line СДАЧА: 0.00 [09:54:23]line НСП 1% : 13.28 [09:54:23]line НДС 12% : 159.35 [09:54:23]line Наличными: 1500.00 [09:54:23]line Безнал.: 0.00 [09:54:23]line Место: АЗС № 106 "Партнер Нефть" [09:54:23]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:54:23]line СНО: Общий режим [09:54:23]line Чек 29 19.04.2024 09:54 [09:54:23]line Смена: 370 ФФД: 1.0 [09:54:23]line ЗНМ: 0300000141 [09:54:23]line РНМ: 0000000000091573 [09:54:23]line Версия ККМ: 001 [09:54:23]line ФМ: 0000000000874652 [09:54:23]line ФД: 76409 [09:54:23]line ФПД: 36143943834600 [09:54:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T095426&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76409&fm=36143943834600&tin=02508201610067®Number=0000000000091573&sum=150000 [09:54:23]OFD Sender: Processing packet 76409 [packets to send 128, broken 127] [09:54:23]ProducePacketName [09:54:23]name=ofd_packets/00076409 [09:54:23]OFD Sender: To server: pG, [09:54:23]CommunicateWithHost lk.salyk.kg:30040 [09:54:23]ConnectInit lk.salyk.kg [09:54:23]written 0, free lines is 4095 [09:54:24]Connected sock=11 [09:54:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 B2 28 07 01 82 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 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 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 1D 00 00 00 F4 03 04 00 52 3F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 79 2A 01 00 35 04 06 00 20 DF 6A EE DB E8 7C 31 42 E4 10 47 A4 14 [09:54:24]Write to MH i2c: 01 00 00 F7 28 1F [09:54:24]Write i2c OK [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: 01 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: 01 07 00 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: 01 07 00 F7 28 00 00 00 00 00 EB 0C 1D [09:54:24]RasterBufferAndPrint [09:54:24]line [09:54:24]line [09:54:24]line [09:54:24]line [09:54:24]line [09:54:24]written 0, free lines is 3310 [09:54:24]MH_Cut [09:54:24]Write to MH i2c: D1 01 00 FE 28 01 F8 [09:54:24]Write i2c OK [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: D1 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: D1 01 00 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: D1 01 00 FE 28 00 F7 [09:54:24]Write to MH i2c: 01 00 00 FF 28 27 [09:54:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 5C 17 47 00 66 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 79 2A 01 00 F4 03 04 00 DE E6 21 66 B6 04 01 00 00 66 8B BB 26 F9 16 AA AD [09:54:24]CommunicateWithHost err = 0 [09:54:24]CheckOFDResponse [09:54:24]1017 (14) - 77093643461234 [09:54:24]1041 (16) - 0000000000874652 [09:54:24]1040 (4) - 76409 [09:54:24]1012 (4) - 19.04.2024 03:37 [09:54:24]1206 (1) - 0 [09:54:24]OFD Sender: Remove packet 76409 [09:54:24]ProducePacketName [09:54:24]name=ofd_packets/00076409 [09:54:24]NVStorageDeleteData [09:54:24]Write i2c OK [09:54:24]MH_I2C_Read... [09:54:24]OFD Sender: No OFD packet to send [09:54:25]*** Cut start [09:54:25]*** Partial cut [09:54:25]*** CUTSNS_PIN = 1 [09:54:25]*** CUTSNS_PIN = 0 [09:54:25]*** Brake cut motor [09:54:25]Read from MH i2c: 01 [09:54:25]MH_I2C_Read... [09:54:25]*** Stop cut motor [09:54:25]*** Cut end [09:54:25]Read from MH i2c: 01 07 00 [09:54:25]MH_I2C_Read... [09:54:25]Read from MH i2c: 01 07 00 FF 28 00 00 00 00 00 FF 0F 3C [09:54:25]process_action close_receipt done [09:54:25]requested_data is exist [09:54:25]produce_requested_data [09:54:25]requested_item fm.sn is exist - process it [09:54:25]wFMCommunicate request_size=4 [09:54:25]MH_SAM_APDU [09:54:25]CAPDU: 80 11 00 00 [09:54:25]Write to MH i2c: E2 08 00 00 29 80 11 00 00 00 00 00 00 A3 [09:54:25]Write i2c OK [09:54:25]MH_I2C_Read... [09:54:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:25]Read from MH i2c: E2 [09:54:25]MH_I2C_Read... [09:54:25]Read from MH i2c: E2 17 00 [09:54:25]MH_I2C_Read... [09:54:25]Read from MH i2c: E2 17 00 00 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F6 [09:54:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:54:25]wFMCommunicate OK [09:54:25]requested_item fd.num is exist - process it [09:54:25]SAM_PROTO_GetFieldsCounters [09:54:25]wFMCommunicate request_size=4 [09:54:25]MH_SAM_APDU [09:54:25]CAPDU: 80 13 00 00 [09:54:25]Write to MH i2c: E2 08 00 01 29 80 13 00 00 00 00 00 00 A6 [09:54:25]Write i2c OK [09:54:25]MH_I2C_Read... [09:54:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:25]Read from MH i2c: E2 [09:54:25]MH_I2C_Read... [09:54:25]Read from MH i2c: E2 62 00 [09:54:25]MH_I2C_Read... [09:54:25]Read from MH i2c: E2 62 00 01 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 79 2A 01 00 0E 04 04 00 72 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 35 [09:54:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 79 2A 01 00 0E 04 04 00 72 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:54:25]wFMCommunicate OK [09:54:25]SAM_PROTO_GetFieldsCounters done [09:54:25]requested_item shift.num is exist - process it [09:54:25]requested_item shift.opened is exist - process it [09:54:25]req_shift_opened [09:54:25]FM_GetShiftState [09:54:25]SAM_PROTO_GetShiftState [09:54:25]wFMCommunicate request_size=4 [09:54:25]MH_SAM_APDU [09:54:25]CAPDU: 80 13 01 00 [09:54:25]Write to MH i2c: E2 08 00 02 29 80 13 01 00 00 00 00 00 A8 [09:54:25]Write i2c OK [09:54:25]MH_I2C_Read... [09:54:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:25]Read from MH i2c: E2 [09:54:25]MH_I2C_Read... [09:54:25]Read from MH i2c: E2 0E 00 [09:54:25]MH_I2C_Read... [09:54:25]Read from MH i2c: E2 0E 00 02 29 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 8D [09:54:25]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [09:54:25]wFMCommunicate OK [09:54:25]SAM_PROTO_GetShiftState done [09:54:25]FM_GetShiftState done [09:54:25]req_shift_opened done [09:54:25]requested_item shift.open_date is exist - process it [09:54:25]req_shift_open_date [09:54:25]req_shift_open_date done [09:54:25]produce_requested_data done [09:54:25]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76409,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [09:54:25]process_action_free close_receipt [09:54:25]json_value_free [09:54:25]json_value_free done [09:54:25]process_json_proto returns [09:54:25]Send response to host [09:54:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76409,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [09:54:25]free response buf [09:54:25]execute_script done [09:54:25]execute_script returns [09:54:25]free content buf [09:54:25]Sock 7.Close socket [09:54:25]Sock 7.Thread stoped [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:15]OFD Sender: No OFD packet to send [09:57:20]OFD Sender: No OFD packet to send [09:57:25]OFD Sender: No OFD packet to send [09:57:30]OFD Sender: No OFD packet to send [09:57:35]OFD Sender: No OFD packet to send [09:57:40]OFD Sender: No OFD packet to send [09:57:45]OFD Sender: No OFD packet to send [09:57:50]OFD Sender: No OFD packet to send [09:57:55]OFD Sender: No OFD packet to send [09:58:00]OFD Sender: No OFD packet to send [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:40]OFD Sender: No OFD packet to send [09:58:45]OFD Sender: No OFD packet to send [09:58:50]OFD Sender: No OFD packet to send [09:58:55]OFD Sender: No OFD packet to send [09:59:00]OFD Sender: No OFD packet to send [09:59:05]OFD Sender: No OFD packet to send [09:59:10]OFD Sender: No OFD packet to send [09:59:15]OFD Sender: No OFD packet to send [09:59:20]OFD Sender: No OFD packet to send [09:59:25]OFD Sender: No OFD packet to send [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [10:00:00]OFD Sender: No OFD packet to send [10:00:05]OFD Sender: No OFD packet to send [10:00:10]OFD Sender: No OFD packet to send [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:25]OFD Sender: No OFD packet to send [10:00:30]OFD Sender: No OFD packet to send [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:45]OFD Sender: No OFD packet to send [10:00:50]OFD Sender: No OFD packet to send [10:00:55]OFD Sender: No OFD packet to send [10:01:00]OFD Sender: No OFD packet to send [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:25]OFD Sender: No OFD packet to send [10:01:30]OFD Sender: No OFD packet to send [10:01:35]OFD Sender: No OFD packet to send [10:01:39]accept exits with 9 [10:01:39]New connection [10:01:39]New thread 3066629476 created [10:01:39]Thread 3066486116 joined [10:01:39]Waiting for new connection... [10:01:39] Sock 9.Parse request [10:01:39]Sock 9.Check first char [10:01:39]Sock 9.First char is OK [10:01:39]request: POST /json_proto HTTP/1.0 [10:01:39]Method: POST [10:01:39]URL: /json_proto [10:01:39]Method is POST - this is cgi request [10:01:39]url: /json_proto [10:01:39]query_string will be loaded in cgi processing [10:01:39]execute_cgi json_proto POST (null) [10:01:39]execute_cgi path=json_proto method=POST [10:01:39]POST find Content-Length [10:01:39]Host: 172.17.62.5:8080 [10:01:39]Content-Length: 675 [10:01:39]Content-Type: application/json [10:01:39] [10:01:39]POST finish read [10:01:39]Found Content-Length = 675 [10:01:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:39]execute_script... [10:01: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)190864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:39]POST & json_proto [10:01:39]process_json_proto [10:01:39]json parsed OK: [10:01:39]protocol is kg_v1.0 [10:01:39]action value=close_receipt [10:01:39]process_action close_receipt [10:01:39]cmd_close_receipt [10:01:39]MH_GetDate [10:01:39]Write to MH i2c: F0 00 00 03 29 1B [10:01:39]Write i2c OK [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: F0 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: F0 09 00 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: F0 09 00 03 29 00 08 41 22 66 F4 E9 65 64 9B [10:01:39]GetLastDocTimeStamp 1713520466 [10:01:39]current date 1713520904 [10:01:39]FM_GetShiftState [10:01:39]SAM_PROTO_GetShiftState [10:01:39]wFMCommunicate request_size=4 [10:01:39]MH_SAM_APDU [10:01:39]CAPDU: 80 13 01 00 [10:01:39]Write to MH i2c: E2 08 00 04 29 80 13 01 00 00 00 00 00 AA [10:01:39]Write i2c OK [10:01:39]MH_I2C_Read... [10:01:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:39]Read from MH i2c: E2 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: E2 0E 00 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: E2 0E 00 04 29 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 8F [10:01:39]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [10:01:39]wFMCommunicate OK [10:01:39]SAM_PROTO_GetShiftState done [10:01:39]FM_GetShiftState done [10:01:39]opened in 1713486233 [10:01:39]opened+sec_in_day 1713572633 [10:01:39]quantity*price = 100062 [10:01:39]sum+1 = 100063 [10:01:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 30 19.04.2024 10:01 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76410 ФПД: 161546142124337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T100144&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76410&fm=161546142124337&tin=02508201610067®Number=0000000000091573&sum=100000 [10:01:41]StoreToDocumentArchive [10:01:41]shift 370 fd 76410 [10:01:41]save to /storage/0370/doc_00076410 [10:01:41]save last doc name /storage/0370/doc_00076410 to /storage/kkm_last_doc_name [10:01:41]save OK [10:01:41]Clear old archive folders... [10:01:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:01:41]tlvbuf is B6E8BC20 [10:01:41]SAM_PROTO_ClearQueue [10:01:41]wFMCommunicate request_size=4 [10:01:41]MH_SAM_APDU [10:01:41]CAPDU: 80 09 00 00 [10:01:41]Write to MH i2c: E2 08 00 11 29 80 09 00 00 00 00 00 00 AC [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:41]Read from MH i2c: E2 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 11 29 00 90 00 AE [10:01:41]RAPDU: 90 00 [10:01:41]wFMCommunicate OK [10:01:41]SAM_PROTO_ClearQueue done [10:01:41]KKMCreateOFDPacket [10:01:41]OFDProtocolAddRootSTLVToBuf [10:01:41]FM_MakeSignedData [10:01:41]FM_MakeSignedData [10:01:41]SAM_PROTO_SignData [10:01:41]wFMCommunicate request_size=4 [10:01:41]MH_SAM_APDU [10:01:41]CAPDU: 80 0D 01 02 [10:01:41]Write to MH i2c: E2 08 00 12 29 80 0D 01 02 00 00 00 00 B4 [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:41]Read from MH i2c: E2 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 12 29 00 90 00 AF [10:01:41]RAPDU: 90 00 [10:01:41]wFMCommunicate OK [10:01:41]wFMCommunicate request_size=255 [10:01:41]MH_SAM_APDU [10:01:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1E 00 00 00 F4 03 04 00 08 41 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7A 2A 01 00 35 04 06 00 [10:01:41]Write to MH i2c: E2 02 01 13 29 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1E 00 00 00 F4 03 04 00 08 41 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7A 2A 01 00 35 04 06 00 00 00 DC [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:41]Read from MH i2c: E2 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 13 29 00 90 00 B0 [10:01:41]RAPDU: 90 00 [10:01:41]wFMCommunicate OK [10:01:41]wFMCommunicate request_size=11 [10:01:41]MH_SAM_APDU [10:01:41]CAPDU: 80 0D 02 02 06 92 EC E4 6A 89 31 [10:01:41]Write to MH i2c: E2 0E 00 14 29 80 0D 02 02 06 00 92 EC E4 6A 89 31 00 00 49 [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:41]Read from MH i2c: E2 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 14 29 00 90 00 B1 [10:01:41]RAPDU: 90 00 [10:01:41]wFMCommunicate OK [10:01:41]wFMCommunicate request_size=4 [10:01:41]MH_SAM_APDU [10:01:41]CAPDU: 80 0D 03 02 [10:01:41]Write to MH i2c: E2 08 00 15 29 80 0D 03 02 00 00 00 00 B9 [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:41]Read from MH i2c: E2 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 0B 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 0B 00 15 29 00 EB DF 91 6A 32 E9 8E 69 90 00 91 [10:01:41]RAPDU: EB DF 91 6A 32 E9 8E 69 90 00 [10:01:41]wFMCommunicate OK [10:01:41]SAM_PROTO_SignData done [10:01:41]FM_MakeSignedData done [10:01:41]CreateOFDProtocolMessage [10:01:41]wFMCommunicate request_size=4 [10:01:41]MH_SAM_APDU [10:01:41]CAPDU: 80 11 00 00 [10:01:41]Write to MH i2c: E2 08 00 16 29 80 11 00 00 00 00 00 00 B9 [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:41]Read from MH i2c: E2 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 17 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 17 00 16 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0C [10:01:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:01:41]wFMCommunicate OK [10:01:41]CreateOFDProtocolMessage done [10:01:41]OFDSenderStorePacket 76410 [10:01:41]StoreOFDPacket docnum=76410 [10:01:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 55 0D 08 01 4B C6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1E 00 00 00 F4 03 04 00 08 41 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7A 2A 01 00 35 04 06 00 92 EC E4 6A 89 31 EB DF 91 6A 32 E9 8E 69 [10:01:41]CheckFolder [10:01:41]dirname=/storage/ofd_packets [10:01:41]CheckFolder done [10:01:41]ProducePacketName [10:01:41]name=ofd_packets/00076410 [10:01:41]NVStorageSaveData ofd_packets/00076410 [10:01:41]File name is /storage/ofd_packets/00076410 [10:01:41]Write 302 bytes [10:01:41]NVStorageSaveData done [10:01:41]OFDSenderStorePacket done [10:01:41]KKMCreateOFDPacket done [10:01:41]NVStorageSaveData kkm_last_timestamp [10:01:41]File name is /storage/kkm_last_timestamp [10:01:41]Write 4 bytes [10:01:41]NVStorageSaveData done [10:01:41]ExternCall_PrintAddStr [10:01:41]wPrintStart [10:01:41]Write to MH i2c: 01 00 00 17 29 40 [10:01:41]OFD Sender: Processing packet 76410 [packets to send 128, broken 127] [10:01:41]ProducePacketName [10:01:41]name=ofd_packets/00076410 [10:01:41]OFD Sender: To server: pG, [10:01:41]CommunicateWithHost lk.salyk.kg:30040 [10:01:41]ConnectInit lk.salyk.kg [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: 01 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: 01 07 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: 01 07 00 17 29 00 00 00 00 00 FF 0F 55 [10:01:41]RasterBufferAndPrint [10:01:41]line Счет N : (1)190864 [10:01:41]line ИНН: 02508201610067 [10:01:41]line Контрольно-Кассовый Чек [10:01:41]line ПРОДАЖА [10:01:41]line ТРК (МРК, ГНК) : 41 [10:01:41]line Товар: 2710124130 [10:01:41]line SUPER 92-К-5 [10:01:41]line 15.300 * 65.40 [10:01:41]line = 1000.62 [10:01:41]line НДС 12% НСП 1% [10:01:41]line > о реализуемом товаре [10:01:41]line ОКРУГЛЕНИЕ: -0.62 [10:01:41]line ИТОГО: 1000.00 [10:01:41]line Внесено: 1000.00 [10:01:41]line СДАЧА: 0.00 [10:01:41]line НСП 1% : 8.85 [10:01:41]line НДС 12% : 106.26 [10:01:41]line Наличными: 1000.00 [10:01:41]line Безнал.: 0.00 [10:01:41]line Место: АЗС № 106 "Партнер Нефть" [10:01:41]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:01:41]line СНО: Общий режим [10:01:41]line Чек 30 19.04.2024 10:01 [10:01:41]line Смена: 370 ФФД: 1.0 [10:01:41]line ЗНМ: 0300000141 [10:01:41]line РНМ: 0000000000091573 [10:01:41]line Версия ККМ: 001 [10:01:41]line ФМ: 0000000000874652 [10:01:41]line ФД: 76410 [10:01:41]line ФПД: 161546142124337 [10:01:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T100144&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76410&fm=161546142124337&tin=02508201610067®Number=0000000000091573&sum=100000 [10:01:41]Connected sock=10 [10:01:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 55 0D 08 01 4B C6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1E 00 00 00 F4 03 04 00 08 41 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7A 2A 01 00 35 04 06 00 92 EC E4 6A 89 31 EB DF 91 6A 32 E9 8E 69 [10:01:41]written 0, free lines is 4095 [10:01:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 9B 58 47 00 49 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 34 36 35 32 10 04 04 00 7A 2A 01 00 F4 03 04 00 94 E8 21 66 B6 04 01 00 00 C9 84 12 60 13 17 6E 97 [10:01:42]CommunicateWithHost err = 0 [10:01:42]CheckOFDResponse [10:01:42]1017 (14) - 77093643461234 [10:01:42]1041 (16) - 0000000000874652 [10:01:42]1040 (4) - 76410 [10:01:42]1012 (4) - 19.04.2024 03:44 [10:01:42]1206 (1) - 0 [10:01:42]OFD Sender: Remove packet 76410 [10:01:42]ProducePacketName [10:01:42]name=ofd_packets/00076410 [10:01:42]NVStorageDeleteData [10:01:42]Write to MH i2c: 01 00 00 41 29 6A [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: 01 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: 01 07 00 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: 01 07 00 41 29 00 00 00 00 00 EA 0C 67 [10:01:42]RasterBufferAndPrint [10:01:42]line [10:01:42]line [10:01:42]line [10:01:42]line [10:01:42]line [10:01:42]written 0, free lines is 3312 [10:01:42]MH_Cut [10:01:42]Write to MH i2c: D1 01 00 48 29 01 43 [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: D1 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: D1 01 00 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: D1 01 00 48 29 00 42 [10:01:42]Write to MH i2c: 01 00 00 49 29 72 [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:42]OFD Sender: No OFD packet to send [10:01:43]*** Cut start [10:01:43]*** Partial cut [10:01:43]*** CUTSNS_PIN = 1 [10:01:43]*** CUTSNS_PIN = 0 [10:01:43]*** Brake cut motor [10:01:43]Read from MH i2c: 01 [10:01:43]MH_I2C_Read... [10:01:43]*** Stop cut motor [10:01:43]*** Cut end [10:01:43]Read from MH i2c: 01 07 00 [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: 01 07 00 49 29 00 00 00 00 00 FF 0F 87 [10:01:43]process_action close_receipt done [10:01:43]requested_data is exist [10:01:43]produce_requested_data [10:01:43]requested_item fm.sn is exist - process it [10:01:43]wFMCommunicate request_size=4 [10:01:43]MH_SAM_APDU [10:01:43]CAPDU: 80 11 00 00 [10:01:43]Write to MH i2c: E2 08 00 4A 29 80 11 00 00 00 00 00 00 ED [10:01:43]Write i2c OK [10:01:43]MH_I2C_Read... [10:01:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:43]Read from MH i2c: E2 [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: E2 17 00 [10:01:43]MH_I2C_Read... [10:01:43]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 34 36 35 32 90 00 40 [10:01:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:01:43]wFMCommunicate OK [10:01:43]requested_item fd.num is exist - process it [10:01:43]SAM_PROTO_GetFieldsCounters [10:01:43]wFMCommunicate request_size=4 [10:01:43]MH_SAM_APDU [10:01:43]CAPDU: 80 13 00 00 [10:01:43]Write to MH i2c: E2 08 00 4B 29 80 13 00 00 00 00 00 00 F0 [10:01:43]Write i2c OK [10:01:43]MH_I2C_Read... [10:01:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:43]Read from MH i2c: E2 [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: E2 62 00 [10:01:43]MH_I2C_Read... [10:01:43]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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7A 2A 01 00 0E 04 04 00 72 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 83 [10:01:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7A 2A 01 00 0E 04 04 00 72 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 [10:01:43]wFMCommunicate OK [10:01:43]SAM_PROTO_GetFieldsCounters done [10:01:43]requested_item shift.num is exist - process it [10:01:43]requested_item shift.opened is exist - process it [10:01:43]req_shift_opened [10:01:43]FM_GetShiftState [10:01:43]SAM_PROTO_GetShiftState [10:01:43]wFMCommunicate request_size=4 [10:01:43]MH_SAM_APDU [10:01:43]CAPDU: 80 13 01 00 [10:01:43]Write to MH i2c: E2 08 00 4C 29 80 13 01 00 00 00 00 00 F2 [10:01:43]Write i2c OK [10:01:43]MH_I2C_Read... [10:01:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:44]Read from MH i2c: E2 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 0E 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 0E 00 4C 29 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 D7 [10:01:44]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [10:01:44]wFMCommunicate OK [10:01:44]SAM_PROTO_GetShiftState done [10:01:44]FM_GetShiftState done [10:01:44]req_shift_opened done [10:01:44]requested_item shift.open_date is exist - process it [10:01:44]req_shift_open_date [10:01:44]req_shift_open_date done [10:01:44]produce_requested_data done [10:01:44]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76410,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [10:01:44]process_action_free close_receipt [10:01:44]json_value_free [10:01:44]json_value_free done [10:01:44]process_json_proto returns [10:01:44]Send response to host [10:01:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76410,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [10:01:44]free response buf [10:01:44]execute_script done [10:01:44]execute_script returns [10:01:44]free content buf [10:01:44]Sock 9.Close socket [10:01:44]Sock 9.Thread stoped [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:23]OFD Sender: No OFD packet to send [10:07:28]OFD Sender: No OFD packet to send [10:07:33]OFD Sender: No OFD packet to send [10:07:38]OFD Sender: No OFD packet to send [10:07:43]OFD Sender: No OFD packet to send [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:18]OFD Sender: No OFD packet to send [10:08:23]OFD Sender: No OFD packet to send [10:08:28]OFD Sender: No OFD packet to send [10:08:33]OFD Sender: No OFD packet to send [10:08:38]OFD Sender: No OFD packet to send [10:08:43]OFD Sender: No OFD packet to send [10:08:48]OFD Sender: No OFD packet to send [10:08:53]OFD Sender: No OFD packet to send [10:08:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:13:59]accept exits with 7 [10:13:59]New connection [10:13:59]New thread 3066486116 created [10:13:59]Thread 3066629476 joined [10:13:59]Waiting for new connection... [10:13:59] Sock 7.Parse request [10:13:59]Sock 7.Check first char [10:13:59]Sock 7.First char is OK [10:13:59]request: POST /json_proto HTTP/1.0 [10:13:59]Method: POST [10:13:59]URL: /json_proto [10:13:59]Method is POST - this is cgi request [10:13:59]url: /json_proto [10:13:59]query_string will be loaded in cgi processing [10:13:59]execute_cgi json_proto POST (null) [10:13:59]execute_cgi path=json_proto method=POST [10:13:59]POST find Content-Length [10:13:59]Host: 172.17.62.5:8080 [10:13:59]Content-Length: 1209 [10:13:59]Content-Type: application/json [10:13:59] [10:13:59]POST finish read [10:13:59]Found Content-Length = 1209 [10:13: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190865\u000A19.04.2024 09:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711190000\u000A\u0413\u0410\u0417-\u041A-5\u000A 30.000 x 32.70\u000A\u0418\u0422\u041E\u0413: 981.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\u000A65897\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:59]execute_script... [10:13: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190865\u000A19.04.2024 09:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711190000\u000A\u0413\u0410\u0417-\u041A-5\u000A 30.000 x 32.70\u000A\u0418\u0422\u041E\u0413: 981.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\u000A65897\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:59]POST & json_proto [10:13:59]process_json_proto [10:13:59]json parsed OK: [10:13:59]protocol is kg_v1.0 [10:13:59]action value=print_text [10:13:59]process_action print_text [10:13:59]cmd_print_text [10:13:59]ExternCall_PrintAddStr [10:13:59]wPrintStart [10:13:59]Write to MH i2c: 01 00 00 4D 29 76 [10:13:59]Write i2c OK [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: 01 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: 01 07 00 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: 01 07 00 4D 29 00 00 00 00 00 FF 0F 8B [10:13:59]RasterBufferAndPrint [10:13:59]line *****ТОВАРНЫЙ ЧЕК***** [10:13:59]line АЗС 106 [10:13:59]line Партнер нефть [10:13:59]line 02508201610067 [10:13:59]line Кассир : Табалдиева М. [10:13:59]line Счет N : (1)190865 [10:13:59]line 19.04.2024 09:55 [10:13:59]line ПРОДАЖА [10:13:59]line ТРК (МРК, ГНК): 71 [10:13:59]line Вид ГСМ : 2711190000 [10:13:59]line ГАЗ-К-5 [10:13:59]line 30.000 x 32.70 [10:13:59]line ИТОГ: 981.00 [10:13:59]line Тип оплаты: Талоны: Топливная Карта [10:13:59]line 65897 [10:13:59]line ______________________ [10:13:59]line (подпись) [10:13:59]written 0, free lines is 4095 [10:13:59]Write to MH i2c: 01 00 00 61 29 8A [10:13:59]Write i2c OK [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: 01 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: 01 07 00 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: 01 07 00 61 29 00 00 00 00 00 0F 0E AE [10:13:59]RasterBufferAndPrint [10:13:59]line [10:13:59]line [10:13:59]line [10:13:59]line [10:13:59]line [10:13:59]written 0, free lines is 3601 [10:13:59]MH_Cut [10:13:59]Write to MH i2c: D1 01 00 68 29 01 63 [10:13:59]Write i2c OK [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: D1 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: D1 01 00 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: D1 01 00 68 29 00 62 [10:13:59]Write to MH i2c: 01 00 00 69 29 92 [10:13:59]Write i2c OK [10:13:59]MH_I2C_Read... [10:14:00]*** Cut start [10:14:00]*** Partial cut [10:14:00]*** CUTSNS_PIN = 1 [10:14:00]*** CUTSNS_PIN = 0 [10:14:00]*** Brake cut motor [10:14:00]Read from MH i2c: 01 [10:14:00]MH_I2C_Read... [10:14:00]Read from MH i2c: 01 07 00 [10:14:00]MH_I2C_Read... [10:14:00]*** Stop cut motor [10:14:00]*** Cut end [10:14:00]Read from MH i2c: 01 07 00 69 29 00 00 00 00 00 FF 0F A7 [10:14:00]process_action print_text done [10:14:00]requested_data is exist [10:14:00]produce_requested_data [10:14:00]requested_item fm.sn is exist - process it [10:14:00]wFMCommunicate request_size=4 [10:14:00]MH_SAM_APDU [10:14:00]CAPDU: 80 11 00 00 [10:14:00]Write to MH i2c: E2 08 00 6A 29 80 11 00 00 00 00 00 00 0D [10:14:00]Write i2c OK [10:14:00]MH_I2C_Read... [10:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:01]Read from MH i2c: E2 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 17 00 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 17 00 6A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 60 [10:14:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:14:01]wFMCommunicate OK [10:14:01]requested_item fd.num is exist - process it [10:14:01]SAM_PROTO_GetFieldsCounters [10:14:01]wFMCommunicate request_size=4 [10:14:01]MH_SAM_APDU [10:14:01]CAPDU: 80 13 00 00 [10:14:01]Write to MH i2c: E2 08 00 6B 29 80 13 00 00 00 00 00 00 10 [10:14:01]Write i2c OK [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 [10:14:01]MH_I2C_Read... [10:14:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:01]Read from MH i2c: E2 62 00 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 62 00 6B 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7A 2A 01 00 0E 04 04 00 72 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 A3 [10:14: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7A 2A 01 00 0E 04 04 00 72 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 [10:14:01]wFMCommunicate OK [10:14:01]SAM_PROTO_GetFieldsCounters done [10:14:01]requested_item shift.num is exist - process it [10:14:01]requested_item shift.opened is exist - process it [10:14:01]req_shift_opened [10:14:01]FM_GetShiftState [10:14:01]SAM_PROTO_GetShiftState [10:14:01]wFMCommunicate request_size=4 [10:14:01]MH_SAM_APDU [10:14:01]CAPDU: 80 13 01 00 [10:14:01]Write to MH i2c: E2 08 00 6C 29 80 13 01 00 00 00 00 00 12 [10:14:01]Write i2c OK [10:14:01]MH_I2C_Read... [10:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:01]Read from MH i2c: E2 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 0E 00 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 0E 00 6C 29 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 F7 [10:14:01]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [10:14:01]wFMCommunicate OK [10:14:01]SAM_PROTO_GetShiftState done [10:14:01]FM_GetShiftState done [10:14:01]req_shift_opened done [10:14:01]requested_item shift.open_date is exist - process it [10:14:01]req_shift_open_date [10:14:01]req_shift_open_date done [10:14:01]produce_requested_data done [10:14:01]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76410,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [10:14:01]process_action_free print_text [10:14:01]json_value_free [10:14:01]json_value_free done [10:14:01]process_json_proto returns [10:14:01]Send response to host [10:14:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76410,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [10:14:01]free response buf [10:14:01]execute_script done [10:14:01]execute_script returns [10:14:01]free content buf [10:14:01]Sock 7.Close socket [10:14:01]Sock 7.Thread stoped [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:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:00]accept exits with 9 [10:21:00]New connection [10:21:00]New thread 3066629476 created [10:21:00]Thread 3066486116 joined [10:21:00]Waiting for new connection... [10:21:00] Sock 9.Parse request [10:21:00]Sock 9.Check first char [10:21:00]Sock 9.First char is OK [10:21:00]request: POST /json_proto HTTP/1.0 [10:21:00]Method: POST [10:21:00]URL: /json_proto [10:21:00]Method is POST - this is cgi request [10:21:00]url: /json_proto [10:21:00]query_string will be loaded in cgi processing [10:21:00]execute_cgi json_proto POST (null) [10:21:00]execute_cgi path=json_proto method=POST [10:21:00]POST find Content-Length [10:21:00]Host: 172.17.62.5:8080 [10:21:00]Content-Length: 677 [10:21:00]Content-Type: application/json [10:21:00] [10:21:00]POST finish read [10:21:00]Found Content-Length = 677 [10:21:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:00]execute_script... [10:21: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)190866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:00]POST & json_proto [10:21:00]process_json_proto [10:21:00]json parsed OK: [10:21:00]protocol is kg_v1.0 [10:21:00]action value=close_receipt [10:21:00]process_action close_receipt [10:21:00]cmd_close_receipt [10:21:00]MH_GetDate [10:21:00]Write to MH i2c: F0 00 00 6D 29 85 [10:21:00]Write i2c OK [10:21:00]MH_I2C_Read... [10:21:00]Read from MH i2c: F0 [10:21:00]MH_I2C_Read... [10:21:00]Read from MH i2c: F0 09 00 [10:21:00]MH_I2C_Read... [10:21:00]Read from MH i2c: F0 09 00 6D 29 00 90 45 22 66 F4 E9 65 64 91 [10:21:00]GetLastDocTimeStamp 1713520904 [10:21:00]current date 1713522064 [10:21:00]FM_GetShiftState [10:21:00]SAM_PROTO_GetShiftState [10:21:00]wFMCommunicate request_size=4 [10:21:00]MH_SAM_APDU [10:21:00]CAPDU: 80 13 01 00 [10:21:00]Write to MH i2c: E2 08 00 6E 29 80 13 01 00 00 00 00 00 14 [10:21:00]Write i2c OK [10:21:00]MH_I2C_Read... [10:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:00]Read from MH i2c: E2 [10:21:00]MH_I2C_Read... [10:21:00]Read from MH i2c: E2 0E 00 [10:21:00]MH_I2C_Read... [10:21:00]Read from MH i2c: E2 0E 00 6E 29 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 F9 [10:21:00]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [10:21:00]wFMCommunicate OK [10:21:00]SAM_PROTO_GetShiftState done [10:21:00]FM_GetShiftState done [10:21:00]opened in 1713486233 [10:21:00]opened+sec_in_day 1713572633 [10:21:00]quantity*price = 50038 [10:21:00]sum+1 = 50040 [10:21:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 31 19.04.2024 10:21 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76411 ФПД: 226923253162960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T102104&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76411&fm=226923253162960&tin=02508201610067®Number=0000000000091573&sum=50000 [10:21:01]StoreToDocumentArchive [10:21:01]shift 370 fd 76411 [10:21:01]save to /storage/0370/doc_00076411 [10:21:01]save last doc name /storage/0370/doc_00076411 to /storage/kkm_last_doc_name [10:21:01]save OK [10:21:01]Clear old archive folders... [10:21:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:01]tlvbuf is 009314B0 [10:21:01]SAM_PROTO_ClearQueue [10:21:01]wFMCommunicate request_size=4 [10:21:01]MH_SAM_APDU [10:21:01]CAPDU: 80 09 00 00 [10:21:01]Write to MH i2c: E2 08 00 7B 29 80 09 00 00 00 00 00 00 16 [10:21:01]Write i2c OK [10:21:01]MH_I2C_Read... [10:21:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:01]Read from MH i2c: E2 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 03 00 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 03 00 7B 29 00 90 00 18 [10:21:01]RAPDU: 90 00 [10:21:01]wFMCommunicate OK [10:21:01]SAM_PROTO_ClearQueue done [10:21:01]KKMCreateOFDPacket [10:21:01]OFDProtocolAddRootSTLVToBuf [10:21:01]FM_MakeSignedData [10:21:01]FM_MakeSignedData [10:21:01]SAM_PROTO_SignData [10:21:01]wFMCommunicate request_size=4 [10:21:01]MH_SAM_APDU [10:21:01]CAPDU: 80 0D 01 02 [10:21:01]Write to MH i2c: E2 08 00 7C 29 80 0D 01 02 00 00 00 00 1E [10:21:01]Write i2c OK [10:21:01]MH_I2C_Read... [10:21:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:01]Read from MH i2c: E2 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 03 00 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 03 00 7C 29 00 90 00 19 [10:21:01]RAPDU: 90 00 [10:21:01]wFMCommunicate OK [10:21:01]wFMCommunicate request_size=255 [10:21:01]MH_SAM_APDU [10:21: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 90 45 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7B 2A 01 00 35 04 06 00 CE [10:21:01]Write to MH i2c: E2 02 01 7D 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 90 45 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7B 2A 01 00 35 04 06 00 CE 00 00 36 [10:21:01]Write i2c OK [10:21:01]MH_I2C_Read... [10:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:01]Read from MH i2c: E2 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 03 00 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 03 00 7D 29 00 90 00 1A [10:21:01]RAPDU: 90 00 [10:21:01]wFMCommunicate OK [10:21:01]wFMCommunicate request_size=10 [10:21:01]MH_SAM_APDU [10:21:01]CAPDU: 80 0D 02 02 05 62 AF E5 63 D0 [10:21:01]Write to MH i2c: E2 0D 00 7E 29 80 0D 02 02 05 00 62 AF E5 63 D0 00 00 54 [10:21:01]Write i2c OK [10:21:01]MH_I2C_Read... [10:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:01]Read from MH i2c: E2 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 03 00 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 03 00 7E 29 00 90 00 1B [10:21:01]RAPDU: 90 00 [10:21:01]wFMCommunicate OK [10:21:01]wFMCommunicate request_size=4 [10:21:01]MH_SAM_APDU [10:21:01]CAPDU: 80 0D 03 02 [10:21:01]Write to MH i2c: E2 08 00 7F 29 80 0D 03 02 00 00 00 00 23 [10:21:01]Write i2c OK [10:21:01]MH_I2C_Read... [10:21:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:01]Read from MH i2c: E2 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 0B 00 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 0B 00 7F 29 00 EA 68 19 F2 32 C5 65 ED 90 00 CA [10:21:01]RAPDU: EA 68 19 F2 32 C5 65 ED 90 00 [10:21:01]wFMCommunicate OK [10:21:01]SAM_PROTO_SignData done [10:21:01]FM_MakeSignedData done [10:21:01]CreateOFDProtocolMessage [10:21:01]wFMCommunicate request_size=4 [10:21:01]MH_SAM_APDU [10:21:01]CAPDU: 80 11 00 00 [10:21:01]Write to MH i2c: E2 08 00 80 29 80 11 00 00 00 00 00 00 23 [10:21:01]Write i2c OK [10:21:01]MH_I2C_Read... [10:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:01]Read from MH i2c: E2 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 17 00 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 17 00 80 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 76 [10:21:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:21:01]wFMCommunicate OK [10:21:01]CreateOFDProtocolMessage done [10:21:01]OFDSenderStorePacket 76411 [10:21:01]StoreOFDPacket docnum=76411 [10:21:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 0E 75 07 01 5B DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 90 45 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7B 2A 01 00 35 04 06 00 CE 62 AF E5 63 D0 EA 68 19 F2 32 C5 65 ED [10:21:01]CheckFolder [10:21:01]dirname=/storage/ofd_packets [10:21:01]CheckFolder done [10:21:01]ProducePacketName [10:21:01]name=ofd_packets/00076411 [10:21:01]NVStorageSaveData ofd_packets/00076411 [10:21:01]File name is /storage/ofd_packets/00076411 [10:21:01]Write 301 bytes [10:21:01]NVStorageSaveData done [10:21:01]OFDSenderStorePacket done [10:21:01]KKMCreateOFDPacket done [10:21:01]NVStorageSaveData kkm_last_timestamp [10:21:01]File name is /storage/kkm_last_timestamp [10:21:01]Write 4 bytes [10:21:01]NVStorageSaveData done [10:21:01]OFD Sender: Processing packet 76411 [packets to send 128, broken 127] [10:21:01]ProducePacketName [10:21:01]name=ofd_packets/00076411 [10:21:01]OFD Sender: To server: pG, [10:21:01]CommunicateWithHost lk.salyk.kg:30040 [10:21:01]ConnectInit lk.salyk.kg [10:21:01]ExternCall_PrintAddStr [10:21:01]wPrintStart [10:21:01]Write to MH i2c: 01 00 00 81 29 AA [10:21:01]Write i2c OK [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: 01 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: 01 07 00 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: 01 07 00 81 29 00 00 00 00 00 FF 0F BF [10:21:01]RasterBufferAndPrint [10:21:01]line Счет N : (1)190866 [10:21:01]line ИНН: 02508201610067 [10:21:01]line Контрольно-Кассовый Чек [10:21:01]line ПРОДАЖА [10:21:01]line ТРК (МРК, ГНК) : 43 [10:21:01]line Товар: 2710124130 [10:21:01]line Аи-92-К-5 [10:21:01]line 7.770 * 64.40 [10:21:01]line = 500.39 [10:21:01]line НДС 12% НСП 1% [10:21:01]line > о реализуемом товаре [10:21:01]line ОКРУГЛЕНИЕ: -0.39 [10:21:01]line ИТОГО: 500.00 [10:21:01]line Внесено: 500.00 [10:21:01]line СДАЧА: 0.00 [10:21:01]line НСП 1% : 4.43 [10:21:01]line НДС 12% : 53.14 [10:21:01]line Наличными: 500.00 [10:21:01]line Безнал.: 0.00 [10:21:01]line Место: АЗС № 106 "Партнер Нефть" [10:21:01]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:21:01]line СНО: Общий режим [10:21:01]line Чек 31 19.04.2024 10:21 [10:21:01]line Смена: 370 ФФД: 1.0 [10:21:01]line ЗНМ: 0300000141 [10:21:01]line РНМ: 0000000000091573 [10:21:01]line Версия ККМ: 001 [10:21:02]line ФМ: 0000000000874652 [10:21:02]line ФД: 76411 [10:21:02]line ФПД: 226923253162960 [10:21:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T102104&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76411&fm=226923253162960&tin=02508201610067®Number=0000000000091573&sum=50000 [10:21:02]Connected sock=11 [10:21:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 0E 75 07 01 5B DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 90 45 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7B 2A 01 00 35 04 06 00 CE 62 AF E5 63 D0 EA 68 19 F2 32 C5 65 ED [10:21:02]written 0, free lines is 4095 [10:21:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 E8 33 47 00 FC 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 34 36 35 32 10 04 04 00 7B 2A 01 00 F4 03 04 00 1C ED 21 66 B6 04 01 00 00 90 91 FC E0 3D 58 42 4C [10:21:02]CommunicateWithHost err = 0 [10:21:02]CheckOFDResponse [10:21:02]1017 (14) - 77093643461234 [10:21:02]1041 (16) - 0000000000874652 [10:21:02]1040 (4) - 76411 [10:21:02]1012 (4) - 19.04.2024 04:03 [10:21:02]1206 (1) - 0 [10:21:02]OFD Sender: Remove packet 76411 [10:21:02]ProducePacketName [10:21:02]name=ofd_packets/00076411 [10:21:02]NVStorageDeleteData [10:21:02]Write to MH i2c: 01 00 00 AB 29 D4 [10:21:02]Write i2c OK [10:21:02]MH_I2C_Read... [10:21:02]Read from MH i2c: 01 [10:21:02]MH_I2C_Read... [10:21:02]Read from MH i2c: 01 07 00 [10:21:02]MH_I2C_Read... [10:21:02]Read from MH i2c: 01 07 00 AB 29 00 00 00 00 00 DC 0C C3 [10:21:02]RasterBufferAndPrint [10:21:02]line [10:21:02]line [10:21:02]line [10:21:02]line [10:21:02]line [10:21:02]written 0, free lines is 3298 [10:21:02]MH_Cut [10:21:02]Write to MH i2c: D1 01 00 B2 29 01 AD [10:21:02]Write i2c OK [10:21:02]MH_I2C_Read... [10:21:02]Read from MH i2c: D1 [10:21:02]MH_I2C_Read... [10:21:02]Read from MH i2c: D1 01 00 [10:21:02]MH_I2C_Read... [10:21:02]Read from MH i2c: D1 01 00 B2 29 00 AC [10:21:02]Write to MH i2c: 01 00 00 B3 29 DC [10:21:02]Write i2c OK [10:21:02]MH_I2C_Read... [10:21:02]OFD Sender: No OFD packet to send [10:21:03]*** Cut start [10:21:03]*** Partial cut [10:21:03]*** CUTSNS_PIN = 1 [10:21:03]*** CUTSNS_PIN = 0 [10:21:03]*** Brake cut motor [10:21:04]Read from MH i2c: 01 [10:21:04]MH_I2C_Read... [10:21:04]*** Stop cut motor [10:21:04]*** Cut end [10:21:04]Read from MH i2c: 01 07 00 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: 01 07 00 B3 29 00 00 00 00 00 FF 0F F1 [10:21:04]process_action close_receipt done [10:21:04]requested_data is exist [10:21:04]produce_requested_data [10:21:04]requested_item fm.sn is exist - process it [10:21:04]wFMCommunicate request_size=4 [10:21:04]MH_SAM_APDU [10:21:04]CAPDU: 80 11 00 00 [10:21:04]Write to MH i2c: E2 08 00 B4 29 80 11 00 00 00 00 00 00 57 [10:21:04]Write i2c OK [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 [10:21:04]MH_I2C_Read... [10:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:04]Read from MH i2c: E2 17 00 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 17 00 B4 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AA [10:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:21:04]wFMCommunicate OK [10:21:04]requested_item fd.num is exist - process it [10:21:04]SAM_PROTO_GetFieldsCounters [10:21:04]wFMCommunicate request_size=4 [10:21:04]MH_SAM_APDU [10:21:04]CAPDU: 80 13 00 00 [10:21:04]Write to MH i2c: E2 08 00 B5 29 80 13 00 00 00 00 00 00 5A [10:21:04]Write i2c OK [10:21:04]MH_I2C_Read... [10:21:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:04]Read from MH i2c: E2 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 62 00 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 62 00 B5 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7B 2A 01 00 0E 04 04 00 72 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 F1 [10: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7B 2A 01 00 0E 04 04 00 72 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 [10:21:04]wFMCommunicate OK [10:21:04]SAM_PROTO_GetFieldsCounters done [10:21:04]requested_item shift.num is exist - process it [10:21:04]requested_item shift.opened is exist - process it [10:21:04]req_shift_opened [10:21:04]FM_GetShiftState [10:21:04]SAM_PROTO_GetShiftState [10:21:04]wFMCommunicate request_size=4 [10:21:04]MH_SAM_APDU [10:21:04]CAPDU: 80 13 01 00 [10:21:04]Write to MH i2c: E2 08 00 B6 29 80 13 01 00 00 00 00 00 5C [10:21:04]Write i2c OK [10:21:04]MH_I2C_Read... [10:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:04]Read from MH i2c: E2 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 0E 00 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 0E 00 B6 29 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 41 [10:21:04]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [10:21:04]wFMCommunicate OK [10:21:04]SAM_PROTO_GetShiftState done [10:21:04]FM_GetShiftState done [10:21:04]req_shift_opened done [10:21:04]requested_item shift.open_date is exist - process it [10:21:04]req_shift_open_date [10:21:04]req_shift_open_date done [10:21:04]produce_requested_data done [10:21:04]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76411,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [10:21:04]process_action_free close_receipt [10:21:04]json_value_free [10:21:04]json_value_free done [10:21:04]process_json_proto returns [10:21:04]Send response to host [10:21:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76411,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [10:21:04]free response buf [10:21:04]execute_script done [10:21:04]execute_script returns [10:21:04]free content buf [10:21:04]Sock 9.Close socket [10:21:04]Sock 9.Thread stoped [10:21:07]OFD Sender: No OFD packet to send [10:21:12]OFD Sender: No OFD packet to send [10:21:17]OFD Sender: No OFD packet to send [10:21:22]OFD Sender: No OFD packet to send [10:21:27]OFD Sender: No OFD packet to send [10:21: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:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:18]accept exits with 10 [10:23:18]New connection [10:23:18]New thread 3066486116 created [10:23:18]Thread 3066629476 joined [10:23:18]Waiting for new connection... [10:23:18] Sock 10.Parse request [10:23:18]Sock 10.Check first char [10:23:18]Sock 10.First char is OK [10:23:18]request: POST /json_proto HTTP/1.0 [10:23:18]Method: POST [10:23:18]URL: /json_proto [10:23:18]Method is POST - this is cgi request [10:23:18]url: /json_proto [10:23:18]query_string will be loaded in cgi processing [10:23:18]execute_cgi json_proto POST (null) [10:23:18]execute_cgi path=json_proto method=POST [10:23:18]POST find Content-Length [10:23:18]Host: 172.17.62.5:8080 [10:23:18]Content-Length: 1169 [10:23:18]Content-Type: application/json [10:23:18] [10:23:18]POST finish read [10:23:18]Found Content-Length = 1169 [10:23:18]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190867\u000A19.04.2024 10:04\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 25.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1610.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:18]execute_script... [10:23:18]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190867\u000A19.04.2024 10:04\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 25.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1610.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:18]POST & json_proto [10:23:18]process_json_proto [10:23:18]json parsed OK: [10:23:18]protocol is kg_v1.0 [10:23:18]action value=print_text [10:23:18]process_action print_text [10:23:18]cmd_print_text [10:23:18]ExternCall_PrintAddStr [10:23:18]wPrintStart [10:23:18]Write to MH i2c: 01 00 00 B7 29 E0 [10:23:18]Write i2c OK [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: 01 [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: 01 07 00 [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: 01 07 00 B7 29 00 00 00 00 00 FF 0F F5 [10:23:18]RasterBufferAndPrint [10:23:18]line *****ТОВАРНЫЙ ЧЕК***** [10:23:18]line АЗС 106 [10:23:18]line Партнер нефть [10:23:18]line 02508201610067 [10:23:18]line Кассир : Табалдиева М. [10:23:18]line Счет N : (1)190867 [10:23:18]line 19.04.2024 10:04 [10:23:18]line ПРОДАЖА [10:23:18]line ТРК (МРК, ГНК): 22 [10:23:18]line Вид ГСМ : 2710124130 [10:23:18]line Аи-92-К-5 [10:23:18]line 25.000 x 64.40 [10:23:18]line ИТОГ: 1610.00 [10:23:18]line Тип оплаты: Талоны: ТК ГПНА Online [10:23:18]line 30102984 [10:23:18]line ______________________ [10:23:18]line (подпись) [10:23:18]written 0, free lines is 4095 [10:23:18]Write to MH i2c: 01 00 00 CB 29 F4 [10:23:18]Write i2c OK [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: 01 [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: 01 07 00 [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: 01 07 00 CB 29 00 00 00 00 00 10 0E 19 [10:23:18]RasterBufferAndPrint [10:23:18]line [10:23:18]line [10:23:18]line [10:23:18]line [10:23:18]line [10:23:18]written 0, free lines is 3601 [10:23:18]MH_Cut [10:23:18]Write to MH i2c: D1 01 00 D2 29 01 CD [10:23:18]Write i2c OK [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: D1 [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: D1 01 00 [10:23:18]MH_I2C_Read... [10:23:18]Read from MH i2c: D1 01 00 D2 29 00 CC [10:23:18]Write to MH i2c: 01 00 00 D3 29 FC [10:23:18]Write i2c OK [10:23:18]MH_I2C_Read... [10:23:19]*** Cut start [10:23:19]*** Partial cut [10:23:19]*** CUTSNS_PIN = 1 [10:23:19]*** CUTSNS_PIN = 0 [10:23:19]*** Brake cut motor [10:23:20]Read from MH i2c: 01 [10:23:20]MH_I2C_Read... [10:23:20]*** Stop cut motor [10:23:20]*** Cut end [10:23:20]Read from MH i2c: 01 07 00 [10:23:20]MH_I2C_Read... [10:23:20]Read from MH i2c: 01 07 00 D3 29 00 00 00 00 00 FF 0F 11 [10:23:20]process_action print_text done [10:23:20]requested_data is exist [10:23:20]produce_requested_data [10:23:20]requested_item fm.sn is exist - process it [10:23:20]wFMCommunicate request_size=4 [10:23:20]MH_SAM_APDU [10:23:20]CAPDU: 80 11 00 00 [10:23:20]Write to MH i2c: E2 08 00 D4 29 80 11 00 00 00 00 00 00 77 [10:23:20]Write i2c OK [10:23:20]MH_I2C_Read... [10:23:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:20]Read from MH i2c: E2 [10:23:20]MH_I2C_Read... [10:23:20]Read from MH i2c: E2 17 00 [10:23:20]MH_I2C_Read... [10:23:20]Read from MH i2c: E2 17 00 D4 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CA [10:23:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:23:20]wFMCommunicate OK [10:23:20]requested_item fd.num is exist - process it [10:23:20]SAM_PROTO_GetFieldsCounters [10:23:20]wFMCommunicate request_size=4 [10:23:20]MH_SAM_APDU [10:23:20]CAPDU: 80 13 00 00 [10:23:20]Write to MH i2c: E2 08 00 D5 29 80 13 00 00 00 00 00 00 7A [10:23:20]Write i2c OK [10:23:20]MH_I2C_Read... [10:23:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:20]Read from MH i2c: E2 [10:23:20]MH_I2C_Read... [10:23:20]Read from MH i2c: E2 62 00 [10:23:20]MH_I2C_Read... [10:23:20]Read from MH i2c: E2 62 00 D5 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7B 2A 01 00 0E 04 04 00 72 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 11 [10:23:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7B 2A 01 00 0E 04 04 00 72 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 [10:23:20]wFMCommunicate OK [10:23:20]SAM_PROTO_GetFieldsCounters done [10:23:20]requested_item shift.num is exist - process it [10:23:20]requested_item shift.opened is exist - process it [10:23:20]req_shift_opened [10:23:20]FM_GetShiftState [10:23:20]SAM_PROTO_GetShiftState [10:23:20]wFMCommunicate request_size=4 [10:23:20]MH_SAM_APDU [10:23:20]CAPDU: 80 13 01 00 [10:23:20]Write to MH i2c: E2 08 00 D6 29 80 13 01 00 00 00 00 00 7C [10:23:20]Write i2c OK [10:23:20]MH_I2C_Read... [10:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:20]Read from MH i2c: E2 [10:23:20]MH_I2C_Read... [10:23:20]Read from MH i2c: E2 0E 00 [10:23:20]MH_I2C_Read... [10:23:20]Read from MH i2c: E2 0E 00 D6 29 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 61 [10:23:20]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [10:23:20]wFMCommunicate OK [10:23:20]SAM_PROTO_GetShiftState done [10:23:20]FM_GetShiftState done [10:23:20]req_shift_opened done [10:23:20]requested_item shift.open_date is exist - process it [10:23:20]req_shift_open_date [10:23:20]req_shift_open_date done [10:23:20]produce_requested_data done [10:23:20]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76411,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [10:23:20]process_action_free print_text [10:23:20]json_value_free [10:23:20]json_value_free done [10:23:20]process_json_proto returns [10:23:20]Send response to host [10:23:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76411,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [10:23:20]free response buf [10:23:20]execute_script done [10:23:20]execute_script returns [10:23:20]free content buf [10:23:20]Sock 10.Close socket [10:23:20]Sock 10.Thread stoped [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [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:46]accept exits with 7 [10:24:46]New connection [10:24:46]New thread 3066629476 created [10:24:46]Thread 3066486116 joined [10:24:46]Waiting for new connection... [10:24:46] Sock 7.Parse request [10:24:46]Sock 7.Check first char [10:24:46]Sock 7.First char is OK [10:24:46]request: POST /json_proto HTTP/1.0 [10:24:46]Method: POST [10:24:46]URL: /json_proto [10:24:46]Method is POST - this is cgi request [10:24:46]url: /json_proto [10:24:46]query_string will be loaded in cgi processing [10:24:46]execute_cgi json_proto POST (null) [10:24:46]execute_cgi path=json_proto method=POST [10:24:46]POST find Content-Length [10:24:46]Host: 172.17.62.5:8080 [10:24:46]Content-Length: 679 [10:24:46]Content-Type: application/json [10:24:46] [10:24:46]POST finish read [10:24:46]Found Content-Length = 679 [10:24:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190868", "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" ] } } [10:24:46]execute_script... [10:24: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)190868", "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" ] } } [10:24:46]POST & json_proto [10:24:46]process_json_proto [10:24:46]json parsed OK: [10:24:46]protocol is kg_v1.0 [10:24:46]action value=close_receipt [10:24:46]process_action close_receipt [10:24:46]cmd_close_receipt [10:24:46]MH_GetDate [10:24:46]Write to MH i2c: F0 00 00 D7 29 EF [10:24:46]Write i2c OK [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: F0 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: F0 09 00 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: F0 09 00 D7 29 00 72 46 22 66 F4 E9 65 64 DE [10:24:46]GetLastDocTimeStamp 1713522064 [10:24:46]current date 1713522290 [10:24:46]FM_GetShiftState [10:24:46]SAM_PROTO_GetShiftState [10:24:46]wFMCommunicate request_size=4 [10:24:46]MH_SAM_APDU [10:24:46]CAPDU: 80 13 01 00 [10:24:46]Write to MH i2c: E2 08 00 D8 29 80 13 01 00 00 00 00 00 7E [10:24:46]Write i2c OK [10:24:46]MH_I2C_Read... [10:24:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:46]Read from MH i2c: E2 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: E2 0E 00 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: E2 0E 00 D8 29 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 63 [10:24:46]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [10:24:46]wFMCommunicate OK [10:24:46]SAM_PROTO_GetShiftState done [10:24:46]FM_GetShiftState done [10:24:46]opened in 1713486233 [10:24:46]opened+sec_in_day 1713572633 [10:24:46]quantity*price = 100018 [10:24:46]sum+1 = 100020 [10:24: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 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 32 19.04.2024 10:24 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76412 ФПД: 111238502822531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T102450&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76412&fm=111238502822531&tin=02508201610067®Number=0000000000091573&sum=100000 [10:24:47]StoreToDocumentArchive [10:24:47]shift 370 fd 76412 [10:24:47]save to /storage/0370/doc_00076412 [10:24:47]save last doc name /storage/0370/doc_00076412 to /storage/kkm_last_doc_name [10:24:47]save OK [10:24:47]Clear old archive folders... [10:24:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:24:47]tlvbuf is 00946B80 [10:24:47]SAM_PROTO_ClearQueue [10:24:47]wFMCommunicate request_size=4 [10:24:47]MH_SAM_APDU [10:24:47]CAPDU: 80 09 00 00 [10:24:47]Write to MH i2c: E2 08 00 E5 29 80 09 00 00 00 00 00 00 80 [10:24:47]Write i2c OK [10:24:47]MH_I2C_Read... [10:24:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:47]Read from MH i2c: E2 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 03 00 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 03 00 E5 29 00 90 00 82 [10:24:47]RAPDU: 90 00 [10:24:47]wFMCommunicate OK [10:24:47]SAM_PROTO_ClearQueue done [10:24:47]KKMCreateOFDPacket [10:24:47]OFDProtocolAddRootSTLVToBuf [10:24:47]FM_MakeSignedData [10:24:47]FM_MakeSignedData [10:24:47]SAM_PROTO_SignData [10:24:47]wFMCommunicate request_size=4 [10:24:47]MH_SAM_APDU [10:24:47]CAPDU: 80 0D 01 02 [10:24:47]Write to MH i2c: E2 08 00 E6 29 80 0D 01 02 00 00 00 00 88 [10:24:47]Write i2c OK [10:24:47]MH_I2C_Read... [10:24:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:47]Read from MH i2c: E2 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 03 00 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 03 00 E6 29 00 90 00 83 [10:24:47]RAPDU: 90 00 [10:24:47]wFMCommunicate OK [10:24:47]wFMCommunicate request_size=255 [10:24:47]MH_SAM_APDU [10:24: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 20 00 00 00 F4 03 04 00 72 46 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7C 2A 01 00 35 04 06 00 65 2B BB 72 [10:24:47]Write to MH i2c: E2 02 01 E7 29 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 20 00 00 00 F4 03 04 00 72 46 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7C 2A 01 00 35 04 06 00 65 2B BB 72 00 00 25 [10:24:47]Write i2c OK [10:24:47]MH_I2C_Read... [10:24:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:47]Read from MH i2c: E2 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 03 00 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 03 00 E7 29 00 90 00 84 [10:24:47]RAPDU: 90 00 [10:24:47]wFMCommunicate OK [10:24:47]wFMCommunicate request_size=7 [10:24:47]MH_SAM_APDU [10:24:47]CAPDU: 80 0D 02 02 02 32 83 [10:24:47]Write to MH i2c: E2 0A 00 E8 29 80 0D 02 02 02 00 32 83 00 00 44 [10:24:47]Write i2c OK [10:24:47]MH_I2C_Read... [10:24:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:47]Read from MH i2c: E2 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 03 00 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 03 00 E8 29 00 90 00 85 [10:24:47]RAPDU: 90 00 [10:24:47]wFMCommunicate OK [10:24:47]wFMCommunicate request_size=4 [10:24:47]MH_SAM_APDU [10:24:47]CAPDU: 80 0D 03 02 [10:24:47]Write to MH i2c: E2 08 00 E9 29 80 0D 03 02 00 00 00 00 8D [10:24:47]Write i2c OK [10:24:47]MH_I2C_Read... [10:24:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:47]Read from MH i2c: E2 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 0B 00 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 0B 00 E9 29 00 48 90 D7 07 C2 33 72 B2 90 00 5D [10:24:47]RAPDU: 48 90 D7 07 C2 33 72 B2 90 00 [10:24:47]wFMCommunicate OK [10:24:47]SAM_PROTO_SignData done [10:24:47]FM_MakeSignedData done [10:24:47]CreateOFDProtocolMessage [10:24:47]wFMCommunicate request_size=4 [10:24:47]MH_SAM_APDU [10:24:47]CAPDU: 80 11 00 00 [10:24:47]Write to MH i2c: E2 08 00 EA 29 80 11 00 00 00 00 00 00 8D [10:24:47]Write i2c OK [10:24:47]MH_I2C_Read... [10:24:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:47]Read from MH i2c: E2 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 17 00 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 17 00 EA 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E0 [10:24:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:24:47]wFMCommunicate OK [10:24:47]CreateOFDProtocolMessage done [10:24:47]OFDSenderStorePacket 76412 [10:24:47]StoreOFDPacket docnum=76412 [10:24:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 44 96 04 01 3F 50 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 20 00 00 00 F4 03 04 00 72 46 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7C 2A 01 00 35 04 06 00 65 2B BB 72 32 83 48 90 D7 07 C2 33 72 B2 [10:24:47]CheckFolder [10:24:47]dirname=/storage/ofd_packets [10:24:47]CheckFolder done [10:24:47]ProducePacketName [10:24:47]name=ofd_packets/00076412 [10:24:47]NVStorageSaveData ofd_packets/00076412 [10:24:47]File name is /storage/ofd_packets/00076412 [10:24:47]Write 298 bytes [10:24:47]NVStorageSaveData done [10:24:47]OFDSenderStorePacket done [10:24:47]KKMCreateOFDPacket done [10:24:47]NVStorageSaveData kkm_last_timestamp [10:24:47]File name is /storage/kkm_last_timestamp [10:24:47]Write 4 bytes [10:24:47]NVStorageSaveData done [10:24:47]ExternCall_PrintAddStr [10:24:47]wPrintStart [10:24:47]Write to MH i2c: 01 00 00 EB 29 14 [10:24:47]Write i2c OK [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: 01 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: 01 07 00 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: 01 07 00 EB 29 00 00 00 00 00 FF 0F 29 [10:24:47]RasterBufferAndPrint [10:24:47]line Счет N : (1)190868 [10:24:47]line ИНН: 02508201610067 [10:24:47]line Контрольно-Кассовый Чек [10:24:47]line ПРОДАЖА [10:24:47]line ТРК (МРК, ГНК) : 51 [10:24:47]line Товар: 2710194210 [10:24:47]line ДТ-К-5 [10:24:47]line 13.720 * 72.90 [10:24:47]line = 1000.19 [10:24:47]line НДС 12% НСП 1% [10:24:47]line > о реализуемом товаре [10:24:47]line ОКРУГЛЕНИЕ: -0.19 [10:24:47]line ИТОГО: 1000.00 [10:24:47]line Внесено: 1000.00 [10:24:47]line СДАЧА: 0.00 [10:24:47]line НСП 1% : 8.85 [10:24:47]line НДС 12% : 106.21 [10:24:47]line Наличными: 1000.00 [10:24:47]line Безнал.: 0.00 [10:24:47]line Место: АЗС № 106 "Партнер Нефть" [10:24:47]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:24:47]line СНО: Общий режим [10:24:47]line Чек 32 19.04.2024 10:24 [10:24:47]line Смена: 370 ФФД: 1.0 [10:24:47]line ЗНМ: 0300000141 [10:24:47]line РНМ: 0000000000091573 [10:24:47]line Версия ККМ: 001 [10:24:47]line ФМ: 0000000000874652 [10:24:47]line ФД: 76412 [10:24:47]line ФПД: 111238502822531 [10:24:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T102450&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76412&fm=111238502822531&tin=02508201610067®Number=0000000000091573&sum=100000 [10:24:48]OFD Sender: Processing packet 76412 [packets to send 128, broken 127] [10:24:48]ProducePacketName [10:24:48]name=ofd_packets/00076412 [10:24:48]OFD Sender: To server: pG, [10:24:48]CommunicateWithHost lk.salyk.kg:30040 [10:24:48]ConnectInit lk.salyk.kg [10:24:48]written 0, free lines is 4095 [10:24:48]Connected sock=10 [10:24:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 44 96 04 01 3F 50 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 20 00 00 00 F4 03 04 00 72 46 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7C 2A 01 00 35 04 06 00 65 2B BB 72 32 83 48 90 D7 07 C2 33 72 B2 [10:24:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 90 2D 47 00 76 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7C 2A 01 00 F4 03 04 00 FE ED 21 66 B6 04 01 00 00 DC C7 2D 8D 2D 70 B2 21 [10:24:48]CommunicateWithHost err = 0 [10:24:48]CheckOFDResponse [10:24:48]1017 (14) - 77093643461234 [10:24:48]1041 (16) - 0000000000874652 [10:24:48]1040 (4) - 76412 [10:24:48]1012 (4) - 19.04.2024 04:07 [10:24:48]1206 (1) - 0 [10:24:48]OFD Sender: Remove packet 76412 [10:24:48]ProducePacketName [10:24:48]name=ofd_packets/00076412 [10:24:48]NVStorageDeleteData [10:24:48]Write to MH i2c: 01 00 00 15 2A 3F [10:24:48]Write i2c OK [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: 01 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: 01 07 00 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: 01 07 00 15 2A 00 00 00 00 00 DC 0C 2E [10:24:48]RasterBufferAndPrint [10:24:48]line [10:24:48]line [10:24:48]line [10:24:48]line [10:24:48]line [10:24:48]written 0, free lines is 3298 [10:24:48]MH_Cut [10:24:48]Write to MH i2c: D1 01 00 1C 2A 01 18 [10:24:48]Write i2c OK [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: D1 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: D1 01 00 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: D1 01 00 1C 2A 00 17 [10:24:48]Write to MH i2c: 01 00 00 1D 2A 47 [10:24:48]Write i2c OK [10:24:48]MH_I2C_Read... [10:24:49]OFD Sender: No OFD packet to send [10:24:49]*** Cut start [10:24:49]*** Partial cut [10:24:49]*** CUTSNS_PIN = 1 [10:24:49]*** CUTSNS_PIN = 0 [10:24:49]*** Brake cut motor [10:24:49]Read from MH i2c: 01 [10:24:49]MH_I2C_Read... [10:24:49]*** Stop cut motor [10:24:49]*** Cut end [10:24:49]Read from MH i2c: 01 07 00 [10:24:49]MH_I2C_Read... [10:24:49]Read from MH i2c: 01 07 00 1D 2A 00 00 00 00 00 FF 0F 5C [10:24:49]process_action close_receipt done [10:24:49]requested_data is exist [10:24:49]produce_requested_data [10:24:49]requested_item fm.sn is exist - process it [10:24:49]wFMCommunicate request_size=4 [10:24:49]MH_SAM_APDU [10:24:49]CAPDU: 80 11 00 00 [10:24:49]Write to MH i2c: E2 08 00 1E 2A 80 11 00 00 00 00 00 00 C2 [10:24:49]Write i2c OK [10:24:49]MH_I2C_Read... [10:24:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:50]Read from MH i2c: E2 [10:24:50]MH_I2C_Read... [10:24:50]Read from MH i2c: E2 17 00 [10:24:50]MH_I2C_Read... [10:24:50]Read from MH i2c: E2 17 00 1E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 15 [10:24:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:24:50]wFMCommunicate OK [10:24:50]requested_item fd.num is exist - process it [10:24:50]SAM_PROTO_GetFieldsCounters [10:24:50]wFMCommunicate request_size=4 [10:24:50]MH_SAM_APDU [10:24:50]CAPDU: 80 13 00 00 [10:24:50]Write to MH i2c: E2 08 00 1F 2A 80 13 00 00 00 00 00 00 C5 [10:24:50]Write i2c OK [10:24:50]MH_I2C_Read... [10:24:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:50]Read from MH i2c: E2 [10:24:50]MH_I2C_Read... [10:24:50]Read from MH i2c: E2 62 00 [10:24:50]MH_I2C_Read... [10:24:50]Read from MH i2c: E2 62 00 1F 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7C 2A 01 00 0E 04 04 00 72 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 60 [10:24: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7C 2A 01 00 0E 04 04 00 72 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 [10:24:50]wFMCommunicate OK [10:24:50]SAM_PROTO_GetFieldsCounters done [10:24:50]requested_item shift.num is exist - process it [10:24:50]requested_item shift.opened is exist - process it [10:24:50]req_shift_opened [10:24:50]FM_GetShiftState [10:24:50]SAM_PROTO_GetShiftState [10:24:50]wFMCommunicate request_size=4 [10:24:50]MH_SAM_APDU [10:24:50]CAPDU: 80 13 01 00 [10:24:50]Write to MH i2c: E2 08 00 20 2A 80 13 01 00 00 00 00 00 C7 [10:24:50]Write i2c OK [10:24:50]MH_I2C_Read... [10:24:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:50]Read from MH i2c: E2 [10:24:50]MH_I2C_Read... [10:24:50]Read from MH i2c: E2 0E 00 [10:24:50]MH_I2C_Read... [10:24:50]Read from MH i2c: E2 0E 00 20 2A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 AC [10:24:50]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [10:24:50]wFMCommunicate OK [10:24:50]SAM_PROTO_GetShiftState done [10:24:50]FM_GetShiftState done [10:24:50]req_shift_opened done [10:24:50]requested_item shift.open_date is exist - process it [10:24:50]req_shift_open_date [10:24:50]req_shift_open_date done [10:24:50]produce_requested_data done [10:24:50]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76412,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [10:24:50]process_action_free close_receipt [10:24:50]json_value_free [10:24:50]json_value_free done [10:24:50]process_json_proto returns [10:24:50]Send response to host [10:24:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76412,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [10:24:50]free response buf [10:24:50]execute_script done [10:24:50]execute_script returns [10:24:50]free content buf [10:24:50]Sock 7.Close socket [10:24:50]Sock 7.Thread stoped [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:12]accept exits with 9 [10:26:12]New connection [10:26:12]New thread 3066486116 created [10:26:12]Thread 3066629476 joined [10:26:12]Waiting for new connection... [10:26:12] Sock 9.Parse request [10:26:12]Sock 9.Check first char [10:26:12]Sock 9.First char is OK [10:26:12]request: POST /json_proto HTTP/1.0 [10:26:12]Method: POST [10:26:12]URL: /json_proto [10:26:12]Method is POST - this is cgi request [10:26:12]url: /json_proto [10:26:12]query_string will be loaded in cgi processing [10:26:12]execute_cgi json_proto POST (null) [10:26:12]execute_cgi path=json_proto method=POST [10:26:12]POST find Content-Length [10:26:12]Host: 172.17.62.5:8080 [10:26:12]Content-Length: 677 [10:26:12]Content-Type: application/json [10:26:12] [10:26:12]POST finish read [10:26:12]Found Content-Length = 677 [10:26:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190869", "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" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12]execute_script... [10:26:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190869", "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" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12]POST & json_proto [10:26:12]process_json_proto [10:26:12]json parsed OK: [10:26:12]protocol is kg_v1.0 [10:26:12]action value=close_receipt [10:26:12]process_action close_receipt [10:26:12]cmd_close_receipt [10:26:12]MH_GetDate [10:26:12]Write to MH i2c: F0 00 00 21 2A 3A [10:26:12]Write i2c OK [10:26:12]MH_I2C_Read... [10:26:12]Read from MH i2c: F0 [10:26:12]MH_I2C_Read... [10:26:12]Read from MH i2c: F0 09 00 [10:26:12]MH_I2C_Read... [10:26:12]Read from MH i2c: F0 09 00 21 2A 00 C9 46 22 66 F4 E9 65 64 80 [10:26:12]GetLastDocTimeStamp 1713522290 [10:26:12]current date 1713522377 [10:26:12]FM_GetShiftState [10:26:12]SAM_PROTO_GetShiftState [10:26:12]wFMCommunicate request_size=4 [10:26:12]MH_SAM_APDU [10:26:12]CAPDU: 80 13 01 00 [10:26:12]Write to MH i2c: E2 08 00 22 2A 80 13 01 00 00 00 00 00 C9 [10:26:12]Write i2c OK [10:26:12]MH_I2C_Read... [10:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:12]Read from MH i2c: E2 [10:26:12]MH_I2C_Read... [10:26:12]Read from MH i2c: E2 0E 00 [10:26:12]MH_I2C_Read... [10:26:12]Read from MH i2c: E2 0E 00 22 2A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 AE [10:26:12]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [10:26:12]wFMCommunicate OK [10:26:12]SAM_PROTO_GetShiftState done [10:26:12]FM_GetShiftState done [10:26:12]opened in 1713486233 [10:26:12]opened+sec_in_day 1713572633 [10:26:12]quantity*price = 50038 [10:26:12]sum+1 = 50040 [10:26:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 33 19.04.2024 10:26 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76413 ФПД: 248402297663335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T102617&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76413&fm=248402297663335&tin=02508201610067®Number=0000000000091573&sum=50000 [10:26:13]StoreToDocumentArchive [10:26:13]shift 370 fd 76413 [10:26:13]save to /storage/0370/doc_00076413 [10:26:13]save last doc name /storage/0370/doc_00076413 to /storage/kkm_last_doc_name [10:26:13]save OK [10:26:13]Clear old archive folders... [10:26:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:13]tlvbuf is 00913820 [10:26:13]SAM_PROTO_ClearQueue [10:26:13]wFMCommunicate request_size=4 [10:26:13]MH_SAM_APDU [10:26:13]CAPDU: 80 09 00 00 [10:26:13]Write to MH i2c: E2 08 00 2F 2A 80 09 00 00 00 00 00 00 CB [10:26:13]Write i2c OK [10:26:13]MH_I2C_Read... [10:26:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:13]Read from MH i2c: E2 [10:26:13]MH_I2C_Read... [10:26:13]Read from MH i2c: E2 03 00 [10:26:13]MH_I2C_Read... [10:26:13]Read from MH i2c: E2 03 00 2F 2A 00 90 00 CD [10:26:13]RAPDU: 90 00 [10:26:13]wFMCommunicate OK [10:26:13]SAM_PROTO_ClearQueue done [10:26:13]KKMCreateOFDPacket [10:26:13]OFDProtocolAddRootSTLVToBuf [10:26:13]FM_MakeSignedData [10:26:13]FM_MakeSignedData [10:26:13]SAM_PROTO_SignData [10:26:13]wFMCommunicate request_size=4 [10:26:13]MH_SAM_APDU [10:26:13]CAPDU: 80 0D 01 02 [10:26:13]Write to MH i2c: E2 08 00 30 2A 80 0D 01 02 00 00 00 00 D3 [10:26:13]Write i2c OK [10:26:13]MH_I2C_Read... [10:26:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:13]Read from MH i2c: E2 [10:26:13]MH_I2C_Read... [10:26:13]Read from MH i2c: E2 03 00 [10:26:13]MH_I2C_Read... [10:26:13]Read from MH i2c: E2 03 00 30 2A 00 90 00 CE [10:26:13]RAPDU: 90 00 [10:26:13]wFMCommunicate OK [10:26:13]wFMCommunicate request_size=255 [10:26:13]MH_SAM_APDU [10:26: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 C9 46 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7D 2A 01 00 35 04 06 00 E1 [10:26:13]Write to MH i2c: E2 02 01 31 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 C9 46 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7D 2A 01 00 35 04 06 00 E1 00 00 3C [10:26:13]Write i2c OK [10:26:13]MH_I2C_Read... [10:26:14]OFD Sender: No OFD packet to send [10:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:14]Read from MH i2c: E2 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: E2 03 00 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: E2 03 00 31 2A 00 90 00 CF [10:26:14]RAPDU: 90 00 [10:26:14]wFMCommunicate OK [10:26:14]wFMCommunicate request_size=10 [10:26:14]MH_SAM_APDU [10:26:14]CAPDU: 80 0D 02 02 05 EB AA B6 AF 67 [10:26:14]Write to MH i2c: E2 0D 00 32 2A 80 0D 02 02 05 00 EB AA B6 AF 67 00 00 41 [10:26:14]Write i2c OK [10:26:14]MH_I2C_Read... [10:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:14]Read from MH i2c: E2 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: E2 03 00 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: E2 03 00 32 2A 00 90 00 D0 [10:26:14]RAPDU: 90 00 [10:26:14]wFMCommunicate OK [10:26:14]wFMCommunicate request_size=4 [10:26:14]MH_SAM_APDU [10:26:14]CAPDU: 80 0D 03 02 [10:26:14]Write to MH i2c: E2 08 00 33 2A 80 0D 03 02 00 00 00 00 D8 [10:26:14]Write i2c OK [10:26:14]MH_I2C_Read... [10:26:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:14]Read from MH i2c: E2 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: E2 0B 00 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: E2 0B 00 33 2A 00 BB 5F AC 81 A9 FE 5E 7B 90 00 A0 [10:26:14]RAPDU: BB 5F AC 81 A9 FE 5E 7B 90 00 [10:26:14]wFMCommunicate OK [10:26:14]SAM_PROTO_SignData done [10:26:14]FM_MakeSignedData done [10:26:14]CreateOFDProtocolMessage [10:26:14]wFMCommunicate request_size=4 [10:26:14]MH_SAM_APDU [10:26:14]CAPDU: 80 11 00 00 [10:26:14]Write to MH i2c: E2 08 00 34 2A 80 11 00 00 00 00 00 00 D8 [10:26:14]Write i2c OK [10:26:14]MH_I2C_Read... [10:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:14]Read from MH i2c: E2 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: E2 17 00 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: E2 17 00 34 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2B [10:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:26:14]wFMCommunicate OK [10:26:14]CreateOFDProtocolMessage done [10:26:14]OFDSenderStorePacket 76413 [10:26:14]StoreOFDPacket docnum=76413 [10:26:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 6C 4B 07 01 8B 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 C9 46 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7D 2A 01 00 35 04 06 00 E1 EB AA B6 AF 67 BB 5F AC 81 A9 FE 5E 7B [10:26:14]CheckFolder [10:26:14]dirname=/storage/ofd_packets [10:26:14]CheckFolder done [10:26:14]ProducePacketName [10:26:14]name=ofd_packets/00076413 [10:26:14]NVStorageSaveData ofd_packets/00076413 [10:26:14]File name is /storage/ofd_packets/00076413 [10:26:14]Write 301 bytes [10:26:14]NVStorageSaveData done [10:26:14]OFDSenderStorePacket done [10:26:14]KKMCreateOFDPacket done [10:26:14]NVStorageSaveData kkm_last_timestamp [10:26:14]File name is /storage/kkm_last_timestamp [10:26:14]Write 4 bytes [10:26:14]NVStorageSaveData done [10:26:14]ExternCall_PrintAddStr [10:26:14]wPrintStart [10:26:14]Write to MH i2c: 01 00 00 35 2A 5F [10:26:14]Write i2c OK [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: 01 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: 01 07 00 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: 01 07 00 35 2A 00 00 00 00 00 FF 0F 74 [10:26:14]RasterBufferAndPrint [10:26:14]line Счет N : (1)190869 [10:26:14]line ИНН: 02508201610067 [10:26:14]line Контрольно-Кассовый Чек [10:26:14]line ПРОДАЖА [10:26:14]line ТРК (МРК, ГНК) : 12 [10:26:14]line Товар: 2710124130 [10:26:14]line Аи-92-К-5 [10:26:14]line 7.770 * 64.40 [10:26:14]line = 500.39 [10:26:14]line НДС 12% НСП 1% [10:26:14]line > о реализуемом товаре [10:26:14]line ОКРУГЛЕНИЕ: -0.39 [10:26:14]line ИТОГО: 500.00 [10:26:14]line Внесено: 500.00 [10:26:14]line СДАЧА: 0.00 [10:26:14]line НСП 1% : 4.43 [10:26:14]line НДС 12% : 53.14 [10:26:14]line Наличными: 500.00 [10:26:14]line Безнал.: 0.00 [10:26:14]line Место: АЗС № 106 "Партнер Нефть" [10:26:14]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:26:14]line СНО: Общий режим [10:26:14]line Чек 33 19.04.2024 10:26 [10:26:14]line Смена: 370 ФФД: 1.0 [10:26:14]line ЗНМ: 0300000141 [10:26:14]line РНМ: 0000000000091573 [10:26:14]line Версия ККМ: 001 [10:26:14]line ФМ: 0000000000874652 [10:26:14]line ФД: 76413 [10:26:14]line ФПД: 248402297663335 [10:26:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T102617&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76413&fm=248402297663335&tin=02508201610067®Number=0000000000091573&sum=50000 [10:26:14]written 0, free lines is 4095 [10:26:14]OFD Sender: Processing packet 76413 [packets to send 128, broken 127] [10:26:14]ProducePacketName [10:26:14]name=ofd_packets/00076413 [10:26:14]OFD Sender: To server: pG, [10:26:14]CommunicateWithHost lk.salyk.kg:30040 [10:26:14]ConnectInit lk.salyk.kg [10:26:14]Connected sock=11 [10:26:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 6C 4B 07 01 8B 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 C9 46 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7D 2A 01 00 35 04 06 00 E1 EB AA B6 AF 67 BB 5F AC 81 A9 FE 5E 7B [10:26:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 E9 E0 47 00 DC 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7D 2A 01 00 F4 03 04 00 55 EE 21 66 B6 04 01 00 00 08 AF DF 21 A3 D8 84 48 [10:26:14]CommunicateWithHost err = 0 [10:26:14]CheckOFDResponse [10:26:14]1017 (14) - 77093643461234 [10:26:14]1041 (16) - 0000000000874652 [10:26:14]1040 (4) - 76413 [10:26:14]1012 (4) - 19.04.2024 04:08 [10:26:14]1206 (1) - 0 [10:26:14]OFD Sender: Remove packet 76413 [10:26:14]ProducePacketName [10:26:14]name=ofd_packets/00076413 [10:26:14]NVStorageDeleteData [10:26:14]Write to MH i2c: 01 00 00 5F 2A 89 [10:26:14]Write i2c OK [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: 01 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: 01 07 00 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: 01 07 00 5F 2A 00 00 00 00 00 EC 0C 88 [10:26:14]RasterBufferAndPrint [10:26:14]line [10:26:14]line [10:26:14]line [10:26:14]line [10:26:14]line [10:26:14]written 0, free lines is 3316 [10:26:14]MH_Cut [10:26:14]Write to MH i2c: D1 01 00 66 2A 01 62 [10:26:14]Write i2c OK [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: D1 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: D1 01 00 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: D1 01 00 66 2A 00 61 [10:26:14]Write to MH i2c: 01 00 00 67 2A 91 [10:26:14]Write i2c OK [10:26:14]MH_I2C_Read... [10:26:15]OFD Sender: No OFD packet to send [10:26:15]*** Cut start [10:26:15]*** Partial cut [10:26:15]*** CUTSNS_PIN = 1 [10:26:15]*** CUTSNS_PIN = 0 [10:26:15]*** Brake cut motor [10:26:16]Read from MH i2c: 01 [10:26:16]MH_I2C_Read... [10:26:16]*** Stop cut motor [10:26:16]*** Cut end [10:26:16]Read from MH i2c: 01 07 00 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: 01 07 00 67 2A 00 00 00 00 00 FF 0F A6 [10:26:16]process_action close_receipt done [10:26:16]requested_data is exist [10:26:16]produce_requested_data [10:26:16]requested_item fm.sn is exist - process it [10:26:16]wFMCommunicate request_size=4 [10:26:16]MH_SAM_APDU [10:26:16]CAPDU: 80 11 00 00 [10:26:16]Write to MH i2c: E2 08 00 68 2A 80 11 00 00 00 00 00 00 0C [10:26:16]Write i2c OK [10:26:16]MH_I2C_Read... [10:26:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:16]Read from MH i2c: E2 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: E2 17 00 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: E2 17 00 68 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5F [10:26:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:26:16]wFMCommunicate OK [10:26:16]requested_item fd.num is exist - process it [10:26:16]SAM_PROTO_GetFieldsCounters [10:26:16]wFMCommunicate request_size=4 [10:26:16]MH_SAM_APDU [10:26:16]CAPDU: 80 13 00 00 [10:26:16]Write to MH i2c: E2 08 00 69 2A 80 13 00 00 00 00 00 00 0F [10:26:16]Write i2c OK [10:26:16]MH_I2C_Read... [10:26:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:16]Read from MH i2c: E2 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: E2 62 00 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: E2 62 00 69 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7D 2A 01 00 0E 04 04 00 72 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 AE [10:26:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7D 2A 01 00 0E 04 04 00 72 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 [10:26:16]wFMCommunicate OK [10:26:16]SAM_PROTO_GetFieldsCounters done [10:26:16]requested_item shift.num is exist - process it [10:26:16]requested_item shift.opened is exist - process it [10:26:16]req_shift_opened [10:26:16]FM_GetShiftState [10:26:16]SAM_PROTO_GetShiftState [10:26:16]wFMCommunicate request_size=4 [10:26:16]MH_SAM_APDU [10:26:16]CAPDU: 80 13 01 00 [10:26:16]Write to MH i2c: E2 08 00 6A 2A 80 13 01 00 00 00 00 00 11 [10:26:16]Write i2c OK [10:26:16]MH_I2C_Read... [10:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:16]Read from MH i2c: E2 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: E2 0E 00 [10:26:16]MH_I2C_Read... [10:26:16]Read from MH i2c: E2 0E 00 6A 2A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 F6 [10:26:16]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [10:26:16]wFMCommunicate OK [10:26:16]SAM_PROTO_GetShiftState done [10:26:16]FM_GetShiftState done [10:26:16]req_shift_opened done [10:26:16]requested_item shift.open_date is exist - process it [10:26:16]req_shift_open_date [10:26:16]req_shift_open_date done [10:26:16]produce_requested_data done [10:26:16]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76413,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [10:26:16]process_action_free close_receipt [10:26:16]json_value_free [10:26:16]json_value_free done [10:26:16]process_json_proto returns [10:26:16]Send response to host [10:26:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76413,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [10:26:16]free response buf [10:26:16]execute_script done [10:26:16]execute_script returns [10:26:16]free content buf [10:26:16]Sock 9.Close socket [10:26:16]Sock 9.Thread stoped [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:10]OFD Sender: No OFD packet to send [10:27:15]OFD Sender: No OFD packet to send [10:27:20]OFD Sender: No OFD packet to send [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]OFD Sender: No OFD packet to send [10:27:50]OFD Sender: No OFD packet to send [10:27:55]OFD Sender: No OFD packet to send [10:28:00]OFD Sender: No OFD packet to send [10:28:05]OFD Sender: No OFD packet to send [10:28:10]OFD Sender: No OFD packet to send [10:28:15]OFD Sender: No OFD packet to send [10:28:20]OFD Sender: No OFD packet to send [10:28:25]OFD Sender: No OFD packet to send [10:28:30]OFD Sender: No OFD packet to send [10:28:35]OFD Sender: No OFD packet to send [10:28:40]OFD Sender: No OFD packet to send [10:28:45]OFD Sender: No OFD packet to send [10:28:50]OFD Sender: No OFD packet to send [10:28:55]OFD Sender: No OFD packet to send [10:29:00]OFD Sender: No OFD packet to send [10:29:05]OFD Sender: No OFD packet to send [10:29:10]OFD Sender: No OFD packet to send [10:29:15]OFD Sender: No OFD packet to send [10:29:20]OFD Sender: No OFD packet to send [10:29:25]OFD Sender: No OFD packet to send [10:29:30]OFD Sender: No OFD packet to send [10:29:35]OFD Sender: No OFD packet to send [10:29:40]OFD Sender: No OFD packet to send [10:29:45]OFD Sender: No OFD packet to send [10:29:50]OFD Sender: No OFD packet to send [10:29:55]OFD Sender: No OFD packet to send [10:30:00]OFD Sender: No OFD packet to send [10:30:05]OFD Sender: No OFD packet to send [10:30:10]OFD Sender: No OFD packet to send [10:30:15]OFD Sender: No OFD packet to send [10:30:20]OFD Sender: No OFD packet to send [10:30:25]OFD Sender: No OFD packet to send [10:30:30]OFD Sender: No OFD packet to send [10:30:35]OFD Sender: No OFD packet to send [10:30:40]OFD Sender: No OFD packet to send [10:30:45]OFD Sender: No OFD packet to send [10:30:48]accept exits with 7 [10:30:48]New connection [10:30:48]New thread 3066629476 created [10:30:48]Thread 3066486116 joined [10:30:48]Waiting for new connection... [10:30:48] Sock 7.Parse request [10:30:48]Sock 7.Check first char [10:30:48]Sock 7.First char is OK [10:30:48]request: POST /json_proto HTTP/1.0 [10:30:48]Method: POST [10:30:48]URL: /json_proto [10:30:48]Method is POST - this is cgi request [10:30:48]url: /json_proto [10:30:48]query_string will be loaded in cgi processing [10:30:48]execute_cgi json_proto POST (null) [10:30:48]execute_cgi path=json_proto method=POST [10:30:48]POST find Content-Length [10:30:48]Host: 172.17.62.5:8080 [10:30:48]Content-Length: 802 [10:30:48]Content-Type: application/json [10:30:48] [10:30:48]POST finish read [10:30:48]Found Content-Length = 802 [10:30:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190870", "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" : 2.750, "sum" : 200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:48]execute_script... [10:30: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)190870", "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" : 2.750, "sum" : 200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:48]POST & json_proto [10:30:48]process_json_proto [10:30:48]json parsed OK: [10:30:48]protocol is kg_v1.0 [10:30:48]action value=close_receipt [10:30:48]process_action close_receipt [10:30:48]cmd_close_receipt [10:30:48]MH_GetDate [10:30:48]Write to MH i2c: F0 00 00 6B 2A 84 [10:30:48]Write i2c OK [10:30:48]MH_I2C_Read... [10:30:48]Read from MH i2c: F0 [10:30:48]MH_I2C_Read... [10:30:48]Read from MH i2c: F0 09 00 [10:30:48]MH_I2C_Read... [10:30:48]Read from MH i2c: F0 09 00 6B 2A 00 DD 47 22 66 F4 E9 65 64 DF [10:30:48]GetLastDocTimeStamp 1713522377 [10:30:48]current date 1713522653 [10:30:48]FM_GetShiftState [10:30:48]SAM_PROTO_GetShiftState [10:30:48]wFMCommunicate request_size=4 [10:30:48]MH_SAM_APDU [10:30:48]CAPDU: 80 13 01 00 [10:30:48]Write to MH i2c: E2 08 00 6C 2A 80 13 01 00 00 00 00 00 13 [10:30:48]Write i2c OK [10:30:48]MH_I2C_Read... [10:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:49]Read from MH i2c: E2 [10:30:49]MH_I2C_Read... [10:30:49]Read from MH i2c: E2 0E 00 [10:30:49]MH_I2C_Read... [10:30:49]Read from MH i2c: E2 0E 00 6C 2A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 F8 [10:30:49]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [10:30:49]wFMCommunicate OK [10:30:49]SAM_PROTO_GetShiftState done [10:30:49]FM_GetShiftState done [10:30:49]opened in 1713486233 [10:30:49]opened+sec_in_day 1713572633 [10:30:49]quantity*price = 20047 [10:30:49]sum+1 = 20049 [10:30:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.48 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 0.00 Безнал.: 200.48 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 34 19.04.2024 10:30 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76414 ФПД: 80883157953531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T103053&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76414&fm=80883157953531&tin=02508201610067®Number=0000000000091573&sum=20048 [10:30:50]StoreToDocumentArchive [10:30:50]shift 370 fd 76414 [10:30:50]save to /storage/0370/doc_00076414 [10:30:50]save last doc name /storage/0370/doc_00076414 to /storage/kkm_last_doc_name [10:30:50]save OK [10:30:50]Clear old archive folders... [10:30:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:30:50]tlvbuf is 0098AC70 [10:30:50]SAM_PROTO_ClearQueue [10:30:50]wFMCommunicate request_size=4 [10:30:50]MH_SAM_APDU [10:30:50]CAPDU: 80 09 00 00 [10:30:50]Write to MH i2c: E2 08 00 79 2A 80 09 00 00 00 00 00 00 15 [10:30:50]Write i2c OK [10:30:50]MH_I2C_Read... [10:30:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:50]Read from MH i2c: E2 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 03 00 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 03 00 79 2A 00 90 00 17 [10:30:50]RAPDU: 90 00 [10:30:50]wFMCommunicate OK [10:30:50]SAM_PROTO_ClearQueue done [10:30:50]KKMCreateOFDPacket [10:30:50]OFDProtocolAddRootSTLVToBuf [10:30:50]FM_MakeSignedData [10:30:50]FM_MakeSignedData [10:30:50]SAM_PROTO_SignData [10:30:50]wFMCommunicate request_size=4 [10:30:50]MH_SAM_APDU [10:30:50]CAPDU: 80 0D 01 02 [10:30:50]Write to MH i2c: E2 08 00 7A 2A 80 0D 01 02 00 00 00 00 1D [10:30:50]Write i2c OK [10:30:50]MH_I2C_Read... [10:30:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:50]Read from MH i2c: E2 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 03 00 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 03 00 7A 2A 00 90 00 18 [10:30:50]RAPDU: 90 00 [10:30:50]wFMCommunicate OK [10:30:50]wFMCommunicate request_size=255 [10:30:50]MH_SAM_APDU [10:30:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 50 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 50 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 DD 47 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7E 2A 01 00 35 04 06 00 49 90 13 E5 [10:30:50]Write to MH i2c: E2 02 01 7B 2A 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 50 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 50 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 DD 47 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7E 2A 01 00 35 04 06 00 49 90 13 E5 00 00 77 [10:30:50]Write i2c OK [10:30:50]MH_I2C_Read... [10:30:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:50]Read from MH i2c: E2 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 03 00 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 03 00 7B 2A 00 90 00 19 [10:30:50]RAPDU: 90 00 [10:30:50]wFMCommunicate OK [10:30:50]wFMCommunicate request_size=7 [10:30:50]MH_SAM_APDU [10:30:50]CAPDU: 80 0D 02 02 02 EB FB [10:30:50]Write to MH i2c: E2 0A 00 7C 2A 80 0D 02 02 02 00 EB FB 00 00 0A [10:30:50]Write i2c OK [10:30:50]MH_I2C_Read... [10:30:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:50]Read from MH i2c: E2 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 03 00 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 03 00 7C 2A 00 90 00 1A [10:30:50]RAPDU: 90 00 [10:30:50]wFMCommunicate OK [10:30:50]wFMCommunicate request_size=4 [10:30:50]MH_SAM_APDU [10:30:50]CAPDU: 80 0D 03 02 [10:30:50]Write to MH i2c: E2 08 00 7D 2A 80 0D 03 02 00 00 00 00 22 [10:30:50]Write i2c OK [10:30:50]MH_I2C_Read... [10:30:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:50]OFD Sender: No OFD packet to send [10:30:50]Read from MH i2c: E2 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 0B 00 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 0B 00 7D 2A 00 D6 A3 D5 D7 97 58 DB B9 90 00 CB [10:30:50]RAPDU: D6 A3 D5 D7 97 58 DB B9 90 00 [10:30:50]wFMCommunicate OK [10:30:50]SAM_PROTO_SignData done [10:30:50]FM_MakeSignedData done [10:30:50]CreateOFDProtocolMessage [10:30:50]wFMCommunicate request_size=4 [10:30:50]MH_SAM_APDU [10:30:50]CAPDU: 80 11 00 00 [10:30:50]Write to MH i2c: E2 08 00 7E 2A 80 11 00 00 00 00 00 00 22 [10:30:50]Write i2c OK [10:30:50]MH_I2C_Read... [10:30:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:50]Read from MH i2c: E2 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 17 00 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 17 00 7E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 75 [10:30:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:30:50]wFMCommunicate OK [10:30:50]CreateOFDProtocolMessage done [10:30:50]OFDSenderStorePacket 76414 [10:30:50]StoreOFDPacket docnum=76414 [10:30:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 18 69 04 01 FA 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 50 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 50 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 DD 47 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7E 2A 01 00 35 04 06 00 49 90 13 E5 EB FB D6 A3 D5 D7 97 58 DB B9 [10:30:50]CheckFolder [10:30:50]dirname=/storage/ofd_packets [10:30:50]CheckFolder done [10:30:50]ProducePacketName [10:30:50]name=ofd_packets/00076414 [10:30:50]NVStorageSaveData ofd_packets/00076414 [10:30:50]File name is /storage/ofd_packets/00076414 [10:30:50]Write 298 bytes [10:30:50]NVStorageSaveData done [10:30:50]OFDSenderStorePacket done [10:30:50]KKMCreateOFDPacket done [10:30:50]NVStorageSaveData kkm_last_timestamp [10:30:50]File name is /storage/kkm_last_timestamp [10:30:50]Write 4 bytes [10:30:50]NVStorageSaveData done [10:30:50]ExternCall_PrintAddStr [10:30:50]wPrintStart [10:30:50]Write to MH i2c: 01 00 00 7F 2A A9 [10:30:50]Write i2c OK [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: 01 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: 01 07 00 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: 01 07 00 7F 2A 00 00 00 00 00 FF 0F BE [10:30:50]RasterBufferAndPrint [10:30:50]line Счет N : (1)190870 [10:30:50]line ИНН: 02508201610067 [10:30:50]line Контрольно-Кассовый Чек [10:30:50]line ПРОДАЖА [10:30:50]line ТРК (МРК, ГНК) : 51 [10:30:50]line Товар: 2710194210 [10:30:50]line ДТ-К-5 [10:30:50]line 2.750 * 72.90 [10:30:50]line = 200.48 [10:30:50]line НДС 12% НСП 1% [10:30:50]line > о реализуемом товаре [10:30:50]line ИТОГО: 200.48 [10:30:50]line НСП 1% : 1.77 [10:30:50]line НДС 12% : 21.29 [10:30:50]line Наличными: 0.00 [10:30:50]line Безнал.: 200.48 [10:30:50]line Место: АЗС № 106 "Партнер Нефть" [10:30:50]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:30:50]line СНО: Общий режим [10:30:50]line Чек 34 19.04.2024 10:30 [10:30:50]line Смена: 370 ФФД: 1.0 [10:30:50]line ЗНМ: 0300000141 [10:30:50]line РНМ: 0000000000091573 [10:30:50]line Версия ККМ: 001 [10:30:50]line Платежная система: О! деньги [10:30:50]line ФМ: 0000000000874652 [10:30:50]line ФД: 76414 [10:30:50]line ФПД: 80883157953531 [10:30:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T103053&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76414&fm=80883157953531&tin=02508201610067®Number=0000000000091573&sum=20048 [10:30:50]OFD Sender: Processing packet 76414 [packets to send 128, broken 127] [10:30:50]ProducePacketName [10:30:50]name=ofd_packets/00076414 [10:30:50]OFD Sender: To server: pG, [10:30:50]CommunicateWithHost lk.salyk.kg:30040 [10:30:50]ConnectInit lk.salyk.kg [10:30:50]written 0, free lines is 4095 [10:30:51]Connected sock=10 [10:30:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 18 69 04 01 FA 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 50 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 50 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 DD 47 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7E 2A 01 00 35 04 06 00 49 90 13 E5 EB FB D6 A3 D5 D7 97 58 DB B9 [10:30:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 1C 25 47 00 FF 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7E 2A 01 00 F4 03 04 00 69 EF 21 66 B6 04 01 00 00 B5 35 5F 1D 5F B6 5D F9 [10:30:51]CommunicateWithHost err = 0 [10:30:51]CheckOFDResponse [10:30:51]1017 (14) - 77093643461234 [10:30:51]1041 (16) - 0000000000874652 [10:30:51]1040 (4) - 76414 [10:30:51]1012 (4) - 19.04.2024 04:13 [10:30:51]1206 (1) - 0 [10:30:51]OFD Sender: Remove packet 76414 [10:30:51]ProducePacketName [10:30:51]name=ofd_packets/00076414 [10:30:51]NVStorageDeleteData [10:30:51]Write to MH i2c: 01 00 00 A8 2A D2 [10:30:51]Write i2c OK [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: 01 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: 01 07 00 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: 01 07 00 A8 2A 00 00 00 00 00 EE 0C D3 [10:30:51]RasterBufferAndPrint [10:30:51]line [10:30:51]line [10:30:51]line [10:30:51]line [10:30:51]line [10:30:51]written 0, free lines is 3319 [10:30:51]MH_Cut [10:30:51]Write to MH i2c: D1 01 00 AF 2A 01 AB [10:30:51]Write i2c OK [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: D1 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: D1 01 00 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: D1 01 00 AF 2A 00 AA [10:30:51]Write to MH i2c: 01 00 00 B0 2A DA [10:30:51]Write i2c OK [10:30:51]MH_I2C_Read... [10:30:51]OFD Sender: No OFD packet to send [10:30:52]*** Cut start [10:30:52]*** Partial cut [10:30:52]*** CUTSNS_PIN = 1 [10:30:52]*** CUTSNS_PIN = 0 [10:30:52]*** Brake cut motor [10:30:52]Read from MH i2c: 01 [10:30:52]MH_I2C_Read... [10:30:52]*** Stop cut motor [10:30:52]*** Cut end [10:30:52]Read from MH i2c: 01 07 00 [10:30:52]MH_I2C_Read... [10:30:52]Read from MH i2c: 01 07 00 B0 2A 00 00 00 00 00 FF 0F EF [10:30:52]process_action close_receipt done [10:30:52]requested_data is exist [10:30:52]produce_requested_data [10:30:52]requested_item fm.sn is exist - process it [10:30:52]wFMCommunicate request_size=4 [10:30:52]MH_SAM_APDU [10:30:52]CAPDU: 80 11 00 00 [10:30:52]Write to MH i2c: E2 08 00 B1 2A 80 11 00 00 00 00 00 00 55 [10:30:52]Write i2c OK [10:30:52]MH_I2C_Read... [10:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:52]Read from MH i2c: E2 [10:30:52]MH_I2C_Read... [10:30:52]Read from MH i2c: E2 17 00 [10:30:52]MH_I2C_Read... [10:30:52]Read from MH i2c: E2 17 00 B1 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A8 [10:30:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:30:52]wFMCommunicate OK [10:30:52]requested_item fd.num is exist - process it [10:30:52]SAM_PROTO_GetFieldsCounters [10:30:52]wFMCommunicate request_size=4 [10:30:52]MH_SAM_APDU [10:30:52]CAPDU: 80 13 00 00 [10:30:52]Write to MH i2c: E2 08 00 B2 2A 80 13 00 00 00 00 00 00 58 [10:30:52]Write i2c OK [10:30:52]MH_I2C_Read... [10:30:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:53]Read from MH i2c: E2 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: E2 62 00 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: E2 62 00 B2 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7E 2A 01 00 0E 04 04 00 72 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 FB [10:30:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7E 2A 01 00 0E 04 04 00 72 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 [10:30:53]wFMCommunicate OK [10:30:53]SAM_PROTO_GetFieldsCounters done [10:30:53]requested_item shift.num is exist - process it [10:30:53]requested_item shift.opened is exist - process it [10:30:53]req_shift_opened [10:30:53]FM_GetShiftState [10:30:53]SAM_PROTO_GetShiftState [10:30:53]wFMCommunicate request_size=4 [10:30:53]MH_SAM_APDU [10:30:53]CAPDU: 80 13 01 00 [10:30:53]Write to MH i2c: E2 08 00 B3 2A 80 13 01 00 00 00 00 00 5A [10:30:53]Write i2c OK [10:30:53]MH_I2C_Read... [10:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:53]Read from MH i2c: E2 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: E2 0E 00 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: E2 0E 00 B3 2A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 3F [10:30:53]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [10:30:53]wFMCommunicate OK [10:30:53]SAM_PROTO_GetShiftState done [10:30:53]FM_GetShiftState done [10:30:53]req_shift_opened done [10:30:53]requested_item shift.open_date is exist - process it [10:30:53]req_shift_open_date [10:30:53]req_shift_open_date done [10:30:53]produce_requested_data done [10:30:53]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76414,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [10:30:53]process_action_free close_receipt [10:30:53]json_value_free [10:30:53]json_value_free done [10:30:53]process_json_proto returns [10:30:53]Send response to host [10:30:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76414,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [10:30:53]free response buf [10:30:53]execute_script done [10:30:53]execute_script returns [10:30:53]free content buf [10:30:53]Sock 7.Close socket [10:30:53]Sock 7.Thread stoped [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:52]OFD Sender: No OFD packet to send [10:32:57]OFD Sender: No OFD packet to send [10:32:57]accept exits with 9 [10:32:57]New connection [10:32:57]New thread 3066486116 created [10:32:57]Thread 3066629476 joined [10:32:57]Waiting for new connection... [10:32:57] Sock 9.Parse request [10:32:57]Sock 9.Check first char [10:32:57]Sock 9.First char is OK [10:32:57]request: POST /json_proto HTTP/1.0 [10:32:57]Method: POST [10:32:57]URL: /json_proto [10:32:57]Method is POST - this is cgi request [10:32:57]url: /json_proto [10:32:57]query_string will be loaded in cgi processing [10:32:57]execute_cgi json_proto POST (null) [10:32:57]execute_cgi path=json_proto method=POST [10:32:57]POST find Content-Length [10:32:57]Host: 172.17.62.5:8080 [10:32:57]Content-Length: 1202 [10:32:57]Content-Type: application/json [10:32:57] [10:32:57]POST finish read [10:32:57]Found Content-Length = 1202 [10:32: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190871\u000A19.04.2024 10:14\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3731246;3731248\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:57]execute_script... [10:32: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190871\u000A19.04.2024 10:14\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3731246;3731248\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:57]POST & json_proto [10:32:57]process_json_proto [10:32:57]json parsed OK: [10:32:57]protocol is kg_v1.0 [10:32:57]action value=print_text [10:32:57]process_action print_text [10:32:57]cmd_print_text [10:32:57]ExternCall_PrintAddStr [10:32:57]wPrintStart [10:32:57]Write to MH i2c: 01 00 00 B4 2A DE [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: 01 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: 01 07 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: 01 07 00 B4 2A 00 00 00 00 00 FF 0F F3 [10:32:57]RasterBufferAndPrint [10:32:57]line *****ТОВАРНЫЙ ЧЕК***** [10:32:57]line АЗС 106 [10:32:57]line Партнер нефть [10:32:57]line 02508201610067 [10:32:57]line Кассир : Табалдиева М. [10:32:57]line Счет N : (1)190871 [10:32:57]line 19.04.2024 10:14 [10:32:57]line ПРОДАЖА [10:32:57]line ТРК (МРК, ГНК): 51 [10:32:57]line Вид ГСМ : 2710194210 [10:32:57]line ДТ-К-5 [10:32:57]line 20.000 x 72.90 [10:32:57]line ИТОГ: 1458.00 [10:32:57]line Тип оплаты: Талоны: Партнер нефть [10:32:57]line 3731246;3731248 [10:32:57]line ______________________ [10:32:57]line (подпись) [10:32:57]written 0, free lines is 4095 [10:32:57]Write to MH i2c: 01 00 00 C8 2A F2 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: 01 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: 01 07 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: 01 07 00 C8 2A 00 00 00 00 00 14 0E 1B [10:32:57]RasterBufferAndPrint [10:32:57]line [10:32:57]line [10:32:57]line [10:32:57]line [10:32:57]line [10:32:57]written 0, free lines is 3606 [10:32:57]MH_Cut [10:32:57]Write to MH i2c: D1 01 00 CF 2A 01 CB [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: D1 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: D1 01 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: D1 01 00 CF 2A 00 CA [10:32:57]Write to MH i2c: 01 00 00 D0 2A FA [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:58]*** Cut start [10:32:58]*** Partial cut [10:32:58]*** CUTSNS_PIN = 1 [10:32:58]*** CUTSNS_PIN = 0 [10:32:58]*** Brake cut motor [10:32:58]Read from MH i2c: 01 [10:32:58]MH_I2C_Read... [10:32:58]*** Stop cut motor [10:32:58]*** Cut end [10:32:58]Read from MH i2c: 01 07 00 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 07 00 D0 2A 00 00 00 00 00 FF 0F 0F [10:32:58]process_action print_text done [10:32:58]requested_data is exist [10:32:58]produce_requested_data [10:32:58]requested_item fm.sn is exist - process it [10:32:58]wFMCommunicate request_size=4 [10:32:58]MH_SAM_APDU [10:32:58]CAPDU: 80 11 00 00 [10:32:58]Write to MH i2c: E2 08 00 D1 2A 80 11 00 00 00 00 00 00 75 [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:58]Read from MH i2c: E2 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: E2 17 00 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: E2 17 00 D1 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C8 [10:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:32:58]wFMCommunicate OK [10:32:58]requested_item fd.num is exist - process it [10:32:58]SAM_PROTO_GetFieldsCounters [10:32:58]wFMCommunicate request_size=4 [10:32:58]MH_SAM_APDU [10:32:58]CAPDU: 80 13 00 00 [10:32:58]Write to MH i2c: E2 08 00 D2 2A 80 13 00 00 00 00 00 00 78 [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:59]Read from MH i2c: E2 [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: E2 62 00 [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: E2 62 00 D2 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7E 2A 01 00 0E 04 04 00 72 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 1B [10:32: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7E 2A 01 00 0E 04 04 00 72 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 [10:32:59]wFMCommunicate OK [10:32:59]SAM_PROTO_GetFieldsCounters done [10:32:59]requested_item shift.num is exist - process it [10:32:59]requested_item shift.opened is exist - process it [10:32:59]req_shift_opened [10:32:59]FM_GetShiftState [10:32:59]SAM_PROTO_GetShiftState [10:32:59]wFMCommunicate request_size=4 [10:32:59]MH_SAM_APDU [10:32:59]CAPDU: 80 13 01 00 [10:32:59]Write to MH i2c: E2 08 00 D3 2A 80 13 01 00 00 00 00 00 7A [10:32:59]Write i2c OK [10:32:59]MH_I2C_Read... [10:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:59]Read from MH i2c: E2 [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: E2 0E 00 [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: E2 0E 00 D3 2A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 5F [10:32:59]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [10:32:59]wFMCommunicate OK [10:32:59]SAM_PROTO_GetShiftState done [10:32:59]FM_GetShiftState done [10:32:59]req_shift_opened done [10:32:59]requested_item shift.open_date is exist - process it [10:32:59]req_shift_open_date [10:32:59]req_shift_open_date done [10:32:59]produce_requested_data done [10:32:59]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76414,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [10:32:59]process_action_free print_text [10:32:59]json_value_free [10:32:59]json_value_free done [10:32:59]process_json_proto returns [10:32:59]Send response to host [10:32:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76414,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [10:32:59]free response buf [10:32:59]execute_script done [10:32:59]execute_script returns [10:32:59]free content buf [10:32:59]Sock 9.Close socket [10:32:59]Sock 9.Thread stoped [10:33:02]OFD Sender: No OFD packet to send [10:33:07]OFD Sender: No OFD packet to send [10:33:12]OFD Sender: No OFD packet to send [10:33:17]OFD Sender: No OFD packet to send [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:32]OFD Sender: No OFD packet to send [10:33:37]OFD Sender: No OFD packet to send [10:33:41]accept exits with 7 [10:33:41]New connection [10:33:41]New thread 3066629476 created [10:33:41]Thread 3066486116 joined [10:33:41]Waiting for new connection... [10:33:41] Sock 7.Parse request [10:33:41]Sock 7.Check first char [10:33:41]Sock 7.First char is OK [10:33:41]request: POST /json_proto HTTP/1.0 [10:33:41]Method: POST [10:33:41]URL: /json_proto [10:33:41]Method is POST - this is cgi request [10:33:41]url: /json_proto [10:33:41]query_string will be loaded in cgi processing [10:33:41]execute_cgi json_proto POST (null) [10:33:41]execute_cgi path=json_proto method=POST [10:33:41]POST find Content-Length [10:33:41]Host: 172.17.62.5:8080 [10:33:41]Content-Length: 1169 [10:33:41]Content-Type: application/json [10:33:41] [10:33:41]POST finish read [10:33:41]Found Content-Length = 1169 [10:33:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190872\u000A19.04.2024 10:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:41]execute_script... [10:33:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190872\u000A19.04.2024 10:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:41]POST & json_proto [10:33:41]process_json_proto [10:33:41]json parsed OK: [10:33:41]protocol is kg_v1.0 [10:33:41]action value=print_text [10:33:41]process_action print_text [10:33:41]cmd_print_text [10:33:41]ExternCall_PrintAddStr [10:33:41]wPrintStart [10:33:41]Write to MH i2c: 01 00 00 D4 2A FE [10:33:41]Write i2c OK [10:33:41]MH_I2C_Read... [10:33:41]Read from MH i2c: 01 [10:33:41]MH_I2C_Read... [10:33:41]Read from MH i2c: 01 07 00 [10:33:41]MH_I2C_Read... [10:33:41]Read from MH i2c: 01 07 00 D4 2A 00 00 00 00 00 FF 0F 13 [10:33:41]RasterBufferAndPrint [10:33:41]line *****ТОВАРНЫЙ ЧЕК***** [10:33:41]line АЗС 106 [10:33:41]line Партнер нефть [10:33:41]line 02508201610067 [10:33:41]line Кассир : Табалдиева М. [10:33:41]line Счет N : (1)190872 [10:33:41]line 19.04.2024 10:15 [10:33:41]line ПРОДАЖА [10:33:41]line ТРК (МРК, ГНК): 33 [10:33:41]line Вид ГСМ : 2710124130 [10:33:41]line Аи-92-К-5 [10:33:41]line 20.000 x 64.40 [10:33:41]line ИТОГ: 1288.00 [10:33:41]line Тип оплаты: Талоны: ТК ГПНА Online [10:33:41]line 30102984 [10:33:41]line ______________________ [10:33:41]line (подпись) [10:33:41]written 0, free lines is 4095 [10:33:41]Write to MH i2c: 01 00 00 E8 2A 12 [10:33:41]Write i2c OK [10:33:41]MH_I2C_Read... [10:33:41]Read from MH i2c: 01 [10:33:41]MH_I2C_Read... [10:33:41]Read from MH i2c: 01 07 00 [10:33:41]MH_I2C_Read... [10:33:41]Read from MH i2c: 01 07 00 E8 2A 00 00 00 00 00 10 0E 37 [10:33:41]RasterBufferAndPrint [10:33:41]line [10:33:41]line [10:33:41]line [10:33:41]line [10:33:41]line [10:33:41]written 0, free lines is 3602 [10:33:41]MH_Cut [10:33:41]Write to MH i2c: D1 01 00 EF 2A 01 EB [10:33:41]Write i2c OK [10:33:41]MH_I2C_Read... [10:33:41]Read from MH i2c: D1 [10:33:41]MH_I2C_Read... [10:33:41]Read from MH i2c: D1 01 00 [10:33:41]MH_I2C_Read... [10:33:41]Read from MH i2c: D1 01 00 EF 2A 00 EA [10:33:41]Write to MH i2c: 01 00 00 F0 2A 1A [10:33:41]Write i2c OK [10:33:41]MH_I2C_Read... [10:33:42]OFD Sender: No OFD packet to send [10:33:42]*** Cut start [10:33:42]*** Partial cut [10:33:42]*** CUTSNS_PIN = 1 [10:33:42]*** CUTSNS_PIN = 0 [10:33:42]*** Brake cut motor [10:33:42]Read from MH i2c: 01 [10:33:42]MH_I2C_Read... [10:33:42]*** Stop cut motor [10:33:42]*** Cut end [10:33:42]Read from MH i2c: 01 07 00 [10:33:42]MH_I2C_Read... [10:33:42]Read from MH i2c: 01 07 00 F0 2A 00 00 00 00 00 FF 0F 2F [10:33:42]process_action print_text done [10:33:42]requested_data is exist [10:33:42]produce_requested_data [10:33:42]requested_item fm.sn is exist - process it [10:33:42]wFMCommunicate request_size=4 [10:33:42]MH_SAM_APDU [10:33:42]CAPDU: 80 11 00 00 [10:33:42]Write to MH i2c: E2 08 00 F1 2A 80 11 00 00 00 00 00 00 95 [10:33:42]Write i2c OK [10:33:42]MH_I2C_Read... [10:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:42]Read from MH i2c: E2 [10:33:42]MH_I2C_Read... [10:33:42]Read from MH i2c: E2 17 00 [10:33:42]MH_I2C_Read... [10:33:42]Read from MH i2c: E2 17 00 F1 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E8 [10:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:33:42]wFMCommunicate OK [10:33:42]requested_item fd.num is exist - process it [10:33:42]SAM_PROTO_GetFieldsCounters [10:33:42]wFMCommunicate request_size=4 [10:33:42]MH_SAM_APDU [10:33:42]CAPDU: 80 13 00 00 [10:33:42]Write to MH i2c: E2 08 00 F2 2A 80 13 00 00 00 00 00 00 98 [10:33:42]Write i2c OK [10:33:42]MH_I2C_Read... [10:33:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:43]Read from MH i2c: E2 [10:33:43]MH_I2C_Read... [10:33:43]Read from MH i2c: E2 62 00 [10:33:43]MH_I2C_Read... [10:33:43]Read from MH i2c: E2 62 00 F2 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7E 2A 01 00 0E 04 04 00 72 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 3B [10:33:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7E 2A 01 00 0E 04 04 00 72 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 [10:33:43]wFMCommunicate OK [10:33:43]SAM_PROTO_GetFieldsCounters done [10:33:43]requested_item shift.num is exist - process it [10:33:43]requested_item shift.opened is exist - process it [10:33:43]req_shift_opened [10:33:43]FM_GetShiftState [10:33:43]SAM_PROTO_GetShiftState [10:33:43]wFMCommunicate request_size=4 [10:33:43]MH_SAM_APDU [10:33:43]CAPDU: 80 13 01 00 [10:33:43]Write to MH i2c: E2 08 00 F3 2A 80 13 01 00 00 00 00 00 9A [10:33:43]Write i2c OK [10:33:43]MH_I2C_Read... [10:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:43]Read from MH i2c: E2 [10:33:43]MH_I2C_Read... [10:33:43]Read from MH i2c: E2 0E 00 [10:33:43]MH_I2C_Read... [10:33:43]Read from MH i2c: E2 0E 00 F3 2A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 7F [10:33:43]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [10:33:43]wFMCommunicate OK [10:33:43]SAM_PROTO_GetShiftState done [10:33:43]FM_GetShiftState done [10:33:43]req_shift_opened done [10:33:43]requested_item shift.open_date is exist - process it [10:33:43]req_shift_open_date [10:33:43]req_shift_open_date done [10:33:43]produce_requested_data done [10:33:43]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76414,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [10:33:43]process_action_free print_text [10:33:43]json_value_free [10:33:43]json_value_free done [10:33:43]process_json_proto returns [10:33:43]Send response to host [10:33:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76414,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [10:33:43]free response buf [10:33:43]execute_script done [10:33:43]execute_script returns [10:33:43]free content buf [10:33:43]Sock 7.Close socket [10:33:43]Sock 7.Thread stoped [10:33:47]OFD Sender: No OFD packet to send [10:33:52]OFD Sender: No OFD packet to send [10:33:57]OFD Sender: No OFD packet to send [10:34:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:57]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:49]recv_with_timeout no data received [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:28]accept exits with 9 [10:40:28]New connection [10:40:28]New thread 3066486116 created [10:40:28]Thread 3066629476 joined [10:40:28]Waiting for new connection... [10:40:28] Sock 9.Parse request [10:40:28]Sock 9.Check first char [10:40:28]Sock 9.First char is OK [10:40:28]request: POST /json_proto HTTP/1.0 [10:40:28]Method: POST [10:40:28]URL: /json_proto [10:40:28]Method is POST - this is cgi request [10:40:28]url: /json_proto [10:40:28]query_string will be loaded in cgi processing [10:40:28]execute_cgi json_proto POST (null) [10:40:28]execute_cgi path=json_proto method=POST [10:40:28]POST find Content-Length [10:40:28]Host: 172.17.62.5:8080 [10:40:28]Content-Length: 215 [10:40:28]Content-Type: application/json [10:40:28] [10:40:28]POST finish read [10:40:28]Found Content-Length = 215 [10:40:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:28]execute_script... [10:40:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:28]POST & json_proto [10:40:28]process_json_proto [10:40:28]json parsed OK: [10:40:28]protocol is kg_v1.0 [10:40:28]action value=get_value [10:40:28]process_action get_value [10:40:28]cmd_get_value [10:40:28]process_action get_value done [10:40:28]requested_data is exist [10:40:28]produce_requested_data [10:40:28]requested_item kkm.sn is exist - process it [10:40:28]requested_item kkm.ver is exist - process it [10:40:28]requested_item fm.sn is exist - process it [10:40:28]wFMCommunicate request_size=4 [10:40:28]MH_SAM_APDU [10:40:28]CAPDU: 80 11 00 00 [10:40:28]Write to MH i2c: E2 08 00 F4 2A 80 11 00 00 00 00 00 00 98 [10:40:28]Write i2c OK [10:40:28]MH_I2C_Read... [10:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:28]Read from MH i2c: E2 [10:40:28]MH_I2C_Read... [10:40:28]Read from MH i2c: E2 17 00 [10:40:28]MH_I2C_Read... [10:40:28]Read from MH i2c: E2 17 00 F4 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EB [10:40:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:40:28]wFMCommunicate OK [10:40:28]requested_item fd.num is exist - process it [10:40:28]SAM_PROTO_GetFieldsCounters [10:40:28]wFMCommunicate request_size=4 [10:40:28]MH_SAM_APDU [10:40:28]CAPDU: 80 13 00 00 [10:40:28]Write to MH i2c: E2 08 00 F5 2A 80 13 00 00 00 00 00 00 9B [10:40:28]Write i2c OK [10:40:28]MH_I2C_Read... [10:40:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:28]Read from MH i2c: E2 [10:40:28]MH_I2C_Read... [10:40:28]Read from MH i2c: E2 62 00 [10:40:28]MH_I2C_Read... [10:40:28]Read from MH i2c: E2 62 00 F5 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7E 2A 01 00 0E 04 04 00 72 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 3E [10:40:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7E 2A 01 00 0E 04 04 00 72 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 [10:40:28]wFMCommunicate OK [10:40:28]SAM_PROTO_GetFieldsCounters done [10:40:28]requested_item shift.num is exist - process it [10:40:28]requested_item shift.opened is exist - process it [10:40:28]req_shift_opened [10:40:28]FM_GetShiftState [10:40:28]SAM_PROTO_GetShiftState [10:40:28]wFMCommunicate request_size=4 [10:40:28]MH_SAM_APDU [10:40:28]CAPDU: 80 13 01 00 [10:40:28]Write to MH i2c: E2 08 00 F6 2A 80 13 01 00 00 00 00 00 9D [10:40:28]Write i2c OK [10:40:28]MH_I2C_Read... [10:40:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:28]Read from MH i2c: E2 [10:40:28]MH_I2C_Read... [10:40:28]Read from MH i2c: E2 0E 00 [10:40:28]MH_I2C_Read... [10:40:28]Read from MH i2c: E2 0E 00 F6 2A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 82 [10:40:28]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [10:40:28]wFMCommunicate OK [10:40:28]SAM_PROTO_GetShiftState done [10:40:28]FM_GetShiftState done [10:40:28]req_shift_opened done [10:40:28]requested_item shift.open_date is exist - process it [10:40:28]req_shift_open_date [10:40:28]req_shift_open_date done [10:40:28]produce_requested_data done [10:40:28]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76414,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [10:40:28]process_action_free get_value [10:40:28]json_value_free [10:40:28]json_value_free done [10:40:28]process_json_proto returns [10:40:28]Send response to host [10:40:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76414,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [10:40:28]free response buf [10:40:28]execute_script done [10:40:28]execute_script returns [10:40:28]free content buf [10:40:28]Sock 9.Close socket [10:40:28]Sock 9.Thread stoped [10:40:28]accept exits with 7 [10:40:28]New connection [10:40:28]New thread 3066629476 created [10:40:28]Thread 3066486116 joined [10:40:28]Waiting for new connection... [10:40:28] Sock 7.Parse request [10:40:28]Sock 7.Check first char [10:40:28]Sock 7.First char is OK [10:40:28]request: POST /json_proto HTTP/1.0 [10:40:28]Method: POST [10:40:28]URL: /json_proto [10:40:28]Method is POST - this is cgi request [10:40:28]url: /json_proto [10:40:28]query_string will be loaded in cgi processing [10:40:28]execute_cgi json_proto POST (null) [10:40:28]execute_cgi path=json_proto method=POST [10:40:28]POST find Content-Length [10:40:28]Host: 172.17.62.5:8080 [10:40:28]Content-Length: 331 [10:40:28]Content-Type: application/json [10:40:28] [10:40:28]POST finish read [10:40:28]Found Content-Length = 331 [10:40:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:40:28]execute_script... [10:40:28]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:40:28]POST & json_proto [10:40:28]process_json_proto [10:40:28]json parsed OK: [10:40:28]protocol is kg_v1.0 [10:40:28]action value=get_value [10:40:28]process_action get_value [10:40:28]cmd_get_value [10:40:28]process_action get_value done [10:40:28]requested_data is exist [10:40:28]produce_requested_data [10:40:28]requested_item fm.sale.total is exist - process it [10:40:28]SAM_PROTO_GetFMData [10:40:28]wFMCommunicate request_size=4 [10:40:28]MH_SAM_APDU [10:40:28]CAPDU: 80 13 03 00 [10:40:28]Write to MH i2c: E2 08 00 F7 2A 80 13 03 00 00 00 00 00 A0 [10:40:28]Write i2c OK [10:40:28]MH_I2C_Read... [10:40:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:40:29]Read from MH i2c: E2 [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: E2 FD 00 [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: E2 FD 00 F7 2A 00 C8 04 85 04 C4 04 6E 04 04 00 9A 27 01 00 69 04 A3 00 6F 04 04 00 AC 25 01 00 B1 04 05 00 CC 4B 89 B7 02 70 04 05 00 44 A7 25 74 02 72 04 04 00 88 A4 63 43 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 C2 65 DF 49 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 53 E2 27 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 26 [10:40:29]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 9A 27 01 00 69 04 A3 00 6F 04 04 00 AC 25 01 00 B1 04 05 00 CC 4B 89 B7 02 70 04 05 00 44 A7 25 74 02 72 04 04 00 88 A4 63 43 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 C2 65 DF 49 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 53 E2 27 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 [10:40:29]wFMCommunicate OK [10:40:29]wFMCommunicate request_size=4 [10:40:29]MH_SAM_APDU [10:40:29]CAPDU: 80 17 00 00 [10:40:29]Write to MH i2c: E2 08 00 F8 2A 80 17 00 00 00 00 00 00 A2 [10:40:29]Write i2c OK [10:40:29]MH_I2C_Read... [10:40:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:40:29]Read from MH i2c: E2 [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: E2 FD 00 [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: E2 FD 00 F8 2A 00 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 B4 2D 75 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 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 90 00 09 [10:40:29]RAPDU: 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 B4 2D 75 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 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 90 00 [10:40:29]wFMCommunicate OK [10:40:29]wFMCommunicate request_size=4 [10:40:29]MH_SAM_APDU [10:40:29]CAPDU: 80 17 00 00 [10:40:29]Write to MH i2c: E2 08 00 F9 2A 80 17 00 00 00 00 00 00 A3 [10:40:29]Write i2c OK [10:40:29]MH_I2C_Read... [10:40:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:40:29]Read from MH i2c: E2 [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: E2 FD 00 [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: E2 FD 00 F9 2A 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7B [10:40:29]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:40:29]wFMCommunicate OK [10:40:29]wFMCommunicate request_size=4 [10:40:29]MH_SAM_APDU [10:40:29]CAPDU: 80 17 00 00 [10:40:29]Write to MH i2c: E2 08 00 FA 2A 80 17 00 00 00 00 00 00 A4 [10:40:29]Write i2c OK [10:40:29]MH_I2C_Read... [10:40:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:40:30]Read from MH i2c: E2 [10:40:30]MH_I2C_Read... [10:40:30]Read from MH i2c: E2 FD 00 [10:40:30]MH_I2C_Read... [10:40:30]Read from MH i2c: E2 FD 00 FA 2A 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 90 00 1C [10:40:30]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 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 90 00 [10:40:30]wFMCommunicate OK [10:40:30]wFMCommunicate request_size=4 [10:40:30]MH_SAM_APDU [10:40:30]CAPDU: 80 17 00 00 [10:40:30]Write to MH i2c: E2 08 00 FB 2A 80 17 00 00 00 00 00 00 A5 [10:40:30]Write i2c OK [10:40:30]MH_I2C_Read... [10:40:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [10:40:30]Read from MH i2c: E2 [10:40:30]MH_I2C_Read... [10:40:30]Read from MH i2c: E2 E5 00 [10:40:30]MH_I2C_Read... [10:40:30]Read from MH i2c: E2 E5 00 FB 2A 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 89 [10:40:30]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:40:30]wFMCommunicate OK [10:40:30]SAM_PROTO_GetFMData done [10:40:30]requested_item fm.sale_refund.total is exist - process it [10:40:30]requested_item fm.buy.total is exist - process it [10:40:30]requested_item shift.sale.total is exist - process it [10:40:30]SAM_PROTO_GetShiftData [10:40:30]wFMCommunicate request_size=4 [10:40:30]MH_SAM_APDU [10:40:30]CAPDU: 80 13 02 00 [10:40:30]Write to MH i2c: E2 08 00 FC 2A 80 13 02 00 00 00 00 00 A4 [10:40:30]Write i2c OK [10:40:30]MH_I2C_Read... [10:40:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:40:30]Read from MH i2c: E2 [10:40:30]MH_I2C_Read... [10:40:30]Read from MH i2c: E2 FD 00 [10:40:30]MH_I2C_Read... [10:40:30]Read from MH i2c: E2 FD 00 FC 2A 00 AE 04 AA 04 AA 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 22 00 00 00 B1 04 03 00 E9 9C 33 70 04 03 00 A8 6C 2C 72 04 03 00 41 30 07 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 87 7B 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F4 74 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 88 [10:40:30]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 22 00 00 00 B1 04 03 00 E9 9C 33 70 04 03 00 A8 6C 2C 72 04 03 00 41 30 07 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 87 7B 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F4 74 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:40:30]wFMCommunicate OK [10:40:30]wFMCommunicate request_size=4 [10:40:30]MH_SAM_APDU [10:40:30]CAPDU: 80 17 00 00 [10:40:30]Write to MH i2c: E2 08 00 FD 2A 80 17 00 00 00 00 00 00 A7 [10:40:30]Write i2c OK [10:40:30]MH_I2C_Read... [10:40:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:40:30]Read from MH i2c: E2 [10:40:30]MH_I2C_Read... [10:40:30]Read from MH i2c: E2 FD 00 [10:40:30]MH_I2C_Read... [10:40:30]Read from MH i2c: E2 FD 00 FD 2A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 C9 [10:40:30]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:40:31]wFMCommunicate OK [10:40:31]wFMCommunicate request_size=4 [10:40:31]MH_SAM_APDU [10:40:31]CAPDU: 80 17 00 00 [10:40:31]Write to MH i2c: E2 08 00 FE 2A 80 17 00 00 00 00 00 00 A8 [10:40:31]Write i2c OK [10:40:31]MH_I2C_Read... [10:40:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:40:31]Read from MH i2c: E2 [10:40:31]MH_I2C_Read... [10:40:31]Read from MH i2c: E2 FD 00 [10:40:31]MH_I2C_Read... [10:40:31]Read from MH i2c: E2 FD 00 FE 2A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5F [10:40:31]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [10:40:31]wFMCommunicate OK [10:40:31]wFMCommunicate request_size=4 [10:40:31]MH_SAM_APDU [10:40:31]CAPDU: 80 17 00 00 [10:40:31]Write to MH i2c: E2 08 00 FF 2A 80 17 00 00 00 00 00 00 A9 [10:40:31]Write i2c OK [10:40:31]MH_I2C_Read... [10:40:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:40:31]Read from MH i2c: E2 [10:40:31]MH_I2C_Read... [10:40:31]Read from MH i2c: E2 FD 00 [10:40:31]MH_I2C_Read... [10:40:31]Read from MH i2c: E2 FD 00 FF 2A 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 1B [10:40:31]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [10:40:31]wFMCommunicate OK [10:40:31]wFMCommunicate request_size=4 [10:40:31]MH_SAM_APDU [10:40:31]CAPDU: 80 17 00 00 [10:40:31]Write to MH i2c: E2 08 00 00 2B 80 17 00 00 00 00 00 00 AB [10:40:31]Write i2c OK [10:40:31]MH_I2C_Read... [10:40:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:40:31]Read from MH i2c: E2 [10:40:31]MH_I2C_Read... [10:40:31]Read from MH i2c: E2 CB 00 [10:40:31]MH_I2C_Read... [10:40:31]Read from MH i2c: E2 CB 00 00 2B 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 94 [10:40:31]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:40:31]wFMCommunicate OK [10:40:31]SAM_PROTO_GetShiftData done [10:40:31]requested_item shift.sale.total_cash is exist - process it [10:40:31]requested_item shift.sale_refund.total is exist - process it [10:40:31]requested_item shift.sale_refund.total_cash is exist - process it [10:40:31]requested_item shift.buy.total is exist - process it [10:40:31]requested_item shift.buy.total_cash is exist - process it [10:40:31]produce_requested_data done [10:40:31]produce_requested_data return {"fm.sale.total":116691629.56,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":33825.05,"shift.sale.total_cash":29114.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:40:31]process_action_free get_value [10:40:31]json_value_free [10:40:31]json_value_free done [10:40:31]process_json_proto returns [10:40:31]Send response to host [10:40:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":116691629.56,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":33825.05,"shift.sale.total_cash":29114.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:40:31]free response buf [10:40:31]execute_script done [10:40:31]execute_script returns [10:40:31]free content buf [10:40:31]Sock 7.Close socket [10:40:31]Sock 7.Thread stoped [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:43:59]accept exits with 9 [10:43:59]New connection [10:43:59]New thread 3066486116 created [10:43:59]Thread 3066629476 joined [10:43:59]Waiting for new connection... [10:43:59] Sock 9.Parse request [10:43:59]Sock 9.Check first char [10:43:59]Sock 9.First char is OK [10:43:59]request: POST /json_proto HTTP/1.0 [10:43:59]Method: POST [10:43:59]URL: /json_proto [10:43:59]Method is POST - this is cgi request [10:43:59]url: /json_proto [10:43:59]query_string will be loaded in cgi processing [10:43:59]execute_cgi json_proto POST (null) [10:43:59]execute_cgi path=json_proto method=POST [10:43:59]POST find Content-Length [10:43:59]Host: 172.17.62.5:8080 [10:43:59]Content-Length: 681 [10:43:59]Content-Type: application/json [10:43:59] [10:43:59]POST finish read [10:43:59]Found Content-Length = 681 [10:43:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 12.240, "sum" : 400.25, "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:43:59]execute_script... [10: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)190873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 12.240, "sum" : 400.25, "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:43:59]POST & json_proto [10:43:59]process_json_proto [10:43:59]json parsed OK: [10:43:59]protocol is kg_v1.0 [10:43:59]action value=close_receipt [10:43:59]process_action close_receipt [10:43:59]cmd_close_receipt [10:43:59]MH_GetDate [10:43:59]Write to MH i2c: F0 00 00 01 2B 1B [10:43:59]Write i2c OK [10:43:59]MH_I2C_Read... [10:43:59]Read from MH i2c: F0 [10:43:59]MH_I2C_Read... [10:43:59]Read from MH i2c: F0 09 00 [10:43:59]MH_I2C_Read... [10:43:59]Read from MH i2c: F0 09 00 01 2B 00 F3 4A 22 66 F4 E9 65 64 8F [10:43:59]GetLastDocTimeStamp 1713522653 [10:43:59]current date 1713523443 [10:43:59]FM_GetShiftState [10:43:59]SAM_PROTO_GetShiftState [10:43:59]wFMCommunicate request_size=4 [10:43:59]MH_SAM_APDU [10:43:59]CAPDU: 80 13 01 00 [10:43:59]Write to MH i2c: E2 08 00 02 2B 80 13 01 00 00 00 00 00 AA [10:43:59]Write i2c OK [10:43:59]MH_I2C_Read... [10:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:59]Read from MH i2c: E2 [10:43:59]MH_I2C_Read... [10:43:59]Read from MH i2c: E2 0E 00 [10:43:59]MH_I2C_Read... [10:43:59]Read from MH i2c: E2 0E 00 02 2B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 8F [10:43:59]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [10:43:59]wFMCommunicate OK [10:43:59]SAM_PROTO_GetShiftState done [10:43:59]FM_GetShiftState done [10:43:59]opened in 1713486233 [10:43:59]opened+sec_in_day 1713572633 [10:43:59]quantity*price = 40024 [10:43:59]sum+1 = 40026 [10:43:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 35 19.04.2024 10:44 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76415 ФПД: 164149318298789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T104403&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76415&fm=164149318298789&tin=02508201610067®Number=0000000000091573&sum=40000 [10:44:00]StoreToDocumentArchive [10:44:00]shift 370 fd 76415 [10:44:00]save to /storage/0370/doc_00076415 [10:44:00]save last doc name /storage/0370/doc_00076415 to /storage/kkm_last_doc_name [10:44:00]save OK [10:44:00]Clear old archive folders... [10:44:00]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:44:00]tlvbuf is 00915D50 [10:44:00]SAM_PROTO_ClearQueue [10:44:00]wFMCommunicate request_size=4 [10:44:00]MH_SAM_APDU [10:44:00]CAPDU: 80 09 00 00 [10:44:00]Write to MH i2c: E2 08 00 0F 2B 80 09 00 00 00 00 00 00 AC [10:44:00]Write i2c OK [10:44:00]MH_I2C_Read... [10:44:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:00]Read from MH i2c: E2 [10:44:00]MH_I2C_Read... [10:44:00]Read from MH i2c: E2 03 00 [10:44:00]MH_I2C_Read... [10:44:00]Read from MH i2c: E2 03 00 0F 2B 00 90 00 AE [10:44:00]RAPDU: 90 00 [10:44:00]wFMCommunicate OK [10:44:00]SAM_PROTO_ClearQueue done [10:44:00]KKMCreateOFDPacket [10:44:00]OFDProtocolAddRootSTLVToBuf [10:44:00]FM_MakeSignedData [10:44:00]FM_MakeSignedData [10:44:00]SAM_PROTO_SignData [10:44:00]wFMCommunicate request_size=4 [10:44:00]MH_SAM_APDU [10:44:00]CAPDU: 80 0D 01 02 [10:44:00]Write to MH i2c: E2 08 00 10 2B 80 0D 01 02 00 00 00 00 B4 [10:44:00]Write i2c OK [10:44:00]MH_I2C_Read... [10:44:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:00]Read from MH i2c: E2 [10:44:00]MH_I2C_Read... [10:44:00]Read from MH i2c: E2 03 00 [10:44:00]MH_I2C_Read... [10:44:00]Read from MH i2c: E2 03 00 10 2B 00 90 00 AF [10:44:00]RAPDU: 90 00 [10:44:00]wFMCommunicate OK [10:44:00]wFMCommunicate request_size=255 [10:44:00]MH_SAM_APDU [10:44:00]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D0 2F 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 59 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 23 00 00 00 F4 03 04 00 F3 4A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7F 2A 01 00 35 04 06 00 95 4A [10:44:00]Write to MH i2c: E2 02 01 11 2B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D0 2F 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 59 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 23 00 00 00 F4 03 04 00 F3 4A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7F 2A 01 00 35 04 06 00 95 4A 00 00 D4 [10:44:00]Write i2c OK [10:44:00]MH_I2C_Read... [10:44:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:00]Read from MH i2c: E2 [10:44:00]MH_I2C_Read... [10:44:00]Read from MH i2c: E2 03 00 [10:44:00]MH_I2C_Read... [10:44:00]Read from MH i2c: E2 03 00 11 2B 00 90 00 B0 [10:44:00]RAPDU: 90 00 [10:44:00]wFMCommunicate OK [10:44:00]wFMCommunicate request_size=9 [10:44:00]MH_SAM_APDU [10:44:00]CAPDU: 80 0D 02 02 04 FD CE AC A5 [10:44:00]Write to MH i2c: E2 0C 00 12 2B 80 0D 02 02 04 00 FD CE AC A5 00 00 DB [10:44:00]Write i2c OK [10:44:00]MH_I2C_Read... [10:44:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:00]Read from MH i2c: E2 [10:44:00]MH_I2C_Read... [10:44:00]Read from MH i2c: E2 03 00 [10:44:00]MH_I2C_Read... [10:44:00]Read from MH i2c: E2 03 00 12 2B 00 90 00 B1 [10:44:00]RAPDU: 90 00 [10:44:00]wFMCommunicate OK [10:44:00]wFMCommunicate request_size=4 [10:44:00]MH_SAM_APDU [10:44:00]CAPDU: 80 0D 03 02 [10:44:00]Write to MH i2c: E2 08 00 13 2B 80 0D 03 02 00 00 00 00 B9 [10:44:00]Write i2c OK [10:44:00]MH_I2C_Read... [10:44:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:00]Read from MH i2c: E2 [10:44:00]MH_I2C_Read... [10:44:00]Read from MH i2c: E2 0B 00 [10:44:00]MH_I2C_Read... [10:44:00]Read from MH i2c: E2 0B 00 13 2B 00 D1 0C 82 3B 11 9E 01 1C 90 00 20 [10:44:00]RAPDU: D1 0C 82 3B 11 9E 01 1C 90 00 [10:44:00]wFMCommunicate OK [10:44:00]SAM_PROTO_SignData done [10:44:00]FM_MakeSignedData done [10:44:00]CreateOFDProtocolMessage [10:44:00]wFMCommunicate request_size=4 [10:44:00]MH_SAM_APDU [10:44:00]CAPDU: 80 11 00 00 [10:44:00]Write to MH i2c: E2 08 00 14 2B 80 11 00 00 00 00 00 00 B9 [10:44:00]Write i2c OK [10:44:00]MH_I2C_Read... [10:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:00]Read from MH i2c: E2 [10:44:00]MH_I2C_Read... [10:44:00]Read from MH i2c: E2 17 00 [10:44:00]MH_I2C_Read... [10:44:00]Read from MH i2c: E2 17 00 14 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0C [10:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:44:00]wFMCommunicate OK [10:44:00]CreateOFDProtocolMessage done [10:44:00]OFDSenderStorePacket 76415 [10:44:00]StoreOFDPacket docnum=76415 [10:44:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 4F BE 06 01 E6 17 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D0 2F 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 59 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 23 00 00 00 F4 03 04 00 F3 4A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7F 2A 01 00 35 04 06 00 95 4A FD CE AC A5 D1 0C 82 3B 11 9E 01 1C [10:44:00]CheckFolder [10:44:00]dirname=/storage/ofd_packets [10:44:00]CheckFolder done [10:44:00]ProducePacketName [10:44:00]name=ofd_packets/00076415 [10:44:00]NVStorageSaveData ofd_packets/00076415 [10:44:00]File name is /storage/ofd_packets/00076415 [10:44:00]Write 300 bytes [10:44:00]NVStorageSaveData done [10:44:00]OFDSenderStorePacket done [10:44:00]KKMCreateOFDPacket done [10:44:00]NVStorageSaveData kkm_last_timestamp [10:44:00]File name is /storage/kkm_last_timestamp [10:44:00]Write 4 bytes [10:44:00]NVStorageSaveData done [10:44:00]ExternCall_PrintAddStr [10:44:00]wPrintStart [10:44:00]Write to MH i2c: 01 00 00 15 2B 40 [10:44:00]Write i2c OK [10:44:00]MH_I2C_Read... [10:44:00]Read from MH i2c: 01 [10:44:00]MH_I2C_Read... [10:44:00]Read from MH i2c: 01 07 00 [10:44:00]MH_I2C_Read... [10:44:00]Read from MH i2c: 01 07 00 15 2B 00 00 00 00 00 FF 0F 55 [10:44:00]RasterBufferAndPrint [10:44:00]line Счет N : (1)190873 [10:44:00]line ИНН: 02508201610067 [10:44:00]line Контрольно-Кассовый Чек [10:44:00]line ПРОДАЖА [10:44:00]line ТРК (МРК, ГНК) : 71 [10:44:00]line Товар: 2711190000 [10:44:00]line ГАЗ-К-5 [10:44:00]line 12.240 * 32.70 [10:44:00]line = 400.25 [10:44:00]line НДС 12% НСП 1% [10:44:00]line > о реализуемом товаре [10:44:00]line ОКРУГЛЕНИЕ: -0.25 [10:44:00]line ИТОГО: 400.00 [10:44:00]line Внесено: 400.00 [10:44:00]line СДАЧА: 0.00 [10:44:00]line НСП 1% : 3.54 [10:44:00]line НДС 12% : 42.50 [10:44:00]line Наличными: 400.00 [10:44:00]line Безнал.: 0.00 [10:44:00]line Место: АЗС № 106 "Партнер Нефть" [10:44:00]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:44:00]line СНО: Общий режим [10:44:00]line Чек 35 19.04.2024 10:44 [10:44:00]line Смена: 370 ФФД: 1.0 [10:44:00]line ЗНМ: 0300000141 [10:44:00]line РНМ: 0000000000091573 [10:44:00]line Версия ККМ: 001 [10:44:00]line ФМ: 0000000000874652 [10:44:00]line ФД: 76415 [10:44:00]line ФПД: 164149318298789 [10:44:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T104403&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76415&fm=164149318298789&tin=02508201610067®Number=0000000000091573&sum=40000 [10:44:00]written 0, free lines is 4095 [10:44:00]OFD Sender: Processing packet 76415 [packets to send 128, broken 127] [10:44:00]ProducePacketName [10:44:00]name=ofd_packets/00076415 [10:44:00]OFD Sender: To server: pG, [10:44:00]CommunicateWithHost lk.salyk.kg:30040 [10:44:00]ConnectInit lk.salyk.kg [10:44:01]Connected sock=10 [10: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 34 36 35 32 0E 01 00 00 4F BE 06 01 E6 17 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D0 2F 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 59 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 23 00 00 00 F4 03 04 00 F3 4A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7F 2A 01 00 35 04 06 00 95 4A FD CE AC A5 D1 0C 82 3B 11 9E 01 1C [10:44:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D3 70 47 00 5F B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 7F 2A 01 00 F4 03 04 00 7F F2 21 66 B6 04 01 00 00 D0 BE B0 44 BA DB 69 9E [10:44:01]CommunicateWithHost err = 0 [10:44:01]CheckOFDResponse [10:44:01]1017 (14) - 77093643461234 [10:44:01]1041 (16) - 0000000000874652 [10:44:01]1040 (4) - 76415 [10:44:01]1012 (4) - 19.04.2024 04:26 [10:44:01]1206 (1) - 0 [10:44:01]OFD Sender: Remove packet 76415 [10:44:01]ProducePacketName [10:44:01]name=ofd_packets/00076415 [10:44:01]NVStorageDeleteData [10:44:01]Write to MH i2c: 01 00 00 3F 2B 6A [10:44:01]Write i2c OK [10:44:01]MH_I2C_Read... [10:44:01]Read from MH i2c: 01 [10:44:01]MH_I2C_Read... [10:44:01]Read from MH i2c: 01 07 00 [10:44:01]MH_I2C_Read... [10:44:01]Read from MH i2c: 01 07 00 3F 2B 00 00 00 00 00 E3 0C 60 [10:44:01]RasterBufferAndPrint [10:44:01]line [10:44:01]line [10:44:01]line [10:44:01]line [10:44:01]line [10:44:01]written 0, free lines is 3305 [10:44:01]MH_Cut [10:44:01]Write to MH i2c: D1 01 00 46 2B 01 43 [10:44:01]Write i2c OK [10:44:01]MH_I2C_Read... [10:44:01]Read from MH i2c: D1 [10:44:01]MH_I2C_Read... [10:44:01]Read from MH i2c: D1 01 00 [10:44:01]MH_I2C_Read... [10:44:01]Read from MH i2c: D1 01 00 46 2B 00 42 [10:44:01]Write to MH i2c: 01 00 00 47 2B 72 [10:44:01]Write i2c OK [10:44:01]MH_I2C_Read... [10:44:01]OFD Sender: No OFD packet to send [10:44:02]*** Cut start [10:44:02]*** Partial cut [10:44:02]*** CUTSNS_PIN = 1 [10:44:02]*** CUTSNS_PIN = 0 [10:44:02]*** Brake cut motor [10:44:02]Read from MH i2c: 01 [10:44:02]MH_I2C_Read... [10:44:02]*** Stop cut motor [10:44:02]*** Cut end [10:44:02]Read from MH i2c: 01 07 00 [10:44:02]MH_I2C_Read... [10:44:02]Read from MH i2c: 01 07 00 47 2B 00 00 00 00 00 FF 0F 87 [10:44:02]process_action close_receipt done [10:44:02]requested_data is exist [10:44:02]produce_requested_data [10:44:02]requested_item fm.sn is exist - process it [10:44:02]wFMCommunicate request_size=4 [10:44:02]MH_SAM_APDU [10:44:02]CAPDU: 80 11 00 00 [10:44:02]Write to MH i2c: E2 08 00 48 2B 80 11 00 00 00 00 00 00 ED [10:44:02]Write i2c OK [10:44:02]MH_I2C_Read... [10:44:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:02]Read from MH i2c: E2 [10:44:02]MH_I2C_Read... [10:44:02]Read from MH i2c: E2 17 00 [10:44:02]MH_I2C_Read... [10:44:02]Read from MH i2c: E2 17 00 48 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 40 [10:44:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:44:02]wFMCommunicate OK [10:44:02]requested_item fd.num is exist - process it [10:44:02]SAM_PROTO_GetFieldsCounters [10:44:02]wFMCommunicate request_size=4 [10:44:02]MH_SAM_APDU [10:44:02]CAPDU: 80 13 00 00 [10:44:02]Write to MH i2c: E2 08 00 49 2B 80 13 00 00 00 00 00 00 F0 [10:44:02]Write i2c OK [10:44:02]MH_I2C_Read... [10:44:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:02]Read from MH i2c: E2 [10:44:02]MH_I2C_Read... [10:44:02]Read from MH i2c: E2 62 00 [10:44:02]MH_I2C_Read... [10:44:02]Read from MH i2c: E2 62 00 49 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7F 2A 01 00 0E 04 04 00 72 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 97 [10:44:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 7F 2A 01 00 0E 04 04 00 72 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 [10:44:02]wFMCommunicate OK [10:44:02]SAM_PROTO_GetFieldsCounters done [10:44:02]requested_item shift.num is exist - process it [10:44:02]requested_item shift.opened is exist - process it [10:44:02]req_shift_opened [10:44:02]FM_GetShiftState [10:44:02]SAM_PROTO_GetShiftState [10:44:02]wFMCommunicate request_size=4 [10:44:02]MH_SAM_APDU [10:44:02]CAPDU: 80 13 01 00 [10:44:02]Write to MH i2c: E2 08 00 4A 2B 80 13 01 00 00 00 00 00 F2 [10:44:02]Write i2c OK [10:44:02]MH_I2C_Read... [10:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:02]Read from MH i2c: E2 [10:44:02]MH_I2C_Read... [10:44:02]Read from MH i2c: E2 0E 00 [10:44:02]MH_I2C_Read... [10:44:02]Read from MH i2c: E2 0E 00 4A 2B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 D7 [10:44:02]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [10:44:02]wFMCommunicate OK [10:44:02]SAM_PROTO_GetShiftState done [10:44:02]FM_GetShiftState done [10:44:02]req_shift_opened done [10:44:02]requested_item shift.open_date is exist - process it [10:44:02]req_shift_open_date [10:44:02]req_shift_open_date done [10:44:02]produce_requested_data done [10:44:02]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76415,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [10:44:02]process_action_free close_receipt [10:44:02]json_value_free [10:44:02]json_value_free done [10:44:02]process_json_proto returns [10:44:02]Send response to host [10:44:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76415,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [10:44:02]free response buf [10:44:02]execute_script done [10:44:02]execute_script returns [10:44:02]free content buf [10:44:02]Sock 9.Close socket [10:44:02]Sock 9.Thread stoped [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44:51]OFD Sender: No OFD packet to send [10:44:56]OFD Sender: No OFD packet to send [10:45:01]OFD Sender: No OFD packet to send [10:45:06]OFD Sender: No OFD packet to send [10:45:11]OFD Sender: No OFD packet to send [10:45:16]OFD Sender: No OFD packet to send [10:45:21]OFD Sender: No OFD packet to send [10:45:26]OFD Sender: No OFD packet to send [10:45:31]OFD Sender: No OFD packet to send [10:45:36]OFD Sender: No OFD packet to send [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49: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:40]accept exits with 7 [10:49:40]New connection [10:49:40]New thread 3066629476 created [10:49:40]Thread 3066486116 joined [10:49:40]Waiting for new connection... [10:49:40] Sock 7.Parse request [10:49:40]Sock 7.Check first char [10:49:40]Sock 7.First char is OK [10:49:40]request: POST /json_proto HTTP/1.0 [10:49:40]Method: POST [10:49:40]URL: /json_proto [10:49:40]Method is POST - this is cgi request [10:49:40]url: /json_proto [10:49:40]query_string will be loaded in cgi processing [10:49:40]execute_cgi json_proto POST (null) [10:49:40]execute_cgi path=json_proto method=POST [10:49:40]POST find Content-Length [10:49:40]Host: 172.17.62.5:8080 [10:49:40]Content-Length: 682 [10:49:40]Content-Type: application/json [10:49:40] [10:49:40]POST finish read [10:49:40]Found Content-Length = 682 [10:49:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [10:49:40]execute_script... [10:49: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)190874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [10:49:40]POST & json_proto [10:49:40]process_json_proto [10:49:40]json parsed OK: [10:49:40]protocol is kg_v1.0 [10:49:40]action value=close_receipt [10:49:40]process_action close_receipt [10:49:40]cmd_close_receipt [10:49:40]MH_GetDate [10:49:40]Write to MH i2c: F0 00 00 4B 2B 65 [10:49:40]Write i2c OK [10:49:40]MH_I2C_Read... [10:49:40]Read from MH i2c: F0 [10:49:40]MH_I2C_Read... [10:49:40]Read from MH i2c: F0 09 00 [10:49:40]MH_I2C_Read... [10:49:40]Read from MH i2c: F0 09 00 4B 2B 00 49 4C 22 66 F4 E9 65 64 31 [10:49:40]GetLastDocTimeStamp 1713523443 [10:49:40]current date 1713523785 [10:49:40]FM_GetShiftState [10:49:40]SAM_PROTO_GetShiftState [10:49:40]wFMCommunicate request_size=4 [10:49:40]MH_SAM_APDU [10:49:40]CAPDU: 80 13 01 00 [10:49:40]Write to MH i2c: E2 08 00 4C 2B 80 13 01 00 00 00 00 00 F4 [10:49:40]Write i2c OK [10:49:40]MH_I2C_Read... [10:49:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:40]Read from MH i2c: E2 [10:49:40]MH_I2C_Read... [10:49:40]Read from MH i2c: E2 0E 00 [10:49:40]MH_I2C_Read... [10:49:40]Read from MH i2c: E2 0E 00 4C 2B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 D9 [10:49:40]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [10:49:40]wFMCommunicate OK [10:49:40]SAM_PROTO_GetShiftState done [10:49:40]FM_GetShiftState done [10:49:40]opened in 1713486233 [10:49:40]opened+sec_in_day 1713572633 [10:49:40]quantity*price = 150028 [10:49:40]sum+1 = 150029 [10:49:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 36 19.04.2024 10:49 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76416 ФПД: 127132130527560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T104945&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76416&fm=127132130527560&tin=02508201610067®Number=0000000000091573&sum=150000 [10:49:41]StoreToDocumentArchive [10:49:41]shift 370 fd 76416 [10:49:41]save to /storage/0370/doc_00076416 [10:49:41]save last doc name /storage/0370/doc_00076416 to /storage/kkm_last_doc_name [10:49:41]save OK [10:49:41]Clear old archive folders... [10:49:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:41]tlvbuf is 009A7350 [10:49:41]SAM_PROTO_ClearQueue [10:49:41]wFMCommunicate request_size=4 [10:49:41]MH_SAM_APDU [10:49:41]CAPDU: 80 09 00 00 [10:49:41]Write to MH i2c: E2 08 00 59 2B 80 09 00 00 00 00 00 00 F6 [10:49:41]Write i2c OK [10:49:41]MH_I2C_Read... [10:49:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:41]Read from MH i2c: E2 [10:49:41]MH_I2C_Read... [10:49:41]Read from MH i2c: E2 03 00 [10:49:41]MH_I2C_Read... [10:49:41]Read from MH i2c: E2 03 00 59 2B 00 90 00 F8 [10:49:41]RAPDU: 90 00 [10:49:41]wFMCommunicate OK [10:49:41]SAM_PROTO_ClearQueue done [10:49:41]KKMCreateOFDPacket [10:49:41]OFDProtocolAddRootSTLVToBuf [10:49:41]FM_MakeSignedData [10:49:41]FM_MakeSignedData [10:49:41]SAM_PROTO_SignData [10:49:41]wFMCommunicate request_size=4 [10:49:41]MH_SAM_APDU [10:49:41]CAPDU: 80 0D 01 02 [10:49:41]Write to MH i2c: E2 08 00 5A 2B 80 0D 01 02 00 00 00 00 FE [10:49:41]Write i2c OK [10:49:41]MH_I2C_Read... [10:49:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:41]Read from MH i2c: E2 [10:49:41]MH_I2C_Read... [10:49:41]Read from MH i2c: E2 03 00 [10:49:41]MH_I2C_Read... [10:49:41]Read from MH i2c: E2 03 00 5A 2B 00 90 00 F9 [10:49:41]RAPDU: 90 00 [10:49:41]wFMCommunicate OK [10:49:41]wFMCommunicate request_size=255 [10:49:41]MH_SAM_APDU [10:49: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 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 24 00 00 00 F4 03 04 00 49 4C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 80 2A 01 00 35 04 06 00 73 [10:49:41]Write to MH i2c: E2 02 01 5B 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 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 24 00 00 00 F4 03 04 00 49 4C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 80 2A 01 00 35 04 06 00 73 00 00 A5 [10:49:41]Write i2c OK [10:49:41]MH_I2C_Read... [10:49:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:42]Read from MH i2c: E2 [10:49:42]MH_I2C_Read... [10:49:42]Read from MH i2c: E2 03 00 [10:49:42]MH_I2C_Read... [10:49:42]Read from MH i2c: E2 03 00 5B 2B 00 90 00 FA [10:49:42]RAPDU: 90 00 [10:49:42]wFMCommunicate OK [10:49:42]wFMCommunicate request_size=10 [10:49:42]MH_SAM_APDU [10:49:42]CAPDU: 80 0D 02 02 05 A0 41 7A C9 48 [10:49:42]Write to MH i2c: E2 0D 00 5C 2B 80 0D 02 02 05 00 A0 41 7A C9 48 00 00 77 [10:49:42]Write i2c OK [10:49:42]MH_I2C_Read... [10:49:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:42]Read from MH i2c: E2 [10:49:42]MH_I2C_Read... [10:49:42]Read from MH i2c: E2 03 00 [10:49:42]MH_I2C_Read... [10:49:42]Read from MH i2c: E2 03 00 5C 2B 00 90 00 FB [10:49:42]RAPDU: 90 00 [10:49:42]wFMCommunicate OK [10:49:42]wFMCommunicate request_size=4 [10:49:42]MH_SAM_APDU [10:49:42]CAPDU: 80 0D 03 02 [10:49:42]Write to MH i2c: E2 08 00 5D 2B 80 0D 03 02 00 00 00 00 03 [10:49:42]Write i2c OK [10:49:42]MH_I2C_Read... [10:49:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:42]Read from MH i2c: E2 [10:49:42]MH_I2C_Read... [10:49:42]Read from MH i2c: E2 0B 00 [10:49:42]MH_I2C_Read... [10:49:42]Read from MH i2c: E2 0B 00 5D 2B 00 6C 91 1E C9 AA 6B 64 A8 90 00 09 [10:49:42]RAPDU: 6C 91 1E C9 AA 6B 64 A8 90 00 [10:49:42]wFMCommunicate OK [10:49:42]SAM_PROTO_SignData done [10:49:42]FM_MakeSignedData done [10:49:42]CreateOFDProtocolMessage [10:49:42]wFMCommunicate request_size=4 [10:49:42]MH_SAM_APDU [10:49:42]CAPDU: 80 11 00 00 [10:49:42]Write to MH i2c: E2 08 00 5E 2B 80 11 00 00 00 00 00 00 03 [10:49:42]Write i2c OK [10:49:42]MH_I2C_Read... [10:49:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:42]Read from MH i2c: E2 [10:49:42]MH_I2C_Read... [10:49:42]Read from MH i2c: E2 17 00 [10:49:42]MH_I2C_Read... [10:49:42]Read from MH i2c: E2 17 00 5E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 56 [10:49:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:49:42]wFMCommunicate OK [10:49:42]CreateOFDProtocolMessage done [10:49:42]OFDSenderStorePacket 76416 [10:49:42]StoreOFDPacket docnum=76416 [10:49:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 EE 95 07 01 E4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 24 00 00 00 F4 03 04 00 49 4C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 80 2A 01 00 35 04 06 00 73 A0 41 7A C9 48 6C 91 1E C9 AA 6B 64 A8 [10:49:42]CheckFolder [10:49:42]dirname=/storage/ofd_packets [10:49:42]CheckFolder done [10:49:42]ProducePacketName [10:49:42]name=ofd_packets/00076416 [10:49:42]NVStorageSaveData ofd_packets/00076416 [10:49:42]File name is /storage/ofd_packets/00076416 [10:49:42]Write 301 bytes [10:49:42]NVStorageSaveData done [10:49:42]OFDSenderStorePacket done [10:49:42]KKMCreateOFDPacket done [10:49:42]NVStorageSaveData kkm_last_timestamp [10:49:42]File name is /storage/kkm_last_timestamp [10:49:42]Write 4 bytes [10:49:42]NVStorageSaveData done [10:49:42]ExternCall_PrintAddStr [10:49:42]wPrintStart [10:49:42]Write to MH i2c: 01 00 00 5F 2B 8A [10:49:42]Write i2c OK [10:49:42]MH_I2C_Read... [10:49:42]Read from MH i2c: 01 [10:49:42]MH_I2C_Read... [10:49:42]Read from MH i2c: 01 07 00 [10:49:42]MH_I2C_Read... [10:49:42]Read from MH i2c: 01 07 00 5F 2B 00 00 00 00 00 FF 0F 9F [10:49:42]RasterBufferAndPrint [10:49:42]line Счет N : (1)190874 [10:49:42]line ИНН: 02508201610067 [10:49:42]line Контрольно-Кассовый Чек [10:49:42]line ПРОДАЖА [10:49:42]line ТРК (МРК, ГНК) : 11 [10:49:42]line Товар: 2710124500 [10:49:42]line Аи-95-К-5 [10:49:42]line 20.580 * 72.90 [10:49:42]line = 1500.28 [10:49:42]line НДС 12% НСП 1% [10:49:42]line > о реализуемом товаре [10:49:42]line ОКРУГЛЕНИЕ: -0.28 [10:49:42]line ИТОГО: 1500.00 [10:49:42]line Внесено: 1500.00 [10:49:42]line СДАЧА: 0.00 [10:49:42]line НСП 1% : 13.28 [10:49:42]line НДС 12% : 159.32 [10:49:42]line Наличными: 1500.00 [10:49:42]line Безнал.: 0.00 [10:49:42]line Место: АЗС № 106 "Партнер Нефть" [10:49:42]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:49:42]line СНО: Общий режим [10:49:42]line Чек 36 19.04.2024 10:49 [10:49:42]line Смена: 370 ФФД: 1.0 [10:49:42]line ЗНМ: 0300000141 [10:49:42]line РНМ: 0000000000091573 [10:49:42]line Версия ККМ: 001 [10:49:42]line ФМ: 0000000000874652 [10:49:42]line ФД: 76416 [10:49:42]line ФПД: 127132130527560 [10:49:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T104945&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76416&fm=127132130527560&tin=02508201610067®Number=0000000000091573&sum=150000 [10:49:42]OFD Sender: Processing packet 76416 [packets to send 128, broken 127] [10:49:42]ProducePacketName [10:49:42]name=ofd_packets/00076416 [10:49:42]OFD Sender: To server: pG, [10:49:42]CommunicateWithHost lk.salyk.kg:30040 [10:49:42]ConnectInit lk.salyk.kg [10:49:42]written 0, free lines is 4095 [10:49:42]Connected sock=10 [10:49:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 EE 95 07 01 E4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 24 00 00 00 F4 03 04 00 49 4C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 80 2A 01 00 35 04 06 00 73 A0 41 7A C9 48 6C 91 1E C9 AA 6B 64 A8 [10:49:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 18 11 47 00 53 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 34 36 35 32 10 04 04 00 80 2A 01 00 F4 03 04 00 D5 F3 21 66 B6 04 01 00 00 B3 4A 50 13 36 DC 2D 49 [10:49:42]CommunicateWithHost err = 0 [10:49:42]CheckOFDResponse [10:49:42]1017 (14) - 77093643461234 [10:49:42]1041 (16) - 0000000000874652 [10:49:42]1040 (4) - 76416 [10:49:42]1012 (4) - 19.04.2024 04:32 [10:49:42]1206 (1) - 0 [10:49:42]OFD Sender: Remove packet 76416 [10:49:42]ProducePacketName [10:49:42]name=ofd_packets/00076416 [10:49:42]NVStorageDeleteData [10:49:43]Write to MH i2c: 01 00 00 89 2B B4 [10:49:43]Write i2c OK [10:49:43]MH_I2C_Read... [10:49:43]Read from MH i2c: 01 [10:49:43]MH_I2C_Read... [10:49:43]Read from MH i2c: 01 07 00 [10:49:43]MH_I2C_Read... [10:49:43]Read from MH i2c: 01 07 00 89 2B 00 00 00 00 00 ED 0C B4 [10:49:43]RasterBufferAndPrint [10:49:43]line [10:49:43]line [10:49:43]line [10:49:43]line [10:49:43]line [10:49:43]written 0, free lines is 3316 [10:49:43]MH_Cut [10:49:43]Write to MH i2c: D1 01 00 90 2B 01 8D [10:49:43]Write i2c OK [10:49:43]MH_I2C_Read... [10:49:43]Read from MH i2c: D1 [10:49:43]MH_I2C_Read... [10:49:43]Read from MH i2c: D1 01 00 [10:49:43]MH_I2C_Read... [10:49:43]Read from MH i2c: D1 01 00 90 2B 00 8C [10:49:43]Write to MH i2c: 01 00 00 91 2B BC [10:49:43]Write i2c OK [10:49:43]MH_I2C_Read... [10:49:43]OFD Sender: No OFD packet to send [10:49:43]*** Cut start [10:49:43]*** Partial cut [10:49:43]*** CUTSNS_PIN = 1 [10:49:43]*** CUTSNS_PIN = 0 [10:49:44]*** Brake cut motor [10:49:44]Read from MH i2c: 01 [10:49:44]MH_I2C_Read... [10:49:44]*** Stop cut motor [10:49:44]*** Cut end [10:49:44]Read from MH i2c: 01 07 00 [10:49:44]MH_I2C_Read... [10:49:44]Read from MH i2c: 01 07 00 91 2B 00 00 00 00 00 FF 0F D1 [10:49:44]process_action close_receipt done [10:49:44]requested_data is exist [10:49:44]produce_requested_data [10:49:44]requested_item fm.sn is exist - process it [10:49:44]wFMCommunicate request_size=4 [10:49:44]MH_SAM_APDU [10:49:44]CAPDU: 80 11 00 00 [10:49:44]Write to MH i2c: E2 08 00 92 2B 80 11 00 00 00 00 00 00 37 [10:49:44]Write i2c OK [10:49:44]MH_I2C_Read... [10:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:44]Read from MH i2c: E2 [10:49:44]MH_I2C_Read... [10:49:44]Read from MH i2c: E2 17 00 [10:49:44]MH_I2C_Read... [10:49:44]Read from MH i2c: E2 17 00 92 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8A [10:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:49:44]wFMCommunicate OK [10:49:44]requested_item fd.num is exist - process it [10:49:44]SAM_PROTO_GetFieldsCounters [10:49:44]wFMCommunicate request_size=4 [10:49:44]MH_SAM_APDU [10:49:44]CAPDU: 80 13 00 00 [10:49:44]Write to MH i2c: E2 08 00 93 2B 80 13 00 00 00 00 00 00 3A [10:49:44]Write i2c OK [10:49:44]MH_I2C_Read... [10:49:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:44]Read from MH i2c: E2 [10:49:44]MH_I2C_Read... [10:49:44]Read from MH i2c: E2 62 00 [10:49:44]MH_I2C_Read... [10:49:44]Read from MH i2c: E2 62 00 93 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 80 2A 01 00 0E 04 04 00 72 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 E5 [10:49:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 80 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:44]wFMCommunicate OK [10:49:44]SAM_PROTO_GetFieldsCounters done [10:49:44]requested_item shift.num is exist - process it [10:49:44]requested_item shift.opened is exist - process it [10:49:44]req_shift_opened [10:49:44]FM_GetShiftState [10:49:44]SAM_PROTO_GetShiftState [10:49:44]wFMCommunicate request_size=4 [10:49:44]MH_SAM_APDU [10:49:44]CAPDU: 80 13 01 00 [10:49:44]Write to MH i2c: E2 08 00 94 2B 80 13 01 00 00 00 00 00 3C [10:49:44]Write i2c OK [10:49:44]MH_I2C_Read... [10:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:44]Read from MH i2c: E2 [10:49:44]MH_I2C_Read... [10:49:44]Read from MH i2c: E2 0E 00 [10:49:44]MH_I2C_Read... [10:49:44]Read from MH i2c: E2 0E 00 94 2B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 21 [10:49:44]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [10:49:44]wFMCommunicate OK [10:49:44]SAM_PROTO_GetShiftState done [10:49:44]FM_GetShiftState done [10:49:44]req_shift_opened done [10:49:44]requested_item shift.open_date is exist - process it [10:49:44]req_shift_open_date [10:49:44]req_shift_open_date done [10:49:44]produce_requested_data done [10:49:44]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76416,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [10:49:44]process_action_free close_receipt [10:49:44]json_value_free [10:49:44]json_value_free done [10:49:44]process_json_proto returns [10:49:44]Send response to host [10:49:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76416,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [10:49:44]free response buf [10:49:44]execute_script done [10:49:44]execute_script returns [10:49:44]free content buf [10:49:44]Sock 7.Close socket [10:49:44]Sock 7.Thread stoped [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52: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:15]accept exits with 9 [10:53:15]New connection [10:53:15]New thread 3066486116 created [10:53:15]Thread 3066629476 joined [10:53:15]Waiting for new connection... [10:53:15] Sock 9.Parse request [10:53:15]Sock 9.Check first char [10:53:15]Sock 9.First char is OK [10:53:15]request: POST /json_proto HTTP/1.0 [10:53:15]Method: POST [10:53:15]URL: /json_proto [10:53:15]Method is POST - this is cgi request [10:53:15]url: /json_proto [10:53:15]query_string will be loaded in cgi processing [10:53:15]execute_cgi json_proto POST (null) [10:53:15]execute_cgi path=json_proto method=POST [10:53:15]POST find Content-Length [10:53:15]Host: 172.17.62.5:8080 [10:53:15]Content-Length: 1168 [10:53:15]Content-Type: application/json [10:53:15] [10:53:15]POST finish read [10:53:15]Found Content-Length = 1168 [10:53:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190875\u000A19.04.2024 10:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 966.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102976\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:15]execute_script... [10:53:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190875\u000A19.04.2024 10:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 966.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102976\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:15]POST & json_proto [10:53:15]process_json_proto [10:53:15]json parsed OK: [10:53:15]protocol is kg_v1.0 [10:53:15]action value=print_text [10:53:15]process_action print_text [10:53:15]cmd_print_text [10:53:15]ExternCall_PrintAddStr [10:53:15]wPrintStart [10:53:15]Write to MH i2c: 01 00 00 95 2B C0 [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: 01 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: 01 07 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: 01 07 00 95 2B 00 00 00 00 00 FF 0F D5 [10:53:15]RasterBufferAndPrint [10:53:15]line *****ТОВАРНЫЙ ЧЕК***** [10:53:15]line АЗС 106 [10:53:15]line Партнер нефть [10:53:15]line 02508201610067 [10:53:15]line Кассир : Табалдиева М. [10:53:15]line Счет N : (1)190875 [10:53:15]line 19.04.2024 10:34 [10:53:15]line ПРОДАЖА [10:53:15]line ТРК (МРК, ГНК): 33 [10:53:15]line Вид ГСМ : 2710124130 [10:53:15]line Аи-92-К-5 [10:53:15]line 15.000 x 64.40 [10:53:15]line ИТОГ: 966.00 [10:53:15]line Тип оплаты: Талоны: ТК ГПНА Online [10:53:15]line 30102976 [10:53:15]line ______________________ [10:53:15]line (подпись) [10:53:15]written 0, free lines is 4095 [10:53:15]Write to MH i2c: 01 00 00 A9 2B D4 [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: 01 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: 01 07 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: 01 07 00 A9 2B 00 00 00 00 00 10 0E F9 [10:53:15]RasterBufferAndPrint [10:53:15]line [10:53:15]line [10:53:15]line [10:53:15]line [10:53:15]line [10:53:15]written 0, free lines is 3601 [10:53:15]MH_Cut [10:53:15]Write to MH i2c: D1 01 00 B0 2B 01 AD [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: D1 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: D1 01 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: D1 01 00 B0 2B 00 AC [10:53:15]Write to MH i2c: 01 00 00 B1 2B DC [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:16]*** Cut start [10:53:16]*** Partial cut [10:53:16]*** CUTSNS_PIN = 1 [10:53:16]*** CUTSNS_PIN = 0 [10:53:16]*** Brake cut motor [10:53:17]Read from MH i2c: 01 [10:53:17]MH_I2C_Read... [10:53:17]*** Stop cut motor [10:53:17]*** Cut end [10:53:17]Read from MH i2c: 01 07 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: 01 07 00 B1 2B 00 00 00 00 00 FF 0F F1 [10:53:17]process_action print_text done [10:53:17]requested_data is exist [10:53:17]produce_requested_data [10:53:17]requested_item fm.sn is exist - process it [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 11 00 00 [10:53:17]Write to MH i2c: E2 08 00 B2 2B 80 11 00 00 00 00 00 00 57 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 17 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 17 00 B2 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AA [10:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:53:17]wFMCommunicate OK [10:53:17]requested_item fd.num is exist - process it [10:53:17]SAM_PROTO_GetFieldsCounters [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 13 00 00 [10:53:17]Write to MH i2c: E2 08 00 B3 2B 80 13 00 00 00 00 00 00 5A [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 62 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 62 00 B3 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 80 2A 01 00 0E 04 04 00 72 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 05 [10: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 80 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:17]wFMCommunicate OK [10:53:17]SAM_PROTO_GetFieldsCounters done [10:53:17]requested_item shift.num is exist - process it [10:53:17]requested_item shift.opened is exist - process it [10:53:17]req_shift_opened [10:53:17]FM_GetShiftState [10:53:17]SAM_PROTO_GetShiftState [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 13 01 00 [10:53:17]Write to MH i2c: E2 08 00 B4 2B 80 13 01 00 00 00 00 00 5C [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 0E 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 0E 00 B4 2B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 41 [10:53:17]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [10:53:17]wFMCommunicate OK [10:53:17]SAM_PROTO_GetShiftState done [10:53:17]FM_GetShiftState done [10:53:17]req_shift_opened done [10:53:17]requested_item shift.open_date is exist - process it [10:53:17]req_shift_open_date [10:53:17]req_shift_open_date done [10:53:17]produce_requested_data done [10:53:17]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76416,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [10:53:17]process_action_free print_text [10:53:17]json_value_free [10:53:17]json_value_free done [10:53:17]process_json_proto returns [10:53:17]Send response to host [10:53:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76416,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [10:53:17]free response buf [10:53:17]execute_script done [10:53:17]execute_script returns [10:53:17]free content buf [10:53:17]Sock 9.Close socket [10:53:17]Sock 9.Thread stoped [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:00:59]accept exits with 7 [11:00:59]New connection [11:00:59]New thread 3066629476 created [11:00:59]Thread 3066486116 joined [11:00:59]Waiting for new connection... [11:00:59] Sock 7.Parse request [11:00:59]Sock 7.Check first char [11:00:59]Sock 7.First char is OK [11:00:59]request: POST /json_proto HTTP/1.0 [11:00:59]Method: POST [11:00:59]URL: /json_proto [11:00:59]Method is POST - this is cgi request [11:00:59]url: /json_proto [11:00:59]query_string will be loaded in cgi processing [11:00:59]execute_cgi json_proto POST (null) [11:00:59]execute_cgi path=json_proto method=POST [11:00:59]POST find Content-Length [11:00:59]Host: 172.17.62.5:8080 [11:00:59]Content-Length: 215 [11:00:59]Content-Type: application/json [11:00:59] [11:00:59]POST finish read [11:00:59]Found Content-Length = 215 [11:00:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:59]execute_script... [11:00:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:59]POST & json_proto [11:00:59]process_json_proto [11:00:59]json parsed OK: [11:00:59]protocol is kg_v1.0 [11:00:59]action value=get_value [11:00:59]process_action get_value [11:00:59]cmd_get_value [11:00:59]process_action get_value done [11:00:59]requested_data is exist [11:00:59]produce_requested_data [11:00:59]requested_item kkm.sn is exist - process it [11:00:59]requested_item kkm.ver is exist - process it [11:00:59]requested_item fm.sn is exist - process it [11:00:59]wFMCommunicate request_size=4 [11:00:59]MH_SAM_APDU [11:00:59]CAPDU: 80 11 00 00 [11:00:59]Write to MH i2c: E2 08 00 B5 2B 80 11 00 00 00 00 00 00 5A [11:00:59]Write i2c OK [11:00:59]MH_I2C_Read... [11:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:59]Read from MH i2c: E2 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: E2 17 00 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: E2 17 00 B5 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AD [11:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:00:59]wFMCommunicate OK [11:00:59]requested_item fd.num is exist - process it [11:00:59]SAM_PROTO_GetFieldsCounters [11:00:59]wFMCommunicate request_size=4 [11:00:59]MH_SAM_APDU [11:00:59]CAPDU: 80 13 00 00 [11:00:59]Write to MH i2c: E2 08 00 B6 2B 80 13 00 00 00 00 00 00 5D [11:00:59]Write i2c OK [11:00:59]MH_I2C_Read... [11:00:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:59]Read from MH i2c: E2 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: E2 62 00 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: E2 62 00 B6 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 80 2A 01 00 0E 04 04 00 72 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 08 [11:00: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 80 2A 01 00 0E 04 04 00 72 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 [11:00:59]wFMCommunicate OK [11:00:59]SAM_PROTO_GetFieldsCounters done [11:00:59]requested_item shift.num is exist - process it [11:00:59]requested_item shift.opened is exist - process it [11:00:59]req_shift_opened [11:00:59]FM_GetShiftState [11:00:59]SAM_PROTO_GetShiftState [11:00:59]wFMCommunicate request_size=4 [11:00:59]MH_SAM_APDU [11:00:59]CAPDU: 80 13 01 00 [11:00:59]Write to MH i2c: E2 08 00 B7 2B 80 13 01 00 00 00 00 00 5F [11:00:59]Write i2c OK [11:00:59]MH_I2C_Read... [11:00:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:59]Read from MH i2c: E2 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: E2 0E 00 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: E2 0E 00 B7 2B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 44 [11:00:59]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:00:59]wFMCommunicate OK [11:00:59]SAM_PROTO_GetShiftState done [11:00:59]FM_GetShiftState done [11:00:59]req_shift_opened done [11:00:59]requested_item shift.open_date is exist - process it [11:00:59]req_shift_open_date [11:00:59]req_shift_open_date done [11:00:59]produce_requested_data done [11:00:59]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76416,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [11:00:59]process_action_free get_value [11:00:59]json_value_free [11:00:59]json_value_free done [11:00:59]process_json_proto returns [11:00:59]Send response to host [11:00:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76416,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [11:00:59]free response buf [11:00:59]execute_script done [11:00:59]execute_script returns [11:00:59]free content buf [11:00:59]Sock 7.Close socket [11:00:59]Sock 7.Thread stoped [11:01:00]accept exits with 9 [11:01:00]New connection [11:01:00]New thread 3066486116 created [11:01:00]Thread 3066629476 joined [11:01:00]Waiting for new connection... [11:01:00] Sock 9.Parse request [11:01:00]Sock 9.Check first char [11:01:00]Sock 9.First char is OK [11:01:00]request: POST /json_proto HTTP/1.0 [11:01:00]Method: POST [11:01:00]URL: /json_proto [11:01:00]Method is POST - this is cgi request [11:01:00]url: /json_proto [11:01:00]query_string will be loaded in cgi processing [11:01:00]execute_cgi json_proto POST (null) [11:01:00]execute_cgi path=json_proto method=POST [11:01:00]POST find Content-Length [11:01:00]Host: 172.17.62.5:8080 [11:01:00]Content-Length: 331 [11:01:00]Content-Type: application/json [11:01:00] [11:01:00]POST finish read [11:01:00]Found Content-Length = 331 [11:01:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:01:00]execute_script... [11:01:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:01:00]POST & json_proto [11:01:00]process_json_proto [11:01:00]json parsed OK: [11:01:00]protocol is kg_v1.0 [11:01:00]action value=get_value [11:01:00]process_action get_value [11:01:00]cmd_get_value [11:01:00]process_action get_value done [11:01:00]requested_data is exist [11:01:00]produce_requested_data [11:01:00]requested_item fm.sale.total is exist - process it [11:01:00]SAM_PROTO_GetFMData [11:01:00]wFMCommunicate request_size=4 [11:01:00]MH_SAM_APDU [11:01:00]CAPDU: 80 13 03 00 [11:01:00]Write to MH i2c: E2 08 00 B8 2B 80 13 03 00 00 00 00 00 62 [11:01:00]Write i2c OK [11:01:00]MH_I2C_Read... [11:01:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:01:00]Read from MH i2c: E2 [11:01:00]MH_I2C_Read... [11:01:00]Read from MH i2c: E2 FD 00 [11:01:00]MH_I2C_Read... [11:01:00]Read from MH i2c: E2 FD 00 B8 2B 00 C8 04 85 04 C4 04 6E 04 04 00 9C 27 01 00 69 04 A3 00 6F 04 04 00 AE 25 01 00 B1 04 05 00 FC 31 8C B7 02 70 04 05 00 74 8D 28 74 02 72 04 04 00 88 A4 63 43 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 98 B4 DF 49 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 E5 E8 27 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 DB [11:01:00]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 9C 27 01 00 69 04 A3 00 6F 04 04 00 AE 25 01 00 B1 04 05 00 FC 31 8C B7 02 70 04 05 00 74 8D 28 74 02 72 04 04 00 88 A4 63 43 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 98 B4 DF 49 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 E5 E8 27 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 [11:01:00]wFMCommunicate OK [11:01:00]wFMCommunicate request_size=4 [11:01:00]MH_SAM_APDU [11:01:00]CAPDU: 80 17 00 00 [11:01:00]Write to MH i2c: E2 08 00 B9 2B 80 17 00 00 00 00 00 00 64 [11:01:00]Write i2c OK [11:01:00]MH_I2C_Read... [11:01:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:01:00]Read from MH i2c: E2 [11:01:00]MH_I2C_Read... [11:01:00]Read from MH i2c: E2 FD 00 [11:01:00]MH_I2C_Read... [11:01:00]Read from MH i2c: E2 FD 00 B9 2B 00 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 B4 2D 75 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 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 90 00 CB [11:01:00]RAPDU: 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 B4 2D 75 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 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 90 00 [11:01:00]wFMCommunicate OK [11:01:00]wFMCommunicate request_size=4 [11:01:00]MH_SAM_APDU [11:01:00]CAPDU: 80 17 00 00 [11:01:00]Write to MH i2c: E2 08 00 BA 2B 80 17 00 00 00 00 00 00 65 [11:01:00]Write i2c OK [11:01:00]MH_I2C_Read... [11:01:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:01:01]Read from MH i2c: E2 [11:01:01]MH_I2C_Read... [11:01:01]Read from MH i2c: E2 FD 00 [11:01:01]MH_I2C_Read... [11:01:01]Read from MH i2c: E2 FD 00 BA 2B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3D [11:01:01]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:01:01]wFMCommunicate OK [11:01:01]wFMCommunicate request_size=4 [11:01:01]MH_SAM_APDU [11:01:01]CAPDU: 80 17 00 00 [11:01:01]Write to MH i2c: E2 08 00 BB 2B 80 17 00 00 00 00 00 00 66 [11:01:01]Write i2c OK [11:01:01]MH_I2C_Read... [11:01:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:01:01]Read from MH i2c: E2 [11:01:01]MH_I2C_Read... [11:01:01]Read from MH i2c: E2 FD 00 [11:01:01]MH_I2C_Read... [11:01:01]Read from MH i2c: E2 FD 00 BB 2B 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 90 00 DE [11:01:01]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 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 90 00 [11:01:01]wFMCommunicate OK [11:01:01]wFMCommunicate request_size=4 [11:01:01]MH_SAM_APDU [11:01:01]CAPDU: 80 17 00 00 [11:01:01]Write to MH i2c: E2 08 00 BC 2B 80 17 00 00 00 00 00 00 67 [11:01:01]Write i2c OK [11:01:01]MH_I2C_Read... [11:01:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [11:01:01]Read from MH i2c: E2 [11:01:01]MH_I2C_Read... [11:01:01]Read from MH i2c: E2 E5 00 [11:01:01]MH_I2C_Read... [11:01:01]Read from MH i2c: E2 E5 00 BC 2B 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4B [11:01:01]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:01:01]wFMCommunicate OK [11:01:01]SAM_PROTO_GetFMData done [11:01:01]requested_item fm.sale_refund.total is exist - process it [11:01:01]requested_item fm.buy.total is exist - process it [11:01:01]requested_item shift.sale.total is exist - process it [11:01:01]SAM_PROTO_GetShiftData [11:01:01]wFMCommunicate request_size=4 [11:01:01]MH_SAM_APDU [11:01:01]CAPDU: 80 13 02 00 [11:01:01]Write to MH i2c: E2 08 00 BD 2B 80 13 02 00 00 00 00 00 66 [11:01:01]Write i2c OK [11:01:01]MH_I2C_Read... [11:01:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:01:02]Read from MH i2c: E2 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 FD 00 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 FD 00 BD 2B 00 AE 04 AA 04 AA 04 6E 04 04 00 24 00 00 00 69 04 9B 00 6F 04 04 00 24 00 00 00 B1 04 03 00 19 83 36 70 04 03 00 D8 52 2F 72 04 03 00 41 30 07 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 5D CA 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F [11:01:02]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 24 00 00 00 69 04 9B 00 6F 04 04 00 24 00 00 00 B1 04 03 00 19 83 36 70 04 03 00 D8 52 2F 72 04 03 00 41 30 07 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 5D CA 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 7B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [11:01:02]wFMCommunicate OK [11:01:02]wFMCommunicate request_size=4 [11:01:02]MH_SAM_APDU [11:01:02]CAPDU: 80 17 00 00 [11:01:02]Write to MH i2c: E2 08 00 BE 2B 80 17 00 00 00 00 00 00 69 [11:01:02]Write i2c OK [11:01:02]MH_I2C_Read... [11:01:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:01:02]Read from MH i2c: E2 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 FD 00 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 FD 00 BE 2B 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 8B [11:01:02]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [11:01:02]wFMCommunicate OK [11:01:02]wFMCommunicate request_size=4 [11:01:02]MH_SAM_APDU [11:01:02]CAPDU: 80 17 00 00 [11:01:02]Write to MH i2c: E2 08 00 BF 2B 80 17 00 00 00 00 00 00 6A [11:01:02]Write i2c OK [11:01:02]MH_I2C_Read... [11:01:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:01:02]Read from MH i2c: E2 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 FD 00 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 FD 00 BF 2B 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 21 [11:01:02]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [11:01:02]wFMCommunicate OK [11:01:02]wFMCommunicate request_size=4 [11:01:02]MH_SAM_APDU [11:01:02]CAPDU: 80 17 00 00 [11:01:02]Write to MH i2c: E2 08 00 C0 2B 80 17 00 00 00 00 00 00 6B [11:01:02]Write i2c OK [11:01:02]MH_I2C_Read... [11:01:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:01:02]Read from MH i2c: E2 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 FD 00 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 FD 00 C0 2B 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 DD [11:01:02]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [11:01:02]wFMCommunicate OK [11:01:02]wFMCommunicate request_size=4 [11:01:02]MH_SAM_APDU [11:01:02]CAPDU: 80 17 00 00 [11:01:02]Write to MH i2c: E2 08 00 C1 2B 80 17 00 00 00 00 00 00 6C [11:01:02]Write i2c OK [11:01:02]MH_I2C_Read... [11:01:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [11:01:03]Read from MH i2c: E2 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: E2 CB 00 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: E2 CB 00 C1 2B 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 55 [11:01:03]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:01:03]wFMCommunicate OK [11:01:03]SAM_PROTO_GetShiftData done [11:01:03]requested_item shift.sale.total_cash is exist - process it [11:01:03]requested_item shift.sale_refund.total is exist - process it [11:01:03]requested_item shift.sale_refund.total_cash is exist - process it [11:01:03]requested_item shift.buy.total is exist - process it [11:01:03]requested_item shift.buy.total_cash is exist - process it [11:01:03]produce_requested_data done [11:01:03]produce_requested_data return {"fm.sale.total":116693529.56,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":35725.05,"shift.sale.total_cash":31014.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:01:03]process_action_free get_value [11:01:03]json_value_free [11:01:03]json_value_free done [11:01:03]process_json_proto returns [11:01:03]Send response to host [11:01:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":116693529.56,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":35725.05,"shift.sale.total_cash":31014.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:01:03]free response buf [11:01:03]execute_script done [11:01:03]execute_script returns [11:01:03]free content buf [11:01:03]Sock 9.Close socket [11:01:03]Sock 9.Thread stoped [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:34]OFD Sender: No OFD packet to send [11:01:39]OFD Sender: No OFD packet to send [11:01:44]OFD Sender: No OFD packet to send [11:01:49]OFD Sender: No OFD packet to send [11:01:54]OFD Sender: No OFD packet to send [11:01:59]OFD Sender: No OFD packet to send [11:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:19]OFD Sender: No OFD packet to send [11:03:24]OFD Sender: No OFD packet to send [11:03:29]OFD Sender: No OFD packet to send [11:03:34]OFD Sender: No OFD packet to send [11:03:39]OFD Sender: No OFD packet to send [11:03:43]accept exits with 7 [11:03:43]New connection [11:03:43]New thread 3066629476 created [11:03:43]Thread 3066486116 joined [11:03:43]Waiting for new connection... [11:03:43] Sock 7.Parse request [11:03:43]Sock 7.Check first char [11:03:43]Sock 7.First char is OK [11:03:43]request: POST /json_proto HTTP/1.0 [11:03:43]Method: POST [11:03:43]URL: /json_proto [11:03:43]Method is POST - this is cgi request [11:03:43]url: /json_proto [11:03:43]query_string will be loaded in cgi processing [11:03:43]execute_cgi json_proto POST (null) [11:03:43]execute_cgi path=json_proto method=POST [11:03:43]POST find Content-Length [11:03:43]Host: 172.17.62.5:8080 [11:03:43]Content-Length: 678 [11:03:43]Content-Type: application/json [11:03:43] [11:03:43]POST finish read [11:03:43]Found Content-Length = 678 [11:03:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.100, "sum" : 650.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:43]execute_script... [11:03: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)190877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.100, "sum" : 650.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:43]POST & json_proto [11:03:43]process_json_proto [11:03:43]json parsed OK: [11:03:43]protocol is kg_v1.0 [11:03:43]action value=close_receipt [11:03:43]process_action close_receipt [11:03:43]cmd_close_receipt [11:03:43]MH_GetDate [11:03:43]Write to MH i2c: F0 00 00 C2 2B DC [11:03:43]Write i2c OK [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: F0 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: F0 09 00 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: F0 09 00 C2 2B 00 94 4F 22 66 F4 E9 65 64 F6 [11:03:43]GetLastDocTimeStamp 1713523785 [11:03:43]current date 1713524628 [11:03:43]FM_GetShiftState [11:03:43]SAM_PROTO_GetShiftState [11:03:43]wFMCommunicate request_size=4 [11:03:43]MH_SAM_APDU [11:03:43]CAPDU: 80 13 01 00 [11:03:43]Write to MH i2c: E2 08 00 C3 2B 80 13 01 00 00 00 00 00 6B [11:03:43]Write i2c OK [11:03:43]MH_I2C_Read... [11:03:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:43]Read from MH i2c: E2 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 0E 00 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 0E 00 C3 2B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 50 [11:03:43]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:03:43]wFMCommunicate OK [11:03:43]SAM_PROTO_GetShiftState done [11:03:43]FM_GetShiftState done [11:03:43]opened in 1713486233 [11:03:43]opened+sec_in_day 1713572633 [11:03:43]quantity*price = 65044 [11:03:43]sum+1 = 65045 [11:03:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.07 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 37 19.04.2024 11:03 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76417 ФПД: 267146718968380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T110348&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76417&fm=267146718968380&tin=02508201610067®Number=0000000000091573&sum=65000 [11:03:44]StoreToDocumentArchive [11:03:44]shift 370 fd 76417 [11:03:44]save to /storage/0370/doc_00076417 [11:03:44]save last doc name /storage/0370/doc_00076417 to /storage/kkm_last_doc_name [11:03:44]save OK [11:03:44]Clear old archive folders... [11:03:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:03:44]tlvbuf is 00A0C4A0 [11:03:44]SAM_PROTO_ClearQueue [11:03:44]wFMCommunicate request_size=4 [11:03:44]MH_SAM_APDU [11:03:44]CAPDU: 80 09 00 00 [11:03:44]Write to MH i2c: E2 08 00 D0 2B 80 09 00 00 00 00 00 00 6D [11:03:44]Write i2c OK [11:03:44]MH_I2C_Read... [11:03:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:44]Read from MH i2c: E2 [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: E2 03 00 [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: E2 03 00 D0 2B 00 90 00 6F [11:03:44]RAPDU: 90 00 [11:03:44]wFMCommunicate OK [11:03:44]SAM_PROTO_ClearQueue done [11:03:44]KKMCreateOFDPacket [11:03:44]OFDProtocolAddRootSTLVToBuf [11:03:44]FM_MakeSignedData [11:03:44]FM_MakeSignedData [11:03:44]SAM_PROTO_SignData [11:03:44]wFMCommunicate request_size=4 [11:03:44]MH_SAM_APDU [11:03:44]CAPDU: 80 0D 01 02 [11:03:44]Write to MH i2c: E2 08 00 D1 2B 80 0D 01 02 00 00 00 00 75 [11:03:44]Write i2c OK [11:03:44]MH_I2C_Read... [11:03:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:44]Read from MH i2c: E2 [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: E2 03 00 [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: E2 03 00 D1 2B 00 90 00 70 [11:03:44]RAPDU: 90 00 [11:03:44]wFMCommunicate OK [11:03:44]wFMCommunicate request_size=255 [11:03:44]MH_SAM_APDU [11:03: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 74 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 14 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 94 4F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 81 2A 01 00 35 04 06 00 F2 [11:03:44]Write to MH i2c: E2 02 01 D2 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 74 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 14 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 94 4F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 81 2A 01 00 35 04 06 00 F2 00 00 2F [11:03:44]Write i2c OK [11:03:44]MH_I2C_Read... [11:03:44]OFD Sender: No OFD packet to send [11:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:44]Read from MH i2c: E2 [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: E2 03 00 [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: E2 03 00 D2 2B 00 90 00 71 [11:03:44]RAPDU: 90 00 [11:03:44]wFMCommunicate OK [11:03:44]wFMCommunicate request_size=10 [11:03:44]MH_SAM_APDU [11:03:44]CAPDU: 80 0D 02 02 05 F7 F1 49 7A 3C [11:03:44]Write to MH i2c: E2 0D 00 D3 2B 80 0D 02 02 05 00 F7 F1 49 7A 3C 00 00 69 [11:03:44]Write i2c OK [11:03:44]MH_I2C_Read... [11:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:44]Read from MH i2c: E2 [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: E2 03 00 [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: E2 03 00 D3 2B 00 90 00 72 [11:03:44]RAPDU: 90 00 [11:03:44]wFMCommunicate OK [11:03:44]wFMCommunicate request_size=4 [11:03:44]MH_SAM_APDU [11:03:44]CAPDU: 80 0D 03 02 [11:03:44]Write to MH i2c: E2 08 00 D4 2B 80 0D 03 02 00 00 00 00 7A [11:03:44]Write i2c OK [11:03:44]MH_I2C_Read... [11:03:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:44]Read from MH i2c: E2 [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: E2 0B 00 [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: E2 0B 00 D4 2B 00 6E 9A 0C 06 35 8A 8D 6D 90 00 4E [11:03:44]RAPDU: 6E 9A 0C 06 35 8A 8D 6D 90 00 [11:03:44]wFMCommunicate OK [11:03:44]SAM_PROTO_SignData done [11:03:44]FM_MakeSignedData done [11:03:44]CreateOFDProtocolMessage [11:03:44]wFMCommunicate request_size=4 [11:03:44]MH_SAM_APDU [11:03:44]CAPDU: 80 11 00 00 [11:03:44]Write to MH i2c: E2 08 00 D5 2B 80 11 00 00 00 00 00 00 7A [11:03:44]Write i2c OK [11:03:44]MH_I2C_Read... [11:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:44]Read from MH i2c: E2 [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: E2 17 00 [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: E2 17 00 D5 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CD [11:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:03:44]wFMCommunicate OK [11:03:44]CreateOFDProtocolMessage done [11:03:44]OFDSenderStorePacket 76417 [11:03:44]StoreOFDPacket docnum=76417 [11:03:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 45 51 07 01 33 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 74 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 14 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 94 4F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 81 2A 01 00 35 04 06 00 F2 F7 F1 49 7A 3C 6E 9A 0C 06 35 8A 8D 6D [11:03:44]CheckFolder [11:03:44]dirname=/storage/ofd_packets [11:03:44]CheckFolder done [11:03:44]ProducePacketName [11:03:44]name=ofd_packets/00076417 [11:03:44]NVStorageSaveData ofd_packets/00076417 [11:03:44]File name is /storage/ofd_packets/00076417 [11:03:44]Write 301 bytes [11:03:44]NVStorageSaveData done [11:03:44]OFDSenderStorePacket done [11:03:44]KKMCreateOFDPacket done [11:03:44]NVStorageSaveData kkm_last_timestamp [11:03:44]File name is /storage/kkm_last_timestamp [11:03:44]Write 4 bytes [11:03:44]NVStorageSaveData done [11:03:44]ExternCall_PrintAddStr [11:03:44]wPrintStart [11:03:44]Write to MH i2c: 01 00 00 D6 2B 01 [11:03:44]Write i2c OK [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: 01 [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: 01 07 00 [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: 01 07 00 D6 2B 00 00 00 00 00 FF 0F 16 [11:03:44]RasterBufferAndPrint [11:03:44]line Счет N : (1)190877 [11:03:44]line ИНН: 02508201610067 [11:03:44]line Контрольно-Кассовый Чек [11:03:44]line ПРОДАЖА [11:03:44]line ТРК (МРК, ГНК) : 43 [11:03:44]line Товар: 2710124130 [11:03:44]line Аи-92-К-5 [11:03:44]line 10.100 * 64.40 [11:03:44]line = 650.44 [11:03:44]line НДС 12% НСП 1% [11:03:44]line > о реализуемом товаре [11:03:44]line ОКРУГЛЕНИЕ: -0.44 [11:03:44]line ИТОГО: 650.00 [11:03:44]line Внесено: 650.00 [11:03:44]line СДАЧА: 0.00 [11:03:44]line НСП 1% : 5.76 [11:03:44]line НДС 12% : 69.07 [11:03:44]line Наличными: 650.00 [11:03:44]line Безнал.: 0.00 [11:03:44]line Место: АЗС № 106 "Партнер Нефть" [11:03:44]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:03:44]line СНО: Общий режим [11:03:44]line Чек 37 19.04.2024 11:03 [11:03:44]line Смена: 370 ФФД: 1.0 [11:03:44]line ЗНМ: 0300000141 [11:03:44]line РНМ: 0000000000091573 [11:03:44]line Версия ККМ: 001 [11:03:44]line ФМ: 0000000000874652 [11:03:44]line ФД: 76417 [11:03:44]line ФПД: 267146718968380 [11:03:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T110348&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76417&fm=267146718968380&tin=02508201610067®Number=0000000000091573&sum=65000 [11:03:45]OFD Sender: Processing packet 76417 [packets to send 128, broken 127] [11:03:45]ProducePacketName [11:03:45]name=ofd_packets/00076417 [11:03:45]OFD Sender: To server: pG, [11:03:45]CommunicateWithHost lk.salyk.kg:30040 [11:03:45]ConnectInit lk.salyk.kg [11:03:45]written 0, free lines is 4095 [11:03:45]Connected sock=10 [11:03:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 45 51 07 01 33 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 74 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 14 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 94 4F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 81 2A 01 00 35 04 06 00 F2 F7 F1 49 7A 3C 6E 9A 0C 06 35 8A 8D 6D [11:03:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 20 C8 47 00 80 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 34 36 35 32 10 04 04 00 81 2A 01 00 F4 03 04 00 20 F7 21 66 B6 04 01 00 00 64 1B 31 18 8F 7A CF 5E [11:03:45]CommunicateWithHost err = 0 [11:03:45]CheckOFDResponse [11:03:45]1017 (14) - 77093643461234 [11:03:45]1041 (16) - 0000000000874652 [11:03:45]1040 (4) - 76417 [11:03:45]1012 (4) - 19.04.2024 04:46 [11:03:45]1206 (1) - 0 [11:03:45]OFD Sender: Remove packet 76417 [11:03:45]ProducePacketName [11:03:45]name=ofd_packets/00076417 [11:03:45]NVStorageDeleteData [11:03:45]Write to MH i2c: 01 00 00 00 2C 2C [11:03:45]Write i2c OK [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: 01 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: 01 07 00 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: 01 07 00 00 2C 00 00 00 00 00 EB 0C 2A [11:03:45]RasterBufferAndPrint [11:03:45]line [11:03:45]line [11:03:45]line [11:03:45]line [11:03:45]line [11:03:45]written 0, free lines is 3313 [11:03:45]MH_Cut [11:03:45]Write to MH i2c: D1 01 00 07 2C 01 05 [11:03:45]Write i2c OK [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: D1 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: D1 01 00 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: D1 01 00 07 2C 00 04 [11:03:45]Write to MH i2c: 01 00 00 08 2C 34 [11:03:45]Write i2c OK [11:03:45]MH_I2C_Read... [11:03:46]OFD Sender: No OFD packet to send [11:03:46]*** Cut start [11:03:46]*** Partial cut [11:03:46]*** CUTSNS_PIN = 1 [11:03:46]*** CUTSNS_PIN = 0 [11:03:46]*** Brake cut motor [11:03:47]Read from MH i2c: 01 [11:03:47]MH_I2C_Read... [11:03:47]*** Stop cut motor [11:03:47]*** Cut end [11:03:47]Read from MH i2c: 01 07 00 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: 01 07 00 08 2C 00 00 00 00 00 FF 0F 49 [11:03:47]process_action close_receipt done [11:03:47]requested_data is exist [11:03:47]produce_requested_data [11:03:47]requested_item fm.sn is exist - process it [11:03:47]wFMCommunicate request_size=4 [11:03:47]MH_SAM_APDU [11:03:47]CAPDU: 80 11 00 00 [11:03:47]Write to MH i2c: E2 08 00 09 2C 80 11 00 00 00 00 00 00 AF [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:47]Read from MH i2c: E2 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 17 00 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 17 00 09 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 02 [11:03:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:03:47]wFMCommunicate OK [11:03:47]requested_item fd.num is exist - process it [11:03:47]SAM_PROTO_GetFieldsCounters [11:03:47]wFMCommunicate request_size=4 [11:03:47]MH_SAM_APDU [11:03:47]CAPDU: 80 13 00 00 [11:03:47]Write to MH i2c: E2 08 00 0A 2C 80 13 00 00 00 00 00 00 B2 [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:47]Read from MH i2c: E2 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 62 00 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 62 00 0A 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 81 2A 01 00 0E 04 04 00 72 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 61 [11:03:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 81 2A 01 00 0E 04 04 00 72 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 [11:03:47]wFMCommunicate OK [11:03:47]SAM_PROTO_GetFieldsCounters done [11:03:47]requested_item shift.num is exist - process it [11:03:47]requested_item shift.opened is exist - process it [11:03:47]req_shift_opened [11:03:47]FM_GetShiftState [11:03:47]SAM_PROTO_GetShiftState [11:03:47]wFMCommunicate request_size=4 [11:03:47]MH_SAM_APDU [11:03:47]CAPDU: 80 13 01 00 [11:03:47]Write to MH i2c: E2 08 00 0B 2C 80 13 01 00 00 00 00 00 B4 [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:47]Read from MH i2c: E2 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 0E 00 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 0E 00 0B 2C 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 99 [11:03:47]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:03:47]wFMCommunicate OK [11:03:47]SAM_PROTO_GetShiftState done [11:03:47]FM_GetShiftState done [11:03:47]req_shift_opened done [11:03:47]requested_item shift.open_date is exist - process it [11:03:47]req_shift_open_date [11:03:47]req_shift_open_date done [11:03:47]produce_requested_data done [11:03:47]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76417,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [11:03:47]process_action_free close_receipt [11:03:47]json_value_free [11:03:47]json_value_free done [11:03:47]process_json_proto returns [11:03:47]Send response to host [11:03:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76417,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [11:03:47]free response buf [11:03:47]execute_script done [11:03:47]execute_script returns [11:03:47]free content buf [11:03:47]Sock 7.Close socket [11:03:47]Sock 7.Thread stoped [11:03:47]accept exits with 9 [11:03:47]New connection [11:03:47]New thread 3066486116 created [11:03:47]Thread 3066629476 joined [11:03:47]Waiting for new connection... [11:03:47] Sock 9.Parse request [11:03:47]Sock 9.Check first char [11:03:47]Sock 9.First char is OK [11:03:47]request: POST /json_proto HTTP/1.0 [11:03:47]Method: POST [11:03:47]URL: /json_proto [11:03:47]Method is POST - this is cgi request [11:03:47]url: /json_proto [11:03:47]query_string will be loaded in cgi processing [11:03:47]execute_cgi json_proto POST (null) [11:03:47]execute_cgi path=json_proto method=POST [11:03:47]POST find Content-Length [11:03:47]Host: 172.17.62.5:8080 [11:03:47]Content-Length: 1202 [11:03:47]Content-Type: application/json [11:03:47] [11:03:47]POST finish read [11:03:47]Found Content-Length = 1202 [11:03:47]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190876\u000A19.04.2024 10:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3731038;3731039\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:47]execute_script... [11:03:47]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190876\u000A19.04.2024 10:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3731038;3731039\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:47]POST & json_proto [11:03:47]process_json_proto [11:03:47]json parsed OK: [11:03:47]protocol is kg_v1.0 [11:03:47]action value=print_text [11:03:47]process_action print_text [11:03:47]cmd_print_text [11:03:47]ExternCall_PrintAddStr [11:03:47]wPrintStart [11:03:47]Write to MH i2c: 01 00 00 0C 2C 38 [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: 01 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: 01 07 00 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: 01 07 00 0C 2C 00 00 00 00 00 FF 0F 4D [11:03:47]RasterBufferAndPrint [11:03:47]line *****ТОВАРНЫЙ ЧЕК***** [11:03:47]line АЗС 106 [11:03:47]line Партнер нефть [11:03:47]line 02508201610067 [11:03:47]line Кассир : Табалдиева М. [11:03:47]line Счет N : (1)190876 [11:03:47]line 19.04.2024 10:45 [11:03:47]line ПРОДАЖА [11:03:47]line ТРК (МРК, ГНК): 23 [11:03:47]line Вид ГСМ : 2710194210 [11:03:47]line ДТ-К-5 [11:03:47]line 20.000 x 72.90 [11:03:47]line ИТОГ: 1458.00 [11:03:47]line Тип оплаты: Талоны: Партнер нефть [11:03:47]line 3731038;3731039 [11:03:47]line ______________________ [11:03:47]line (подпись) [11:03:47]written 0, free lines is 4095 [11:03:47]Write to MH i2c: 01 00 00 20 2C 4C [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: 01 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: 01 07 00 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: 01 07 00 20 2C 00 00 00 00 00 16 0E 77 [11:03:47]RasterBufferAndPrint [11:03:47]line [11:03:47]line [11:03:47]line [11:03:47]line [11:03:47]line [11:03:47]written 0, free lines is 3609 [11:03:47]MH_Cut [11:03:47]Write to MH i2c: D1 01 00 27 2C 01 25 [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: D1 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: D1 01 00 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: D1 01 00 27 2C 00 24 [11:03:47]Write to MH i2c: 01 00 00 28 2C 54 [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:48]*** Cut start [11:03:48]*** Partial cut [11:03:48]*** CUTSNS_PIN = 1 [11:03:48]*** CUTSNS_PIN = 0 [11:03:48]*** Brake cut motor [11:03:49]Read from MH i2c: 01 [11:03:49]MH_I2C_Read... [11:03:49]*** Stop cut motor [11:03:49]*** Cut end [11:03:49]Read from MH i2c: 01 07 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: 01 07 00 28 2C 00 00 00 00 00 FF 0F 69 [11:03:49]process_action print_text done [11:03:49]requested_data is exist [11:03:49]produce_requested_data [11:03:49]requested_item fm.sn is exist - process it [11:03:49]wFMCommunicate request_size=4 [11:03:49]MH_SAM_APDU [11:03:49]CAPDU: 80 11 00 00 [11:03:49]Write to MH i2c: E2 08 00 29 2C 80 11 00 00 00 00 00 00 CF [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 17 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 17 00 29 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 22 [11:03:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:03:49]wFMCommunicate OK [11:03:49]requested_item fd.num is exist - process it [11:03:49]SAM_PROTO_GetFieldsCounters [11:03:49]wFMCommunicate request_size=4 [11:03:49]MH_SAM_APDU [11:03:49]CAPDU: 80 13 00 00 [11:03:49]Write to MH i2c: E2 08 00 2A 2C 80 13 00 00 00 00 00 00 D2 [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 62 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 62 00 2A 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 81 2A 01 00 0E 04 04 00 72 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 81 [11:03:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 81 2A 01 00 0E 04 04 00 72 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 [11:03:49]wFMCommunicate OK [11:03:49]SAM_PROTO_GetFieldsCounters done [11:03:49]requested_item shift.num is exist - process it [11:03:49]requested_item shift.opened is exist - process it [11:03:49]req_shift_opened [11:03:49]FM_GetShiftState [11:03:49]SAM_PROTO_GetShiftState [11:03:49]wFMCommunicate request_size=4 [11:03:49]MH_SAM_APDU [11:03:49]CAPDU: 80 13 01 00 [11:03:49]Write to MH i2c: E2 08 00 2B 2C 80 13 01 00 00 00 00 00 D4 [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 0E 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 0E 00 2B 2C 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 B9 [11:03:49]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:03:49]wFMCommunicate OK [11:03:49]SAM_PROTO_GetShiftState done [11:03:49]FM_GetShiftState done [11:03:49]req_shift_opened done [11:03:49]requested_item shift.open_date is exist - process it [11:03:49]req_shift_open_date [11:03:49]req_shift_open_date done [11:03:49]produce_requested_data done [11:03:49]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76417,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [11:03:49]process_action_free print_text [11:03:49]json_value_free [11:03:49]json_value_free done [11:03:49]process_json_proto returns [11:03:49]Send response to host [11:03:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76417,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [11:03:49]free response buf [11:03:49]execute_script done [11:03:49]execute_script returns [11:03:49]free content buf [11:03:49]Sock 9.Close socket [11:03:49]Sock 9.Thread stoped [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:36]accept exits with 7 [11:10:36]New connection [11:10:36]New thread 3066629476 created [11:10:36]Thread 3066486116 joined [11:10:36]Waiting for new connection... [11:10:36] Sock 7.Parse request [11:10:36]Sock 7.Check first char [11:10:36]Sock 7.First char is OK [11:10:36]request: POST /json_proto HTTP/1.0 [11:10:36]Method: POST [11:10:36]URL: /json_proto [11:10:36]Method is POST - this is cgi request [11:10:36]url: /json_proto [11:10:36]query_string will be loaded in cgi processing [11:10:36]execute_cgi json_proto POST (null) [11:10:36]execute_cgi path=json_proto method=POST [11:10:36]POST find Content-Length [11:10:36]Host: 172.17.62.5:8080 [11:10:36]Content-Length: 1169 [11:10:36]Content-Type: application/json [11:10:36] [11:10:36]POST finish read [11:10:36]Found Content-Length = 1169 [11:10:36]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190878\u000A19.04.2024 10:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:36]execute_script... [11:10:36]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190878\u000A19.04.2024 10:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:36]POST & json_proto [11:10:36]process_json_proto [11:10:36]json parsed OK: [11:10:36]protocol is kg_v1.0 [11:10:36]action value=print_text [11:10:36]process_action print_text [11:10:36]cmd_print_text [11:10:36]ExternCall_PrintAddStr [11:10:36]wPrintStart [11:10:36]Write to MH i2c: 01 00 00 2C 2C 58 [11:10:36]Write i2c OK [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: 01 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: 01 07 00 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: 01 07 00 2C 2C 00 00 00 00 00 FF 0F 6D [11:10:36]RasterBufferAndPrint [11:10:36]line *****ТОВАРНЫЙ ЧЕК***** [11:10:36]line АЗС 106 [11:10:36]line Партнер нефть [11:10:36]line 02508201610067 [11:10:36]line Кассир : Табалдиева М. [11:10:36]line Счет N : (1)190878 [11:10:36]line 19.04.2024 10:52 [11:10:36]line ПРОДАЖА [11:10:36]line ТРК (МРК, ГНК): 43 [11:10:36]line Вид ГСМ : 2710124130 [11:10:36]line Аи-92-К-5 [11:10:36]line 20.000 x 64.40 [11:10:36]line ИТОГ: 1288.00 [11:10:36]line Тип оплаты: Талоны: ТК ГПНА Online [11:10:36]line 30102984 [11:10:36]line ______________________ [11:10:36]line (подпись) [11:10:36]written 0, free lines is 4095 [11:10:36]Write to MH i2c: 01 00 00 40 2C 6C [11:10:36]Write i2c OK [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: 01 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: 01 07 00 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: 01 07 00 40 2C 00 00 00 00 00 11 0E 92 [11:10:36]RasterBufferAndPrint [11:10:36]line [11:10:36]line [11:10:36]line [11:10:36]line [11:10:36]line [11:10:36]written 0, free lines is 3602 [11:10:36]MH_Cut [11:10:36]Write to MH i2c: D1 01 00 47 2C 01 45 [11:10:36]Write i2c OK [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: D1 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: D1 01 00 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: D1 01 00 47 2C 00 44 [11:10:36]Write to MH i2c: 01 00 00 48 2C 74 [11:10:36]Write i2c OK [11:10:36]MH_I2C_Read... [11:10:37]*** Cut start [11:10:37]*** Partial cut [11:10:37]*** CUTSNS_PIN = 1 [11:10:37]*** CUTSNS_PIN = 0 [11:10:37]*** Brake cut motor [11:10:38]Read from MH i2c: 01 [11:10:38]MH_I2C_Read... [11:10:38]*** Stop cut motor [11:10:38]*** Cut end [11:10:38]Read from MH i2c: 01 07 00 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: 01 07 00 48 2C 00 00 00 00 00 FF 0F 89 [11:10:38]process_action print_text done [11:10:38]requested_data is exist [11:10:38]produce_requested_data [11:10:38]requested_item fm.sn is exist - process it [11:10:38]wFMCommunicate request_size=4 [11:10:38]MH_SAM_APDU [11:10:38]CAPDU: 80 11 00 00 [11:10:38]Write to MH i2c: E2 08 00 49 2C 80 11 00 00 00 00 00 00 EF [11:10:38]Write i2c OK [11:10:38]MH_I2C_Read... [11:10:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:38]Read from MH i2c: E2 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: E2 17 00 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: E2 17 00 49 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 42 [11:10:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:10:38]wFMCommunicate OK [11:10:38]requested_item fd.num is exist - process it [11:10:38]SAM_PROTO_GetFieldsCounters [11:10:38]wFMCommunicate request_size=4 [11:10:38]MH_SAM_APDU [11:10:38]CAPDU: 80 13 00 00 [11:10:38]Write to MH i2c: E2 08 00 4A 2C 80 13 00 00 00 00 00 00 F2 [11:10:38]Write i2c OK [11:10:38]MH_I2C_Read... [11:10:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:38]Read from MH i2c: E2 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: E2 62 00 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: E2 62 00 4A 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 81 2A 01 00 0E 04 04 00 72 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 A1 [11:10:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 81 2A 01 00 0E 04 04 00 72 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 [11:10:38]wFMCommunicate OK [11:10:38]SAM_PROTO_GetFieldsCounters done [11:10:38]requested_item shift.num is exist - process it [11:10:38]requested_item shift.opened is exist - process it [11:10:38]req_shift_opened [11:10:38]FM_GetShiftState [11:10:38]SAM_PROTO_GetShiftState [11:10:38]wFMCommunicate request_size=4 [11:10:38]MH_SAM_APDU [11:10:38]CAPDU: 80 13 01 00 [11:10:38]Write to MH i2c: E2 08 00 4B 2C 80 13 01 00 00 00 00 00 F4 [11:10:38]Write i2c OK [11:10:38]MH_I2C_Read... [11:10:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:38]Read from MH i2c: E2 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: E2 0E 00 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: E2 0E 00 4B 2C 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 D9 [11:10:38]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:10:38]wFMCommunicate OK [11:10:38]SAM_PROTO_GetShiftState done [11:10:38]FM_GetShiftState done [11:10:38]req_shift_opened done [11:10:38]requested_item shift.open_date is exist - process it [11:10:38]req_shift_open_date [11:10:38]req_shift_open_date done [11:10:38]produce_requested_data done [11:10:38]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76417,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [11:10:38]process_action_free print_text [11:10:38]json_value_free [11:10:38]json_value_free done [11:10:38]process_json_proto returns [11:10:38]Send response to host [11:10:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76417,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [11:10:38]free response buf [11:10:38]execute_script done [11:10:38]execute_script returns [11:10:38]free content buf [11:10:38]Sock 7.Close socket [11:10:38]Sock 7.Thread stoped [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:35]accept exits with 9 [11:14:35]New connection [11:14:35]New thread 3066486116 created [11:14:35]Thread 3066629476 joined [11:14:35]Waiting for new connection... [11:14:35] Sock 9.Parse request [11:14:35]Sock 9.Check first char [11:14:35]Sock 9.First char is OK [11:14:35]request: POST /json_proto HTTP/1.0 [11:14:35]Method: POST [11:14:35]URL: /json_proto [11:14:35]Method is POST - this is cgi request [11:14:35]url: /json_proto [11:14:35]query_string will be loaded in cgi processing [11:14:35]execute_cgi json_proto POST (null) [11:14:35]execute_cgi path=json_proto method=POST [11:14:35]POST find Content-Length [11:14:35]Host: 172.17.62.5:8080 [11:14:35]Content-Length: 640 [11:14:35]Content-Type: application/json [11:14:35] [11:14:35]POST finish read [11:14:35]Found Content-Length = 640 [11:14:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190880", "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" : 64.40, "quantity" : 10.000, "sum" : 644.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 644.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:35]execute_script... [11:14: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)190880", "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" : 64.40, "quantity" : 10.000, "sum" : 644.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 644.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:35]POST & json_proto [11:14:35]process_json_proto [11:14:35]json parsed OK: [11:14:35]protocol is kg_v1.0 [11:14:35]action value=close_receipt [11:14:35]process_action close_receipt [11:14:35]cmd_close_receipt [11:14:35]MH_GetDate [11:14:35]Write to MH i2c: F0 00 00 4C 2C 67 [11:14:35]Write i2c OK [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: F0 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: F0 09 00 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: F0 09 00 4C 2C 00 20 52 22 66 F4 E9 65 64 10 [11:14:35]GetLastDocTimeStamp 1713524628 [11:14:35]current date 1713525280 [11:14:35]FM_GetShiftState [11:14:35]SAM_PROTO_GetShiftState [11:14:35]wFMCommunicate request_size=4 [11:14:35]MH_SAM_APDU [11:14:35]CAPDU: 80 13 01 00 [11:14:35]Write to MH i2c: E2 08 00 4D 2C 80 13 01 00 00 00 00 00 F6 [11:14:35]Write i2c OK [11:14:35]MH_I2C_Read... [11:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:35]Read from MH i2c: E2 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: E2 0E 00 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: E2 0E 00 4D 2C 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 DB [11:14:35]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:14:35]wFMCommunicate OK [11:14:35]SAM_PROTO_GetShiftState done [11:14:35]FM_GetShiftState done [11:14:35]opened in 1713486233 [11:14:35]opened+sec_in_day 1713572633 [11:14:35]quantity*price = 64400 [11:14:35]sum+1 = 64401 [11:14:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 644.00 НСП 1% : 5.70 НДС 12% : 68.39 Наличными: 644.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 38 19.04.2024 11:14 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76418 ФПД: 11000165981420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T111440&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76418&fm=11000165981420&tin=02508201610067®Number=0000000000091573&sum=64400 [11:14:36]StoreToDocumentArchive [11:14:36]shift 370 fd 76418 [11:14:36]save to /storage/0370/doc_00076418 [11:14:36]save last doc name /storage/0370/doc_00076418 to /storage/kkm_last_doc_name [11:14:36]save OK [11:14:36]Clear old archive folders... [11:14:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:36]tlvbuf is 0094DF50 [11:14:36]SAM_PROTO_ClearQueue [11:14:36]wFMCommunicate request_size=4 [11:14:36]MH_SAM_APDU [11:14:36]CAPDU: 80 09 00 00 [11:14:36]Write to MH i2c: E2 08 00 5A 2C 80 09 00 00 00 00 00 00 F8 [11:14:36]Write i2c OK [11:14:36]MH_I2C_Read... [11:14:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:36]Read from MH i2c: E2 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 03 00 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 03 00 5A 2C 00 90 00 FA [11:14:36]RAPDU: 90 00 [11:14:36]wFMCommunicate OK [11:14:36]SAM_PROTO_ClearQueue done [11:14:36]KKMCreateOFDPacket [11:14:36]OFDProtocolAddRootSTLVToBuf [11:14:36]FM_MakeSignedData [11:14:36]FM_MakeSignedData [11:14:36]SAM_PROTO_SignData [11:14:36]wFMCommunicate request_size=4 [11:14:36]MH_SAM_APDU [11:14:36]CAPDU: 80 0D 01 02 [11:14:36]Write to MH i2c: E2 08 00 5B 2C 80 0D 01 02 00 00 00 00 00 [11:14:36]Write i2c OK [11:14:36]MH_I2C_Read... [11:14:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:36]Read from MH i2c: E2 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 03 00 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 03 00 5B 2C 00 90 00 FB [11:14:36]RAPDU: 90 00 [11:14:36]wFMCommunicate OK [11:14:36]wFMCommunicate request_size=255 [11:14:36]MH_SAM_APDU [11:14: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 28 19 00 00 00 00 13 04 06 00 90 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 90 FB 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 20 52 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 82 2A 01 00 35 04 06 00 0A [11:14:36]Write to MH i2c: E2 02 01 5C 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 10 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 90 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 90 FB 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 20 52 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 82 2A 01 00 35 04 06 00 0A 00 00 7A [11:14:36]Write i2c OK [11:14:36]MH_I2C_Read... [11:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:36]Read from MH i2c: E2 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 03 00 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 03 00 5C 2C 00 90 00 FC [11:14:36]RAPDU: 90 00 [11:14:36]wFMCommunicate OK [11:14:36]wFMCommunicate request_size=10 [11:14:36]MH_SAM_APDU [11:14:36]CAPDU: 80 0D 02 02 05 01 2C FC 5C EC [11:14:36]Write to MH i2c: E2 0D 00 5D 2C 80 0D 02 02 05 00 01 2C FC 5C EC 00 00 7E [11:14:36]Write i2c OK [11:14:36]MH_I2C_Read... [11:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:36]Read from MH i2c: E2 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 03 00 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 03 00 5D 2C 00 90 00 FD [11:14:36]RAPDU: 90 00 [11:14:36]wFMCommunicate OK [11:14:36]wFMCommunicate request_size=4 [11:14:36]MH_SAM_APDU [11:14:36]CAPDU: 80 0D 03 02 [11:14:36]Write to MH i2c: E2 08 00 5E 2C 80 0D 03 02 00 00 00 00 05 [11:14:36]Write i2c OK [11:14:36]MH_I2C_Read... [11:14:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:36]Read from MH i2c: E2 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 0B 00 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 0B 00 5E 2C 00 BB 95 88 F6 42 DA 8E 1F 90 00 9D [11:14:36]RAPDU: BB 95 88 F6 42 DA 8E 1F 90 00 [11:14:36]wFMCommunicate OK [11:14:36]SAM_PROTO_SignData done [11:14:36]FM_MakeSignedData done [11:14:36]CreateOFDProtocolMessage [11:14:36]wFMCommunicate request_size=4 [11:14:36]MH_SAM_APDU [11:14:36]CAPDU: 80 11 00 00 [11:14:36]Write to MH i2c: E2 08 00 5F 2C 80 11 00 00 00 00 00 00 05 [11:14:36]Write i2c OK [11:14:36]MH_I2C_Read... [11:14:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:36]Read from MH i2c: E2 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 17 00 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 17 00 5F 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 58 [11:14:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:14:36]wFMCommunicate OK [11:14:36]CreateOFDProtocolMessage done [11:14:36]OFDSenderStorePacket 76418 [11:14:36]StoreOFDPacket docnum=76418 [11:14:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 D2 12 07 01 36 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 10 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 90 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 90 FB 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 20 52 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 82 2A 01 00 35 04 06 00 0A 01 2C FC 5C EC BB 95 88 F6 42 DA 8E 1F [11:14:36]CheckFolder [11:14:36]dirname=/storage/ofd_packets [11:14:36]CheckFolder done [11:14:36]ProducePacketName [11:14:36]name=ofd_packets/00076418 [11:14:36]NVStorageSaveData ofd_packets/00076418 [11:14:36]File name is /storage/ofd_packets/00076418 [11:14:36]Write 301 bytes [11:14:36]NVStorageSaveData done [11:14:36]OFDSenderStorePacket done [11:14:36]KKMCreateOFDPacket done [11:14:36]NVStorageSaveData kkm_last_timestamp [11:14:36]File name is /storage/kkm_last_timestamp [11:14:36]Write 4 bytes [11:14:36]NVStorageSaveData done [11:14:36]ExternCall_PrintAddStr [11:14:36]wPrintStart [11:14:36]Write to MH i2c: 01 00 00 60 2C 8C [11:14:36]Write i2c OK [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: 01 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: 01 07 00 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: 01 07 00 60 2C 00 00 00 00 00 FF 0F A1 [11:14:36]RasterBufferAndPrint [11:14:36]line Счет N : (1)190880 [11:14:36]line ИНН: 02508201610067 [11:14:36]line Контрольно-Кассовый Чек [11:14:36]line ПРОДАЖА [11:14:36]line ТРК (МРК, ГНК) : 12 [11:14:36]line Товар: 2710124130 [11:14:36]line Аи-92-К-5 [11:14:36]line 10.000 * 64.40 [11:14:36]line = 644.00 [11:14:36]line НДС 12% НСП 1% [11:14:36]line > о реализуемом товаре [11:14:36]line ИТОГО: 644.00 [11:14:36]line НСП 1% : 5.70 [11:14:36]line НДС 12% : 68.39 [11:14:36]line Наличными: 644.00 [11:14:36]line Безнал.: 0.00 [11:14:36]line Место: АЗС № 106 "Партнер Нефть" [11:14:36]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:14:36]line СНО: Общий режим [11:14:36]line Чек 38 19.04.2024 11:14 [11:14:36]line Смена: 370 ФФД: 1.0 [11:14:36]line ЗНМ: 0300000141 [11:14:36]line РНМ: 0000000000091573 [11:14:36]line Версия ККМ: 001 [11:14:36]line ФМ: 0000000000874652 [11:14:36]line ФД: 76418 [11:14:36]line ФПД: 11000165981420 [11:14:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T111440&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76418&fm=11000165981420&tin=02508201610067®Number=0000000000091573&sum=64400 [11:14:37]OFD Sender: Processing packet 76418 [packets to send 128, broken 127] [11:14:37]ProducePacketName [11:14:37]name=ofd_packets/00076418 [11:14:37]OFD Sender: To server: pG, [11:14:37]CommunicateWithHost lk.salyk.kg:30040 [11:14:37]ConnectInit lk.salyk.kg [11:14:37]written 0, free lines is 4095 [11:14:37]Connected sock=10 [11:14:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 D2 12 07 01 36 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 10 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 90 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 90 FB 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 20 52 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 82 2A 01 00 35 04 06 00 0A 01 2C FC 5C EC BB 95 88 F6 42 DA 8E 1F [11:14:37]Write to MH i2c: 01 00 00 87 2C B3 [11:14:37]Write i2c OK [11:14:37]MH_I2C_Read... [11:14:37]Read from MH i2c: 01 [11:14:37]MH_I2C_Read... [11:14:37]Read from MH i2c: 01 07 00 [11:14:37]MH_I2C_Read... [11:14:37]Read from MH i2c: 01 07 00 87 2C 00 00 00 00 00 04 0D CB [11:14:37]RasterBufferAndPrint [11:14:37]line [11:14:37]line [11:14:37]line [11:14:37]line [11:14:37]line [11:14:37]written 0, free lines is 3337 [11:14:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D4 2B 47 00 26 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 34 36 35 32 10 04 04 00 82 2A 01 00 F4 03 04 00 AB F9 21 66 B6 04 01 00 00 CA A2 E0 24 03 0F C7 E5 [11:14:37]CommunicateWithHost err = 0 [11:14:37]CheckOFDResponse [11:14:37]1017 (14) - 77093643461234 [11:14:37]1041 (16) - 0000000000874652 [11:14:37]1040 (4) - 76418 [11:14:37]1012 (4) - 19.04.2024 04:57 [11:14:37]1206 (1) - 0 [11:14:37]OFD Sender: Remove packet 76418 [11:14:37]ProducePacketName [11:14:37]name=ofd_packets/00076418 [11:14:37]NVStorageDeleteData [11:14:37]MH_Cut [11:14:37]Write to MH i2c: D1 01 00 8E 2C 01 8C [11:14:37]Write i2c OK [11:14:37]MH_I2C_Read... [11:14:37]Read from MH i2c: D1 [11:14:37]MH_I2C_Read... [11:14:37]Read from MH i2c: D1 01 00 [11:14:37]MH_I2C_Read... [11:14:37]Read from MH i2c: D1 01 00 8E 2C 00 8B [11:14:37]Write to MH i2c: 01 00 00 8F 2C BB [11:14:37]Write i2c OK [11:14:37]MH_I2C_Read... [11:14:38]OFD Sender: No OFD packet to send [11:14:38]*** Cut start [11:14:38]*** Partial cut [11:14:38]*** CUTSNS_PIN = 1 [11:14:38]*** CUTSNS_PIN = 0 [11:14:38]*** Brake cut motor [11:14:38]Read from MH i2c: 01 [11:14:38]MH_I2C_Read... [11:14:38]*** Stop cut motor [11:14:38]*** Cut end [11:14:38]Read from MH i2c: 01 07 00 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: 01 07 00 8F 2C 00 00 00 00 00 FF 0F D0 [11:14:38]process_action close_receipt done [11:14:38]requested_data is exist [11:14:38]produce_requested_data [11:14:38]requested_item fm.sn is exist - process it [11:14:38]wFMCommunicate request_size=4 [11:14:38]MH_SAM_APDU [11:14:38]CAPDU: 80 11 00 00 [11:14:38]Write to MH i2c: E2 08 00 90 2C 80 11 00 00 00 00 00 00 36 [11:14:38]Write i2c OK [11:14:38]MH_I2C_Read... [11:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:38]Read from MH i2c: E2 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: E2 17 00 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: E2 17 00 90 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 89 [11:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:14:38]wFMCommunicate OK [11:14:38]requested_item fd.num is exist - process it [11:14:38]SAM_PROTO_GetFieldsCounters [11:14:38]wFMCommunicate request_size=4 [11:14:38]MH_SAM_APDU [11:14:38]CAPDU: 80 13 00 00 [11:14:38]Write to MH i2c: E2 08 00 91 2C 80 13 00 00 00 00 00 00 39 [11:14:38]Write i2c OK [11:14:38]MH_I2C_Read... [11:14:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:39]Read from MH i2c: E2 [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: E2 62 00 [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: E2 62 00 91 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 82 2A 01 00 0E 04 04 00 72 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 EC [11:14:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 82 2A 01 00 0E 04 04 00 72 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 [11:14:39]wFMCommunicate OK [11:14:39]SAM_PROTO_GetFieldsCounters done [11:14:39]requested_item shift.num is exist - process it [11:14:39]requested_item shift.opened is exist - process it [11:14:39]req_shift_opened [11:14:39]FM_GetShiftState [11:14:39]SAM_PROTO_GetShiftState [11:14:39]wFMCommunicate request_size=4 [11:14:39]MH_SAM_APDU [11:14:39]CAPDU: 80 13 01 00 [11:14:39]Write to MH i2c: E2 08 00 92 2C 80 13 01 00 00 00 00 00 3B [11:14:39]Write i2c OK [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: E2 [11:14:39]MH_I2C_Read... [11:14:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:39]Read from MH i2c: E2 0E 00 [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: E2 0E 00 92 2C 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 20 [11:14:39]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:14:39]wFMCommunicate OK [11:14:39]SAM_PROTO_GetShiftState done [11:14:39]FM_GetShiftState done [11:14:39]req_shift_opened done [11:14:39]requested_item shift.open_date is exist - process it [11:14:39]req_shift_open_date [11:14:39]req_shift_open_date done [11:14:39]produce_requested_data done [11:14:39]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76418,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [11:14:39]process_action_free close_receipt [11:14:39]json_value_free [11:14:39]json_value_free done [11:14:39]process_json_proto returns [11:14:39]Send response to host [11:14:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76418,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [11:14:39]free response buf [11:14:39]execute_script done [11:14:39]execute_script returns [11:14:39]free content buf [11:14:39]Sock 9.Close socket [11:14:39]Sock 9.Thread stoped [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:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:56]accept exits with 7 [11:20:56]New connection [11:20:56]New thread 3066629476 created [11:20:56]Thread 3066486116 joined [11:20:56]Waiting for new connection... [11:20:56] Sock 7.Parse request [11:20:56]Sock 7.Check first char [11:20:56]Sock 7.First char is OK [11:20:56]request: POST /json_proto HTTP/1.0 [11:20:56]Method: POST [11:20:56]URL: /json_proto [11:20:56]Method is POST - this is cgi request [11:20:56]url: /json_proto [11:20:56]query_string will be loaded in cgi processing [11:20:56]execute_cgi json_proto POST (null) [11:20:56]execute_cgi path=json_proto method=POST [11:20:56]POST find Content-Length [11:20:56]Host: 172.17.62.5:8080 [11:20:56]Content-Length: 990 [11:20:56]Content-Type: application/json [11:20:56] [11:20:56]POST finish read [11:20:56]Found Content-Length = 990 [11:20:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 44.360, "sum" : 1406.21, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 44.36 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1406.00, "payments": [ { "type": 0, "sum" : 1406.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:56]execute_script... [11:20: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)190881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 44.360, "sum" : 1406.21, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 44.36 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1406.00, "payments": [ { "type": 0, "sum" : 1406.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:56]POST & json_proto [11:20:56]process_json_proto [11:20:56]json parsed OK: [11:20:56]protocol is kg_v1.0 [11:20:56]action value=close_receipt [11:20:56]process_action close_receipt [11:20:56]cmd_close_receipt [11:20:56]MH_GetDate [11:20:56]Write to MH i2c: F0 00 00 93 2C AE [11:20:56]Write i2c OK [11:20:56]MH_I2C_Read... [11:20:56]Read from MH i2c: F0 [11:20:56]MH_I2C_Read... [11:20:56]Read from MH i2c: F0 09 00 [11:20:56]MH_I2C_Read... [11:20:56]Read from MH i2c: F0 09 00 93 2C 00 9C 53 22 66 F4 E9 65 64 D4 [11:20:56]GetLastDocTimeStamp 1713525280 [11:20:56]current date 1713525660 [11:20:56]FM_GetShiftState [11:20:56]SAM_PROTO_GetShiftState [11:20:56]wFMCommunicate request_size=4 [11:20:56]MH_SAM_APDU [11:20:56]CAPDU: 80 13 01 00 [11:20:56]Write to MH i2c: E2 08 00 94 2C 80 13 01 00 00 00 00 00 3D [11:20:56]Write i2c OK [11:20:56]MH_I2C_Read... [11:20:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:56]Read from MH i2c: E2 [11:20:56]MH_I2C_Read... [11:20:56]Read from MH i2c: E2 0E 00 [11:20:56]MH_I2C_Read... [11:20:56]Read from MH i2c: E2 0E 00 94 2C 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 22 [11:20:56]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:20:56]wFMCommunicate OK [11:20:56]SAM_PROTO_GetShiftState done [11:20:56]FM_GetShiftState done [11:20:56]opened in 1713486233 [11:20:56]opened+sec_in_day 1713572633 [11:20:56]quantity*price = 140621 [11:20:56]sum+1 = 140622 [11:20:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 1406.00 Внесено: 1500.00 СДАЧА: 94.00 НСП 1% : 12.44 НДС 12% : 149.33 Наличными: 1406.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 39 19.04.2024 11:21 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 44.36 сом ФМ: 0000000000874652 ФД: 76419 ФПД: 2161151977429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T112100&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76419&fm=2161151977429&tin=02508201610067®Number=0000000000091573&sum=140600 [11:20:57]StoreToDocumentArchive [11:20:57]shift 370 fd 76419 [11:20:57]save to /storage/0370/doc_00076419 [11:20:57]save last doc name /storage/0370/doc_00076419 to /storage/kkm_last_doc_name [11:20:57]save OK [11:20:57]Clear old archive folders... [11:20:57]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:20:57]tlvbuf is B6D599E0 [11:20:57]SAM_PROTO_ClearQueue [11:20:57]wFMCommunicate request_size=4 [11:20:57]MH_SAM_APDU [11:20:57]CAPDU: 80 09 00 00 [11:20:57]Write to MH i2c: E2 08 00 A1 2C 80 09 00 00 00 00 00 00 3F [11:20:57]Write i2c OK [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 [11:20:57]MH_I2C_Read... [11:20:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:57]Read from MH i2c: E2 03 00 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 03 00 A1 2C 00 90 00 41 [11:20:57]RAPDU: 90 00 [11:20:57]wFMCommunicate OK [11:20:57]SAM_PROTO_ClearQueue done [11:20:57]KKMCreateOFDPacket [11:20:57]OFDProtocolAddRootSTLVToBuf [11:20:57]FM_MakeSignedData [11:20:57]FM_MakeSignedData [11:20:57]SAM_PROTO_SignData [11:20:57]wFMCommunicate request_size=4 [11:20:57]MH_SAM_APDU [11:20:57]CAPDU: 80 0D 01 02 [11:20:57]Write to MH i2c: E2 08 00 A2 2C 80 0D 01 02 00 00 00 00 47 [11:20:57]Write i2c OK [11:20:57]MH_I2C_Read... [11:20:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:57]Read from MH i2c: E2 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 03 00 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 03 00 A2 2C 00 90 00 42 [11:20:57]RAPDU: 90 00 [11:20:57]wFMCommunicate OK [11:20:57]wFMCommunicate request_size=255 [11:20:57]MH_SAM_APDU [11:20:57]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 48 AD 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 4D 25 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 25 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 3A 00 00 00 00 07 04 06 00 38 25 02 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 9C 53 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 83 2A 01 00 35 04 06 00 01 F7 [11:20:57]Write to MH i2c: E2 02 01 A3 2C 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 48 AD 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 4D 25 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 25 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 3A 00 00 00 00 07 04 06 00 38 25 02 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 9C 53 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 83 2A 01 00 35 04 06 00 01 F7 00 00 B3 [11:20:57]Write i2c OK [11:20:57]MH_I2C_Read... [11:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:57]Read from MH i2c: E2 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 03 00 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 03 00 A3 2C 00 90 00 43 [11:20:57]RAPDU: 90 00 [11:20:57]wFMCommunicate OK [11:20:57]wFMCommunicate request_size=9 [11:20:57]MH_SAM_APDU [11:20:57]CAPDU: 80 0D 02 02 04 2E B2 27 D5 [11:20:57]Write to MH i2c: E2 0C 00 A4 2C 80 0D 02 02 04 00 2E B2 27 D5 00 00 2E [11:20:57]Write i2c OK [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 [11:20:57]MH_I2C_Read... [11:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:57]Read from MH i2c: E2 03 00 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 03 00 A4 2C 00 90 00 44 [11:20:57]RAPDU: 90 00 [11:20:57]wFMCommunicate OK [11:20:57]wFMCommunicate request_size=4 [11:20:57]MH_SAM_APDU [11:20:57]CAPDU: 80 0D 03 02 [11:20:57]Write to MH i2c: E2 08 00 A5 2C 80 0D 03 02 00 00 00 00 4C [11:20:57]Write i2c OK [11:20:57]MH_I2C_Read... [11:20:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:57]Read from MH i2c: E2 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 0B 00 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 0B 00 A5 2C 00 74 88 2E CF 6D 48 07 70 90 00 72 [11:20:57]RAPDU: 74 88 2E CF 6D 48 07 70 90 00 [11:20:57]wFMCommunicate OK [11:20:57]SAM_PROTO_SignData done [11:20:57]FM_MakeSignedData done [11:20:57]CreateOFDProtocolMessage [11:20:57]wFMCommunicate request_size=4 [11:20:57]MH_SAM_APDU [11:20:57]CAPDU: 80 11 00 00 [11:20:57]Write to MH i2c: E2 08 00 A6 2C 80 11 00 00 00 00 00 00 4C [11:20:57]Write i2c OK [11:20:57]MH_I2C_Read... [11:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:57]Read from MH i2c: E2 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 17 00 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 17 00 A6 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9F [11:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:20:57]wFMCommunicate OK [11:20:57]CreateOFDProtocolMessage done [11:20:57]OFDSenderStorePacket 76419 [11:20:57]StoreOFDPacket docnum=76419 [11:20:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 14 C1 06 01 61 6A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 48 AD 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 4D 25 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 25 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 3A 00 00 00 00 07 04 06 00 38 25 02 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 9C 53 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 83 2A 01 00 35 04 06 00 01 F7 2E B2 27 D5 74 88 2E CF 6D 48 07 70 [11:20:57]CheckFolder [11:20:57]dirname=/storage/ofd_packets [11:20:57]CheckFolder done [11:20:57]ProducePacketName [11:20:57]name=ofd_packets/00076419 [11:20:57]NVStorageSaveData ofd_packets/00076419 [11:20:57]File name is /storage/ofd_packets/00076419 [11:20:57]Write 300 bytes [11:20:57]NVStorageSaveData done [11:20:57]OFDSenderStorePacket done [11:20:57]KKMCreateOFDPacket done [11:20:57]NVStorageSaveData kkm_last_timestamp [11:20:57]File name is /storage/kkm_last_timestamp [11:20:57]Write 4 bytes [11:20:57]NVStorageSaveData done [11:20:57]ExternCall_PrintAddStr [11:20:57]wPrintStart [11:20:57]Write to MH i2c: 01 00 00 A7 2C D3 [11:20:57]Write i2c OK [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: 01 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: 01 07 00 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: 01 07 00 A7 2C 00 00 00 00 00 FF 0F E8 [11:20:57]RasterBufferAndPrint [11:20:57]line Счет N : (1)190881 [11:20:57]line ИНН: 02508201610067 [11:20:57]line Контрольно-Кассовый Чек [11:20:57]line ПРОДАЖА [11:20:57]line ТРК (МРК, ГНК) : 71 [11:20:57]line Товар: 2711190000 [11:20:57]line ГАЗ-К-5 [11:20:57]line 44.360 * 31.70 [11:20:57]line = 1406.21 [11:20:57]line НДС 12% НСП 1% [11:20:57]line > о реализуемом товаре [11:20:57]line ОКРУГЛЕНИЕ: -0.21 [11:20:57]line ИТОГО: 1406.00 [11:20:57]line Внесено: 1500.00 [11:20:57]line СДАЧА: 94.00 [11:20:57]line НСП 1% : 12.44 [11:20:57]line НДС 12% : 149.33 [11:20:57]line Наличными: 1406.00 [11:20:57]line Безнал.: 0.00 [11:20:57]line Место: АЗС № 106 "Партнер Нефть" [11:20:57]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:20:57]line СНО: Общий режим [11:20:57]line Чек 39 19.04.2024 11:21 [11:20:57]line Смена: 370 ФФД: 1.0 [11:20:57]line ЗНМ: 0300000141 [11:20:57]line РНМ: 0000000000091573 [11:20:57]line Версия ККМ: 001 [11:20:57]line [11:20:57]line Дисконтная программа [11:20:57]line СУГ [11:20:57]line номер 106 [11:20:57]line сэкономлено 44.36 сом [11:20:57]line ФМ: 0000000000874652 [11:20:57]line ФД: 76419 [11:20:57]line ФПД: 2161151977429 [11:20:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T112100&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76419&fm=2161151977429&tin=02508201610067®Number=0000000000091573&sum=140600 [11:20:58]OFD Sender: Processing packet 76419 [packets to send 128, broken 127] [11:20:58]ProducePacketName [11:20:58]name=ofd_packets/00076419 [11:20:58]OFD Sender: To server: pG, [11:20:58]CommunicateWithHost lk.salyk.kg:30040 [11:20:58]ConnectInit lk.salyk.kg [11:20:58]written 0, free lines is 4095 [11:20:58]Write to MH i2c: 01 00 00 D6 2C 02 [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: 01 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: 01 07 00 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: 01 07 00 D6 2C 00 00 00 00 00 7E 0C 93 [11:20:58]RasterBufferAndPrint [11:20:58]line [11:20:58]line [11:20:58]line [11:20:58]line [11:20:58]line [11:20:58]written 0, free lines is 3201 [11:20:58]MH_Cut [11:20:58]Write to MH i2c: D1 01 00 DD 2C 01 DB [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: D1 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: D1 01 00 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: D1 01 00 DD 2C 00 DA [11:20:58]Write to MH i2c: 01 00 00 DE 2C 0A [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:59]Connected sock=11 [11:20:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 14 C1 06 01 61 6A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 48 AD 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 4D 25 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 25 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 3A 00 00 00 00 07 04 06 00 38 25 02 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 9C 53 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 83 2A 01 00 35 04 06 00 01 F7 2E B2 27 D5 74 88 2E CF 6D 48 07 70 [11:20:59]*** Cut start [11:20:59]*** Partial cut [11:20:59]*** CUTSNS_PIN = 1 [11:20:59]*** CUTSNS_PIN = 0 [11:20:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 31 6E 47 00 B7 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 83 2A 01 00 F4 03 04 00 29 FB 21 66 B6 04 01 00 00 6C E3 B0 4F D9 41 6C FC [11:20:59]CommunicateWithHost err = 0 [11:20:59]CheckOFDResponse [11:20:59]1017 (14) - 77093643461234 [11:20:59]1041 (16) - 0000000000874652 [11:20:59]1040 (4) - 76419 [11:20:59]1012 (4) - 19.04.2024 05:03 [11:20:59]1206 (1) - 0 [11:20:59]OFD Sender: Remove packet 76419 [11:20:59]ProducePacketName [11:20:59]name=ofd_packets/00076419 [11:20:59]NVStorageDeleteData [11:20:59]*** Brake cut motor [11:20:59]Read from MH i2c: 01 [11:21:00]MH_I2C_Read... [11:21:00]*** Stop cut motor [11:21:00]*** Cut end [11:21:00]Read from MH i2c: 01 07 00 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: 01 07 00 DE 2C 00 00 00 00 00 FF 0F 1F [11:21:00]process_action close_receipt done [11:21:00]requested_data is exist [11:21:00]produce_requested_data [11:21:00]requested_item fm.sn is exist - process it [11:21:00]wFMCommunicate request_size=4 [11:21:00]MH_SAM_APDU [11:21:00]CAPDU: 80 11 00 00 [11:21:00]Write to MH i2c: E2 08 00 DF 2C 80 11 00 00 00 00 00 00 85 [11:21:00]Write i2c OK [11:21:00]MH_I2C_Read... [11:21:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:00]OFD Sender: No OFD packet to send [11:21:00]Read from MH i2c: E2 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 17 00 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 17 00 DF 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D8 [11:21:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:21:00]wFMCommunicate OK [11:21:00]requested_item fd.num is exist - process it [11:21:00]SAM_PROTO_GetFieldsCounters [11:21:00]wFMCommunicate request_size=4 [11:21:00]MH_SAM_APDU [11:21:00]CAPDU: 80 13 00 00 [11:21:00]Write to MH i2c: E2 08 00 E0 2C 80 13 00 00 00 00 00 00 88 [11:21:00]Write i2c OK [11:21:00]MH_I2C_Read... [11:21:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:00]Read from MH i2c: E2 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 62 00 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 62 00 E0 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 83 2A 01 00 0E 04 04 00 72 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 3F [11:21:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 83 2A 01 00 0E 04 04 00 72 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 [11:21:00]wFMCommunicate OK [11:21:00]SAM_PROTO_GetFieldsCounters done [11:21:00]requested_item shift.num is exist - process it [11:21:00]requested_item shift.opened is exist - process it [11:21:00]req_shift_opened [11:21:00]FM_GetShiftState [11:21:00]SAM_PROTO_GetShiftState [11:21:00]wFMCommunicate request_size=4 [11:21:00]MH_SAM_APDU [11:21:00]CAPDU: 80 13 01 00 [11:21:00]Write to MH i2c: E2 08 00 E1 2C 80 13 01 00 00 00 00 00 8A [11:21:00]Write i2c OK [11:21:00]MH_I2C_Read... [11:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:00]Read from MH i2c: E2 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 0E 00 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 0E 00 E1 2C 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 6F [11:21:00]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:21:00]wFMCommunicate OK [11:21:00]SAM_PROTO_GetShiftState done [11:21:00]FM_GetShiftState done [11:21:00]req_shift_opened done [11:21:00]requested_item shift.open_date is exist - process it [11:21:00]req_shift_open_date [11:21:00]req_shift_open_date done [11:21:00]produce_requested_data done [11:21:00]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76419,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [11:21:00]process_action_free close_receipt [11:21:00]json_value_free [11:21:00]json_value_free done [11:21:00]process_json_proto returns [11:21:00]Send response to host [11:21:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76419,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [11:21:00]free response buf [11:21:00]execute_script done [11:21:00]execute_script returns [11:21:00]free content buf [11:21:00]Sock 7.Close socket [11:21:00]Sock 7.Thread stoped [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:17]accept exits with 9 [11:23:17]New connection [11:23:17]New thread 3066486116 created [11:23:17]Thread 3066629476 joined [11:23:17]Waiting for new connection... [11:23:17] Sock 9.Parse request [11:23:17]Sock 9.Check first char [11:23:17]Sock 9.First char is OK [11:23:17]request: POST /json_proto HTTP/1.0 [11:23:17]Method: POST [11:23:17]URL: /json_proto [11:23:17]Method is POST - this is cgi request [11:23:17]url: /json_proto [11:23:17]query_string will be loaded in cgi processing [11:23:17]execute_cgi json_proto POST (null) [11:23:17]execute_cgi path=json_proto method=POST [11:23:17]POST find Content-Length [11:23:17]Host: 172.17.62.5:8080 [11:23:17]Content-Length: 1212 [11:23:17]Content-Type: application/json [11:23:17] [11:23:17]POST finish read [11:23:17]Found Content-Length = 1212 [11:23:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190879\u000A19.04.2024 11:04\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 300.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 21870.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\u000A3611909;3611908;3611910\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:17]execute_script... [11:23:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190879\u000A19.04.2024 11:04\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 300.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 21870.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\u000A3611909;3611908;3611910\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:17]POST & json_proto [11:23:17]process_json_proto [11:23:17]json parsed OK: [11:23:17]protocol is kg_v1.0 [11:23:17]action value=print_text [11:23:17]process_action print_text [11:23:17]cmd_print_text [11:23:17]ExternCall_PrintAddStr [11:23:17]wPrintStart [11:23:17]Write to MH i2c: 01 00 00 E2 2C 0E [11:23:17]Write i2c OK [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: 01 [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: 01 07 00 [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: 01 07 00 E2 2C 00 00 00 00 00 FF 0F 23 [11:23:17]RasterBufferAndPrint [11:23:17]line *****ТОВАРНЫЙ ЧЕК***** [11:23:17]line АЗС 106 [11:23:17]line Партнер нефть [11:23:17]line 02508201610067 [11:23:17]line Кассир : Табалдиева М. [11:23:17]line Счет N : (1)190879 [11:23:17]line 19.04.2024 11:04 [11:23:17]line ПРОДАЖА [11:23:17]line ТРК (МРК, ГНК): 51 [11:23:17]line Вид ГСМ : 2710194210 [11:23:17]line ДТ-К-5 [11:23:17]line 300.000 x 72.90 [11:23:17]line ИТОГ: 21870.00 [11:23:17]line Тип оплаты: Талоны: Партнер нефть [11:23:17]line 3611909;3611908;3611910 [11:23:17]line ______________________ [11:23:17]line (подпись) [11:23:17]written 0, free lines is 4095 [11:23:17]Write to MH i2c: 01 00 00 F6 2C 22 [11:23:17]Write i2c OK [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: 01 [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: 01 07 00 [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: 01 07 00 F6 2C 00 00 00 00 00 17 0E 4E [11:23:17]RasterBufferAndPrint [11:23:17]line [11:23:17]line [11:23:17]line [11:23:17]line [11:23:17]line [11:23:17]written 0, free lines is 3609 [11:23:17]MH_Cut [11:23:17]Write to MH i2c: D1 01 00 FD 2C 01 FB [11:23:17]Write i2c OK [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: D1 [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: D1 01 00 [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: D1 01 00 FD 2C 00 FA [11:23:17]Write to MH i2c: 01 00 00 FE 2C 2A [11:23:17]Write i2c OK [11:23:17]MH_I2C_Read... [11:23:17]*** Cut start [11:23:17]*** Partial cut [11:23:17]*** CUTSNS_PIN = 1 [11:23:17]*** CUTSNS_PIN = 0 [11:23:18]*** Brake cut motor [11:23:18]Read from MH i2c: 01 [11:23:18]MH_I2C_Read... [11:23:18]*** Stop cut motor [11:23:18]*** Cut end [11:23:18]Read from MH i2c: 01 07 00 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: 01 07 00 FE 2C 00 00 00 00 00 FF 0F 3F [11:23:18]process_action print_text done [11:23:18]requested_data is exist [11:23:18]produce_requested_data [11:23:18]requested_item fm.sn is exist - process it [11:23:18]wFMCommunicate request_size=4 [11:23:18]MH_SAM_APDU [11:23:18]CAPDU: 80 11 00 00 [11:23:18]Write to MH i2c: E2 08 00 FF 2C 80 11 00 00 00 00 00 00 A5 [11:23:18]Write i2c OK [11:23:18]MH_I2C_Read... [11:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:18]Read from MH i2c: E2 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 17 00 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 17 00 FF 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F8 [11:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:23:18]wFMCommunicate OK [11:23:18]requested_item fd.num is exist - process it [11:23:18]SAM_PROTO_GetFieldsCounters [11:23:18]wFMCommunicate request_size=4 [11:23:18]MH_SAM_APDU [11:23:18]CAPDU: 80 13 00 00 [11:23:18]Write to MH i2c: E2 08 00 00 2D 80 13 00 00 00 00 00 00 A9 [11:23:18]Write i2c OK [11:23:18]MH_I2C_Read... [11:23:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:18]Read from MH i2c: E2 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 62 00 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 62 00 00 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 83 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [11:23: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 83 2A 01 00 0E 04 04 00 72 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 [11:23:18]wFMCommunicate OK [11:23:18]SAM_PROTO_GetFieldsCounters done [11:23:18]requested_item shift.num is exist - process it [11:23:18]requested_item shift.opened is exist - process it [11:23:18]req_shift_opened [11:23:18]FM_GetShiftState [11:23:18]SAM_PROTO_GetShiftState [11:23:18]wFMCommunicate request_size=4 [11:23:18]MH_SAM_APDU [11:23:18]CAPDU: 80 13 01 00 [11:23:18]Write to MH i2c: E2 08 00 01 2D 80 13 01 00 00 00 00 00 AB [11:23:18]Write i2c OK [11:23:18]MH_I2C_Read... [11:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:18]Read from MH i2c: E2 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 0E 00 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 0E 00 01 2D 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 90 [11:23:18]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:23:18]wFMCommunicate OK [11:23:18]SAM_PROTO_GetShiftState done [11:23:18]FM_GetShiftState done [11:23:18]req_shift_opened done [11:23:18]requested_item shift.open_date is exist - process it [11:23:18]req_shift_open_date [11:23:18]req_shift_open_date done [11:23:18]produce_requested_data done [11:23:18]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76419,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [11:23:18]process_action_free print_text [11:23:18]json_value_free [11:23:18]json_value_free done [11:23:18]process_json_proto returns [11:23:18]Send response to host [11:23:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76419,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [11:23:18]free response buf [11:23:18]execute_script done [11:23:18]execute_script returns [11:23:18]free content buf [11:23:18]Sock 9.Close socket [11:23:18]Sock 9.Thread stoped [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:05]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:10]accept exits with 7 [11:26:10]New connection [11:26:10]New thread 3066629476 created [11:26:10]Thread 3066486116 joined [11:26:10]Waiting for new connection... [11:26:10] Sock 7.Parse request [11:26:10]Sock 7.Check first char [11:26:10]Sock 7.First char is OK [11:26:10]request: POST /json_proto HTTP/1.0 [11:26:10]Method: POST [11:26:10]URL: /json_proto [11:26:10]Method is POST - this is cgi request [11:26:10]url: /json_proto [11:26:10]query_string will be loaded in cgi processing [11:26:10]execute_cgi json_proto POST (null) [11:26:10]execute_cgi path=json_proto method=POST [11:26:10]POST find Content-Length [11:26:10]Host: 172.17.62.5:8080 [11:26:10]Content-Length: 1204 [11:26:10]Content-Type: application/json [11:26:10] [11:26:10]POST finish read [11:26:10]Found Content-Length = 1204 [11:26:10]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190882\u000A19.04.2024 11:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\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\u000A68975\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:10]execute_script... [11:26:10]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190882\u000A19.04.2024 11:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\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\u000A68975\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:10]POST & json_proto [11:26:10]process_json_proto [11:26:10]json parsed OK: [11:26:10]protocol is kg_v1.0 [11:26:10]action value=print_text [11:26:10]process_action print_text [11:26:10]cmd_print_text [11:26:10]ExternCall_PrintAddStr [11:26:10]wPrintStart [11:26:10]Write to MH i2c: 01 00 00 02 2D 2F [11:26:10]Write i2c OK [11:26:10]MH_I2C_Read... [11:26:10]Read from MH i2c: 01 [11:26:10]MH_I2C_Read... [11:26:10]Read from MH i2c: 01 07 00 [11:26:10]MH_I2C_Read... [11:26:10]Read from MH i2c: 01 07 00 02 2D 00 00 00 00 00 FF 0F 44 [11:26:10]RasterBufferAndPrint [11:26:10]line *****ТОВАРНЫЙ ЧЕК***** [11:26:10]line АЗС 106 [11:26:10]line Партнер нефть [11:26:10]line 02508201610067 [11:26:10]line Кассир : Табалдиева М. [11:26:10]line Счет N : (1)190882 [11:26:10]line 19.04.2024 11:07 [11:26:10]line ПРОДАЖА [11:26:10]line ТРК (МРК, ГНК): 61 [11:26:10]line Вид ГСМ : 2710194210 [11:26:10]line ДТ-К-5 [11:26:10]line 20.000 x 72.90 [11:26:10]line ИТОГ: 1458.00 [11:26:10]line Тип оплаты: Талоны: Топливная Карта [11:26:10]line 68975 [11:26:10]line ______________________ [11:26:10]line (подпись) [11:26:10]written 0, free lines is 4095 [11:26:11]Write to MH i2c: 01 00 00 16 2D 43 [11:26:11]Write i2c OK [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: 01 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: 01 07 00 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: 01 07 00 16 2D 00 00 00 00 00 0F 0E 67 [11:26:11]RasterBufferAndPrint [11:26:11]line [11:26:11]line [11:26:11]line [11:26:11]line [11:26:11]line [11:26:11]written 0, free lines is 3600 [11:26:11]MH_Cut [11:26:11]Write to MH i2c: D1 01 00 1D 2D 01 1C [11:26:11]Write i2c OK [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: D1 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: D1 01 00 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: D1 01 00 1D 2D 00 1B [11:26:11]Write to MH i2c: 01 00 00 1E 2D 4B [11:26:11]Write i2c OK [11:26:11]MH_I2C_Read... [11:26:11]*** Cut start [11:26:11]*** Partial cut [11:26:11]*** CUTSNS_PIN = 1 [11:26:11]*** CUTSNS_PIN = 0 [11:26:12]*** Brake cut motor [11:26:12]Read from MH i2c: 01 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: 01 07 00 [11:26:12]MH_I2C_Read... [11:26:12]*** Stop cut motor [11:26:12]*** Cut end [11:26:12]Read from MH i2c: 01 07 00 1E 2D 00 00 00 00 00 FF 0F 60 [11:26:12]process_action print_text done [11:26:12]requested_data is exist [11:26:12]produce_requested_data [11:26:12]requested_item fm.sn is exist - process it [11:26:12]wFMCommunicate request_size=4 [11:26:12]MH_SAM_APDU [11:26:12]CAPDU: 80 11 00 00 [11:26:12]Write to MH i2c: E2 08 00 1F 2D 80 11 00 00 00 00 00 00 C6 [11:26:12]Write i2c OK [11:26:12]MH_I2C_Read... [11:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:12]Read from MH i2c: E2 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: E2 17 00 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: E2 17 00 1F 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 19 [11:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:26:12]wFMCommunicate OK [11:26:12]requested_item fd.num is exist - process it [11:26:12]SAM_PROTO_GetFieldsCounters [11:26:12]wFMCommunicate request_size=4 [11:26:12]MH_SAM_APDU [11:26:12]CAPDU: 80 13 00 00 [11:26:12]Write to MH i2c: E2 08 00 20 2D 80 13 00 00 00 00 00 00 C9 [11:26:12]Write i2c OK [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: E2 [11:26:12]MH_I2C_Read... [11:26:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:12]Read from MH i2c: E2 62 00 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: E2 62 00 20 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 83 2A 01 00 0E 04 04 00 72 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 80 [11:26: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 83 2A 01 00 0E 04 04 00 72 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 [11:26:12]wFMCommunicate OK [11:26:12]SAM_PROTO_GetFieldsCounters done [11:26:12]requested_item shift.num is exist - process it [11:26:12]requested_item shift.opened is exist - process it [11:26:12]req_shift_opened [11:26:12]FM_GetShiftState [11:26:12]SAM_PROTO_GetShiftState [11:26:12]wFMCommunicate request_size=4 [11:26:12]MH_SAM_APDU [11:26:12]CAPDU: 80 13 01 00 [11:26:12]Write to MH i2c: E2 08 00 21 2D 80 13 01 00 00 00 00 00 CB [11:26:12]Write i2c OK [11:26:12]MH_I2C_Read... [11:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:12]Read from MH i2c: E2 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: E2 0E 00 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: E2 0E 00 21 2D 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 B0 [11:26:12]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:26:12]wFMCommunicate OK [11:26:12]SAM_PROTO_GetShiftState done [11:26:12]FM_GetShiftState done [11:26:12]req_shift_opened done [11:26:12]requested_item shift.open_date is exist - process it [11:26:12]req_shift_open_date [11:26:12]req_shift_open_date done [11:26:12]produce_requested_data done [11:26:12]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76419,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [11:26:12]process_action_free print_text [11:26:12]json_value_free [11:26:12]json_value_free done [11:26:12]process_json_proto returns [11:26:12]Send response to host [11:26:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76419,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [11:26:12]free response buf [11:26:12]execute_script done [11:26:12]execute_script returns [11:26:12]free content buf [11:26:12]Sock 7.Close socket [11:26:12]Sock 7.Thread stoped [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:26:59]accept exits with 9 [11:26:59]New connection [11:26:59]New thread 3066486116 created [11:26:59]Thread 3066629476 joined [11:26:59]Waiting for new connection... [11:26:59] Sock 9.Parse request [11:26:59]Sock 9.Check first char [11:26:59]Sock 9.First char is OK [11:26:59]request: POST /json_proto HTTP/1.0 [11:26:59]Method: POST [11:26:59]URL: /json_proto [11:26:59]Method is POST - this is cgi request [11:26:59]url: /json_proto [11:26:59]query_string will be loaded in cgi processing [11:26:59]execute_cgi json_proto POST (null) [11:26:59]execute_cgi path=json_proto method=POST [11:26:59]POST find Content-Length [11:26:59]Host: 172.17.62.5:8080 [11:26:59]Content-Length: 819 [11:26:59]Content-Type: application/json [11:26:59] [11:26:59]POST finish read [11:26:59]Found Content-Length = 819 [11:26:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190883", "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" : 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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:59]execute_script... [11: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 : (1)190883", "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" : 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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:59]POST & json_proto [11:26:59]process_json_proto [11:26:59]json parsed OK: [11:26:59]protocol is kg_v1.0 [11:26:59]action value=close_receipt [11:26:59]process_action close_receipt [11:26:59]cmd_close_receipt [11:26:59]MH_GetDate [11:26:59]Write to MH i2c: F0 00 00 22 2D 3E [11:26:59]Write i2c OK [11:26:59]MH_I2C_Read... [11:26:59]Read from MH i2c: F0 [11:26:59]MH_I2C_Read... [11:26:59]Read from MH i2c: F0 09 00 [11:26:59]MH_I2C_Read... [11:26:59]Read from MH i2c: F0 09 00 22 2D 00 08 55 22 66 F4 E9 65 64 D2 [11:26:59]GetLastDocTimeStamp 1713525660 [11:26:59]current date 1713526024 [11:26:59]FM_GetShiftState [11:26:59]SAM_PROTO_GetShiftState [11:26:59]wFMCommunicate request_size=4 [11:26:59]MH_SAM_APDU [11:26:59]CAPDU: 80 13 01 00 [11:26:59]Write to MH i2c: E2 08 00 23 2D 80 13 01 00 00 00 00 00 CD [11:26:59]Write i2c OK [11:26:59]MH_I2C_Read... [11:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:59]Read from MH i2c: E2 [11:26:59]MH_I2C_Read... [11:26:59]Read from MH i2c: E2 0E 00 [11:26:59]MH_I2C_Read... [11:26:59]Read from MH i2c: E2 0E 00 23 2D 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 B2 [11:26:59]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:26:59]wFMCommunicate OK [11:26:59]SAM_PROTO_GetShiftState done [11:26:59]FM_GetShiftState done [11:26:59]opened in 1713486233 [11:26:59]opened+sec_in_day 1713572633 [11:26:59]quantity*price = 150028 [11:26:59]sum+1 = 150029 [11:26:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.28 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.28 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 40 19.04.2024 11:27 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76420 ФПД: 57967115901470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T112704&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76420&fm=57967115901470&tin=02508201610067®Number=0000000000091573&sum=150028 [11:27:00]StoreToDocumentArchive [11:27:00]shift 370 fd 76420 [11:27:00]save to /storage/0370/doc_00076420 [11:27:00]save last doc name /storage/0370/doc_00076420 to /storage/kkm_last_doc_name [11:27:00]save OK [11:27:00]Clear old archive folders... [11:27:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:00]tlvbuf is 00913750 [11:27:00]SAM_PROTO_ClearQueue [11:27:00]wFMCommunicate request_size=4 [11:27:00]MH_SAM_APDU [11:27:00]CAPDU: 80 09 00 00 [11:27:00]Write to MH i2c: E2 08 00 30 2D 80 09 00 00 00 00 00 00 CF [11:27:00]Write i2c OK [11:27:00]MH_I2C_Read... [11:27:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:00]Read from MH i2c: E2 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 03 00 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 03 00 30 2D 00 90 00 D1 [11:27:00]RAPDU: 90 00 [11:27:00]wFMCommunicate OK [11:27:00]SAM_PROTO_ClearQueue done [11:27:00]KKMCreateOFDPacket [11:27:00]OFDProtocolAddRootSTLVToBuf [11:27:00]FM_MakeSignedData [11:27:00]FM_MakeSignedData [11:27:00]SAM_PROTO_SignData [11:27:00]wFMCommunicate request_size=4 [11:27:00]MH_SAM_APDU [11:27:00]CAPDU: 80 0D 01 02 [11:27:00]Write to MH i2c: E2 08 00 31 2D 80 0D 01 02 00 00 00 00 D7 [11:27:00]Write i2c OK [11:27:00]MH_I2C_Read... [11:27:00]OFD Sender: No OFD packet to send [11:27:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:00]Read from MH i2c: E2 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 03 00 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 03 00 31 2D 00 90 00 D2 [11:27:00]RAPDU: 90 00 [11:27:00]wFMCommunicate OK [11:27:00]wFMCommunicate request_size=255 [11:27:00]MH_SAM_APDU [11:27: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 28 00 00 00 F4 03 04 00 08 55 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 84 2A 01 00 35 04 06 00 34 [11:27:00]Write to MH i2c: E2 02 01 32 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 28 00 00 00 F4 03 04 00 08 55 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 84 2A 01 00 35 04 06 00 34 00 00 49 [11:27:00]Write i2c OK [11:27:00]MH_I2C_Read... [11:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:00]Read from MH i2c: E2 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 03 00 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 03 00 32 2D 00 90 00 D3 [11:27:00]RAPDU: 90 00 [11:27:00]wFMCommunicate OK [11:27:00]wFMCommunicate request_size=10 [11:27:00]MH_SAM_APDU [11:27:00]CAPDU: 80 0D 02 02 05 B8 85 5A 1A 1E [11:27:00]Write to MH i2c: E2 0D 00 33 2D 80 0D 02 02 05 00 B8 85 5A 1A 1E 00 00 B3 [11:27:00]Write i2c OK [11:27:00]MH_I2C_Read... [11:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:00]Read from MH i2c: E2 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 03 00 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 03 00 33 2D 00 90 00 D4 [11:27:00]RAPDU: 90 00 [11:27:00]wFMCommunicate OK [11:27:00]wFMCommunicate request_size=4 [11:27:00]MH_SAM_APDU [11:27:00]CAPDU: 80 0D 03 02 [11:27:00]Write to MH i2c: E2 08 00 34 2D 80 0D 03 02 00 00 00 00 DC [11:27:00]Write i2c OK [11:27:00]MH_I2C_Read... [11:27:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:00]Read from MH i2c: E2 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 0B 00 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 0B 00 34 2D 00 B0 40 6C 05 FF DD 7A 55 90 00 E9 [11:27:00]RAPDU: B0 40 6C 05 FF DD 7A 55 90 00 [11:27:00]wFMCommunicate OK [11:27:00]SAM_PROTO_SignData done [11:27:00]FM_MakeSignedData done [11:27:00]CreateOFDProtocolMessage [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 35 2D 80 11 00 00 00 00 00 00 DC [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 35 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2F [11:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:27:00]wFMCommunicate OK [11:27:00]CreateOFDProtocolMessage done [11:27:00]OFDSenderStorePacket 76420 [11:27:00]StoreOFDPacket docnum=76420 [11:27:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 59 E8 07 01 2A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 28 00 00 00 F4 03 04 00 08 55 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 84 2A 01 00 35 04 06 00 34 B8 85 5A 1A 1E B0 40 6C 05 FF DD 7A 55 [11:27:00]CheckFolder [11:27:00]dirname=/storage/ofd_packets [11:27:00]CheckFolder done [11:27:00]ProducePacketName [11:27:00]name=ofd_packets/00076420 [11:27:00]NVStorageSaveData ofd_packets/00076420 [11:27:00]File name is /storage/ofd_packets/00076420 [11:27:00]Write 301 bytes [11:27:00]NVStorageSaveData done [11:27:00]OFDSenderStorePacket done [11:27:00]KKMCreateOFDPacket done [11:27:00]NVStorageSaveData kkm_last_timestamp [11:27:00]File name is /storage/kkm_last_timestamp [11:27:00]Write 4 bytes [11:27:00]NVStorageSaveData done [11:27:00]ExternCall_PrintAddStr [11:27:00]wPrintStart [11:27:00]Write to MH i2c: 01 00 00 36 2D 63 [11:27:00]Write i2c OK [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: 01 [11:27:00]MH_I2C_Read... [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 36 2D 00 00 00 00 00 FF 0F 78 [11:27:00]RasterBufferAndPrint [11:27:00]line Счет N : (1)190883 [11:27:00]line ИНН: 02508201610067 [11:27:00]line Контрольно-Кассовый Чек [11:27:00]line ПРОДАЖА [11:27:00]line ТРК (МРК, ГНК) : 42 [11:27:00]line Товар: 2710124500 [11:27:00]line Аи-95-К-5 [11:27:00]line 20.580 * 72.90 [11:27:00]line = 1500.28 [11:27:00]line НДС 12% НСП 1% [11:27:00]line > о реализуемом товаре [11:27:00]line ИТОГО: 1500.28 [11:27:00]line НСП 1% : 13.28 [11:27:00]line НДС 12% : 159.32 [11:27:00]line Наличными: 0.00 [11:27:00]line Безнал.: 1500.28 [11:27:00]line Место: АЗС № 106 "Партнер Нефть" [11:27:00]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:27:00]line СНО: Общий режим [11:27:00]line Чек 40 19.04.2024 11:27 [11:27:00]line Смена: 370 ФФД: 1.0 [11:27:00]line ЗНМ: 0300000141 [11:27:00]line РНМ: 0000000000091573 [11:27:00]line Версия ККМ: 001 [11:27:00]line Платежная система: Бакай Банк [11:27:00]line ФМ: 0000000000874652 [11:27:00]line ФД: 76420 [11:27:00]line ФПД: 57967115901470 [11:27:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T112704&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76420&fm=57967115901470&tin=02508201610067®Number=0000000000091573&sum=150028 [11:27:01]written 0, free lines is 4095 [11:27:01]OFD Sender: Processing packet 76420 [packets to send 128, broken 127] [11:27:01]ProducePacketName [11:27:01]name=ofd_packets/00076420 [11:27:01]OFD Sender: To server: pG, [11:27:01]CommunicateWithHost lk.salyk.kg:30040 [11:27:01]ConnectInit lk.salyk.kg [11:27:01]Connected sock=10 [11:27:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 59 E8 07 01 2A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 28 00 00 00 F4 03 04 00 08 55 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 84 2A 01 00 35 04 06 00 34 B8 85 5A 1A 1E B0 40 6C 05 FF DD 7A 55 [11:27:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 58 CD 47 00 8E 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 34 36 35 32 10 04 04 00 84 2A 01 00 F4 03 04 00 94 FC 21 66 B6 04 01 00 00 75 4D 0E 10 19 2C 1A 35 [11:27:01]CommunicateWithHost err = 0 [11:27:01]CheckOFDResponse [11:27:01]1017 (14) - 77093643461234 [11:27:01]1041 (16) - 0000000000874652 [11:27:01]1040 (4) - 76420 [11:27:01]1012 (4) - 19.04.2024 05:09 [11:27:01]1206 (1) - 0 [11:27:01]OFD Sender: Remove packet 76420 [11:27:01]ProducePacketName [11:27:01]name=ofd_packets/00076420 [11:27:01]NVStorageDeleteData [11:27:01]Write to MH i2c: 01 00 00 5F 2D 8C [11:27:01]Write i2c OK [11:27:01]MH_I2C_Read... [11:27:01]Read from MH i2c: 01 [11:27:01]MH_I2C_Read... [11:27:01]Read from MH i2c: 01 07 00 [11:27:01]MH_I2C_Read... [11:27:01]Read from MH i2c: 01 07 00 5F 2D 00 00 00 00 00 F4 0C 93 [11:27:01]RasterBufferAndPrint [11:27:01]line [11:27:01]line [11:27:01]line [11:27:01]line [11:27:01]line [11:27:01]written 0, free lines is 3324 [11:27:01]MH_Cut [11:27:01]Write to MH i2c: D1 01 00 66 2D 01 65 [11:27:01]Write i2c OK [11:27:01]MH_I2C_Read... [11:27:01]Read from MH i2c: D1 [11:27:01]MH_I2C_Read... [11:27:01]Read from MH i2c: D1 01 00 [11:27:01]MH_I2C_Read... [11:27:01]Read from MH i2c: D1 01 00 66 2D 00 64 [11:27:01]Write to MH i2c: 01 00 00 67 2D 94 [11:27:01]Write i2c OK [11:27:01]MH_I2C_Read... [11:27:02]OFD Sender: No OFD packet to send [11:27:02]*** Cut start [11:27:02]*** Partial cut [11:27:02]*** CUTSNS_PIN = 1 [11:27:02]*** CUTSNS_PIN = 0 [11:27:02]*** Brake cut motor [11:27:03]Read from MH i2c: 01 [11:27:03]MH_I2C_Read... [11:27:03]*** Stop cut motor [11:27:03]*** Cut end [11:27:03]Read from MH i2c: 01 07 00 [11:27:03]MH_I2C_Read... [11:27:03]Read from MH i2c: 01 07 00 67 2D 00 00 00 00 00 FF 0F A9 [11:27:03]process_action close_receipt done [11:27:03]requested_data is exist [11:27:03]produce_requested_data [11:27:03]requested_item fm.sn is exist - process it [11:27:03]wFMCommunicate request_size=4 [11:27:03]MH_SAM_APDU [11:27:03]CAPDU: 80 11 00 00 [11:27:03]Write to MH i2c: E2 08 00 68 2D 80 11 00 00 00 00 00 00 0F [11:27:03]Write i2c OK [11:27:03]MH_I2C_Read... [11:27:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:03]Read from MH i2c: E2 [11:27:03]MH_I2C_Read... [11:27:03]Read from MH i2c: E2 17 00 [11:27:03]MH_I2C_Read... [11:27:03]Read from MH i2c: E2 17 00 68 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 62 [11:27:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:27:03]wFMCommunicate OK [11:27:03]requested_item fd.num is exist - process it [11:27:03]SAM_PROTO_GetFieldsCounters [11:27:03]wFMCommunicate request_size=4 [11:27:03]MH_SAM_APDU [11:27:03]CAPDU: 80 13 00 00 [11:27:03]Write to MH i2c: E2 08 00 69 2D 80 13 00 00 00 00 00 00 12 [11:27:03]Write i2c OK [11:27:03]MH_I2C_Read... [11:27:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:03]Read from MH i2c: E2 [11:27:03]MH_I2C_Read... [11:27:03]Read from MH i2c: E2 62 00 [11:27:03]MH_I2C_Read... [11:27:03]Read from MH i2c: E2 62 00 69 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 84 2A 01 00 0E 04 04 00 72 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 CD [11:27:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 84 2A 01 00 0E 04 04 00 72 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 [11:27:03]wFMCommunicate OK [11:27:03]SAM_PROTO_GetFieldsCounters done [11:27:03]requested_item shift.num is exist - process it [11:27:03]requested_item shift.opened is exist - process it [11:27:03]req_shift_opened [11:27:03]FM_GetShiftState [11:27:03]SAM_PROTO_GetShiftState [11:27:03]wFMCommunicate request_size=4 [11:27:03]MH_SAM_APDU [11:27:03]CAPDU: 80 13 01 00 [11:27:03]Write to MH i2c: E2 08 00 6A 2D 80 13 01 00 00 00 00 00 14 [11:27:03]Write i2c OK [11:27:03]MH_I2C_Read... [11:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:03]Read from MH i2c: E2 [11:27:03]MH_I2C_Read... [11:27:03]Read from MH i2c: E2 0E 00 [11:27:03]MH_I2C_Read... [11:27:03]Read from MH i2c: E2 0E 00 6A 2D 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 F9 [11:27:03]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:27:03]wFMCommunicate OK [11:27:03]SAM_PROTO_GetShiftState done [11:27:03]FM_GetShiftState done [11:27:03]req_shift_opened done [11:27:03]requested_item shift.open_date is exist - process it [11:27:03]req_shift_open_date [11:27:03]req_shift_open_date done [11:27:03]produce_requested_data done [11:27:03]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76420,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [11:27:03]process_action_free close_receipt [11:27:03]json_value_free [11:27:03]json_value_free done [11:27:03]process_json_proto returns [11:27:03]Send response to host [11:27:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76420,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [11:27:03]free response buf [11:27:03]execute_script done [11:27:03]execute_script returns [11:27:03]free content buf [11:27:03]Sock 9.Close socket [11:27:03]Sock 9.Thread stoped [11:27:03]accept exits with 7 [11:27:03]New connection [11:27:03]New thread 3066629476 created [11:27:03]Thread 3066486116 joined [11:27:03]Waiting for new connection... [11:27:03] Sock 7.Parse request [11:27:03]Sock 7.Check first char [11:27:03]Sock 7.First char is OK [11:27:03]request: POST /json_proto HTTP/1.0 [11:27:03]Method: POST [11:27:03]URL: /json_proto [11:27:03]Method is POST - this is cgi request [11:27:03]url: /json_proto [11:27:03]query_string will be loaded in cgi processing [11:27:03]execute_cgi json_proto POST (null) [11:27:03]execute_cgi path=json_proto method=POST [11:27:03]POST find Content-Length [11:27:03]Host: 172.17.62.5:8080 [11:27:03]Content-Length: 677 [11:27:03]Content-Type: application/json [11:27:03] [11:27:03]POST finish read [11:27:03]Found Content-Length = 677 [11:27:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190884", "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" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:27:03]execute_script... [11:27: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)190884", "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" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:27:03]POST & json_proto [11:27:03]process_json_proto [11:27:03]json parsed OK: [11:27:03]protocol is kg_v1.0 [11:27:03]action value=close_receipt [11:27:03]process_action close_receipt [11:27:03]cmd_close_receipt [11:27:03]MH_GetDate [11:27:03]Write to MH i2c: F0 00 00 6B 2D 87 [11:27:03]Write i2c OK [11:27:03]MH_I2C_Read... [11:27:03]Read from MH i2c: F0 [11:27:03]MH_I2C_Read... [11:27:03]Read from MH i2c: F0 09 00 [11:27:03]MH_I2C_Read... [11:27:03]Read from MH i2c: F0 09 00 6B 2D 00 0C 55 22 66 F4 E9 65 64 1F [11:27:03]GetLastDocTimeStamp 1713526024 [11:27:03]current date 1713526028 [11:27:03]FM_GetShiftState [11:27:03]SAM_PROTO_GetShiftState [11:27:03]wFMCommunicate request_size=4 [11:27:03]MH_SAM_APDU [11:27:03]CAPDU: 80 13 01 00 [11:27:03]Write to MH i2c: E2 08 00 6C 2D 80 13 01 00 00 00 00 00 16 [11:27:03]Write i2c OK [11:27:03]MH_I2C_Read... [11:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:03]Read from MH i2c: E2 [11:27:03]MH_I2C_Read... [11:27:03]Read from MH i2c: E2 0E 00 [11:27:03]MH_I2C_Read... [11:27:03]Read from MH i2c: E2 0E 00 6C 2D 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 FB [11:27:03]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:27:03]wFMCommunicate OK [11:27:03]SAM_PROTO_GetShiftState done [11:27:03]FM_GetShiftState done [11:27:03]opened in 1713486233 [11:27:03]opened+sec_in_day 1713572633 [11:27:03]quantity*price = 50038 [11:27:03]sum+1 = 50040 [11:27:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 41 19.04.2024 11:27 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76421 ФПД: 189267752485152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T112708&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76421&fm=189267752485152&tin=02508201610067®Number=0000000000091573&sum=50000 [11:27:05]StoreToDocumentArchive [11:27:05]shift 370 fd 76421 [11:27:05]save to /storage/0370/doc_00076421 [11:27:05]save last doc name /storage/0370/doc_00076421 to /storage/kkm_last_doc_name [11:27:05]save OK [11:27:05]Clear old archive folders... [11:27:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:05]tlvbuf is B6F06850 [11:27:05]SAM_PROTO_ClearQueue [11:27:05]wFMCommunicate request_size=4 [11:27:05]MH_SAM_APDU [11:27:05]CAPDU: 80 09 00 00 [11:27:05]Write to MH i2c: E2 08 00 79 2D 80 09 00 00 00 00 00 00 18 [11:27:05]Write i2c OK [11:27:05]MH_I2C_Read... [11:27:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:05]Read from MH i2c: E2 [11:27:05]MH_I2C_Read... [11:27:05]Read from MH i2c: E2 03 00 [11:27:05]MH_I2C_Read... [11:27:05]Read from MH i2c: E2 03 00 79 2D 00 90 00 1A [11:27:05]RAPDU: 90 00 [11:27:05]wFMCommunicate OK [11:27:05]SAM_PROTO_ClearQueue done [11:27:05]KKMCreateOFDPacket [11:27:05]OFDProtocolAddRootSTLVToBuf [11:27:05]FM_MakeSignedData [11:27:05]FM_MakeSignedData [11:27:05]SAM_PROTO_SignData [11:27:05]wFMCommunicate request_size=4 [11:27:05]MH_SAM_APDU [11:27:05]CAPDU: 80 0D 01 02 [11:27:05]Write to MH i2c: E2 08 00 7A 2D 80 0D 01 02 00 00 00 00 20 [11:27:05]Write i2c OK [11:27:05]MH_I2C_Read... [11:27:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:05]Read from MH i2c: E2 [11:27:05]MH_I2C_Read... [11:27:05]Read from MH i2c: E2 03 00 [11:27:05]MH_I2C_Read... [11:27:05]Read from MH i2c: E2 03 00 7A 2D 00 90 00 1B [11:27:05]RAPDU: 90 00 [11:27:05]wFMCommunicate OK [11:27:05]wFMCommunicate request_size=255 [11:27:05]MH_SAM_APDU [11:27: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0C 55 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 85 2A 01 00 35 04 06 00 AC [11:27:05]Write to MH i2c: E2 02 01 7B 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0C 55 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 85 2A 01 00 35 04 06 00 AC 00 00 B6 [11:27:05]Write i2c OK [11:27:05]MH_I2C_Read... [11:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:05]Read from MH i2c: E2 [11:27:05]MH_I2C_Read... [11:27:05]Read from MH i2c: E2 03 00 [11:27:05]MH_I2C_Read... [11:27:05]Read from MH i2c: E2 03 00 7B 2D 00 90 00 1C [11:27:05]RAPDU: 90 00 [11:27:05]wFMCommunicate OK [11:27:05]wFMCommunicate request_size=10 [11:27:05]MH_SAM_APDU [11:27:05]CAPDU: 80 0D 02 02 05 23 55 27 81 20 [11:27:05]Write to MH i2c: E2 0D 00 7C 2D 80 0D 02 02 05 00 23 55 27 81 20 00 00 6D [11:27:05]Write i2c OK [11:27:05]MH_I2C_Read... [11:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:05]Read from MH i2c: E2 [11:27:05]MH_I2C_Read... [11:27:05]Read from MH i2c: E2 03 00 [11:27:05]MH_I2C_Read... [11:27:05]Read from MH i2c: E2 03 00 7C 2D 00 90 00 1D [11:27:05]RAPDU: 90 00 [11:27:05]wFMCommunicate OK [11:27:05]wFMCommunicate request_size=4 [11:27:05]MH_SAM_APDU [11:27:05]CAPDU: 80 0D 03 02 [11:27:05]Write to MH i2c: E2 08 00 7D 2D 80 0D 03 02 00 00 00 00 25 [11:27:05]Write i2c OK [11:27:05]MH_I2C_Read... [11:27:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:05]Read from MH i2c: E2 [11:27:05]MH_I2C_Read... [11:27:05]Read from MH i2c: E2 0B 00 [11:27:05]MH_I2C_Read... [11:27:05]Read from MH i2c: E2 0B 00 7D 2D 00 6D 75 C7 1A 2B D3 0E 70 90 00 65 [11:27:05]RAPDU: 6D 75 C7 1A 2B D3 0E 70 90 00 [11:27:05]wFMCommunicate OK [11:27:05]SAM_PROTO_SignData done [11:27:05]FM_MakeSignedData done [11:27:05]CreateOFDProtocolMessage [11:27:05]wFMCommunicate request_size=4 [11:27:05]MH_SAM_APDU [11:27:05]CAPDU: 80 11 00 00 [11:27:05]Write to MH i2c: E2 08 00 7E 2D 80 11 00 00 00 00 00 00 25 [11:27:05]Write i2c OK [11:27:05]MH_I2C_Read... [11:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:05]Read from MH i2c: E2 [11:27:05]MH_I2C_Read... [11:27:05]Read from MH i2c: E2 17 00 [11:27:05]MH_I2C_Read... [11:27:05]Read from MH i2c: E2 17 00 7E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 78 [11:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:27:05]wFMCommunicate OK [11:27:05]CreateOFDProtocolMessage done [11:27:05]OFDSenderStorePacket 76421 [11:27:05]StoreOFDPacket docnum=76421 [11:27:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 7B AA 07 01 62 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0C 55 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 85 2A 01 00 35 04 06 00 AC 23 55 27 81 20 6D 75 C7 1A 2B D3 0E 70 [11:27:05]CheckFolder [11:27:05]dirname=/storage/ofd_packets [11:27:05]CheckFolder done [11:27:05]ProducePacketName [11:27:05]name=ofd_packets/00076421 [11:27:05]NVStorageSaveData ofd_packets/00076421 [11:27:05]File name is /storage/ofd_packets/00076421 [11:27:05]Write 301 bytes [11:27:05]NVStorageSaveData done [11:27:05]OFDSenderStorePacket done [11:27:05]KKMCreateOFDPacket done [11:27:05]NVStorageSaveData kkm_last_timestamp [11:27:05]File name is /storage/kkm_last_timestamp [11:27:05]Write 4 bytes [11:27:05]NVStorageSaveData done [11:27:05]ExternCall_PrintAddStr [11:27:05]wPrintStart [11:27:05]Write to MH i2c: 01 00 00 7F 2D AC [11:27:05]Write i2c OK [11:27:05]MH_I2C_Read... [11:27:05]Read from MH i2c: 01 [11:27:05]MH_I2C_Read... [11:27:05]Read from MH i2c: 01 07 00 [11:27:05]MH_I2C_Read... [11:27:05]Read from MH i2c: 01 07 00 7F 2D 00 00 00 00 00 FF 0F C1 [11:27:05]RasterBufferAndPrint [11:27:05]line Счет N : (1)190884 [11:27:05]line ИНН: 02508201610067 [11:27:05]line Контрольно-Кассовый Чек [11:27:05]line ПРОДАЖА [11:27:05]line ТРК (МРК, ГНК) : 22 [11:27:05]line Товар: 2710124130 [11:27:05]line Аи-92-К-5 [11:27:05]line 7.770 * 64.40 [11:27:05]line = 500.39 [11:27:05]line НДС 12% НСП 1% [11:27:05]line > о реализуемом товаре [11:27:05]line ОКРУГЛЕНИЕ: -0.39 [11:27:05]line ИТОГО: 500.00 [11:27:05]line Внесено: 500.00 [11:27:05]line СДАЧА: 0.00 [11:27:05]line НСП 1% : 4.43 [11:27:05]line НДС 12% : 53.14 [11:27:05]line Наличными: 500.00 [11:27:05]line Безнал.: 0.00 [11:27:05]line Место: АЗС № 106 "Партнер Нефть" [11:27:05]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:27:05]line СНО: Общий режим [11:27:05]line Чек 41 19.04.2024 11:27 [11:27:05]line Смена: 370 ФФД: 1.0 [11:27:05]line ЗНМ: 0300000141 [11:27:05]line РНМ: 0000000000091573 [11:27:05]line Версия ККМ: 001 [11:27:05]line ФМ: 0000000000874652 [11:27:05]line ФД: 76421 [11:27:05]line ФПД: 189267752485152 [11:27:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T112708&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76421&fm=189267752485152&tin=02508201610067®Number=0000000000091573&sum=50000 [11:27:06]OFD Sender: Processing packet 76421 [packets to send 128, broken 127] [11:27:06]ProducePacketName [11:27:06]name=ofd_packets/00076421 [11:27:06]OFD Sender: To server: pG, [11:27:06]CommunicateWithHost lk.salyk.kg:30040 [11:27:06]ConnectInit lk.salyk.kg [11:27:06]written 0, free lines is 4095 [11:27:06]Connected sock=10 [11:27:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 7B AA 07 01 62 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0C 55 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 85 2A 01 00 35 04 06 00 AC 23 55 27 81 20 6D 75 C7 1A 2B D3 0E 70 [11:27:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 3B 02 47 00 AD 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 34 36 35 32 10 04 04 00 85 2A 01 00 F4 03 04 00 98 FC 21 66 B6 04 01 00 00 E3 2D 77 58 C1 8B 92 B0 [11:27:06]CommunicateWithHost err = 0 [11:27:06]CheckOFDResponse [11:27:06]1017 (14) - 77093643461234 [11:27:06]1041 (16) - 0000000000874652 [11:27:06]1040 (4) - 76421 [11:27:06]1012 (4) - 19.04.2024 05:09 [11:27:06]1206 (1) - 0 [11:27:06]OFD Sender: Remove packet 76421 [11:27:06]ProducePacketName [11:27:06]name=ofd_packets/00076421 [11:27:06]NVStorageDeleteData [11:27:06]Write to MH i2c: 01 00 00 A9 2D D6 [11:27:06]Write i2c OK [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: 01 [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: 01 07 00 [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: 01 07 00 A9 2D 00 00 00 00 00 FA 0C E3 [11:27:06]RasterBufferAndPrint [11:27:06]line [11:27:06]line [11:27:06]line [11:27:06]line [11:27:06]line [11:27:06]written 0, free lines is 3337 [11:27:06]MH_Cut [11:27:06]Write to MH i2c: D1 01 00 B0 2D 01 AF [11:27:06]Write i2c OK [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: D1 [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: D1 01 00 [11:27:06]MH_I2C_Read... [11:27:06]Read from MH i2c: D1 01 00 B0 2D 00 AE [11:27:06]Write to MH i2c: 01 00 00 B1 2D DE [11:27:06]Write i2c OK [11:27:06]MH_I2C_Read... [11:27:07]OFD Sender: No OFD packet to send [11:27:07]*** Cut start [11:27:07]*** Partial cut [11:27:07]*** CUTSNS_PIN = 1 [11:27:07]*** CUTSNS_PIN = 0 [11:27:07]*** Brake cut motor [11:27:07]Read from MH i2c: 01 [11:27:07]MH_I2C_Read... [11:27:07]*** Stop cut motor [11:27:08]*** Cut end [11:27:08]Read from MH i2c: 01 07 00 [11:27:08]MH_I2C_Read... [11:27:08]Read from MH i2c: 01 07 00 B1 2D 00 00 00 00 00 FF 0F F3 [11:27:08]process_action close_receipt done [11:27:08]requested_data is exist [11:27:08]produce_requested_data [11:27:08]requested_item fm.sn is exist - process it [11:27:08]wFMCommunicate request_size=4 [11:27:08]MH_SAM_APDU [11:27:08]CAPDU: 80 11 00 00 [11:27:08]Write to MH i2c: E2 08 00 B2 2D 80 11 00 00 00 00 00 00 59 [11:27:08]Write i2c OK [11:27:08]MH_I2C_Read... [11:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:08]Read from MH i2c: E2 [11:27:08]MH_I2C_Read... [11:27:08]Read from MH i2c: E2 17 00 [11:27:08]MH_I2C_Read... [11:27:08]Read from MH i2c: E2 17 00 B2 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AC [11:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:27:08]wFMCommunicate OK [11:27:08]requested_item fd.num is exist - process it [11:27:08]SAM_PROTO_GetFieldsCounters [11:27:08]wFMCommunicate request_size=4 [11:27:08]MH_SAM_APDU [11:27:08]CAPDU: 80 13 00 00 [11:27:08]Write to MH i2c: E2 08 00 B3 2D 80 13 00 00 00 00 00 00 5C [11:27:08]Write i2c OK [11:27:08]MH_I2C_Read... [11:27:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:08]Read from MH i2c: E2 [11:27:08]MH_I2C_Read... [11:27:08]Read from MH i2c: E2 62 00 [11:27:08]MH_I2C_Read... [11:27:08]Read from MH i2c: E2 62 00 B3 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 85 2A 01 00 0E 04 04 00 72 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 1B [11:27: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 85 2A 01 00 0E 04 04 00 72 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 [11:27:08]wFMCommunicate OK [11:27:08]SAM_PROTO_GetFieldsCounters done [11:27:08]requested_item shift.num is exist - process it [11:27:08]requested_item shift.opened is exist - process it [11:27:08]req_shift_opened [11:27:08]FM_GetShiftState [11:27:08]SAM_PROTO_GetShiftState [11:27:08]wFMCommunicate request_size=4 [11:27:08]MH_SAM_APDU [11:27:08]CAPDU: 80 13 01 00 [11:27:08]Write to MH i2c: E2 08 00 B4 2D 80 13 01 00 00 00 00 00 5E [11:27:08]Write i2c OK [11:27:08]MH_I2C_Read... [11:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:08]Read from MH i2c: E2 [11:27:08]MH_I2C_Read... [11:27:08]Read from MH i2c: E2 0E 00 [11:27:08]MH_I2C_Read... [11:27:08]Read from MH i2c: E2 0E 00 B4 2D 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 43 [11:27:08]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:27:08]wFMCommunicate OK [11:27:08]SAM_PROTO_GetShiftState done [11:27:08]FM_GetShiftState done [11:27:08]req_shift_opened done [11:27:08]requested_item shift.open_date is exist - process it [11:27:08]req_shift_open_date [11:27:08]req_shift_open_date done [11:27:08]produce_requested_data done [11:27:08]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76421,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [11:27:08]process_action_free close_receipt [11:27:08]json_value_free [11:27:08]json_value_free done [11:27:08]process_json_proto returns [11:27:08]Send response to host [11:27:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76421,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [11:27:08]free response buf [11:27:08]execute_script done [11:27:08]execute_script returns [11:27:08]free content buf [11:27:08]Sock 7.Close socket [11:27:08]Sock 7.Thread stoped [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:02]OFD Sender: No OFD packet to send [11:29:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:22]OFD Sender: No OFD packet to send [11:29:27]OFD Sender: No OFD packet to send [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:42]OFD Sender: No OFD packet to send [11:29:47]OFD Sender: No OFD packet to send [11:29:52]OFD Sender: No OFD packet to send [11:29:57]OFD Sender: No OFD packet to send [11:30:02]OFD Sender: No OFD packet to send [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:13]accept exits with 9 [11:31:13]New connection [11:31:13]New thread 3066486116 created [11:31:13]Thread 3066629476 joined [11:31:13]Waiting for new connection... [11:31:13] Sock 9.Parse request [11:31:13]Sock 9.Check first char [11:31:13]Sock 9.First char is OK [11:31:13]request: POST /json_proto HTTP/1.0 [11:31:13]Method: POST [11:31:13]URL: /json_proto [11:31:13]Method is POST - this is cgi request [11:31:13]url: /json_proto [11:31:13]query_string will be loaded in cgi processing [11:31:13]execute_cgi json_proto POST (null) [11:31:13]execute_cgi path=json_proto method=POST [11:31:13]POST find Content-Length [11:31:13]Host: 172.17.62.5:8080 [11:31:13]Content-Length: 1169 [11:31:13]Content-Type: application/json [11:31:13] [11:31:13]POST finish read [11:31:13]Found Content-Length = 1169 [11:31:13]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190885\u000A19.04.2024 11:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 3220.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30119228\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:13]execute_script... [11:31:13]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190885\u000A19.04.2024 11:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 3220.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30119228\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:13]POST & json_proto [11:31:13]process_json_proto [11:31:13]json parsed OK: [11:31:13]protocol is kg_v1.0 [11:31:13]action value=print_text [11:31:13]process_action print_text [11:31:13]cmd_print_text [11:31:13]ExternCall_PrintAddStr [11:31:13]wPrintStart [11:31:13]Write to MH i2c: 01 00 00 B5 2D E2 [11:31:13]Write i2c OK [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: 01 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: 01 07 00 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: 01 07 00 B5 2D 00 00 00 00 00 FF 0F F7 [11:31:13]RasterBufferAndPrint [11:31:13]line *****ТОВАРНЫЙ ЧЕК***** [11:31:13]line АЗС 106 [11:31:13]line Партнер нефть [11:31:13]line 02508201610067 [11:31:13]line Кассир : Табалдиева М. [11:31:13]line Счет N : (1)190885 [11:31:13]line 19.04.2024 11:12 [11:31:13]line ПРОДАЖА [11:31:13]line ТРК (МРК, ГНК): 33 [11:31:13]line Вид ГСМ : 2710124130 [11:31:13]line Аи-92-К-5 [11:31:13]line 50.000 x 64.40 [11:31:13]line ИТОГ: 3220.00 [11:31:13]line Тип оплаты: Талоны: ТК ГПНА Online [11:31:13]line 30119228 [11:31:13]line ______________________ [11:31:13]line (подпись) [11:31:13]written 0, free lines is 4095 [11:31:14]Write to MH i2c: 01 00 00 C9 2D F6 [11:31:14]Write i2c OK [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: 01 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: 01 07 00 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: 01 07 00 C9 2D 00 00 00 00 00 11 0E 1C [11:31:14]RasterBufferAndPrint [11:31:14]line [11:31:14]line [11:31:14]line [11:31:14]line [11:31:14]line [11:31:14]written 0, free lines is 3603 [11:31:14]MH_Cut [11:31:14]Write to MH i2c: D1 01 00 D0 2D 01 CF [11:31:14]Write i2c OK [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: D1 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: D1 01 00 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: D1 01 00 D0 2D 00 CE [11:31:14]Write to MH i2c: 01 00 00 D1 2D FE [11:31:14]Write i2c OK [11:31:14]MH_I2C_Read... [11:31:14]*** Cut start [11:31:14]*** Partial cut [11:31:14]*** CUTSNS_PIN = 1 [11:31:14]*** CUTSNS_PIN = 0 [11:31:15]*** Brake cut motor [11:31:15]Read from MH i2c: 01 [11:31:15]MH_I2C_Read... [11:31:15]*** Stop cut motor [11:31:15]*** Cut end [11:31:15]Read from MH i2c: 01 07 00 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: 01 07 00 D1 2D 00 00 00 00 00 FF 0F 13 [11:31:15]process_action print_text done [11:31:15]requested_data is exist [11:31:15]produce_requested_data [11:31:15]requested_item fm.sn is exist - process it [11:31:15]wFMCommunicate request_size=4 [11:31:15]MH_SAM_APDU [11:31:15]CAPDU: 80 11 00 00 [11:31:15]Write to MH i2c: E2 08 00 D2 2D 80 11 00 00 00 00 00 00 79 [11:31:15]Write i2c OK [11:31:15]MH_I2C_Read... [11:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:15]Read from MH i2c: E2 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: E2 17 00 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: E2 17 00 D2 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CC [11:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:31:15]wFMCommunicate OK [11:31:15]requested_item fd.num is exist - process it [11:31:15]SAM_PROTO_GetFieldsCounters [11:31:15]wFMCommunicate request_size=4 [11:31:15]MH_SAM_APDU [11:31:15]CAPDU: 80 13 00 00 [11:31:15]Write to MH i2c: E2 08 00 D3 2D 80 13 00 00 00 00 00 00 7C [11:31:15]Write i2c OK [11:31:15]MH_I2C_Read... [11:31:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:15]Read from MH i2c: E2 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: E2 62 00 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: E2 62 00 D3 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 85 2A 01 00 0E 04 04 00 72 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 3B [11:31:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 85 2A 01 00 0E 04 04 00 72 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 [11:31:15]wFMCommunicate OK [11:31:15]SAM_PROTO_GetFieldsCounters done [11:31:15]requested_item shift.num is exist - process it [11:31:15]requested_item shift.opened is exist - process it [11:31:15]req_shift_opened [11:31:15]FM_GetShiftState [11:31:15]SAM_PROTO_GetShiftState [11:31:15]wFMCommunicate request_size=4 [11:31:15]MH_SAM_APDU [11:31:15]CAPDU: 80 13 01 00 [11:31:15]Write to MH i2c: E2 08 00 D4 2D 80 13 01 00 00 00 00 00 7E [11:31:15]Write i2c OK [11:31:15]MH_I2C_Read... [11:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:15]Read from MH i2c: E2 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: E2 0E 00 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: E2 0E 00 D4 2D 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 63 [11:31:15]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:31:15]wFMCommunicate OK [11:31:15]SAM_PROTO_GetShiftState done [11:31:15]FM_GetShiftState done [11:31:15]req_shift_opened done [11:31:15]requested_item shift.open_date is exist - process it [11:31:15]req_shift_open_date [11:31:15]req_shift_open_date done [11:31:15]produce_requested_data done [11:31:15]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76421,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [11:31:15]process_action_free print_text [11:31:15]json_value_free [11:31:15]json_value_free done [11:31:15]process_json_proto returns [11:31:15]Send response to host [11:31:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76421,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [11:31:15]free response buf [11:31:15]execute_script done [11:31:15]execute_script returns [11:31:15]free content buf [11:31:15]Sock 9.Close socket [11:31:15]Sock 9.Thread stoped [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32: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:02]accept exits with 7 [11:33:02]New connection [11:33:02]New thread 3066629476 created [11:33:02]Thread 3066486116 joined [11:33:02]Waiting for new connection... [11:33:02] Sock 7.Parse request [11:33:02]Sock 7.Check first char [11:33:02]Sock 7.First char is OK [11:33:02]request: POST /json_proto HTTP/1.0 [11:33:02]Method: POST [11:33:02]URL: /json_proto [11:33:02]Method is POST - this is cgi request [11:33:02]url: /json_proto [11:33:02]query_string will be loaded in cgi processing [11:33:02]execute_cgi json_proto POST (null) [11:33:02]execute_cgi path=json_proto method=POST [11:33:02]POST find Content-Length [11:33:02]Host: 172.17.62.5:8080 [11:33:02]Content-Length: 677 [11:33:02]Content-Type: application/json [11:33:02] [11:33:02]POST finish read [11:33:02]Found Content-Length = 677 [11:33:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 2.800, "sum" : 180.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:02]execute_script... [11:33: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)190886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 2.800, "sum" : 180.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:02]POST & json_proto [11:33:02]process_json_proto [11:33:02]json parsed OK: [11:33:02]protocol is kg_v1.0 [11:33:02]action value=close_receipt [11:33:02]process_action close_receipt [11:33:02]cmd_close_receipt [11:33:02]MH_GetDate [11:33:02]Write to MH i2c: F0 00 00 D5 2D F1 [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: F0 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: F0 09 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: F0 09 00 D5 2D 00 73 56 22 66 F4 E9 65 64 F1 [11:33:02]GetLastDocTimeStamp 1713526028 [11:33:02]current date 1713526387 [11:33:02]FM_GetShiftState [11:33:02]SAM_PROTO_GetShiftState [11:33:02]wFMCommunicate request_size=4 [11:33:02]MH_SAM_APDU [11:33:02]CAPDU: 80 13 01 00 [11:33:02]Write to MH i2c: E2 08 00 D6 2D 80 13 01 00 00 00 00 00 80 [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:02]Read from MH i2c: E2 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 0E 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 0E 00 D6 2D 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 65 [11:33:02]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:33:02]wFMCommunicate OK [11:33:02]SAM_PROTO_GetShiftState done [11:33:02]FM_GetShiftState done [11:33:02]opened in 1713486233 [11:33:02]opened+sec_in_day 1713572633 [11:33:02]quantity*price = 18032 [11:33:02]sum+1 = 18033 [11:33:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 180.00 Внесено: 180.00 СДАЧА: 0.00 НСП 1% : 1.60 НДС 12% : 19.15 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 42 19.04.2024 11:33 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76422 ФПД: 181553511448312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T113307&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76422&fm=181553511448312&tin=02508201610067®Number=0000000000091573&sum=18000 [11:33:03]StoreToDocumentArchive [11:33:03]shift 370 fd 76422 [11:33:03]save to /storage/0370/doc_00076422 [11:33:03]save last doc name /storage/0370/doc_00076422 to /storage/kkm_last_doc_name [11:33:03]save OK [11:33:03]Clear old archive folders... [11:33:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:03]tlvbuf is 009FDD40 [11:33:03]SAM_PROTO_ClearQueue [11:33:03]wFMCommunicate request_size=4 [11:33:03]MH_SAM_APDU [11:33:03]CAPDU: 80 09 00 00 [11:33:03]Write to MH i2c: E2 08 00 E3 2D 80 09 00 00 00 00 00 00 82 [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 [11:33:03]MH_I2C_Read... [11:33:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:03]Read from MH i2c: E2 03 00 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 03 00 E3 2D 00 90 00 84 [11:33:03]RAPDU: 90 00 [11:33:03]wFMCommunicate OK [11:33:03]SAM_PROTO_ClearQueue done [11:33:03]KKMCreateOFDPacket [11:33:03]OFDProtocolAddRootSTLVToBuf [11:33:03]FM_MakeSignedData [11:33:03]FM_MakeSignedData [11:33:03]SAM_PROTO_SignData [11:33:03]wFMCommunicate request_size=4 [11:33:03]MH_SAM_APDU [11:33:03]CAPDU: 80 0D 01 02 [11:33:03]Write to MH i2c: E2 08 00 E4 2D 80 0D 01 02 00 00 00 00 8A [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:03]Read from MH i2c: E2 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 03 00 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 03 00 E4 2D 00 90 00 85 [11:33:03]RAPDU: 90 00 [11:33:03]wFMCommunicate OK [11:33:03]wFMCommunicate request_size=255 [11:33:03]MH_SAM_APDU [11:33: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 F0 0A 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 70 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 73 56 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 86 2A 01 00 35 04 06 00 A5 [11:33:03]Write to MH i2c: E2 02 01 E5 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 F0 0A 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 70 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 73 56 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 86 2A 01 00 35 04 06 00 A5 00 00 17 [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:03]Read from MH i2c: E2 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 03 00 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 03 00 E5 2D 00 90 00 86 [11:33:03]RAPDU: 90 00 [11:33:03]wFMCommunicate OK [11:33:03]wFMCommunicate request_size=10 [11:33:03]MH_SAM_APDU [11:33:03]CAPDU: 80 0D 02 02 05 1F 38 8E BE F8 [11:33:03]Write to MH i2c: E2 0D 00 E6 2D 80 0D 02 02 05 00 1F 38 8E BE F8 00 00 32 [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:03]Read from MH i2c: E2 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 03 00 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 03 00 E6 2D 00 90 00 87 [11:33:03]RAPDU: 90 00 [11:33:03]wFMCommunicate OK [11:33:03]wFMCommunicate request_size=4 [11:33:03]MH_SAM_APDU [11:33:03]CAPDU: 80 0D 03 02 [11:33:03]Write to MH i2c: E2 08 00 E7 2D 80 0D 03 02 00 00 00 00 8F [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:04]Read from MH i2c: E2 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 0B 00 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 0B 00 E7 2D 00 CB A0 5A B1 14 82 72 D9 90 00 E7 [11:33:04]RAPDU: CB A0 5A B1 14 82 72 D9 90 00 [11:33:04]wFMCommunicate OK [11:33:04]SAM_PROTO_SignData done [11:33:04]FM_MakeSignedData done [11:33:04]CreateOFDProtocolMessage [11:33:04]wFMCommunicate request_size=4 [11:33:04]MH_SAM_APDU [11:33:04]CAPDU: 80 11 00 00 [11:33:04]Write to MH i2c: E2 08 00 E8 2D 80 11 00 00 00 00 00 00 8F [11:33:04]Write i2c OK [11:33:04]MH_I2C_Read... [11:33:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:04]Read from MH i2c: E2 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 17 00 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 17 00 E8 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E2 [11:33:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:33:04]wFMCommunicate OK [11:33:04]CreateOFDProtocolMessage done [11:33:04]OFDSenderStorePacket 76422 [11:33:04]StoreOFDPacket docnum=76422 [11:33:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 38 1F 07 01 42 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 0A 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 70 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 73 56 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 86 2A 01 00 35 04 06 00 A5 1F 38 8E BE F8 CB A0 5A B1 14 82 72 D9 [11:33:04]CheckFolder [11:33:04]dirname=/storage/ofd_packets [11:33:04]CheckFolder done [11:33:04]ProducePacketName [11:33:04]name=ofd_packets/00076422 [11:33:04]NVStorageSaveData ofd_packets/00076422 [11:33:04]File name is /storage/ofd_packets/00076422 [11:33:04]Write 301 bytes [11:33:04]NVStorageSaveData done [11:33:04]OFDSenderStorePacket done [11:33:04]KKMCreateOFDPacket done [11:33:04]NVStorageSaveData kkm_last_timestamp [11:33:04]File name is /storage/kkm_last_timestamp [11:33:04]Write 4 bytes [11:33:04]NVStorageSaveData done [11:33:04]ExternCall_PrintAddStr [11:33:04]wPrintStart [11:33:04]Write to MH i2c: 01 00 00 E9 2D 16 [11:33:04]Write i2c OK [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: 01 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: 01 07 00 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: 01 07 00 E9 2D 00 00 00 00 00 FF 0F 2B [11:33:04]RasterBufferAndPrint [11:33:04]line Счет N : (1)190886 [11:33:04]line ИНН: 02508201610067 [11:33:04]line Контрольно-Кассовый Чек [11:33:04]line ПРОДАЖА [11:33:04]line ТРК (МРК, ГНК) : 43 [11:33:04]line Товар: 2710124130 [11:33:04]line Аи-92-К-5 [11:33:04]line 2.800 * 64.40 [11:33:04]line = 180.32 [11:33:04]line НДС 12% НСП 1% [11:33:04]line > о реализуемом товаре [11:33:04]line ОКРУГЛЕНИЕ: -0.32 [11:33:04]line ИТОГО: 180.00 [11:33:04]line Внесено: 180.00 [11:33:04]line СДАЧА: 0.00 [11:33:04]line НСП 1% : 1.60 [11:33:04]line НДС 12% : 19.15 [11:33:04]line Наличными: 180.00 [11:33:04]line Безнал.: 0.00 [11:33:04]line Место: АЗС № 106 "Партнер Нефть" [11:33:04]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:33:04]line СНО: Общий режим [11:33:04]line Чек 42 19.04.2024 11:33 [11:33:04]line Смена: 370 ФФД: 1.0 [11:33:04]line ЗНМ: 0300000141 [11:33:04]line РНМ: 0000000000091573 [11:33:04]line Версия ККМ: 001 [11:33:04]line ФМ: 0000000000874652 [11:33:04]line ФД: 76422 [11:33:04]line ФПД: 181553511448312 [11:33:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T113307&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76422&fm=181553511448312&tin=02508201610067®Number=0000000000091573&sum=18000 [11:33:04]written 0, free lines is 4095 [11:33:04]OFD Sender: Processing packet 76422 [packets to send 128, broken 127] [11:33:04]ProducePacketName [11:33:04]name=ofd_packets/00076422 [11:33:04]OFD Sender: To server: pG, [11:33:04]CommunicateWithHost lk.salyk.kg:30040 [11:33:04]ConnectInit lk.salyk.kg [11:33:04]Connected sock=11 [11:33:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 38 1F 07 01 42 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 0A 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 70 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 73 56 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 86 2A 01 00 35 04 06 00 A5 1F 38 8E BE F8 CB A0 5A B1 14 82 72 D9 [11:33:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 8A 54 47 00 E5 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 34 36 35 32 10 04 04 00 86 2A 01 00 F4 03 04 00 FF FD 21 66 B6 04 01 00 00 38 F6 6C 61 02 B4 2F EF [11:33:04]CommunicateWithHost err = 0 [11:33:04]CheckOFDResponse [11:33:04]1017 (14) - 77093643461234 [11:33:04]1041 (16) - 0000000000874652 [11:33:04]1040 (4) - 76422 [11:33:04]1012 (4) - 19.04.2024 05:15 [11:33:04]1206 (1) - 0 [11:33:04]OFD Sender: Remove packet 76422 [11:33:04]ProducePacketName [11:33:04]name=ofd_packets/00076422 [11:33:04]NVStorageDeleteData [11:33:04]Write to MH i2c: 01 00 00 13 2E 41 [11:33:04]Write i2c OK [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: 01 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: 01 07 00 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: 01 07 00 13 2E 00 00 00 00 00 DC 0C 30 [11:33:04]RasterBufferAndPrint [11:33:04]line [11:33:04]line [11:33:04]line [11:33:04]line [11:33:04]line [11:33:04]written 0, free lines is 3299 [11:33:04]MH_Cut [11:33:04]Write to MH i2c: D1 01 00 1A 2E 01 1A [11:33:04]Write i2c OK [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: D1 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: D1 01 00 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: D1 01 00 1A 2E 00 19 [11:33:04]Write to MH i2c: 01 00 00 1B 2E 49 [11:33:04]Write i2c OK [11:33:04]MH_I2C_Read... [11:33:05]OFD Sender: No OFD packet to send [11:33:05]*** Cut start [11:33:05]*** Partial cut [11:33:05]*** CUTSNS_PIN = 1 [11:33:05]*** CUTSNS_PIN = 0 [11:33:05]*** Brake cut motor [11:33:06]Read from MH i2c: 01 [11:33:06]MH_I2C_Read... [11:33:06]*** Stop cut motor [11:33:06]*** Cut end [11:33:06]Read from MH i2c: 01 07 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: 01 07 00 1B 2E 00 00 00 00 00 FF 0F 5E [11:33:06]process_action close_receipt done [11:33:06]requested_data is exist [11:33:06]produce_requested_data [11:33:06]requested_item fm.sn is exist - process it [11:33:06]wFMCommunicate request_size=4 [11:33:06]MH_SAM_APDU [11:33:06]CAPDU: 80 11 00 00 [11:33:06]Write to MH i2c: E2 08 00 1C 2E 80 11 00 00 00 00 00 00 C4 [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:06]Read from MH i2c: E2 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 17 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 17 00 1C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 17 [11:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:33:06]wFMCommunicate OK [11:33:06]requested_item fd.num is exist - process it [11:33:06]SAM_PROTO_GetFieldsCounters [11:33:06]wFMCommunicate request_size=4 [11:33:06]MH_SAM_APDU [11:33:06]CAPDU: 80 13 00 00 [11:33:06]Write to MH i2c: E2 08 00 1D 2E 80 13 00 00 00 00 00 00 C7 [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:06]Read from MH i2c: E2 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 62 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 62 00 1D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 86 2A 01 00 0E 04 04 00 72 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 8A [11:33:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 86 2A 01 00 0E 04 04 00 72 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 [11:33:06]wFMCommunicate OK [11:33:06]SAM_PROTO_GetFieldsCounters done [11:33:06]requested_item shift.num is exist - process it [11:33:06]requested_item shift.opened is exist - process it [11:33:06]req_shift_opened [11:33:06]FM_GetShiftState [11:33:06]SAM_PROTO_GetShiftState [11:33:06]wFMCommunicate request_size=4 [11:33:06]MH_SAM_APDU [11:33:06]CAPDU: 80 13 01 00 [11:33:06]Write to MH i2c: E2 08 00 1E 2E 80 13 01 00 00 00 00 00 C9 [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:06]Read from MH i2c: E2 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 0E 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 0E 00 1E 2E 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 AE [11:33:06]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:33:06]wFMCommunicate OK [11:33:06]SAM_PROTO_GetShiftState done [11:33:06]FM_GetShiftState done [11:33:06]req_shift_opened done [11:33:06]requested_item shift.open_date is exist - process it [11:33:06]req_shift_open_date [11:33:06]req_shift_open_date done [11:33:06]produce_requested_data done [11:33:06]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76422,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [11:33:06]process_action_free close_receipt [11:33:06]json_value_free [11:33:06]json_value_free done [11:33:06]process_json_proto returns [11:33:06]Send response to host [11:33:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76422,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [11:33:06]free response buf [11:33:06]execute_script done [11:33:06]execute_script returns [11:33:06]free content buf [11:33:06]Sock 7.Close socket [11:33:06]Sock 7.Thread stoped [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:15]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:50]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:23]accept exits with 9 [11:42:23]New connection [11:42:23]New thread 3066486116 created [11:42:23]Thread 3066629476 joined [11:42:23]Waiting for new connection... [11:42:23] Sock 9.Parse request [11:42:23]Sock 9.Check first char [11:42:23]Sock 9.First char is OK [11:42:23]request: POST /json_proto HTTP/1.0 [11:42:23]Method: POST [11:42:23]URL: /json_proto [11:42:23]Method is POST - this is cgi request [11:42:23]url: /json_proto [11:42:23]query_string will be loaded in cgi processing [11:42:23]execute_cgi json_proto POST (null) [11:42:23]execute_cgi path=json_proto method=POST [11:42:23]POST find Content-Length [11:42:23]Host: 172.17.62.5:8080 [11:42:23]Content-Length: 682 [11:42:23]Content-Type: application/json [11:42:23] [11:42:23]POST finish read [11:42:23]Found Content-Length = 682 [11:42:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:23]execute_script... [11:42: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)190887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:23]POST & json_proto [11:42:23]process_json_proto [11:42:23]json parsed OK: [11:42:23]protocol is kg_v1.0 [11:42:23]action value=close_receipt [11:42:23]process_action close_receipt [11:42:23]cmd_close_receipt [11:42:23]MH_GetDate [11:42:23]Write to MH i2c: F0 00 00 1F 2E 3C [11:42:23]Write i2c OK [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: F0 [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: F0 09 00 [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: F0 09 00 1F 2E 00 A4 58 22 66 F4 E9 65 64 6F [11:42:23]GetLastDocTimeStamp 1713526387 [11:42:23]current date 1713526948 [11:42:23]FM_GetShiftState [11:42:23]SAM_PROTO_GetShiftState [11:42:23]wFMCommunicate request_size=4 [11:42:23]MH_SAM_APDU [11:42:23]CAPDU: 80 13 01 00 [11:42:23]Write to MH i2c: E2 08 00 20 2E 80 13 01 00 00 00 00 00 CB [11:42:23]Write i2c OK [11:42:23]MH_I2C_Read... [11:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:23]Read from MH i2c: E2 [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: E2 0E 00 [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: E2 0E 00 20 2E 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 B0 [11:42:23]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:42:23]wFMCommunicate OK [11:42:23]SAM_PROTO_GetShiftState done [11:42:23]FM_GetShiftState done [11:42:23]opened in 1713486233 [11:42:23]opened+sec_in_day 1713572633 [11:42:23]quantity*price = 100013 [11:42:23]sum+1 = 100014 [11:42:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 43 19.04.2024 11:42 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76423 ФПД: 68831779126765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T114228&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76423&fm=68831779126765&tin=02508201610067®Number=0000000000091573&sum=100000 [11:42:25]StoreToDocumentArchive [11:42:25]shift 370 fd 76423 [11:42:25]save to /storage/0370/doc_00076423 [11:42:25]save last doc name /storage/0370/doc_00076423 to /storage/kkm_last_doc_name [11:42:25]save OK [11:42:25]Clear old archive folders... [11:42:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:25]tlvbuf is 009220D0 [11:42:25]SAM_PROTO_ClearQueue [11:42:25]wFMCommunicate request_size=4 [11:42:25]MH_SAM_APDU [11:42:25]CAPDU: 80 09 00 00 [11:42:25]Write to MH i2c: E2 08 00 2D 2E 80 09 00 00 00 00 00 00 CD [11:42:25]Write i2c OK [11:42:25]MH_I2C_Read... [11:42:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:25]Read from MH i2c: E2 [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: E2 03 00 [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: E2 03 00 2D 2E 00 90 00 CF [11:42:25]RAPDU: 90 00 [11:42:25]wFMCommunicate OK [11:42:25]SAM_PROTO_ClearQueue done [11:42:25]KKMCreateOFDPacket [11:42:25]OFDProtocolAddRootSTLVToBuf [11:42:25]FM_MakeSignedData [11:42:25]FM_MakeSignedData [11:42:25]SAM_PROTO_SignData [11:42:25]wFMCommunicate request_size=4 [11:42:25]MH_SAM_APDU [11:42:25]CAPDU: 80 0D 01 02 [11:42:25]Write to MH i2c: E2 08 00 2E 2E 80 0D 01 02 00 00 00 00 D5 [11:42:25]Write i2c OK [11:42:25]MH_I2C_Read... [11:42:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:25]Read from MH i2c: E2 [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: E2 03 00 [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: E2 03 00 2E 2E 00 90 00 D0 [11:42:25]RAPDU: 90 00 [11:42:25]wFMCommunicate OK [11:42:25]wFMCommunicate request_size=255 [11:42:25]MH_SAM_APDU [11:42: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A4 58 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 87 2A 01 00 35 04 06 00 3E [11:42:25]Write to MH i2c: E2 02 01 2F 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A4 58 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 87 2A 01 00 35 04 06 00 3E 00 00 B8 [11:42:25]Write i2c OK [11:42:25]MH_I2C_Read... [11:42:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:25]Read from MH i2c: E2 [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: E2 03 00 [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: E2 03 00 2F 2E 00 90 00 D1 [11:42:25]RAPDU: 90 00 [11:42:25]wFMCommunicate OK [11:42:25]wFMCommunicate request_size=10 [11:42:25]MH_SAM_APDU [11:42:25]CAPDU: 80 0D 02 02 05 9A 25 BE 7D ED [11:42:25]Write to MH i2c: E2 0D 00 30 2E 80 0D 02 02 05 00 9A 25 BE 7D ED 00 00 C9 [11:42:25]Write i2c OK [11:42:25]MH_I2C_Read... [11:42:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:25]Read from MH i2c: E2 [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: E2 03 00 [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: E2 03 00 30 2E 00 90 00 D2 [11:42:25]RAPDU: 90 00 [11:42:25]wFMCommunicate OK [11:42:25]wFMCommunicate request_size=4 [11:42:25]MH_SAM_APDU [11:42:25]CAPDU: 80 0D 03 02 [11:42:25]Write to MH i2c: E2 08 00 31 2E 80 0D 03 02 00 00 00 00 DA [11:42:25]Write i2c OK [11:42:25]MH_I2C_Read... [11:42:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:25]Read from MH i2c: E2 [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: E2 0B 00 [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: E2 0B 00 31 2E 00 D5 72 C9 A4 4F BE C8 38 90 00 9C [11:42:25]RAPDU: D5 72 C9 A4 4F BE C8 38 90 00 [11:42:25]wFMCommunicate OK [11:42:25]SAM_PROTO_SignData done [11:42:25]FM_MakeSignedData done [11:42:25]CreateOFDProtocolMessage [11:42:25]wFMCommunicate request_size=4 [11:42:25]MH_SAM_APDU [11:42:25]CAPDU: 80 11 00 00 [11:42:25]Write to MH i2c: E2 08 00 32 2E 80 11 00 00 00 00 00 00 DA [11:42:25]Write i2c OK [11:42:25]MH_I2C_Read... [11:42:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:25]Read from MH i2c: E2 [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: E2 17 00 [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: E2 17 00 32 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2D [11:42:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:42:25]wFMCommunicate OK [11:42:25]CreateOFDProtocolMessage done [11:42:25]OFDSenderStorePacket 76423 [11:42:25]StoreOFDPacket docnum=76423 [11:42:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 22 72 07 01 6A 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A4 58 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 87 2A 01 00 35 04 06 00 3E 9A 25 BE 7D ED D5 72 C9 A4 4F BE C8 38 [11:42:25]CheckFolder [11:42:25]dirname=/storage/ofd_packets [11:42:25]CheckFolder done [11:42:25]ProducePacketName [11:42:25]name=ofd_packets/00076423 [11:42:25]NVStorageSaveData ofd_packets/00076423 [11:42:25]File name is /storage/ofd_packets/00076423 [11:42:25]Write 301 bytes [11:42:25]NVStorageSaveData done [11:42:25]OFDSenderStorePacket done [11:42:25]KKMCreateOFDPacket done [11:42:25]NVStorageSaveData kkm_last_timestamp [11:42:25]File name is /storage/kkm_last_timestamp [11:42:25]Write 4 bytes [11:42:25]NVStorageSaveData done [11:42:25]ExternCall_PrintAddStr [11:42:25]wPrintStart [11:42:25]Write to MH i2c: 01 00 00 33 2E 61 [11:42:25]Write i2c OK [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: 01 [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: 01 07 00 [11:42:25]MH_I2C_Read... [11:42:25]Read from MH i2c: 01 07 00 33 2E 00 00 00 00 00 FF 0F 76 [11:42:25]RasterBufferAndPrint [11:42:25]line Счет N : (1)190887 [11:42:25]line ИНН: 02508201610067 [11:42:25]line Контрольно-Кассовый Чек [11:42:25]line ПРОДАЖА [11:42:25]line ТРК (МРК, ГНК) : 43 [11:42:25]line Товар: 2710124130 [11:42:25]line Аи-92-К-5 [11:42:25]line 15.530 * 64.40 [11:42:25]line = 1000.13 [11:42:25]line НДС 12% НСП 1% [11:42:25]line > о реализуемом товаре [11:42:25]line ОКРУГЛЕНИЕ: -0.13 [11:42:25]line ИТОГО: 1000.00 [11:42:25]line Внесено: 1000.00 [11:42:25]line СДАЧА: 0.00 [11:42:25]line НСП 1% : 8.85 [11:42:25]line НДС 12% : 106.21 [11:42:25]line Наличными: 1000.00 [11:42:25]line Безнал.: 0.00 [11:42:25]line Место: АЗС № 106 "Партнер Нефть" [11:42:25]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:42:25]line СНО: Общий режим [11:42:25]line Чек 43 19.04.2024 11:42 [11:42:25]line Смена: 370 ФФД: 1.0 [11:42:25]line ЗНМ: 0300000141 [11:42:25]line РНМ: 0000000000091573 [11:42:25]line Версия ККМ: 001 [11:42:25]line ФМ: 0000000000874652 [11:42:25]line ФД: 76423 [11:42:25]line ФПД: 68831779126765 [11:42:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T114228&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76423&fm=68831779126765&tin=02508201610067®Number=0000000000091573&sum=100000 [11:42:25]OFD Sender: Processing packet 76423 [packets to send 128, broken 127] [11:42:25]ProducePacketName [11:42:25]name=ofd_packets/00076423 [11:42:25]OFD Sender: To server: pG, [11:42:25]CommunicateWithHost lk.salyk.kg:30040 [11:42:25]ConnectInit lk.salyk.kg [11:42:25]written 0, free lines is 4095 [11:42:26]Connected sock=10 [11:42:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 22 72 07 01 6A 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A4 58 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 87 2A 01 00 35 04 06 00 3E 9A 25 BE 7D ED D5 72 C9 A4 4F BE C8 38 [11:42:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A4 86 47 00 0A A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 87 2A 01 00 F4 03 04 00 30 00 22 66 B6 04 01 00 00 14 31 DD F0 BD 69 41 5A [11:42:26]CommunicateWithHost err = 0 [11:42:26]CheckOFDResponse [11:42:26]1017 (14) - 77093643461234 [11:42:26]1041 (16) - 0000000000874652 [11:42:26]1040 (4) - 76423 [11:42:26]1012 (4) - 19.04.2024 05:25 [11:42:26]1206 (1) - 0 [11:42:26]OFD Sender: Remove packet 76423 [11:42:26]ProducePacketName [11:42:26]name=ofd_packets/00076423 [11:42:26]NVStorageDeleteData [11:42:26]Write to MH i2c: 01 00 00 5D 2E 8B [11:42:26]Write i2c OK [11:42:26]MH_I2C_Read... [11:42:26]Read from MH i2c: 01 [11:42:26]MH_I2C_Read... [11:42:26]Read from MH i2c: 01 07 00 [11:42:26]MH_I2C_Read... [11:42:26]Read from MH i2c: 01 07 00 5D 2E 00 00 00 00 00 EC 0C 8A [11:42:26]RasterBufferAndPrint [11:42:26]line [11:42:26]line [11:42:26]line [11:42:26]line [11:42:26]line [11:42:26]written 0, free lines is 3315 [11:42:26]MH_Cut [11:42:26]Write to MH i2c: D1 01 00 64 2E 01 64 [11:42:26]Write i2c OK [11:42:26]MH_I2C_Read... [11:42:26]Read from MH i2c: D1 [11:42:26]MH_I2C_Read... [11:42:26]Read from MH i2c: D1 01 00 [11:42:26]MH_I2C_Read... [11:42:26]Read from MH i2c: D1 01 00 64 2E 00 63 [11:42:26]Write to MH i2c: 01 00 00 65 2E 93 [11:42:26]Write i2c OK [11:42:26]MH_I2C_Read... [11:42:26]OFD Sender: No OFD packet to send [11:42:27]*** Cut start [11:42:27]*** Partial cut [11:42:27]*** CUTSNS_PIN = 1 [11:42:27]*** CUTSNS_PIN = 0 [11:42:27]*** Brake cut motor [11:42:27]Read from MH i2c: 01 [11:42:27]MH_I2C_Read... [11:42:27]*** Stop cut motor [11:42:27]*** Cut end [11:42:27]Read from MH i2c: 01 07 00 [11:42:27]MH_I2C_Read... [11:42:27]Read from MH i2c: 01 07 00 65 2E 00 00 00 00 00 FF 0F A8 [11:42:27]process_action close_receipt done [11:42:27]requested_data is exist [11:42:27]produce_requested_data [11:42:27]requested_item fm.sn is exist - process it [11:42:27]wFMCommunicate request_size=4 [11:42:27]MH_SAM_APDU [11:42:27]CAPDU: 80 11 00 00 [11:42:27]Write to MH i2c: E2 08 00 66 2E 80 11 00 00 00 00 00 00 0E [11:42:27]Write i2c OK [11:42:27]MH_I2C_Read... [11:42:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:27]Read from MH i2c: E2 [11:42:27]MH_I2C_Read... [11:42:27]Read from MH i2c: E2 17 00 [11:42:27]MH_I2C_Read... [11:42:27]Read from MH i2c: E2 17 00 66 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 61 [11:42:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:42:27]wFMCommunicate OK [11:42:27]requested_item fd.num is exist - process it [11:42:27]SAM_PROTO_GetFieldsCounters [11:42:27]wFMCommunicate request_size=4 [11:42:27]MH_SAM_APDU [11:42:27]CAPDU: 80 13 00 00 [11:42:27]Write to MH i2c: E2 08 00 67 2E 80 13 00 00 00 00 00 00 11 [11:42:27]Write i2c OK [11:42:27]MH_I2C_Read... [11:42:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:27]Read from MH i2c: E2 [11:42:27]MH_I2C_Read... [11:42:27]Read from MH i2c: E2 62 00 [11:42:27]MH_I2C_Read... [11:42:27]Read from MH i2c: E2 62 00 67 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 87 2A 01 00 0E 04 04 00 72 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 D8 [11: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 87 2A 01 00 0E 04 04 00 72 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 [11:42:27]wFMCommunicate OK [11:42:27]SAM_PROTO_GetFieldsCounters done [11:42:27]requested_item shift.num is exist - process it [11:42:27]requested_item shift.opened is exist - process it [11:42:27]req_shift_opened [11:42:27]FM_GetShiftState [11:42:27]SAM_PROTO_GetShiftState [11:42:27]wFMCommunicate request_size=4 [11:42:27]MH_SAM_APDU [11:42:27]CAPDU: 80 13 01 00 [11:42:27]Write to MH i2c: E2 08 00 68 2E 80 13 01 00 00 00 00 00 13 [11:42:27]Write i2c OK [11:42:27]MH_I2C_Read... [11:42:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:27]Read from MH i2c: E2 [11:42:27]MH_I2C_Read... [11:42:27]Read from MH i2c: E2 0E 00 [11:42:27]MH_I2C_Read... [11:42:27]Read from MH i2c: E2 0E 00 68 2E 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 F8 [11:42:27]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:42:27]wFMCommunicate OK [11:42:27]SAM_PROTO_GetShiftState done [11:42:27]FM_GetShiftState done [11:42:27]req_shift_opened done [11:42:27]requested_item shift.open_date is exist - process it [11:42:27]req_shift_open_date [11:42:27]req_shift_open_date done [11:42:27]produce_requested_data done [11:42:27]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76423,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [11:42:27]process_action_free close_receipt [11:42:27]json_value_free [11:42:27]json_value_free done [11:42:27]process_json_proto returns [11:42:27]Send response to host [11:42:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76423,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [11:42:27]free response buf [11:42:27]execute_script done [11:42:27]execute_script returns [11:42:27]free content buf [11:42:27]Sock 9.Close socket [11:42:27]Sock 9.Thread stoped [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:26]OFD Sender: No OFD packet to send [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:19]accept exits with 7 [11:44:19]New connection [11:44:19]New thread 3066629476 created [11:44:19]Thread 3066486116 joined [11:44:19]Waiting for new connection... [11:44:19] Sock 7.Parse request [11:44:19]Sock 7.Check first char [11:44:19]Sock 7.First char is OK [11:44:19]request: POST /json_proto HTTP/1.0 [11:44:19]Method: POST [11:44:19]URL: /json_proto [11:44:19]Method is POST - this is cgi request [11:44:19]url: /json_proto [11:44:19]query_string will be loaded in cgi processing [11:44:19]execute_cgi json_proto POST (null) [11:44:19]execute_cgi path=json_proto method=POST [11:44:19]POST find Content-Length [11:44:19]Host: 172.17.62.5:8080 [11:44:19]Content-Length: 682 [11:44:19]Content-Type: application/json [11:44:19] [11:44:19]POST finish read [11:44:19]Found Content-Length = 682 [11:44:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190888", "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" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:19]execute_script... [11:44:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190888", "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" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:19]POST & json_proto [11:44:19]process_json_proto [11:44:19]json parsed OK: [11:44:19]protocol is kg_v1.0 [11:44:19]action value=close_receipt [11:44:19]process_action close_receipt [11:44:19]cmd_close_receipt [11:44:19]MH_GetDate [11:44:19]Write to MH i2c: F0 00 00 69 2E 86 [11:44:19]Write i2c OK [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: F0 [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: F0 09 00 [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: F0 09 00 69 2E 00 18 59 22 66 F4 E9 65 64 2E [11:44:19]GetLastDocTimeStamp 1713526948 [11:44:19]current date 1713527064 [11:44:19]FM_GetShiftState [11:44:19]SAM_PROTO_GetShiftState [11:44:19]wFMCommunicate request_size=4 [11:44:19]MH_SAM_APDU [11:44:19]CAPDU: 80 13 01 00 [11:44:19]Write to MH i2c: E2 08 00 6A 2E 80 13 01 00 00 00 00 00 15 [11:44:19]Write i2c OK [11:44:19]MH_I2C_Read... [11:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:19]Read from MH i2c: E2 [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: E2 0E 00 [11:44:19]MH_I2C_Read... [11:44:19]Read from MH i2c: E2 0E 00 6A 2E 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 FA [11:44:19]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:44:19]wFMCommunicate OK [11:44:19]SAM_PROTO_GetShiftState done [11:44:19]FM_GetShiftState done [11:44:19]opened in 1713486233 [11:44:19]opened+sec_in_day 1713572633 [11:44:19]quantity*price = 100013 [11:44:19]sum+1 = 100014 [11:44:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 44 19.04.2024 11:44 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76424 ФПД: 146110945769514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T114424&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76424&fm=146110945769514&tin=02508201610067®Number=0000000000091573&sum=100000 [11:44:20]StoreToDocumentArchive [11:44:20]shift 370 fd 76424 [11:44:20]save to /storage/0370/doc_00076424 [11:44:20]save last doc name /storage/0370/doc_00076424 to /storage/kkm_last_doc_name [11:44:20]save OK [11:44:20]Clear old archive folders... [11:44:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:20]tlvbuf is 0099E190 [11:44:20]SAM_PROTO_ClearQueue [11:44:20]wFMCommunicate request_size=4 [11:44:20]MH_SAM_APDU [11:44:20]CAPDU: 80 09 00 00 [11:44:20]Write to MH i2c: E2 08 00 77 2E 80 09 00 00 00 00 00 00 17 [11:44:20]Write i2c OK [11:44:20]MH_I2C_Read... [11:44:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:20]Read from MH i2c: E2 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 03 00 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 03 00 77 2E 00 90 00 19 [11:44:20]RAPDU: 90 00 [11:44:20]wFMCommunicate OK [11:44:20]SAM_PROTO_ClearQueue done [11:44:20]KKMCreateOFDPacket [11:44:20]OFDProtocolAddRootSTLVToBuf [11:44:20]FM_MakeSignedData [11:44:20]FM_MakeSignedData [11:44:20]SAM_PROTO_SignData [11:44:20]wFMCommunicate request_size=4 [11:44:20]MH_SAM_APDU [11:44:20]CAPDU: 80 0D 01 02 [11:44:20]Write to MH i2c: E2 08 00 78 2E 80 0D 01 02 00 00 00 00 1F [11:44:20]Write i2c OK [11:44:20]MH_I2C_Read... [11:44:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:20]Read from MH i2c: E2 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 03 00 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 03 00 78 2E 00 90 00 1A [11:44:20]RAPDU: 90 00 [11:44:20]wFMCommunicate OK [11:44:20]wFMCommunicate request_size=255 [11:44:20]MH_SAM_APDU [11:44: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 18 59 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 88 2A 01 00 35 04 06 00 84 [11:44:20]Write to MH i2c: E2 02 01 79 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 18 59 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 88 2A 01 00 35 04 06 00 84 00 00 BF [11:44:20]Write i2c OK [11:44:20]MH_I2C_Read... [11:44:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:20]Read from MH i2c: E2 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 03 00 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 03 00 79 2E 00 90 00 1B [11:44:20]RAPDU: 90 00 [11:44:20]wFMCommunicate OK [11:44:20]wFMCommunicate request_size=10 [11:44:20]MH_SAM_APDU [11:44:20]CAPDU: 80 0D 02 02 05 E3 1B 05 38 2A [11:44:20]Write to MH i2c: E2 0D 00 7A 2E 80 0D 02 02 05 00 E3 1B 05 38 2A 00 00 91 [11:44:20]Write i2c OK [11:44:20]MH_I2C_Read... [11:44:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:20]Read from MH i2c: E2 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 03 00 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 03 00 7A 2E 00 90 00 1C [11:44:20]RAPDU: 90 00 [11:44:20]wFMCommunicate OK [11:44:20]wFMCommunicate request_size=4 [11:44:20]MH_SAM_APDU [11:44:20]CAPDU: 80 0D 03 02 [11:44:20]Write to MH i2c: E2 08 00 7B 2E 80 0D 03 02 00 00 00 00 24 [11:44:20]Write i2c OK [11:44:20]MH_I2C_Read... [11:44:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:20]Read from MH i2c: E2 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 0B 00 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 0B 00 7B 2E 00 AC 61 0D 64 55 25 1F 04 90 00 40 [11:44:20]RAPDU: AC 61 0D 64 55 25 1F 04 90 00 [11:44:20]wFMCommunicate OK [11:44:20]SAM_PROTO_SignData done [11:44:20]FM_MakeSignedData done [11:44:20]CreateOFDProtocolMessage [11:44:20]wFMCommunicate request_size=4 [11:44:20]MH_SAM_APDU [11:44:20]CAPDU: 80 11 00 00 [11:44:20]Write to MH i2c: E2 08 00 7C 2E 80 11 00 00 00 00 00 00 24 [11:44:20]Write i2c OK [11:44:20]MH_I2C_Read... [11:44:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:20]Read from MH i2c: E2 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 17 00 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 17 00 7C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 77 [11:44:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:44:20]wFMCommunicate OK [11:44:20]CreateOFDProtocolMessage done [11:44:20]OFDSenderStorePacket 76424 [11:44:20]StoreOFDPacket docnum=76424 [11:44:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E1 DB 07 01 48 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 18 59 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 88 2A 01 00 35 04 06 00 84 E3 1B 05 38 2A AC 61 0D 64 55 25 1F 04 [11:44:20]CheckFolder [11:44:20]dirname=/storage/ofd_packets [11:44:20]CheckFolder done [11:44:20]ProducePacketName [11:44:20]name=ofd_packets/00076424 [11:44:20]NVStorageSaveData ofd_packets/00076424 [11:44:20]File name is /storage/ofd_packets/00076424 [11:44:20]Write 301 bytes [11:44:20]NVStorageSaveData done [11:44:20]OFDSenderStorePacket done [11:44:20]KKMCreateOFDPacket done [11:44:20]NVStorageSaveData kkm_last_timestamp [11:44:20]File name is /storage/kkm_last_timestamp [11:44:20]Write 4 bytes [11:44:20]NVStorageSaveData done [11:44:20]ExternCall_PrintAddStr [11:44:20]wPrintStart [11:44:20]Write to MH i2c: 01 00 00 7D 2E AB [11:44:20]Write i2c OK [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: 01 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: 01 07 00 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: 01 07 00 7D 2E 00 00 00 00 00 FF 0F C0 [11:44:20]RasterBufferAndPrint [11:44:20]line Счет N : (1)190888 [11:44:20]line ИНН: 02508201610067 [11:44:20]line Контрольно-Кассовый Чек [11:44:20]line ПРОДАЖА [11:44:20]line ТРК (МРК, ГНК) : 12 [11:44:20]line Товар: 2710124130 [11:44:20]line Аи-92-К-5 [11:44:20]line 15.530 * 64.40 [11:44:20]line = 1000.13 [11:44:20]line НДС 12% НСП 1% [11:44:20]line > о реализуемом товаре [11:44:20]line ОКРУГЛЕНИЕ: -0.13 [11:44:20]line ИТОГО: 1000.00 [11:44:20]line Внесено: 1000.00 [11:44:20]line СДАЧА: 0.00 [11:44:20]line НСП 1% : 8.85 [11:44:20]line НДС 12% : 106.21 [11:44:20]line Наличными: 1000.00 [11:44:20]line Безнал.: 0.00 [11:44:20]line Место: АЗС № 106 "Партнер Нефть" [11:44:20]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:44:20]line СНО: Общий режим [11:44:20]line Чек 44 19.04.2024 11:44 [11:44:20]line Смена: 370 ФФД: 1.0 [11:44:20]line ЗНМ: 0300000141 [11:44:20]line РНМ: 0000000000091573 [11:44:20]line Версия ККМ: 001 [11:44:20]line ФМ: 0000000000874652 [11:44:20]line ФД: 76424 [11:44:20]line ФПД: 146110945769514 [11:44:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T114424&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76424&fm=146110945769514&tin=02508201610067®Number=0000000000091573&sum=100000 [11:44:21]written 0, free lines is 4095 [11:44:21]OFD Sender: Processing packet 76424 [packets to send 128, broken 127] [11:44:21]ProducePacketName [11:44:21]name=ofd_packets/00076424 [11:44:21]OFD Sender: To server: pG, [11:44:21]CommunicateWithHost lk.salyk.kg:30040 [11:44:21]ConnectInit lk.salyk.kg [11:44:21]Connected sock=10 [11:44:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E1 DB 07 01 48 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 18 59 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 88 2A 01 00 35 04 06 00 84 E3 1B 05 38 2A AC 61 0D 64 55 25 1F 04 [11:44:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A8 7A 47 00 5C 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 34 36 35 32 10 04 04 00 88 2A 01 00 F4 03 04 00 A3 00 22 66 B6 04 01 00 00 FB 5D A7 43 D9 81 34 2C [11:44:21]CommunicateWithHost err = 0 [11:44:21]CheckOFDResponse [11:44:21]1017 (14) - 77093643461234 [11:44:21]1041 (16) - 0000000000874652 [11:44:21]1040 (4) - 76424 [11:44:21]1012 (4) - 19.04.2024 05:26 [11:44:21]1206 (1) - 0 [11:44:21]OFD Sender: Remove packet 76424 [11:44:21]ProducePacketName [11:44:21]name=ofd_packets/00076424 [11:44:21]NVStorageDeleteData [11:44:21]Write to MH i2c: 01 00 00 A7 2E D5 [11:44:21]Write i2c OK [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: 01 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: 01 07 00 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: 01 07 00 A7 2E 00 00 00 00 00 E0 0C C8 [11:44:21]RasterBufferAndPrint [11:44:21]line [11:44:21]line [11:44:21]line [11:44:21]line [11:44:21]line [11:44:21]written 0, free lines is 3302 [11:44:21]MH_Cut [11:44:21]Write to MH i2c: D1 01 00 AE 2E 01 AE [11:44:21]Write i2c OK [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: D1 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: D1 01 00 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: D1 01 00 AE 2E 00 AD [11:44:21]Write to MH i2c: 01 00 00 AF 2E DD [11:44:21]Write i2c OK [11:44:21]MH_I2C_Read... [11:44:22]OFD Sender: No OFD packet to send [11:44:22]*** Cut start [11:44:22]*** Partial cut [11:44:22]*** CUTSNS_PIN = 1 [11:44:22]*** CUTSNS_PIN = 0 [11:44:22]*** Brake cut motor [11:44:22]Read from MH i2c: 01 [11:44:22]MH_I2C_Read... [11:44:22]*** Stop cut motor [11:44:22]*** Cut end [11:44:22]Read from MH i2c: 01 07 00 [11:44:22]MH_I2C_Read... [11:44:22]Read from MH i2c: 01 07 00 AF 2E 00 00 00 00 00 FF 0F F2 [11:44:22]process_action close_receipt done [11:44:22]requested_data is exist [11:44:22]produce_requested_data [11:44:22]requested_item fm.sn is exist - process it [11:44:22]wFMCommunicate request_size=4 [11:44:22]MH_SAM_APDU [11:44:22]CAPDU: 80 11 00 00 [11:44:22]Write to MH i2c: E2 08 00 B0 2E 80 11 00 00 00 00 00 00 58 [11:44:22]Write i2c OK [11:44:22]MH_I2C_Read... [11:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:23]Read from MH i2c: E2 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 17 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 17 00 B0 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AB [11:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:44:23]wFMCommunicate OK [11:44:23]requested_item fd.num is exist - process it [11:44:23]SAM_PROTO_GetFieldsCounters [11:44:23]wFMCommunicate request_size=4 [11:44:23]MH_SAM_APDU [11:44:23]CAPDU: 80 13 00 00 [11:44:23]Write to MH i2c: E2 08 00 B1 2E 80 13 00 00 00 00 00 00 5B [11:44:23]Write i2c OK [11:44:23]MH_I2C_Read... [11:44:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:23]Read from MH i2c: E2 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 62 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 62 00 B1 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 88 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [11:44:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 88 2A 01 00 0E 04 04 00 72 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 [11:44:23]wFMCommunicate OK [11:44:23]SAM_PROTO_GetFieldsCounters done [11:44:23]requested_item shift.num is exist - process it [11:44:23]requested_item shift.opened is exist - process it [11:44:23]req_shift_opened [11:44:23]FM_GetShiftState [11:44:23]SAM_PROTO_GetShiftState [11:44:23]wFMCommunicate request_size=4 [11:44:23]MH_SAM_APDU [11:44:23]CAPDU: 80 13 01 00 [11:44:23]Write to MH i2c: E2 08 00 B2 2E 80 13 01 00 00 00 00 00 5D [11:44:23]Write i2c OK [11:44:23]MH_I2C_Read... [11:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:23]Read from MH i2c: E2 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 0E 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 0E 00 B2 2E 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 42 [11:44:23]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:44:23]wFMCommunicate OK [11:44:23]SAM_PROTO_GetShiftState done [11:44:23]FM_GetShiftState done [11:44:23]req_shift_opened done [11:44:23]requested_item shift.open_date is exist - process it [11:44:23]req_shift_open_date [11:44:23]req_shift_open_date done [11:44:23]produce_requested_data done [11:44:23]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76424,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [11:44:23]process_action_free close_receipt [11:44:23]json_value_free [11:44:23]json_value_free done [11:44:23]process_json_proto returns [11:44:23]Send response to host [11:44:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76424,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [11:44:23]free response buf [11:44:23]execute_script done [11:44:23]execute_script returns [11:44:23]free content buf [11:44:23]Sock 7.Close socket [11:44:23]Sock 7.Thread stoped [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]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:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:56]accept exits with 9 [11:53:56]New connection [11:53:56]New thread 3066486116 created [11:53:56]Thread 3066629476 joined [11:53:56]Waiting for new connection... [11:53:56] Sock 9.Parse request [11:53:56]Sock 9.Check first char [11:53:56]Sock 9.First char is OK [11:53:56]request: POST /json_proto HTTP/1.0 [11:53:56]Method: POST [11:53:56]URL: /json_proto [11:53:56]Method is POST - this is cgi request [11:53:56]url: /json_proto [11:53:56]query_string will be loaded in cgi processing [11:53:56]execute_cgi json_proto POST (null) [11:53:56]execute_cgi path=json_proto method=POST [11:53:56]POST find Content-Length [11:53:56]Host: 172.17.62.5:8080 [11:53:56]Content-Length: 677 [11:53:56]Content-Type: application/json [11:53:56] [11:53:56]POST finish read [11:53:56]Found Content-Length = 677 [11:53:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:56]execute_script... [11:53: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)190890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:56]POST & json_proto [11:53:56]process_json_proto [11:53:56]json parsed OK: [11:53:56]protocol is kg_v1.0 [11:53:56]action value=close_receipt [11:53:56]process_action close_receipt [11:53:56]cmd_close_receipt [11:53:56]MH_GetDate [11:53:56]Write to MH i2c: F0 00 00 B3 2E D0 [11:53:56]Write i2c OK [11:53:56]MH_I2C_Read... [11:53:56]Read from MH i2c: F0 [11:53:56]MH_I2C_Read... [11:53:56]Read from MH i2c: F0 09 00 [11:53:56]MH_I2C_Read... [11:53:56]Read from MH i2c: F0 09 00 B3 2E 00 59 5B 22 66 F4 E9 65 64 BB [11:53:56]GetLastDocTimeStamp 1713527064 [11:53:56]current date 1713527641 [11:53:56]FM_GetShiftState [11:53:56]SAM_PROTO_GetShiftState [11:53:56]wFMCommunicate request_size=4 [11:53:56]MH_SAM_APDU [11:53:56]CAPDU: 80 13 01 00 [11:53:56]Write to MH i2c: E2 08 00 B4 2E 80 13 01 00 00 00 00 00 5F [11:53:56]Write i2c OK [11:53:56]MH_I2C_Read... [11:53:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:56]Read from MH i2c: E2 [11:53:56]MH_I2C_Read... [11:53:56]Read from MH i2c: E2 0E 00 [11:53:56]MH_I2C_Read... [11:53:56]Read from MH i2c: E2 0E 00 B4 2E 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 44 [11:53:56]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:53:56]wFMCommunicate OK [11:53:56]SAM_PROTO_GetShiftState done [11:53:56]FM_GetShiftState done [11:53:56]opened in 1713486233 [11:53:56]opened+sec_in_day 1713572633 [11:53:56]quantity*price = 50038 [11:53:56]sum+1 = 50040 [11:53:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 45 19.04.2024 11:54 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76425 ФПД: 267022763813429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T115401&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76425&fm=267022763813429&tin=02508201610067®Number=0000000000091573&sum=50000 [11:53:57]StoreToDocumentArchive [11:53:57]shift 370 fd 76425 [11:53:57]save to /storage/0370/doc_00076425 [11:53:57]save last doc name /storage/0370/doc_00076425 to /storage/kkm_last_doc_name [11:53:57]save OK [11:53:57]Clear old archive folders... [11:53:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:53:57]tlvbuf is 00A0C6A0 [11:53:57]SAM_PROTO_ClearQueue [11:53:57]wFMCommunicate request_size=4 [11:53:57]MH_SAM_APDU [11:53:57]CAPDU: 80 09 00 00 [11:53:57]Write to MH i2c: E2 08 00 C1 2E 80 09 00 00 00 00 00 00 61 [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:57]Read from MH i2c: E2 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 03 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 03 00 C1 2E 00 90 00 63 [11:53:57]RAPDU: 90 00 [11:53:57]wFMCommunicate OK [11:53:57]SAM_PROTO_ClearQueue done [11:53:57]KKMCreateOFDPacket [11:53:57]OFDProtocolAddRootSTLVToBuf [11:53:57]FM_MakeSignedData [11:53:57]FM_MakeSignedData [11:53:57]SAM_PROTO_SignData [11:53:57]wFMCommunicate request_size=4 [11:53:57]MH_SAM_APDU [11:53:57]CAPDU: 80 0D 01 02 [11:53:57]Write to MH i2c: E2 08 00 C2 2E 80 0D 01 02 00 00 00 00 69 [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:57]Read from MH i2c: E2 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 03 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 03 00 C2 2E 00 90 00 64 [11:53:57]RAPDU: 90 00 [11:53:57]wFMCommunicate OK [11:53:57]wFMCommunicate request_size=255 [11:53:57]MH_SAM_APDU [11:53: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 59 5B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 89 2A 01 00 35 04 06 00 F2 [11:53:57]Write to MH i2c: E2 02 01 C3 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 59 5B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 89 2A 01 00 35 04 06 00 F2 00 00 A0 [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:57]OFD Sender: No OFD packet to send [11:53:57]Read from MH i2c: E2 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 03 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 03 00 C3 2E 00 90 00 65 [11:53:57]RAPDU: 90 00 [11:53:57]wFMCommunicate OK [11:53:57]wFMCommunicate request_size=10 [11:53:57]MH_SAM_APDU [11:53:57]CAPDU: 80 0D 02 02 05 DB 14 FB EA 35 [11:53:57]Write to MH i2c: E2 0D 00 C4 2E 80 0D 02 02 05 00 DB 14 FB EA 35 00 00 7F [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:57]Read from MH i2c: E2 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 03 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 03 00 C4 2E 00 90 00 66 [11:53:57]RAPDU: 90 00 [11:53:57]wFMCommunicate OK [11:53:57]wFMCommunicate request_size=4 [11:53:57]MH_SAM_APDU [11:53:57]CAPDU: 80 0D 03 02 [11:53:57]Write to MH i2c: E2 08 00 C5 2E 80 0D 03 02 00 00 00 00 6E [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:57]Read from MH i2c: E2 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 0B 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 0B 00 C5 2E 00 5C 66 DD B3 C4 C3 14 38 90 00 94 [11:53:57]RAPDU: 5C 66 DD B3 C4 C3 14 38 90 00 [11:53:57]wFMCommunicate OK [11:53:57]SAM_PROTO_SignData done [11:53:57]FM_MakeSignedData done [11:53:57]CreateOFDProtocolMessage [11:53:57]wFMCommunicate request_size=4 [11:53:57]MH_SAM_APDU [11:53:57]CAPDU: 80 11 00 00 [11:53:57]Write to MH i2c: E2 08 00 C6 2E 80 11 00 00 00 00 00 00 6E [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:57]Read from MH i2c: E2 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 17 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 17 00 C6 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C1 [11:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:53:57]wFMCommunicate OK [11:53:57]CreateOFDProtocolMessage done [11:53:57]OFDSenderStorePacket 76425 [11:53:57]StoreOFDPacket docnum=76425 [11:53:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 60 69 07 01 C7 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 59 5B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 89 2A 01 00 35 04 06 00 F2 DB 14 FB EA 35 5C 66 DD B3 C4 C3 14 38 [11:53:57]CheckFolder [11:53:57]dirname=/storage/ofd_packets [11:53:57]CheckFolder done [11:53:57]ProducePacketName [11:53:57]name=ofd_packets/00076425 [11:53:57]NVStorageSaveData ofd_packets/00076425 [11:53:57]File name is /storage/ofd_packets/00076425 [11:53:57]Write 301 bytes [11:53:57]NVStorageSaveData done [11:53:57]OFDSenderStorePacket done [11:53:57]KKMCreateOFDPacket done [11:53:57]NVStorageSaveData kkm_last_timestamp [11:53:57]File name is /storage/kkm_last_timestamp [11:53:57]Write 4 bytes [11:53:57]NVStorageSaveData done [11:53:57]ExternCall_PrintAddStr [11:53:57]wPrintStart [11:53:57]Write to MH i2c: 01 00 00 C7 2E F5 [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: 01 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: 01 07 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: 01 07 00 C7 2E 00 00 00 00 00 FF 0F 0A [11:53:57]RasterBufferAndPrint [11:53:57]line Счет N : (1)190890 [11:53:57]line ИНН: 02508201610067 [11:53:57]line Контрольно-Кассовый Чек [11:53:57]line ПРОДАЖА [11:53:57]line ТРК (МРК, ГНК) : 43 [11:53:57]line Товар: 2710124130 [11:53:57]line Аи-92-К-5 [11:53:57]line 7.770 * 64.40 [11:53:57]line = 500.39 [11:53:57]line НДС 12% НСП 1% [11:53:57]line > о реализуемом товаре [11:53:57]line ОКРУГЛЕНИЕ: -0.39 [11:53:57]line ИТОГО: 500.00 [11:53:57]line Внесено: 500.00 [11:53:57]line СДАЧА: 0.00 [11:53:57]line НСП 1% : 4.43 [11:53:57]line НДС 12% : 53.14 [11:53:57]line Наличными: 500.00 [11:53:57]line Безнал.: 0.00 [11:53:57]line Место: АЗС № 106 "Партнер Нефть" [11:53:57]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:53:57]line СНО: Общий режим [11:53:57]line Чек 45 19.04.2024 11:54 [11:53:57]line Смена: 370 ФФД: 1.0 [11:53:57]line ЗНМ: 0300000141 [11:53:57]line РНМ: 0000000000091573 [11:53:57]line Версия ККМ: 001 [11:53:57]line ФМ: 0000000000874652 [11:53:57]line ФД: 76425 [11:53:57]line ФПД: 267022763813429 [11:53:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T115401&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76425&fm=267022763813429&tin=02508201610067®Number=0000000000091573&sum=50000 [11:53:58]OFD Sender: Processing packet 76425 [packets to send 128, broken 127] [11:53:58]ProducePacketName [11:53:58]name=ofd_packets/00076425 [11:53:58]OFD Sender: To server: pG, [11:53:58]CommunicateWithHost lk.salyk.kg:30040 [11:53:58]ConnectInit lk.salyk.kg [11:53:58]written 0, free lines is 4095 [11:53:58]Connected sock=7 [11:53:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 60 69 07 01 C7 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 59 5B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 89 2A 01 00 35 04 06 00 F2 DB 14 FB EA 35 5C 66 DD B3 C4 C3 14 38 [11:53:58]Write to MH i2c: 01 00 00 F1 2E 1F [11:53:58]Write i2c OK [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: 01 [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: 01 07 00 [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: 01 07 00 F1 2E 00 00 00 00 00 DA 0C 0C [11:53:58]RasterBufferAndPrint [11:53:58]line [11:53:58]line [11:53:58]line [11:53:58]line [11:53:58]line [11:53:58]written 0, free lines is 3296 [11:53:58]MH_Cut [11:53:58]Write to MH i2c: D1 01 00 F8 2E 01 F8 [11:53:58]Write i2c OK [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: D1 [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: D1 01 00 [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: D1 01 00 F8 2E 00 F7 [11:53:58]Write to MH i2c: 01 00 00 F9 2E 27 [11:53:58]Write i2c OK [11:53:58]MH_I2C_Read... [11:53:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D4 77 47 00 CF 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 34 36 35 32 10 04 04 00 89 2A 01 00 F4 03 04 00 E5 02 22 66 B6 04 01 00 00 91 B3 AF EF 65 DC C1 46 [11:53:58]CommunicateWithHost err = 0 [11:53:58]CheckOFDResponse [11:53:58]1017 (14) - 77093643461234 [11:53:58]1041 (16) - 0000000000874652 [11:53:58]1040 (4) - 76425 [11:53:58]1012 (4) - 19.04.2024 05:36 [11:53:58]1206 (1) - 0 [11:53:58]OFD Sender: Remove packet 76425 [11:53:58]ProducePacketName [11:53:58]name=ofd_packets/00076425 [11:53:58]NVStorageDeleteData [11:53:59]OFD Sender: No OFD packet to send [11:53:59]*** Cut start [11:53:59]*** Partial cut [11:53:59]*** CUTSNS_PIN = 1 [11:53:59]*** CUTSNS_PIN = 0 [11:53:59]*** Brake cut motor [11:54:00]Read from MH i2c: 01 [11:54:00]MH_I2C_Read... [11:54:00]*** Stop cut motor [11:54:00]*** Cut end [11:54:00]Read from MH i2c: 01 07 00 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: 01 07 00 F9 2E 00 00 00 00 00 FF 0F 3C [11:54:00]process_action close_receipt done [11:54:00]requested_data is exist [11:54:00]produce_requested_data [11:54:00]requested_item fm.sn is exist - process it [11:54:00]wFMCommunicate request_size=4 [11:54:00]MH_SAM_APDU [11:54:00]CAPDU: 80 11 00 00 [11:54:00]Write to MH i2c: E2 08 00 FA 2E 80 11 00 00 00 00 00 00 A2 [11:54:00]Write i2c OK [11:54:00]MH_I2C_Read... [11:54:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:00]Read from MH i2c: E2 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: E2 17 00 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: E2 17 00 FA 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F5 [11:54:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:54:00]wFMCommunicate OK [11:54:00]requested_item fd.num is exist - process it [11:54:00]SAM_PROTO_GetFieldsCounters [11:54:00]wFMCommunicate request_size=4 [11:54:00]MH_SAM_APDU [11:54:00]CAPDU: 80 13 00 00 [11:54:00]Write to MH i2c: E2 08 00 FB 2E 80 13 00 00 00 00 00 00 A5 [11:54:00]Write i2c OK [11:54:00]MH_I2C_Read... [11:54:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:00]Read from MH i2c: E2 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: E2 62 00 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: E2 62 00 FB 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 89 2A 01 00 0E 04 04 00 72 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 74 [11:54:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 89 2A 01 00 0E 04 04 00 72 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 [11:54:00]wFMCommunicate OK [11:54:00]SAM_PROTO_GetFieldsCounters done [11:54:00]requested_item shift.num is exist - process it [11:54:00]requested_item shift.opened is exist - process it [11:54:00]req_shift_opened [11:54:00]FM_GetShiftState [11:54:00]SAM_PROTO_GetShiftState [11:54:00]wFMCommunicate request_size=4 [11:54:00]MH_SAM_APDU [11:54:00]CAPDU: 80 13 01 00 [11:54:00]Write to MH i2c: E2 08 00 FC 2E 80 13 01 00 00 00 00 00 A7 [11:54:00]Write i2c OK [11:54:00]MH_I2C_Read... [11:54:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:00]Read from MH i2c: E2 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: E2 0E 00 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: E2 0E 00 FC 2E 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 8C [11:54:00]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:54:00]wFMCommunicate OK [11:54:00]SAM_PROTO_GetShiftState done [11:54:00]FM_GetShiftState done [11:54:00]req_shift_opened done [11:54:00]requested_item shift.open_date is exist - process it [11:54:00]req_shift_open_date [11:54:00]req_shift_open_date done [11:54:00]produce_requested_data done [11:54:00]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76425,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [11:54:00]process_action_free close_receipt [11:54:00]json_value_free [11:54:00]json_value_free done [11:54:00]process_json_proto returns [11:54:00]Send response to host [11:54:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76425,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [11:54:00]free response buf [11:54:00]execute_script done [11:54:00]execute_script returns [11:54:00]free content buf [11:54:00]Sock 9.Close socket [11:54:00]Sock 9.Thread stoped [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [11:57: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:06]accept exits with 10 [11:58:06]New connection [11:58:06]New thread 3066629476 created [11:58:06]Thread 3066486116 joined [11:58:06]Waiting for new connection... [11:58:06] Sock 10.Parse request [11:58:06]Sock 10.Check first char [11:58:06]Sock 10.First char is OK [11:58:06]request: POST /json_proto HTTP/1.0 [11:58:06]Method: POST [11:58:06]URL: /json_proto [11:58:06]Method is POST - this is cgi request [11:58:06]url: /json_proto [11:58:06]query_string will be loaded in cgi processing [11:58:06]execute_cgi json_proto POST (null) [11:58:06]execute_cgi path=json_proto method=POST [11:58:06]POST find Content-Length [11:58:06]Host: 172.17.62.5:8080 [11:58:06]Content-Length: 682 [11:58:06]Content-Type: application/json [11:58:06] [11:58:06]POST finish read [11:58:06]Found Content-Length = 682 [11:58:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\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:58:06]execute_script... [11:58: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)190891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\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:58:06]POST & json_proto [11:58:06]process_json_proto [11:58:06]json parsed OK: [11:58:06]protocol is kg_v1.0 [11:58:06]action value=close_receipt [11:58:06]process_action close_receipt [11:58:06]cmd_close_receipt [11:58:06]MH_GetDate [11:58:06]Write to MH i2c: F0 00 00 FD 2E 1A [11:58:06]Write i2c OK [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: F0 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: F0 09 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: F0 09 00 FD 2E 00 53 5C 22 66 F4 E9 65 64 00 [11:58:06]GetLastDocTimeStamp 1713527641 [11:58:06]current date 1713527891 [11:58:06]FM_GetShiftState [11:58:06]SAM_PROTO_GetShiftState [11:58:06]wFMCommunicate request_size=4 [11:58:06]MH_SAM_APDU [11:58:06]CAPDU: 80 13 01 00 [11:58:06]Write to MH i2c: E2 08 00 FE 2E 80 13 01 00 00 00 00 00 A9 [11:58:06]Write i2c OK [11:58:06]MH_I2C_Read... [11:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:06]Read from MH i2c: E2 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 0E 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 0E 00 FE 2E 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 8E [11:58:06]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:58:06]wFMCommunicate OK [11:58:06]SAM_PROTO_GetShiftState done [11:58:06]FM_GetShiftState done [11:58:06]opened in 1713486233 [11:58:06]opened+sec_in_day 1713572633 [11:58:06]quantity*price = 100018 [11:58:06]sum+1 = 100020 [11:58:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 46 19.04.2024 11:58 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76426 ФПД: 152558573399462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T115811&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76426&fm=152558573399462&tin=02508201610067®Number=0000000000091573&sum=100000 [11:58:07]StoreToDocumentArchive [11:58:07]shift 370 fd 76426 [11:58:07]save to /storage/0370/doc_00076426 [11:58:07]save last doc name /storage/0370/doc_00076426 to /storage/kkm_last_doc_name [11:58:07]save OK [11:58:07]Clear old archive folders... [11:58:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:07]tlvbuf is 009465F0 [11:58:07]SAM_PROTO_ClearQueue [11:58:07]wFMCommunicate request_size=4 [11:58:07]MH_SAM_APDU [11:58:07]CAPDU: 80 09 00 00 [11:58:07]Write to MH i2c: E2 08 00 0B 2F 80 09 00 00 00 00 00 00 AC [11:58:07]Write i2c OK [11:58:07]MH_I2C_Read... [11:58:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:07]Read from MH i2c: E2 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 03 00 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 03 00 0B 2F 00 90 00 AE [11:58:07]RAPDU: 90 00 [11:58:07]wFMCommunicate OK [11:58:07]SAM_PROTO_ClearQueue done [11:58:07]KKMCreateOFDPacket [11:58:07]OFDProtocolAddRootSTLVToBuf [11:58:07]FM_MakeSignedData [11:58:07]FM_MakeSignedData [11:58:07]SAM_PROTO_SignData [11:58:07]wFMCommunicate request_size=4 [11:58:07]MH_SAM_APDU [11:58:07]CAPDU: 80 0D 01 02 [11:58:07]Write to MH i2c: E2 08 00 0C 2F 80 0D 01 02 00 00 00 00 B4 [11:58:07]Write i2c OK [11:58:07]MH_I2C_Read... [11:58:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:07]Read from MH i2c: E2 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 03 00 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 03 00 0C 2F 00 90 00 AF [11:58:07]RAPDU: 90 00 [11:58:07]wFMCommunicate OK [11:58:07]wFMCommunicate request_size=255 [11:58:07]MH_SAM_APDU [11:58:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 2E 00 00 00 F4 03 04 00 53 5C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8A 2A 01 00 35 04 06 00 8A [11:58:07]Write to MH i2c: E2 02 01 0D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 2E 00 00 00 F4 03 04 00 53 5C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8A 2A 01 00 35 04 06 00 8A 00 00 E2 [11:58:07]Write i2c OK [11:58:07]MH_I2C_Read... [11:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:07]Read from MH i2c: E2 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 03 00 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 03 00 0D 2F 00 90 00 B0 [11:58:07]RAPDU: 90 00 [11:58:07]wFMCommunicate OK [11:58:07]wFMCommunicate request_size=10 [11:58:07]MH_SAM_APDU [11:58:07]CAPDU: 80 0D 02 02 05 C0 4F 93 2D A6 [11:58:07]Write to MH i2c: E2 0D 00 0E 2F 80 0D 02 02 05 00 C0 4F 93 2D A6 00 00 36 [11:58:07]Write i2c OK [11:58:07]MH_I2C_Read... [11:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:07]Read from MH i2c: E2 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 03 00 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 03 00 0E 2F 00 90 00 B1 [11:58:07]RAPDU: 90 00 [11:58:07]wFMCommunicate OK [11:58:07]wFMCommunicate request_size=4 [11:58:07]MH_SAM_APDU [11:58:07]CAPDU: 80 0D 03 02 [11:58:07]Write to MH i2c: E2 08 00 0F 2F 80 0D 03 02 00 00 00 00 B9 [11:58:07]Write i2c OK [11:58:07]MH_I2C_Read... [11:58:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:07]Read from MH i2c: E2 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 0B 00 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 0B 00 0F 2F 00 7C CD E1 B8 FB 72 27 AF 90 00 DF [11:58:07]RAPDU: 7C CD E1 B8 FB 72 27 AF 90 00 [11:58:07]wFMCommunicate OK [11:58:07]SAM_PROTO_SignData done [11:58:07]FM_MakeSignedData done [11:58:07]CreateOFDProtocolMessage [11:58:07]wFMCommunicate request_size=4 [11:58:07]MH_SAM_APDU [11:58:07]CAPDU: 80 11 00 00 [11:58:07]Write to MH i2c: E2 08 00 10 2F 80 11 00 00 00 00 00 00 B9 [11:58:07]Write i2c OK [11:58:07]MH_I2C_Read... [11:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:07]Read from MH i2c: E2 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 17 00 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 17 00 10 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0C [11:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:58:07]wFMCommunicate OK [11:58:07]CreateOFDProtocolMessage done [11:58:07]OFDSenderStorePacket 76426 [11:58:07]StoreOFDPacket docnum=76426 [11:58:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 FE D5 07 01 32 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 2E 00 00 00 F4 03 04 00 53 5C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8A 2A 01 00 35 04 06 00 8A C0 4F 93 2D A6 7C CD E1 B8 FB 72 27 AF [11:58:07]CheckFolder [11:58:07]dirname=/storage/ofd_packets [11:58:07]CheckFolder done [11:58:07]ProducePacketName [11:58:07]name=ofd_packets/00076426 [11:58:07]NVStorageSaveData ofd_packets/00076426 [11:58:07]File name is /storage/ofd_packets/00076426 [11:58:07]Write 301 bytes [11:58:07]NVStorageSaveData done [11:58:07]OFDSenderStorePacket done [11:58:07]KKMCreateOFDPacket done [11:58:07]NVStorageSaveData kkm_last_timestamp [11:58:07]File name is /storage/kkm_last_timestamp [11:58:07]Write 4 bytes [11:58:07]NVStorageSaveData done [11:58:07]ExternCall_PrintAddStr [11:58:07]wPrintStart [11:58:07]Write to MH i2c: 01 00 00 11 2F 40 [11:58:07]Write i2c OK [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: 01 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: 01 07 00 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: 01 07 00 11 2F 00 00 00 00 00 FF 0F 55 [11:58:07]RasterBufferAndPrint [11:58:07]line Счет N : (1)190891 [11:58:07]line ИНН: 02508201610067 [11:58:07]line Контрольно-Кассовый Чек [11:58:07]line ПРОДАЖА [11:58:07]line ТРК (МРК, ГНК) : 11 [11:58:07]line Товар: 2710124500 [11:58:07]line Аи-95-К-5 [11:58:07]line 13.720 * 72.90 [11:58:07]line = 1000.19 [11:58:07]line НДС 12% НСП 1% [11:58:07]line > о реализуемом товаре [11:58:07]line ОКРУГЛЕНИЕ: -0.19 [11:58:07]line ИТОГО: 1000.00 [11:58:07]line Внесено: 1000.00 [11:58:07]line СДАЧА: 0.00 [11:58:07]line НСП 1% : 8.85 [11:58:07]line НДС 12% : 106.21 [11:58:07]line Наличными: 1000.00 [11:58:07]line Безнал.: 0.00 [11:58:07]line Место: АЗС № 106 "Партнер Нефть" [11:58:07]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:58:07]line СНО: Общий режим [11:58:07]line Чек 46 19.04.2024 11:58 [11:58:07]line Смена: 370 ФФД: 1.0 [11:58:07]line ЗНМ: 0300000141 [11:58:07]line РНМ: 0000000000091573 [11:58:07]line Версия ККМ: 001 [11:58:07]line ФМ: 0000000000874652 [11:58:07]line ФД: 76426 [11:58:07]line ФПД: 152558573399462 [11:58:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T115811&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76426&fm=152558573399462&tin=02508201610067®Number=0000000000091573&sum=100000 [11:58:08]OFD Sender: Processing packet 76426 [packets to send 128, broken 127] [11:58:08]ProducePacketName [11:58:08]name=ofd_packets/00076426 [11:58:08]OFD Sender: To server: pG, [11:58:08]CommunicateWithHost lk.salyk.kg:30040 [11:58:08]ConnectInit lk.salyk.kg [11:58:08]written 0, free lines is 4095 [11:58:08]Connected sock=9 [11:58:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 FE D5 07 01 32 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 2E 00 00 00 F4 03 04 00 53 5C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8A 2A 01 00 35 04 06 00 8A C0 4F 93 2D A6 7C CD E1 B8 FB 72 27 AF [11:58:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 5D 62 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 34 36 35 32 10 04 04 00 8A 2A 01 00 F4 03 04 00 DE 03 22 66 B6 04 01 00 00 0A 65 F8 7D A9 15 06 F7 [11:58:08]CommunicateWithHost err = 0 [11:58:08]CheckOFDResponse [11:58:08]1017 (14) - 77093643461234 [11:58:08]1041 (16) - 0000000000874652 [11:58:08]1040 (4) - 76426 [11:58:08]1012 (4) - 19.04.2024 05:40 [11:58:08]1206 (1) - 0 [11:58:08]OFD Sender: Remove packet 76426 [11:58:08]ProducePacketName [11:58:08]name=ofd_packets/00076426 [11:58:08]NVStorageDeleteData [11:58:08]Write to MH i2c: 01 00 00 3B 2F 6A [11:58:08]Write i2c OK [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: 01 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: 01 07 00 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: 01 07 00 3B 2F 00 00 00 00 00 E0 0C 5D [11:58:08]RasterBufferAndPrint [11:58:08]line [11:58:08]line [11:58:08]line [11:58:08]line [11:58:08]line [11:58:08]written 0, free lines is 3302 [11:58:08]MH_Cut [11:58:08]Write to MH i2c: D1 01 00 42 2F 01 43 [11:58:08]Write i2c OK [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: D1 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: D1 01 00 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: D1 01 00 42 2F 00 42 [11:58:08]Write to MH i2c: 01 00 00 43 2F 72 [11:58:08]Write i2c OK [11:58:08]MH_I2C_Read... [11:58:08]OFD Sender: No OFD packet to send [11:58:09]*** Cut start [11:58:09]*** Partial cut [11:58:09]*** CUTSNS_PIN = 1 [11:58:09]*** CUTSNS_PIN = 0 [11:58:09]*** Brake cut motor [11:58:09]Read from MH i2c: 01 [11:58:09]MH_I2C_Read... [11:58:09]*** Stop cut motor [11:58:09]*** Cut end [11:58:09]Read from MH i2c: 01 07 00 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: 01 07 00 43 2F 00 00 00 00 00 FF 0F 87 [11:58:09]process_action close_receipt done [11:58:09]requested_data is exist [11:58:09]produce_requested_data [11:58:09]requested_item fm.sn is exist - process it [11:58:09]wFMCommunicate request_size=4 [11:58:09]MH_SAM_APDU [11:58:09]CAPDU: 80 11 00 00 [11:58:09]Write to MH i2c: E2 08 00 44 2F 80 11 00 00 00 00 00 00 ED [11:58:09]Write i2c OK [11:58:09]MH_I2C_Read... [11:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:09]Read from MH i2c: E2 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 17 00 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 17 00 44 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 40 [11:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:58:09]wFMCommunicate OK [11:58:09]requested_item fd.num is exist - process it [11:58:09]SAM_PROTO_GetFieldsCounters [11:58:09]wFMCommunicate request_size=4 [11:58:09]MH_SAM_APDU [11:58:09]CAPDU: 80 13 00 00 [11:58:09]Write to MH i2c: E2 08 00 45 2F 80 13 00 00 00 00 00 00 F0 [11:58:09]Write i2c OK [11:58:09]MH_I2C_Read... [11:58:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:10]Read from MH i2c: E2 [11:58:10]MH_I2C_Read... [11:58:10]Read from MH i2c: E2 62 00 [11:58:10]MH_I2C_Read... [11:58:10]Read from MH i2c: E2 62 00 45 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8A 2A 01 00 0E 04 04 00 72 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 C3 [11:58: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8A 2A 01 00 0E 04 04 00 72 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 [11:58:10]wFMCommunicate OK [11:58:10]SAM_PROTO_GetFieldsCounters done [11:58:10]requested_item shift.num is exist - process it [11:58:10]requested_item shift.opened is exist - process it [11:58:10]req_shift_opened [11:58:10]FM_GetShiftState [11:58:10]SAM_PROTO_GetShiftState [11:58:10]wFMCommunicate request_size=4 [11:58:10]MH_SAM_APDU [11:58:10]CAPDU: 80 13 01 00 [11:58:10]Write to MH i2c: E2 08 00 46 2F 80 13 01 00 00 00 00 00 F2 [11:58:10]Write i2c OK [11:58:10]MH_I2C_Read... [11:58:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:10]Read from MH i2c: E2 [11:58:10]MH_I2C_Read... [11:58:10]Read from MH i2c: E2 0E 00 [11:58:10]MH_I2C_Read... [11:58:10]Read from MH i2c: E2 0E 00 46 2F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 D7 [11:58:10]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [11:58:10]wFMCommunicate OK [11:58:10]SAM_PROTO_GetShiftState done [11:58:10]FM_GetShiftState done [11:58:10]req_shift_opened done [11:58:10]requested_item shift.open_date is exist - process it [11:58:10]req_shift_open_date [11:58:10]req_shift_open_date done [11:58:10]produce_requested_data done [11:58:10]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76426,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [11:58:10]process_action_free close_receipt [11:58:10]json_value_free [11:58:10]json_value_free done [11:58:10]process_json_proto returns [11:58:10]Send response to host [11:58:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76426,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [11:58:10]free response buf [11:58:10]execute_script done [11:58:10]execute_script returns [11:58:10]free content buf [11:58:10]Sock 10.Close socket [11:58:10]Sock 10.Thread stoped [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59: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:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [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]accept exits with 7 [12:04:04]New connection [12:04:04]New thread 3066486116 created [12:04:04]Thread 3066629476 joined [12:04:04]Waiting for new connection... [12:04:04] Sock 7.Parse request [12:04:04]Sock 7.Check first char [12:04:04]Sock 7.First char is OK [12:04:04]request: POST /json_proto HTTP/1.0 [12:04:04]Method: POST [12:04:04]URL: /json_proto [12:04:04]Method is POST - this is cgi request [12:04:04]url: /json_proto [12:04:04]query_string will be loaded in cgi processing [12:04:04]execute_cgi json_proto POST (null) [12:04:04]execute_cgi path=json_proto method=POST [12:04:04]POST find Content-Length [12:04:04]Host: 172.17.62.5:8080 [12:04:04]Content-Length: 670 [12:04:04]Content-Type: application/json [12:04:04] [12:04:04]POST finish read [12:04:04]Found Content-Length = 670 [12:04:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 9.180, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:04]execute_script... [12:04: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)190892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 9.180, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:04]POST & json_proto [12:04:04]process_json_proto [12:04:04]json parsed OK: [12:04:04]protocol is kg_v1.0 [12:04:04]action value=close_receipt [12:04:04]process_action close_receipt [12:04:04]cmd_close_receipt [12:04:04]MH_GetDate [12:04:04]Write to MH i2c: F0 00 00 47 2F 65 [12:04:04]Write i2c OK [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: F0 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: F0 09 00 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: F0 09 00 47 2F 00 B9 5D 22 66 F4 E9 65 64 B2 [12:04:04]GetLastDocTimeStamp 1713527891 [12:04:04]current date 1713528249 [12:04:04]FM_GetShiftState [12:04:04]SAM_PROTO_GetShiftState [12:04:04]wFMCommunicate request_size=4 [12:04:04]MH_SAM_APDU [12:04:04]CAPDU: 80 13 01 00 [12:04:04]Write to MH i2c: E2 08 00 48 2F 80 13 01 00 00 00 00 00 F4 [12:04:04]Write i2c OK [12:04:04]MH_I2C_Read... [12:04:04]OFD Sender: No OFD packet to send [12:04:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:04]Read from MH i2c: E2 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 0E 00 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 0E 00 48 2F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 D9 [12:04:04]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:04:04]wFMCommunicate OK [12:04:04]SAM_PROTO_GetShiftState done [12:04:04]FM_GetShiftState done [12:04:04]opened in 1713486233 [12:04:04]opened+sec_in_day 1713572633 [12:04:04]quantity*price = 60037 [12:04:04]sum+1 = 60038 [12:04:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 47 19.04.2024 12:04 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76427 ФПД: 143600852237987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T120409&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76427&fm=143600852237987&tin=02508201610067®Number=0000000000091573&sum=60000 [12:04:05]StoreToDocumentArchive [12:04:05]shift 370 fd 76427 [12:04:05]save to /storage/0370/doc_00076427 [12:04:05]save last doc name /storage/0370/doc_00076427 to /storage/kkm_last_doc_name [12:04:05]save OK [12:04:05]Clear old archive folders... [12:04:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:04:05]tlvbuf is 00913870 [12:04:05]SAM_PROTO_ClearQueue [12:04:05]wFMCommunicate request_size=4 [12:04:05]MH_SAM_APDU [12:04:05]CAPDU: 80 09 00 00 [12:04:05]Write to MH i2c: E2 08 00 55 2F 80 09 00 00 00 00 00 00 F6 [12:04:05]Write i2c OK [12:04:05]MH_I2C_Read... [12:04:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:05]Read from MH i2c: E2 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 03 00 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 03 00 55 2F 00 90 00 F8 [12:04:05]RAPDU: 90 00 [12:04:05]wFMCommunicate OK [12:04:05]SAM_PROTO_ClearQueue done [12:04:05]KKMCreateOFDPacket [12:04:05]OFDProtocolAddRootSTLVToBuf [12:04:05]FM_MakeSignedData [12:04:05]FM_MakeSignedData [12:04:05]SAM_PROTO_SignData [12:04:05]wFMCommunicate request_size=4 [12:04:05]MH_SAM_APDU [12:04:05]CAPDU: 80 0D 01 02 [12:04:05]Write to MH i2c: E2 08 00 56 2F 80 0D 01 02 00 00 00 00 FE [12:04:05]Write i2c OK [12:04:05]MH_I2C_Read... [12:04:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:05]Read from MH i2c: E2 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 03 00 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 03 00 56 2F 00 90 00 F9 [12:04:05]RAPDU: 90 00 [12:04:05]wFMCommunicate OK [12:04:05]wFMCommunicate request_size=255 [12:04:05]MH_SAM_APDU [12:04:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 B9 5D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8B 2A 01 00 35 04 06 00 [12:04:05]Write to MH i2c: E2 02 01 57 2F 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 DC 23 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 B9 5D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8B 2A 01 00 35 04 06 00 00 00 57 [12:04:05]Write i2c OK [12:04:05]MH_I2C_Read... [12:04:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:05]Read from MH i2c: E2 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 03 00 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 03 00 57 2F 00 90 00 FA [12:04:05]RAPDU: 90 00 [12:04:05]wFMCommunicate OK [12:04:05]wFMCommunicate request_size=11 [12:04:05]MH_SAM_APDU [12:04:05]CAPDU: 80 0D 02 02 06 82 9A AD C9 7E A3 [12:04:05]Write to MH i2c: E2 0E 00 58 2F 80 0D 02 02 06 00 82 9A AD C9 7E A3 00 00 C0 [12:04:05]Write i2c OK [12:04:05]MH_I2C_Read... [12:04:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:05]Read from MH i2c: E2 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 03 00 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 03 00 58 2F 00 90 00 FB [12:04:05]RAPDU: 90 00 [12:04:05]wFMCommunicate OK [12:04:05]wFMCommunicate request_size=4 [12:04:05]MH_SAM_APDU [12:04:05]CAPDU: 80 0D 03 02 [12:04:05]Write to MH i2c: E2 08 00 59 2F 80 0D 03 02 00 00 00 00 03 [12:04:05]Write i2c OK [12:04:05]MH_I2C_Read... [12:04:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:05]Read from MH i2c: E2 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 0B 00 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 0B 00 59 2F 00 F8 97 F6 1A AC 5F 21 F9 90 00 C8 [12:04:05]RAPDU: F8 97 F6 1A AC 5F 21 F9 90 00 [12:04:05]wFMCommunicate OK [12:04:05]SAM_PROTO_SignData done [12:04:05]FM_MakeSignedData done [12:04:05]CreateOFDProtocolMessage [12:04:05]wFMCommunicate request_size=4 [12:04:05]MH_SAM_APDU [12:04:05]CAPDU: 80 11 00 00 [12:04:05]Write to MH i2c: E2 08 00 5A 2F 80 11 00 00 00 00 00 00 03 [12:04:05]Write i2c OK [12:04:05]MH_I2C_Read... [12:04:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:05]Read from MH i2c: E2 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 17 00 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 17 00 5A 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 56 [12:04:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:04:05]wFMCommunicate OK [12:04:05]CreateOFDProtocolMessage done [12:04:05]OFDSenderStorePacket 76427 [12:04:05]StoreOFDPacket docnum=76427 [12:04:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 00 2A 08 01 D3 77 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 DC 23 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 B9 5D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8B 2A 01 00 35 04 06 00 82 9A AD C9 7E A3 F8 97 F6 1A AC 5F 21 F9 [12:04:05]CheckFolder [12:04:05]dirname=/storage/ofd_packets [12:04:05]CheckFolder done [12:04:05]ProducePacketName [12:04:05]name=ofd_packets/00076427 [12:04:05]NVStorageSaveData ofd_packets/00076427 [12:04:05]File name is /storage/ofd_packets/00076427 [12:04:05]Write 302 bytes [12:04:05]NVStorageSaveData done [12:04:05]OFDSenderStorePacket done [12:04:05]KKMCreateOFDPacket done [12:04:05]NVStorageSaveData kkm_last_timestamp [12:04:05]File name is /storage/kkm_last_timestamp [12:04:05]Write 4 bytes [12:04:05]NVStorageSaveData done [12:04:05]ExternCall_PrintAddStr [12:04:05]wPrintStart [12:04:05]Write to MH i2c: 01 00 00 5B 2F 8A [12:04:05]Write i2c OK [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: 01 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: 01 07 00 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: 01 07 00 5B 2F 00 00 00 00 00 FF 0F 9F [12:04:05]RasterBufferAndPrint [12:04:05]line Счет N : (1)190892 [12:04:05]line ИНН: 02508201610067 [12:04:05]line Контрольно-Кассовый Чек [12:04:05]line ПРОДАЖА [12:04:05]line ТРК (МРК, ГНК) : 41 [12:04:05]line Товар: 2710124130 [12:04:05]line SUPER 92-К-5 [12:04:05]line 9.180 * 65.40 [12:04:05]line = 600.37 [12:04:05]line НДС 12% НСП 1% [12:04:05]line > о реализуемом товаре [12:04:05]line ОКРУГЛЕНИЕ: -0.37 [12:04:05]line ИТОГО: 600.00 [12:04:05]line Внесено: 600.00 [12:04:05]line СДАЧА: 0.00 [12:04:05]line НСП 1% : 5.31 [12:04:05]line НДС 12% : 63.76 [12:04:05]line Наличными: 600.00 [12:04:05]line Безнал.: 0.00 [12:04:05]line Место: АЗС № 106 "Партнер Нефть" [12:04:05]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:04:05]line СНО: Общий режим [12:04:05]line Чек 47 19.04.2024 12:04 [12:04:05]line Смена: 370 ФФД: 1.0 [12:04:05]line ЗНМ: 0300000141 [12:04:05]line РНМ: 0000000000091573 [12:04:05]line Версия ККМ: 001 [12:04:05]line ФМ: 0000000000874652 [12:04:05]line ФД: 76427 [12:04:05]line ФПД: 143600852237987 [12:04:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T120409&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76427&fm=143600852237987&tin=02508201610067®Number=0000000000091573&sum=60000 [12:04:06]OFD Sender: Processing packet 76427 [packets to send 128, broken 127] [12:04:06]ProducePacketName [12:04:06]name=ofd_packets/00076427 [12:04:06]OFD Sender: To server: pG, [12:04:06]CommunicateWithHost lk.salyk.kg:30040 [12:04:06]ConnectInit lk.salyk.kg [12:04:06]written 0, free lines is 4095 [12:04:06]Connected sock=10 [12:04:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 00 2A 08 01 D3 77 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 DC 23 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 B9 5D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8B 2A 01 00 35 04 06 00 82 9A AD C9 7E A3 F8 97 F6 1A AC 5F 21 F9 [12:04:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 56 78 47 00 CE 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 34 36 35 32 10 04 04 00 8B 2A 01 00 F4 03 04 00 45 05 22 66 B6 04 01 00 00 3E 67 A4 BB 08 C5 C4 B3 [12:04:06]CommunicateWithHost err = 0 [12:04:06]CheckOFDResponse [12:04:06]1017 (14) - 77093643461234 [12:04:06]1041 (16) - 0000000000874652 [12:04:06]1040 (4) - 76427 [12:04:06]1012 (4) - 19.04.2024 05:46 [12:04:06]1206 (1) - 0 [12:04:06]OFD Sender: Remove packet 76427 [12:04:06]ProducePacketName [12:04:06]name=ofd_packets/00076427 [12:04:06]NVStorageDeleteData [12:04:06]Write to MH i2c: 01 00 00 85 2F B4 [12:04:06]Write i2c OK [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: 01 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: 01 07 00 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: 01 07 00 85 2F 00 00 00 00 00 F2 0C B9 [12:04:06]RasterBufferAndPrint [12:04:06]line [12:04:06]line [12:04:06]line [12:04:06]line [12:04:06]line [12:04:06]written 0, free lines is 3320 [12:04:06]MH_Cut [12:04:06]Write to MH i2c: D1 01 00 8C 2F 01 8D [12:04:06]Write i2c OK [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: D1 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: D1 01 00 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: D1 01 00 8C 2F 00 8C [12:04:06]Write to MH i2c: 01 00 00 8D 2F BC [12:04:06]Write i2c OK [12:04:06]MH_I2C_Read... [12:04:07]OFD Sender: No OFD packet to send [12:04:07]*** Cut start [12:04:07]*** Partial cut [12:04:07]*** CUTSNS_PIN = 1 [12:04:07]*** CUTSNS_PIN = 0 [12:04:07]*** Brake cut motor [12:04:08]Read from MH i2c: 01 [12:04:08]MH_I2C_Read... [12:04:08]*** Stop cut motor [12:04:08]*** Cut end [12:04:08]Read from MH i2c: 01 07 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: 01 07 00 8D 2F 00 00 00 00 00 FF 0F D1 [12:04:08]process_action close_receipt done [12:04:08]requested_data is exist [12:04:08]produce_requested_data [12:04:08]requested_item fm.sn is exist - process it [12:04:08]wFMCommunicate request_size=4 [12:04:08]MH_SAM_APDU [12:04:08]CAPDU: 80 11 00 00 [12:04:08]Write to MH i2c: E2 08 00 8E 2F 80 11 00 00 00 00 00 00 37 [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:08]Read from MH i2c: E2 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 17 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 17 00 8E 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8A [12:04:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:04:08]wFMCommunicate OK [12:04:08]requested_item fd.num is exist - process it [12:04:08]SAM_PROTO_GetFieldsCounters [12:04:08]wFMCommunicate request_size=4 [12:04:08]MH_SAM_APDU [12:04:08]CAPDU: 80 13 00 00 [12:04:08]Write to MH i2c: E2 08 00 8F 2F 80 13 00 00 00 00 00 00 3A [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:08]Read from MH i2c: E2 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 62 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 62 00 8F 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8B 2A 01 00 0E 04 04 00 72 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 11 [12:04: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8B 2A 01 00 0E 04 04 00 72 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 [12:04:08]wFMCommunicate OK [12:04:08]SAM_PROTO_GetFieldsCounters done [12:04:08]requested_item shift.num is exist - process it [12:04:08]requested_item shift.opened is exist - process it [12:04:08]req_shift_opened [12:04:08]FM_GetShiftState [12:04:08]SAM_PROTO_GetShiftState [12:04:08]wFMCommunicate request_size=4 [12:04:08]MH_SAM_APDU [12:04:08]CAPDU: 80 13 01 00 [12:04:08]Write to MH i2c: E2 08 00 90 2F 80 13 01 00 00 00 00 00 3C [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:08]Read from MH i2c: E2 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 0E 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 0E 00 90 2F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 21 [12:04:08]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:04:08]wFMCommunicate OK [12:04:08]SAM_PROTO_GetShiftState done [12:04:08]FM_GetShiftState done [12:04:08]req_shift_opened done [12:04:08]requested_item shift.open_date is exist - process it [12:04:08]req_shift_open_date [12:04:08]req_shift_open_date done [12:04:08]produce_requested_data done [12:04:08]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76427,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [12:04:08]process_action_free close_receipt [12:04:08]json_value_free [12:04:08]json_value_free done [12:04:08]process_json_proto returns [12:04:08]Send response to host [12:04:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76427,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [12:04:08]free response buf [12:04:08]execute_script done [12:04:08]execute_script returns [12:04:08]free content buf [12:04:08]Sock 7.Close socket [12:04:08]Sock 7.Thread stoped [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:57]OFD Sender: No OFD packet to send [12:06:02]OFD Sender: No OFD packet to send [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:32]OFD Sender: No OFD packet to send [12:07:37]OFD Sender: No OFD packet to send [12:07:42]OFD Sender: No OFD packet to send [12:07:47]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:12]OFD Sender: No OFD packet to send [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:15]accept exits with 9 [12:11:15]New connection [12:11:15]New thread 3066629476 created [12:11:15]Thread 3066486116 joined [12:11:15]Waiting for new connection... [12:11:15] Sock 9.Parse request [12:11:15]Sock 9.Check first char [12:11:15]Sock 9.First char is OK [12:11:15]request: POST /json_proto HTTP/1.0 [12:11:15]Method: POST [12:11:15]URL: /json_proto [12:11:15]Method is POST - this is cgi request [12:11:15]url: /json_proto [12:11:15]query_string will be loaded in cgi processing [12:11:15]execute_cgi json_proto POST (null) [12:11:15]execute_cgi path=json_proto method=POST [12:11:15]POST find Content-Length [12:11:15]Host: 172.17.62.5:8080 [12:11:15]Content-Length: 822 [12:11:15]Content-Type: application/json [12:11:15] [12:11:15]POST finish read [12:11:15]Found Content-Length = 822 [12:11:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:15]execute_script... [12:11: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)190893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:15]POST & json_proto [12:11:15]process_json_proto [12:11:15]json parsed OK: [12:11:15]protocol is kg_v1.0 [12:11:15]action value=close_receipt [12:11:15]process_action close_receipt [12:11:15]cmd_close_receipt [12:11:15]MH_GetDate [12:11:15]Write to MH i2c: F0 00 00 91 2F AF [12:11:15]Write i2c OK [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: F0 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: F0 09 00 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: F0 09 00 91 2F 00 68 5F 22 66 F4 E9 65 64 AD [12:11:15]GetLastDocTimeStamp 1713528249 [12:11:15]current date 1713528680 [12:11:15]FM_GetShiftState [12:11:15]SAM_PROTO_GetShiftState [12:11:15]wFMCommunicate request_size=4 [12:11:15]MH_SAM_APDU [12:11:15]CAPDU: 80 13 01 00 [12:11:15]Write to MH i2c: E2 08 00 92 2F 80 13 01 00 00 00 00 00 3E [12:11:15]Write i2c OK [12:11:15]MH_I2C_Read... [12:11:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:15]Read from MH i2c: E2 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: E2 0E 00 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: E2 0E 00 92 2F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 23 [12:11:15]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:11:15]wFMCommunicate OK [12:11:15]SAM_PROTO_GetShiftState done [12:11:15]FM_GetShiftState done [12:11:15]opened in 1713486233 [12:11:15]opened+sec_in_day 1713572633 [12:11:15]quantity*price = 100029 [12:11:15]sum+1 = 100030 [12:11:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.29 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.29 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 48 19.04.2024 12:11 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76428 ФПД: 26124681223629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T121120&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76428&fm=26124681223629&tin=02508201610067®Number=0000000000091573&sum=100029 [12:11:16]StoreToDocumentArchive [12:11:16]shift 370 fd 76428 [12:11:16]save to /storage/0370/doc_00076428 [12:11:16]save last doc name /storage/0370/doc_00076428 to /storage/kkm_last_doc_name [12:11:16]save OK [12:11:16]Clear old archive folders... [12:11:16]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:11:16]tlvbuf is 009A77E0 [12:11:16]SAM_PROTO_ClearQueue [12:11:16]wFMCommunicate request_size=4 [12:11:16]MH_SAM_APDU [12:11:16]CAPDU: 80 09 00 00 [12:11:16]Write to MH i2c: E2 08 00 9F 2F 80 09 00 00 00 00 00 00 40 [12:11:16]Write i2c OK [12:11:16]MH_I2C_Read... [12:11:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:16]Read from MH i2c: E2 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 03 00 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 03 00 9F 2F 00 90 00 42 [12:11:16]RAPDU: 90 00 [12:11:16]wFMCommunicate OK [12:11:16]SAM_PROTO_ClearQueue done [12:11:16]KKMCreateOFDPacket [12:11:16]OFDProtocolAddRootSTLVToBuf [12:11:16]FM_MakeSignedData [12:11:16]FM_MakeSignedData [12:11:16]SAM_PROTO_SignData [12:11:16]wFMCommunicate request_size=4 [12:11:16]MH_SAM_APDU [12:11:16]CAPDU: 80 0D 01 02 [12:11:16]Write to MH i2c: E2 08 00 A0 2F 80 0D 01 02 00 00 00 00 48 [12:11:16]Write i2c OK [12:11:16]MH_I2C_Read... [12:11:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:16]Read from MH i2c: E2 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 03 00 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 03 00 A0 2F 00 90 00 43 [12:11:16]RAPDU: 90 00 [12:11:16]wFMCommunicate OK [12:11:16]wFMCommunicate request_size=255 [12:11:16]MH_SAM_APDU [12:11:16]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 68 5F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8C 2A 01 00 35 04 06 00 17 C2 [12:11:16]Write to MH i2c: E2 02 01 A1 2F 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 68 5F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8C 2A 01 00 35 04 06 00 17 C2 00 00 2D [12:11:16]Write i2c OK [12:11:16]MH_I2C_Read... [12:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:17]Read from MH i2c: E2 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 03 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 03 00 A1 2F 00 90 00 44 [12:11:17]RAPDU: 90 00 [12:11:17]wFMCommunicate OK [12:11:17]wFMCommunicate request_size=9 [12:11:17]MH_SAM_APDU [12:11:17]CAPDU: 80 0D 02 02 04 A0 58 1D CD [12:11:17]Write to MH i2c: E2 0C 00 A2 2F 80 0D 02 02 04 00 A0 58 1D CD 00 00 35 [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:17]Read from MH i2c: E2 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 03 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 03 00 A2 2F 00 90 00 45 [12:11:17]RAPDU: 90 00 [12:11:17]wFMCommunicate OK [12:11:17]wFMCommunicate request_size=4 [12:11:17]MH_SAM_APDU [12:11:17]CAPDU: 80 0D 03 02 [12:11:17]Write to MH i2c: E2 08 00 A3 2F 80 0D 03 02 00 00 00 00 4D [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:17]Read from MH i2c: E2 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 0B 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 0B 00 A3 2F 00 E1 4B 49 BB 4E 8A 09 0E 90 00 6D [12:11:17]RAPDU: E1 4B 49 BB 4E 8A 09 0E 90 00 [12:11:17]wFMCommunicate OK [12:11:17]SAM_PROTO_SignData done [12:11:17]FM_MakeSignedData done [12:11:17]CreateOFDProtocolMessage [12:11:17]wFMCommunicate request_size=4 [12:11:17]MH_SAM_APDU [12:11:17]CAPDU: 80 11 00 00 [12:11:17]Write to MH i2c: E2 08 00 A4 2F 80 11 00 00 00 00 00 00 4D [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:17]Read from MH i2c: E2 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 17 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 17 00 A4 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A0 [12:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:11:17]wFMCommunicate OK [12:11:17]CreateOFDProtocolMessage done [12:11:17]OFDSenderStorePacket 76428 [12:11:17]StoreOFDPacket docnum=76428 [12:11:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 FB 8B 06 01 F8 70 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 68 5F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8C 2A 01 00 35 04 06 00 17 C2 A0 58 1D CD E1 4B 49 BB 4E 8A 09 0E [12:11:17]CheckFolder [12:11:17]dirname=/storage/ofd_packets [12:11:17]CheckFolder done [12:11:17]ProducePacketName [12:11:17]name=ofd_packets/00076428 [12:11:17]NVStorageSaveData ofd_packets/00076428 [12:11:17]File name is /storage/ofd_packets/00076428 [12:11:17]Write 300 bytes [12:11:17]NVStorageSaveData done [12:11:17]OFDSenderStorePacket done [12:11:17]KKMCreateOFDPacket done [12:11:17]NVStorageSaveData kkm_last_timestamp [12:11:17]File name is /storage/kkm_last_timestamp [12:11:17]Write 4 bytes [12:11:17]NVStorageSaveData done [12:11:17]ExternCall_PrintAddStr [12:11:17]wPrintStart [12:11:17]Write to MH i2c: 01 00 00 A5 2F D4 [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: 01 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: 01 07 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: 01 07 00 A5 2F 00 00 00 00 00 FF 0F E9 [12:11:17]RasterBufferAndPrint [12:11:17]line Счет N : (1)190893 [12:11:17]line ИНН: 02508201610067 [12:11:17]line Контрольно-Кассовый Чек [12:11:17]line ПРОДАЖА [12:11:17]line ТРК (МРК, ГНК) : 71 [12:11:17]line Товар: 2711190000 [12:11:17]line ГАЗ-К-5 [12:11:17]line 30.590 * 32.70 [12:11:17]line = 1000.29 [12:11:17]line НДС 12% НСП 1% [12:11:17]line > о реализуемом товаре [12:11:17]line ИТОГО: 1000.29 [12:11:17]line НСП 1% : 8.85 [12:11:17]line НДС 12% : 106.22 [12:11:17]line Наличными: 0.00 [12:11:17]line Безнал.: 1000.29 [12:11:17]line Место: АЗС № 106 "Партнер Нефть" [12:11:17]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:11:17]line СНО: Общий режим [12:11:17]line Чек 48 19.04.2024 12:11 [12:11:17]line Смена: 370 ФФД: 1.0 [12:11:17]line ЗНМ: 0300000141 [12:11:17]line РНМ: 0000000000091573 [12:11:17]line Версия ККМ: 001 [12:11:17]line Платежная система: Бакай Банк [12:11:17]line ФМ: 0000000000874652 [12:11:17]line ФД: 76428 [12:11:17]line ФПД: 26124681223629 [12:11:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T121120&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76428&fm=26124681223629&tin=02508201610067®Number=0000000000091573&sum=100029 [12:11:17]written 0, free lines is 4095 [12:11:17]OFD Sender: Processing packet 76428 [packets to send 128, broken 127] [12:11:17]ProducePacketName [12:11:17]name=ofd_packets/00076428 [12:11:17]OFD Sender: To server: pG, [12:11:17]CommunicateWithHost lk.salyk.kg:30040 [12:11:17]ConnectInit lk.salyk.kg [12:11:17]Write to MH i2c: 01 00 00 CE 2F FD [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: 01 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: 01 07 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: 01 07 00 CE 2F 00 00 00 00 00 F3 0C 03 [12:11:17]RasterBufferAndPrint [12:11:17]line [12:11:17]line [12:11:17]line [12:11:17]line [12:11:17]line [12:11:17]written 0, free lines is 3322 [12:11:17]MH_Cut [12:11:17]Write to MH i2c: D1 01 00 D5 2F 01 D6 [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: D1 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: D1 01 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: D1 01 00 D5 2F 00 D5 [12:11:17]Write to MH i2c: 01 00 00 D6 2F 05 [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]Connected sock=7 [12:11:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 FB 8B 06 01 F8 70 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 68 5F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8C 2A 01 00 35 04 06 00 17 C2 A0 58 1D CD E1 4B 49 BB 4E 8A 09 0E [12:11:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 87 F6 47 00 9E 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 34 36 35 32 10 04 04 00 8C 2A 01 00 F4 03 04 00 F4 06 22 66 B6 04 01 00 00 AA D0 09 A7 65 17 06 27 [12:11:17]CommunicateWithHost err = 0 [12:11:17]CheckOFDResponse [12:11:17]1017 (14) - 77093643461234 [12:11:17]1041 (16) - 0000000000874652 [12:11:17]1040 (4) - 76428 [12:11:17]1012 (4) - 19.04.2024 05:53 [12:11:17]1206 (1) - 0 [12:11:17]OFD Sender: Remove packet 76428 [12:11:17]ProducePacketName [12:11:17]name=ofd_packets/00076428 [12:11:17]NVStorageDeleteData [12:11:18]OFD Sender: No OFD packet to send [12:11:18]*** Cut start [12:11:18]*** Partial cut [12:11:18]*** CUTSNS_PIN = 1 [12:11:18]*** CUTSNS_PIN = 0 [12:11:18]*** Brake cut motor [12:11:19]Read from MH i2c: 01 [12:11:19]MH_I2C_Read... [12:11:19]*** Stop cut motor [12:11:19]*** Cut end [12:11:19]Read from MH i2c: 01 07 00 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: 01 07 00 D6 2F 00 00 00 00 00 FF 0F 1A [12:11:19]process_action close_receipt done [12:11:19]requested_data is exist [12:11:19]produce_requested_data [12:11:19]requested_item fm.sn is exist - process it [12:11:19]wFMCommunicate request_size=4 [12:11:19]MH_SAM_APDU [12:11:19]CAPDU: 80 11 00 00 [12:11:19]Write to MH i2c: E2 08 00 D7 2F 80 11 00 00 00 00 00 00 80 [12:11:19]Write i2c OK [12:11:19]MH_I2C_Read... [12:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:19]Read from MH i2c: E2 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: E2 17 00 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: E2 17 00 D7 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D3 [12:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:11:19]wFMCommunicate OK [12:11:19]requested_item fd.num is exist - process it [12:11:19]SAM_PROTO_GetFieldsCounters [12:11:19]wFMCommunicate request_size=4 [12:11:19]MH_SAM_APDU [12:11:19]CAPDU: 80 13 00 00 [12:11:19]Write to MH i2c: E2 08 00 D8 2F 80 13 00 00 00 00 00 00 83 [12:11:19]Write i2c OK [12:11:19]MH_I2C_Read... [12:11:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:19]Read from MH i2c: E2 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: E2 62 00 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: E2 62 00 D8 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8C 2A 01 00 0E 04 04 00 72 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 5E [12:11:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8C 2A 01 00 0E 04 04 00 72 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 [12:11:19]wFMCommunicate OK [12:11:19]SAM_PROTO_GetFieldsCounters done [12:11:19]requested_item shift.num is exist - process it [12:11:19]requested_item shift.opened is exist - process it [12:11:19]req_shift_opened [12:11:19]FM_GetShiftState [12:11:19]SAM_PROTO_GetShiftState [12:11:19]wFMCommunicate request_size=4 [12:11:19]MH_SAM_APDU [12:11:19]CAPDU: 80 13 01 00 [12:11:19]Write to MH i2c: E2 08 00 D9 2F 80 13 01 00 00 00 00 00 85 [12:11:19]Write i2c OK [12:11:19]MH_I2C_Read... [12:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:19]Read from MH i2c: E2 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: E2 0E 00 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: E2 0E 00 D9 2F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 6A [12:11:19]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:11:19]wFMCommunicate OK [12:11:19]SAM_PROTO_GetShiftState done [12:11:19]FM_GetShiftState done [12:11:19]req_shift_opened done [12:11:19]requested_item shift.open_date is exist - process it [12:11:19]req_shift_open_date [12:11:19]req_shift_open_date done [12:11:19]produce_requested_data done [12:11:19]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76428,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [12:11:19]process_action_free close_receipt [12:11:19]json_value_free [12:11:19]json_value_free done [12:11:19]process_json_proto returns [12:11:19]Send response to host [12:11:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76428,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [12:11:19]free response buf [12:11:19]execute_script done [12:11:19]execute_script returns [12:11:19]free content buf [12:11:19]Sock 9.Close socket [12:11:19]Sock 9.Thread stoped [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:53]OFD Sender: No OFD packet to send [12:15:58]OFD Sender: No OFD packet to send [12:16:03]OFD Sender: No OFD packet to send [12:16:08]OFD Sender: No OFD packet to send [12:16:13]OFD Sender: No OFD packet to send [12:16:17]accept exits with 10 [12:16:17]New connection [12:16:17]New thread 3066486116 created [12:16:17]Thread 3066629476 joined [12:16:17]Waiting for new connection... [12:16:17] Sock 10.Parse request [12:16:17]Sock 10.Check first char [12:16:17]Sock 10.First char is OK [12:16:17]request: POST /json_proto HTTP/1.0 [12:16:17]Method: POST [12:16:17]URL: /json_proto [12:16:17]Method is POST - this is cgi request [12:16:17]url: /json_proto [12:16:17]query_string will be loaded in cgi processing [12:16:17]execute_cgi json_proto POST (null) [12:16:17]execute_cgi path=json_proto method=POST [12:16:17]POST find Content-Length [12:16:17]Host: 172.17.62.5:8080 [12:16:17]Content-Length: 1210 [12:16:17]Content-Type: application/json [12:16:17] [12:16:17]POST finish read [12:16:17]Found Content-Length = 1210 [12:16:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190894\u000A19.04.2024 11:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3731236;3731247;3731249\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:17]execute_script... [12:16:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190894\u000A19.04.2024 11:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3731236;3731247;3731249\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:17]POST & json_proto [12:16:17]process_json_proto [12:16:17]json parsed OK: [12:16:17]protocol is kg_v1.0 [12:16:17]action value=print_text [12:16:17]process_action print_text [12:16:17]cmd_print_text [12:16:17]ExternCall_PrintAddStr [12:16:17]wPrintStart [12:16:17]Write to MH i2c: 01 00 00 DA 2F 09 [12:16:17]Write i2c OK [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: 01 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: 01 07 00 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: 01 07 00 DA 2F 00 00 00 00 00 FF 0F 1E [12:16:17]RasterBufferAndPrint [12:16:17]line *****ТОВАРНЫЙ ЧЕК***** [12:16:17]line АЗС 106 [12:16:17]line Партнер нефть [12:16:17]line 02508201610067 [12:16:17]line Кассир : Табалдиева М. [12:16:17]line Счет N : (1)190894 [12:16:17]line 19.04.2024 11:57 [12:16:17]line ПРОДАЖА [12:16:17]line ТРК (МРК, ГНК): 61 [12:16:17]line Вид ГСМ : 2710194210 [12:16:17]line ДТ-К-5 [12:16:17]line 30.000 x 72.90 [12:16:17]line ИТОГ: 2187.00 [12:16:17]line Тип оплаты: Талоны: Партнер нефть [12:16:17]line 3731236;3731247;3731249 [12:16:17]line ______________________ [12:16:17]line (подпись) [12:16:17]written 0, free lines is 4095 [12:16:17]Write to MH i2c: 01 00 00 EE 2F 1D [12:16:17]Write i2c OK [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: 01 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: 01 07 00 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: 01 07 00 EE 2F 00 00 00 00 00 18 0E 4A [12:16:17]RasterBufferAndPrint [12:16:17]line [12:16:17]line [12:16:17]line [12:16:17]line [12:16:17]line [12:16:17]written 0, free lines is 3610 [12:16:17]MH_Cut [12:16:17]Write to MH i2c: D1 01 00 F5 2F 01 F6 [12:16:17]Write i2c OK [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: D1 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: D1 01 00 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: D1 01 00 F5 2F 00 F5 [12:16:17]Write to MH i2c: 01 00 00 F6 2F 25 [12:16:17]Write i2c OK [12:16:17]MH_I2C_Read... [12:16:17]*** Cut start [12:16:17]*** Partial cut [12:16:17]*** CUTSNS_PIN = 1 [12:16:17]*** CUTSNS_PIN = 0 [12:16:18]*** Brake cut motor [12:16:18]Read from MH i2c: 01 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: 01 07 00 [12:16:18]MH_I2C_Read... [12:16:18]*** Stop cut motor [12:16:18]*** Cut end [12:16:18]Read from MH i2c: 01 07 00 F6 2F 00 00 00 00 00 FF 0F 3A [12:16:18]process_action print_text done [12:16:18]requested_data is exist [12:16:18]produce_requested_data [12:16:18]requested_item fm.sn is exist - process it [12:16:18]wFMCommunicate request_size=4 [12:16:18]MH_SAM_APDU [12:16:18]CAPDU: 80 11 00 00 [12:16:18]Write to MH i2c: E2 08 00 F7 2F 80 11 00 00 00 00 00 00 A0 [12:16:18]Write i2c OK [12:16:18]MH_I2C_Read... [12:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:18]Read from MH i2c: E2 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: E2 17 00 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: E2 17 00 F7 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F3 [12:16:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:16:18]wFMCommunicate OK [12:16:18]requested_item fd.num is exist - process it [12:16:18]SAM_PROTO_GetFieldsCounters [12:16:18]wFMCommunicate request_size=4 [12:16:18]MH_SAM_APDU [12:16:18]CAPDU: 80 13 00 00 [12:16:18]Write to MH i2c: E2 08 00 F8 2F 80 13 00 00 00 00 00 00 A3 [12:16:18]Write i2c OK [12:16:18]MH_I2C_Read... [12:16:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:18]Read from MH i2c: E2 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: E2 62 00 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: E2 62 00 F8 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8C 2A 01 00 0E 04 04 00 72 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 7E [12:16: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8C 2A 01 00 0E 04 04 00 72 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 [12:16:18]wFMCommunicate OK [12:16:18]SAM_PROTO_GetFieldsCounters done [12:16:18]requested_item shift.num is exist - process it [12:16:18]requested_item shift.opened is exist - process it [12:16:18]req_shift_opened [12:16:18]FM_GetShiftState [12:16:18]SAM_PROTO_GetShiftState [12:16:18]wFMCommunicate request_size=4 [12:16:18]MH_SAM_APDU [12:16:18]CAPDU: 80 13 01 00 [12:16:18]Write to MH i2c: E2 08 00 F9 2F 80 13 01 00 00 00 00 00 A5 [12:16:18]Write i2c OK [12:16:18]MH_I2C_Read... [12:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:18]Read from MH i2c: E2 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: E2 0E 00 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: E2 0E 00 F9 2F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 8A [12:16:18]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:16:18]wFMCommunicate OK [12:16:18]SAM_PROTO_GetShiftState done [12:16:18]FM_GetShiftState done [12:16:18]req_shift_opened done [12:16:18]requested_item shift.open_date is exist - process it [12:16:18]req_shift_open_date [12:16:18]req_shift_open_date done [12:16:18]produce_requested_data done [12:16:18]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76428,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [12:16:18]process_action_free print_text [12:16:18]json_value_free [12:16:18]json_value_free done [12:16:18]process_json_proto returns [12:16:18]Send response to host [12:16:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76428,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [12:16:18]free response buf [12:16:18]execute_script done [12:16:18]execute_script returns [12:16:18]free content buf [12:16:18]Sock 10.Close socket [12:16:18]Sock 10.Thread stoped [12:16:18]OFD Sender: No OFD packet to send [12:16:23]OFD Sender: No OFD packet to send [12:16:28]OFD Sender: No OFD packet to send [12:16:33]OFD Sender: No OFD packet to send [12:16:38]OFD Sender: No OFD packet to send [12:16:43]OFD Sender: No OFD packet to send [12:16:48]OFD Sender: No OFD packet to send [12:16:53]OFD Sender: No OFD packet to send [12:16:58]OFD Sender: No OFD packet to send [12:17:03]OFD Sender: No OFD packet to send [12:17:08]OFD Sender: No OFD packet to send [12:17:13]OFD Sender: No OFD packet to send [12:17:18]OFD Sender: No OFD packet to send [12:17:19]accept exits with 7 [12:17:19]New connection [12:17:19]New thread 3066629476 created [12:17:19]Thread 3066486116 joined [12:17:19]Waiting for new connection... [12:17:19] Sock 7.Parse request [12:17:19]Sock 7.Check first char [12:17:19]Sock 7.First char is OK [12:17:19]request: POST /json_proto HTTP/1.0 [12:17:19]Method: POST [12:17:19]URL: /json_proto [12:17:19]Method is POST - this is cgi request [12:17:19]url: /json_proto [12:17:19]query_string will be loaded in cgi processing [12:17:19]execute_cgi json_proto POST (null) [12:17:19]execute_cgi path=json_proto method=POST [12:17:19]POST find Content-Length [12:17:19]Host: 172.17.62.5:8080 [12:17:19]Content-Length: 675 [12:17:19]Content-Type: application/json [12:17:19] [12:17:19]POST finish read [12:17:19]Found Content-Length = 675 [12:17:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 11.160, "sum" : 813.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 813.00, "total" : 813.00, "payments": [ { "type": 0, "sum" : 813.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:19]execute_script... [12:17: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)190895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 11.160, "sum" : 813.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 813.00, "total" : 813.00, "payments": [ { "type": 0, "sum" : 813.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:19]POST & json_proto [12:17:19]process_json_proto [12:17:19]json parsed OK: [12:17:19]protocol is kg_v1.0 [12:17:19]action value=close_receipt [12:17:19]process_action close_receipt [12:17:19]cmd_close_receipt [12:17:19]MH_GetDate [12:17:19]Write to MH i2c: F0 00 00 FA 2F 18 [12:17:19]Write i2c OK [12:17:19]MH_I2C_Read... [12:17:19]Read from MH i2c: F0 [12:17:19]MH_I2C_Read... [12:17:19]Read from MH i2c: F0 09 00 [12:17:19]MH_I2C_Read... [12:17:19]Read from MH i2c: F0 09 00 FA 2F 00 D4 60 22 66 F4 E9 65 64 83 [12:17:19]GetLastDocTimeStamp 1713528680 [12:17:19]current date 1713529044 [12:17:19]FM_GetShiftState [12:17:19]SAM_PROTO_GetShiftState [12:17:19]wFMCommunicate request_size=4 [12:17:19]MH_SAM_APDU [12:17:19]CAPDU: 80 13 01 00 [12:17:19]Write to MH i2c: E2 08 00 FB 2F 80 13 01 00 00 00 00 00 A7 [12:17:19]Write i2c OK [12:17:19]MH_I2C_Read... [12:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:19]Read from MH i2c: E2 [12:17:19]MH_I2C_Read... [12:17:19]Read from MH i2c: E2 0E 00 [12:17:19]MH_I2C_Read... [12:17:19]Read from MH i2c: E2 0E 00 FB 2F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 8C [12:17:19]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:17:19]wFMCommunicate OK [12:17:19]SAM_PROTO_GetShiftState done [12:17:19]FM_GetShiftState done [12:17:19]opened in 1713486233 [12:17:19]opened+sec_in_day 1713572633 [12:17:19]quantity*price = 81356 [12:17:19]sum+1 = 81357 [12:17:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 813.00 Внесено: 813.00 СДАЧА: 0.00 НСП 1% : 7.20 НДС 12% : 86.40 Наличными: 813.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 49 19.04.2024 12:17 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76429 ФПД: 279832047865342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T121724&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76429&fm=279832047865342&tin=02508201610067®Number=0000000000091573&sum=81300 [12:17:20]StoreToDocumentArchive [12:17:20]shift 370 fd 76429 [12:17:20]save to /storage/0370/doc_00076429 [12:17:20]save last doc name /storage/0370/doc_00076429 to /storage/kkm_last_doc_name [12:17:20]save OK [12:17:20]Clear old archive folders... [12:17:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:17:20]tlvbuf is 009A71C0 [12:17:20]SAM_PROTO_ClearQueue [12:17:20]wFMCommunicate request_size=4 [12:17:20]MH_SAM_APDU [12:17:20]CAPDU: 80 09 00 00 [12:17:20]Write to MH i2c: E2 08 00 08 30 80 09 00 00 00 00 00 00 AA [12:17:20]Write i2c OK [12:17:20]MH_I2C_Read... [12:17:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:20]Read from MH i2c: E2 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 03 00 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 03 00 08 30 00 90 00 AC [12:17:20]RAPDU: 90 00 [12:17:20]wFMCommunicate OK [12:17:20]SAM_PROTO_ClearQueue done [12:17:20]KKMCreateOFDPacket [12:17:20]OFDProtocolAddRootSTLVToBuf [12:17:20]FM_MakeSignedData [12:17:20]FM_MakeSignedData [12:17:20]SAM_PROTO_SignData [12:17:20]wFMCommunicate request_size=4 [12:17:20]MH_SAM_APDU [12:17:20]CAPDU: 80 0D 01 02 [12:17:20]Write to MH i2c: E2 08 00 09 30 80 0D 01 02 00 00 00 00 B2 [12:17:20]Write i2c OK [12:17:20]MH_I2C_Read... [12:17:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:20]Read from MH i2c: E2 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 03 00 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 03 00 09 30 00 90 00 AD [12:17:20]RAPDU: 90 00 [12:17:20]wFMCommunicate OK [12:17:20]wFMCommunicate request_size=255 [12:17:20]MH_SAM_APDU [12:17:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 2B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 CC 3D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 3D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 21 00 00 00 00 07 04 06 00 94 3D 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 00 00 00 F4 03 04 00 D4 60 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8D 2A 01 00 35 04 06 00 FE 81 79 CF [12:17:20]Write to MH i2c: E2 02 01 0A 30 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 2B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 CC 3D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 3D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 21 00 00 00 00 07 04 06 00 94 3D 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 00 00 00 F4 03 04 00 D4 60 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8D 2A 01 00 35 04 06 00 FE 81 79 CF 00 00 A8 [12:17:20]Write i2c OK [12:17:20]MH_I2C_Read... [12:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:20]Read from MH i2c: E2 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 03 00 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 03 00 0A 30 00 90 00 AE [12:17:20]RAPDU: 90 00 [12:17:20]wFMCommunicate OK [12:17:20]wFMCommunicate request_size=7 [12:17:20]MH_SAM_APDU [12:17:20]CAPDU: 80 0D 02 02 02 4D FE [12:17:20]Write to MH i2c: E2 0A 00 0B 30 80 0D 02 02 02 00 4D FE 00 00 04 [12:17:20]Write i2c OK [12:17:20]MH_I2C_Read... [12:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:20]Read from MH i2c: E2 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 03 00 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 03 00 0B 30 00 90 00 AF [12:17:20]RAPDU: 90 00 [12:17:20]wFMCommunicate OK [12:17:20]wFMCommunicate request_size=4 [12:17:20]MH_SAM_APDU [12:17:20]CAPDU: 80 0D 03 02 [12:17:20]Write to MH i2c: E2 08 00 0C 30 80 0D 03 02 00 00 00 00 B7 [12:17:20]Write i2c OK [12:17:20]MH_I2C_Read... [12:17:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:20]Read from MH i2c: E2 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 0B 00 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 0B 00 0C 30 00 26 69 67 15 CF 24 E0 10 90 00 A6 [12:17:20]RAPDU: 26 69 67 15 CF 24 E0 10 90 00 [12:17:20]wFMCommunicate OK [12:17:20]SAM_PROTO_SignData done [12:17:20]FM_MakeSignedData done [12:17:20]CreateOFDProtocolMessage [12:17:20]wFMCommunicate request_size=4 [12:17:20]MH_SAM_APDU [12:17:20]CAPDU: 80 11 00 00 [12:17:20]Write to MH i2c: E2 08 00 0D 30 80 11 00 00 00 00 00 00 B7 [12:17:20]Write i2c OK [12:17:20]MH_I2C_Read... [12:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:20]Read from MH i2c: E2 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 17 00 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 17 00 0D 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0A [12:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:17:20]wFMCommunicate OK [12:17:20]CreateOFDProtocolMessage done [12:17:20]OFDSenderStorePacket 76429 [12:17:20]StoreOFDPacket docnum=76429 [12:17:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 FA 28 04 01 9C EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 2B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 CC 3D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 3D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 21 00 00 00 00 07 04 06 00 94 3D 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 00 00 00 F4 03 04 00 D4 60 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8D 2A 01 00 35 04 06 00 FE 81 79 CF 4D FE 26 69 67 15 CF 24 E0 10 [12:17:20]CheckFolder [12:17:20]dirname=/storage/ofd_packets [12:17:20]CheckFolder done [12:17:20]ProducePacketName [12:17:20]name=ofd_packets/00076429 [12:17:20]NVStorageSaveData ofd_packets/00076429 [12:17:20]File name is /storage/ofd_packets/00076429 [12:17:20]Write 298 bytes [12:17:20]NVStorageSaveData done [12:17:20]OFDSenderStorePacket done [12:17:20]KKMCreateOFDPacket done [12:17:20]NVStorageSaveData kkm_last_timestamp [12:17:20]File name is /storage/kkm_last_timestamp [12:17:20]Write 4 bytes [12:17:20]NVStorageSaveData done [12:17:20]ExternCall_PrintAddStr [12:17:20]wPrintStart [12:17:20]Write to MH i2c: 01 00 00 0E 30 3E [12:17:20]Write i2c OK [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: 01 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: 01 07 00 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: 01 07 00 0E 30 00 00 00 00 00 FF 0F 53 [12:17:20]RasterBufferAndPrint [12:17:20]line Счет N : (1)190895 [12:17:20]line ИНН: 02508201610067 [12:17:20]line Контрольно-Кассовый Чек [12:17:20]line ПРОДАЖА [12:17:20]line ТРК (МРК, ГНК) : 61 [12:17:20]line Товар: 2710194210 [12:17:20]line ДТ-К-5 [12:17:20]line 11.160 * 72.90 [12:17:20]line = 813.56 [12:17:20]line НДС 12% НСП 1% [12:17:20]line > о реализуемом товаре [12:17:20]line ОКРУГЛЕНИЕ: -0.56 [12:17:20]line ИТОГО: 813.00 [12:17:20]line Внесено: 813.00 [12:17:20]line СДАЧА: 0.00 [12:17:20]line НСП 1% : 7.20 [12:17:20]line НДС 12% : 86.40 [12:17:20]line Наличными: 813.00 [12:17:20]line Безнал.: 0.00 [12:17:20]line Место: АЗС № 106 "Партнер Нефть" [12:17:20]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:17:20]line СНО: Общий режим [12:17:20]line Чек 49 19.04.2024 12:17 [12:17:20]line Смена: 370 ФФД: 1.0 [12:17:20]line ЗНМ: 0300000141 [12:17:20]line РНМ: 0000000000091573 [12:17:20]line Версия ККМ: 001 [12:17:20]line ФМ: 0000000000874652 [12:17:20]line ФД: 76429 [12:17:20]line ФПД: 279832047865342 [12:17:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T121724&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76429&fm=279832047865342&tin=02508201610067®Number=0000000000091573&sum=81300 [12:17:21]OFD Sender: Processing packet 76429 [packets to send 128, broken 127] [12:17:21]ProducePacketName [12:17:21]name=ofd_packets/00076429 [12:17:21]OFD Sender: To server: pG, [12:17:21]CommunicateWithHost lk.salyk.kg:30040 [12:17:21]ConnectInit lk.salyk.kg [12:17:21]written 0, free lines is 4095 [12:17:21]Connected sock=11 [12:17:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 FA 28 04 01 9C EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 2B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 CC 3D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 3D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 21 00 00 00 00 07 04 06 00 94 3D 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 00 00 00 F4 03 04 00 D4 60 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8D 2A 01 00 35 04 06 00 FE 81 79 CF 4D FE 26 69 67 15 CF 24 E0 10 [12:17:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 2B 6C 47 00 3E 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8D 2A 01 00 F4 03 04 00 60 08 22 66 B6 04 01 00 00 46 58 F3 CF 81 98 15 83 [12:17:21]CommunicateWithHost err = 0 [12:17:21]CheckOFDResponse [12:17:21]1017 (14) - 77093643461234 [12:17:21]1041 (16) - 0000000000874652 [12:17:21]1040 (4) - 76429 [12:17:21]1012 (4) - 19.04.2024 06:00 [12:17:21]1206 (1) - 0 [12:17:21]OFD Sender: Remove packet 76429 [12:17:21]ProducePacketName [12:17:21]name=ofd_packets/00076429 [12:17:21]NVStorageDeleteData [12:17:21]Write to MH i2c: 01 00 00 38 30 68 [12:17:21]Write i2c OK [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: 01 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: 01 07 00 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: 01 07 00 38 30 00 00 00 00 00 EE 0C 69 [12:17:21]RasterBufferAndPrint [12:17:21]line [12:17:21]line [12:17:21]line [12:17:21]line [12:17:21]line [12:17:21]written 0, free lines is 3317 [12:17:21]MH_Cut [12:17:21]Write to MH i2c: D1 01 00 3F 30 01 41 [12:17:21]Write i2c OK [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: D1 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: D1 01 00 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: D1 01 00 3F 30 00 40 [12:17:21]Write to MH i2c: 01 00 00 40 30 70 [12:17:21]Write i2c OK [12:17:21]MH_I2C_Read... [12:17:22]OFD Sender: No OFD packet to send [12:17:22]*** Cut start [12:17:22]*** Partial cut [12:17:22]*** CUTSNS_PIN = 1 [12:17:22]*** CUTSNS_PIN = 0 [12:17:22]*** Brake cut motor [12:17:23]Read from MH i2c: 01 [12:17:23]MH_I2C_Read... [12:17:23]*** Stop cut motor [12:17:23]*** Cut end [12:17:23]Read from MH i2c: 01 07 00 [12:17:23]MH_I2C_Read... [12:17:23]Read from MH i2c: 01 07 00 40 30 00 00 00 00 00 FF 0F 85 [12:17:23]process_action close_receipt done [12:17:23]requested_data is exist [12:17:23]produce_requested_data [12:17:23]requested_item fm.sn is exist - process it [12:17:23]wFMCommunicate request_size=4 [12:17:23]MH_SAM_APDU [12:17:23]CAPDU: 80 11 00 00 [12:17:23]Write to MH i2c: E2 08 00 41 30 80 11 00 00 00 00 00 00 EB [12:17:23]Write i2c OK [12:17:23]MH_I2C_Read... [12:17:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:23]Read from MH i2c: E2 [12:17:23]MH_I2C_Read... [12:17:23]Read from MH i2c: E2 17 00 [12:17:23]MH_I2C_Read... [12:17:23]Read from MH i2c: E2 17 00 41 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3E [12:17:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:17:23]wFMCommunicate OK [12:17:23]requested_item fd.num is exist - process it [12:17:23]SAM_PROTO_GetFieldsCounters [12:17:23]wFMCommunicate request_size=4 [12:17:23]MH_SAM_APDU [12:17:23]CAPDU: 80 13 00 00 [12:17:23]Write to MH i2c: E2 08 00 42 30 80 13 00 00 00 00 00 00 EE [12:17:23]Write i2c OK [12:17:23]MH_I2C_Read... [12:17:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:23]Read from MH i2c: E2 [12:17:23]MH_I2C_Read... [12:17:23]Read from MH i2c: E2 62 00 [12:17:23]MH_I2C_Read... [12:17:23]Read from MH i2c: E2 62 00 42 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8D 2A 01 00 0E 04 04 00 72 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 CD [12:17:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8D 2A 01 00 0E 04 04 00 72 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 [12:17:23]wFMCommunicate OK [12:17:23]SAM_PROTO_GetFieldsCounters done [12:17:23]requested_item shift.num is exist - process it [12:17:23]requested_item shift.opened is exist - process it [12:17:23]req_shift_opened [12:17:23]FM_GetShiftState [12:17:23]SAM_PROTO_GetShiftState [12:17:23]wFMCommunicate request_size=4 [12:17:23]MH_SAM_APDU [12:17:23]CAPDU: 80 13 01 00 [12:17:23]Write to MH i2c: E2 08 00 43 30 80 13 01 00 00 00 00 00 F0 [12:17:23]Write i2c OK [12:17:23]MH_I2C_Read... [12:17:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:23]Read from MH i2c: E2 [12:17:23]MH_I2C_Read... [12:17:23]Read from MH i2c: E2 0E 00 [12:17:23]MH_I2C_Read... [12:17:23]Read from MH i2c: E2 0E 00 43 30 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 D5 [12:17:23]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:17:23]wFMCommunicate OK [12:17:23]SAM_PROTO_GetShiftState done [12:17:23]FM_GetShiftState done [12:17:23]req_shift_opened done [12:17:23]requested_item shift.open_date is exist - process it [12:17:23]req_shift_open_date [12:17:23]req_shift_open_date done [12:17:23]produce_requested_data done [12:17:23]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76429,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [12:17:23]process_action_free close_receipt [12:17:23]json_value_free [12:17:23]json_value_free done [12:17:23]process_json_proto returns [12:17:23]Send response to host [12:17:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76429,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [12:17:23]free response buf [12:17:23]execute_script done [12:17:23]execute_script returns [12:17:23]free content buf [12:17:23]Sock 7.Close socket [12:17:23]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [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:36]accept exits with 9 [12:22:36]New connection [12:22:36]New thread 3066486116 created [12:22:36]Thread 3066629476 joined [12:22:36]Waiting for new connection... [12:22:36] Sock 9.Parse request [12:22:36]Sock 9.Check first char [12:22:36]Sock 9.First char is OK [12:22:36]request: POST /json_proto HTTP/1.0 [12:22:36]Method: POST [12:22:36]URL: /json_proto [12:22:36]Method is POST - this is cgi request [12:22:36]url: /json_proto [12:22:36]query_string will be loaded in cgi processing [12:22:36]execute_cgi json_proto POST (null) [12:22:36]execute_cgi path=json_proto method=POST [12:22:36]POST find Content-Length [12:22:36]Host: 172.17.62.5:8080 [12:22:36]Content-Length: 1196 [12:22:36]Content-Type: application/json [12:22:36] [12:22:36]POST finish read [12:22:36]Found Content-Length = 1196 [12:22:36]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190896\u000A19.04.2024 12:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 644.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\u000A3865622\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:36]execute_script... [12:22:36]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190896\u000A19.04.2024 12:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 644.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\u000A3865622\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:36]POST & json_proto [12:22:36]process_json_proto [12:22:36]json parsed OK: [12:22:36]protocol is kg_v1.0 [12:22:36]action value=print_text [12:22:36]process_action print_text [12:22:36]cmd_print_text [12:22:36]ExternCall_PrintAddStr [12:22:36]wPrintStart [12:22:36]Write to MH i2c: 01 00 00 44 30 74 [12:22:36]Write i2c OK [12:22:36]MH_I2C_Read... [12:22:36]Read from MH i2c: 01 [12:22:36]MH_I2C_Read... [12:22:36]Read from MH i2c: 01 07 00 [12:22:36]MH_I2C_Read... [12:22:36]Read from MH i2c: 01 07 00 44 30 00 00 00 00 00 FF 0F 89 [12:22:36]RasterBufferAndPrint [12:22:36]line *****ТОВАРНЫЙ ЧЕК***** [12:22:36]line АЗС 106 [12:22:36]line Партнер нефть [12:22:36]line 02508201610067 [12:22:36]line Кассир : Табалдиева М. [12:22:36]line Счет N : (1)190896 [12:22:36]line 19.04.2024 12:04 [12:22:36]line ПРОДАЖА [12:22:36]line ТРК (МРК, ГНК): 33 [12:22:36]line Вид ГСМ : 2710124130 [12:22:36]line Аи-92-К-5 [12:22:36]line 10.000 x 64.40 [12:22:36]line ИТОГ: 644.00 [12:22:36]line Тип оплаты: Талоны: Партнер нефть [12:22:36]line 3865622 [12:22:36]line ______________________ [12:22:36]line (подпись) [12:22:36]written 0, free lines is 4095 [12:22:37]Write to MH i2c: 01 00 00 58 30 88 [12:22:37]Write i2c OK [12:22:37]MH_I2C_Read... [12:22:37]Read from MH i2c: 01 [12:22:37]MH_I2C_Read... [12:22:37]Read from MH i2c: 01 07 00 [12:22:37]MH_I2C_Read... [12:22:37]Read from MH i2c: 01 07 00 58 30 00 00 00 00 00 12 0E AF [12:22:37]RasterBufferAndPrint [12:22:37]line [12:22:37]line [12:22:37]line [12:22:37]line [12:22:37]line [12:22:37]written 0, free lines is 3604 [12:22:37]MH_Cut [12:22:37]Write to MH i2c: D1 01 00 5F 30 01 61 [12:22:37]Write i2c OK [12:22:37]MH_I2C_Read... [12:22:37]Read from MH i2c: D1 [12:22:37]MH_I2C_Read... [12:22:37]Read from MH i2c: D1 01 00 [12:22:37]MH_I2C_Read... [12:22:37]Read from MH i2c: D1 01 00 5F 30 00 60 [12:22:37]Write to MH i2c: 01 00 00 60 30 90 [12:22:37]Write i2c OK [12:22:37]MH_I2C_Read... [12:22:37]OFD Sender: No OFD packet to send [12:22:37]*** Cut start [12:22:37]*** Partial cut [12:22:37]*** CUTSNS_PIN = 1 [12:22:37]*** CUTSNS_PIN = 0 [12:22:37]*** Brake cut motor [12:22:38]Read from MH i2c: 01 [12:22:38]MH_I2C_Read... [12:22:38]*** Stop cut motor [12:22:38]*** Cut end [12:22:38]Read from MH i2c: 01 07 00 [12:22:38]MH_I2C_Read... [12:22:38]Read from MH i2c: 01 07 00 60 30 00 00 00 00 00 FF 0F A5 [12:22:38]process_action print_text done [12:22:38]requested_data is exist [12:22:38]produce_requested_data [12:22:38]requested_item fm.sn is exist - process it [12:22:38]wFMCommunicate request_size=4 [12:22:38]MH_SAM_APDU [12:22:38]CAPDU: 80 11 00 00 [12:22:38]Write to MH i2c: E2 08 00 61 30 80 11 00 00 00 00 00 00 0B [12:22:38]Write i2c OK [12:22:38]MH_I2C_Read... [12:22:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:38]Read from MH i2c: E2 [12:22:38]MH_I2C_Read... [12:22:38]Read from MH i2c: E2 17 00 [12:22:38]MH_I2C_Read... [12:22:38]Read from MH i2c: E2 17 00 61 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5E [12:22:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:22:38]wFMCommunicate OK [12:22:38]requested_item fd.num is exist - process it [12:22:38]SAM_PROTO_GetFieldsCounters [12:22:38]wFMCommunicate request_size=4 [12:22:38]MH_SAM_APDU [12:22:38]CAPDU: 80 13 00 00 [12:22:38]Write to MH i2c: E2 08 00 62 30 80 13 00 00 00 00 00 00 0E [12:22:38]Write i2c OK [12:22:38]MH_I2C_Read... [12:22:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:38]Read from MH i2c: E2 [12:22:38]MH_I2C_Read... [12:22:38]Read from MH i2c: E2 62 00 [12:22:38]MH_I2C_Read... [12:22:38]Read from MH i2c: E2 62 00 62 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8D 2A 01 00 0E 04 04 00 72 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 ED [12:22:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8D 2A 01 00 0E 04 04 00 72 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 [12:22:38]wFMCommunicate OK [12:22:38]SAM_PROTO_GetFieldsCounters done [12:22:38]requested_item shift.num is exist - process it [12:22:38]requested_item shift.opened is exist - process it [12:22:38]req_shift_opened [12:22:38]FM_GetShiftState [12:22:38]SAM_PROTO_GetShiftState [12:22:38]wFMCommunicate request_size=4 [12:22:38]MH_SAM_APDU [12:22:38]CAPDU: 80 13 01 00 [12:22:38]Write to MH i2c: E2 08 00 63 30 80 13 01 00 00 00 00 00 10 [12:22:38]Write i2c OK [12:22:38]MH_I2C_Read... [12:22:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:38]Read from MH i2c: E2 [12:22:38]MH_I2C_Read... [12:22:38]Read from MH i2c: E2 0E 00 [12:22:38]MH_I2C_Read... [12:22:38]Read from MH i2c: E2 0E 00 63 30 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 F5 [12:22:38]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:22:38]wFMCommunicate OK [12:22:38]SAM_PROTO_GetShiftState done [12:22:38]FM_GetShiftState done [12:22:38]req_shift_opened done [12:22:38]requested_item shift.open_date is exist - process it [12:22:38]req_shift_open_date [12:22:38]req_shift_open_date done [12:22:38]produce_requested_data done [12:22:38]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76429,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [12:22:38]process_action_free print_text [12:22:38]json_value_free [12:22:38]json_value_free done [12:22:38]process_json_proto returns [12:22:38]Send response to host [12:22:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76429,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [12:22:38]free response buf [12:22:38]execute_script done [12:22:38]execute_script returns [12:22:38]free content buf [12:22:38]Sock 9.Close socket [12:22:38]Sock 9.Thread stoped [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]accept exits with 7 [12:23:12]New connection [12:23:12]New thread 3066629476 created [12:23:12]Thread 3066486116 joined [12:23:12]Waiting for new connection... [12:23:12] Sock 7.Parse request [12:23:12]Sock 7.Check first char [12:23:12]Sock 7.First char is OK [12:23:12]request: POST /json_proto HTTP/1.0 [12:23:12]Method: POST [12:23:12]URL: /json_proto [12:23:12]Method is POST - this is cgi request [12:23:12]url: /json_proto [12:23:12]query_string will be loaded in cgi processing [12:23:12]execute_cgi json_proto POST (null) [12:23:12]execute_cgi path=json_proto method=POST [12:23:12]POST find Content-Length [12:23:12]Host: 172.17.62.5:8080 [12:23:12]Content-Length: 679 [12:23:12]Content-Type: application/json [12:23:12] [12:23:12]POST finish read [12:23:12]Found Content-Length = 679 [12:23:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190897", "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" ] } } [12:23:12]execute_script... [12:23: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)190897", "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" ] } } [12:23:12]POST & json_proto [12:23:12]process_json_proto [12:23:12]json parsed OK: [12:23:12]protocol is kg_v1.0 [12:23:12]action value=close_receipt [12:23:12]process_action close_receipt [12:23:12]cmd_close_receipt [12:23:12]MH_GetDate [12:23:12]Write to MH i2c: F0 00 00 64 30 83 [12:23:12]Write i2c OK [12:23:12]MH_I2C_Read... [12:23:12]Read from MH i2c: F0 [12:23:12]MH_I2C_Read... [12:23:12]Read from MH i2c: F0 09 00 [12:23:12]MH_I2C_Read... [12:23:12]Read from MH i2c: F0 09 00 64 30 00 35 62 22 66 F4 E9 65 64 51 [12:23:12]GetLastDocTimeStamp 1713529044 [12:23:12]current date 1713529397 [12:23:12]FM_GetShiftState [12:23:12]SAM_PROTO_GetShiftState [12:23:12]wFMCommunicate request_size=4 [12:23:12]MH_SAM_APDU [12:23:12]CAPDU: 80 13 01 00 [12:23:12]Write to MH i2c: E2 08 00 65 30 80 13 01 00 00 00 00 00 12 [12:23:12]Write i2c OK [12:23:12]MH_I2C_Read... [12:23:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:12]Read from MH i2c: E2 [12:23:12]MH_I2C_Read... [12:23:12]Read from MH i2c: E2 0E 00 [12:23:12]MH_I2C_Read... [12:23:12]Read from MH i2c: E2 0E 00 65 30 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 F7 [12:23:12]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:23:12]wFMCommunicate OK [12:23:12]SAM_PROTO_GetShiftState done [12:23:12]FM_GetShiftState done [12:23:12]opened in 1713486233 [12:23:12]opened+sec_in_day 1713572633 [12:23:12]quantity*price = 100018 [12:23:12]sum+1 = 100020 [12:23:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 50 19.04.2024 12:23 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76430 ФПД: 225946284385423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T122317&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76430&fm=225946284385423&tin=02508201610067®Number=0000000000091573&sum=100000 [12:23:13]StoreToDocumentArchive [12:23:13]shift 370 fd 76430 [12:23:13]save to /storage/0370/doc_00076430 [12:23:13]save last doc name /storage/0370/doc_00076430 to /storage/kkm_last_doc_name [12:23:13]save OK [12:23:13]Clear old archive folders... [12:23:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:23:13]tlvbuf is 00981ED0 [12:23:13]SAM_PROTO_ClearQueue [12:23:13]wFMCommunicate request_size=4 [12:23:13]MH_SAM_APDU [12:23:13]CAPDU: 80 09 00 00 [12:23:13]Write to MH i2c: E2 08 00 72 30 80 09 00 00 00 00 00 00 14 [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:13]Read from MH i2c: E2 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 03 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 03 00 72 30 00 90 00 16 [12:23:13]RAPDU: 90 00 [12:23:13]wFMCommunicate OK [12:23:13]SAM_PROTO_ClearQueue done [12:23:13]KKMCreateOFDPacket [12:23:13]OFDProtocolAddRootSTLVToBuf [12:23:13]FM_MakeSignedData [12:23:13]FM_MakeSignedData [12:23:13]SAM_PROTO_SignData [12:23:13]wFMCommunicate request_size=4 [12:23:13]MH_SAM_APDU [12:23:13]CAPDU: 80 0D 01 02 [12:23:13]Write to MH i2c: E2 08 00 73 30 80 0D 01 02 00 00 00 00 1C [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:13]Read from MH i2c: E2 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 03 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 03 00 73 30 00 90 00 17 [12:23:13]RAPDU: 90 00 [12:23:13]wFMCommunicate OK [12:23:13]wFMCommunicate request_size=255 [12:23:13]MH_SAM_APDU [12:23: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 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 32 00 00 00 F4 03 04 00 35 62 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8E 2A 01 00 35 04 06 00 CD 7F 38 04 [12:23:13]Write to MH i2c: E2 02 01 74 30 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 32 00 00 00 F4 03 04 00 35 62 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8E 2A 01 00 35 04 06 00 CD 7F 38 04 00 00 87 [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:13]Read from MH i2c: E2 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 03 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 03 00 74 30 00 90 00 18 [12:23:13]RAPDU: 90 00 [12:23:13]wFMCommunicate OK [12:23:13]wFMCommunicate request_size=7 [12:23:13]MH_SAM_APDU [12:23:13]CAPDU: 80 0D 02 02 02 E4 8F [12:23:13]Write to MH i2c: E2 0A 00 75 30 80 0D 02 02 02 00 E4 8F 00 00 96 [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:13]Read from MH i2c: E2 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 03 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 03 00 75 30 00 90 00 19 [12:23:13]RAPDU: 90 00 [12:23:13]wFMCommunicate OK [12:23:13]wFMCommunicate request_size=4 [12:23:13]MH_SAM_APDU [12:23:13]CAPDU: 80 0D 03 02 [12:23:13]Write to MH i2c: E2 08 00 76 30 80 0D 03 02 00 00 00 00 21 [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:13]Read from MH i2c: E2 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 0B 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 0B 00 76 30 00 B7 3B 61 4D 09 31 AB 2F 90 00 D6 [12:23:13]RAPDU: B7 3B 61 4D 09 31 AB 2F 90 00 [12:23:13]wFMCommunicate OK [12:23:13]SAM_PROTO_SignData done [12:23:13]FM_MakeSignedData done [12:23:13]CreateOFDProtocolMessage [12:23:13]wFMCommunicate request_size=4 [12:23:13]MH_SAM_APDU [12:23:13]CAPDU: 80 11 00 00 [12:23:13]Write to MH i2c: E2 08 00 77 30 80 11 00 00 00 00 00 00 21 [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:13]Read from MH i2c: E2 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 17 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 17 00 77 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 74 [12:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:23:13]wFMCommunicate OK [12:23:13]CreateOFDProtocolMessage done [12:23:13]OFDSenderStorePacket 76430 [12:23:13]StoreOFDPacket docnum=76430 [12:23:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 39 E2 04 01 02 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 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 32 00 00 00 F4 03 04 00 35 62 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8E 2A 01 00 35 04 06 00 CD 7F 38 04 E4 8F B7 3B 61 4D 09 31 AB 2F [12:23:13]CheckFolder [12:23:13]dirname=/storage/ofd_packets [12:23:13]CheckFolder done [12:23:13]ProducePacketName [12:23:13]name=ofd_packets/00076430 [12:23:13]NVStorageSaveData ofd_packets/00076430 [12:23:13]File name is /storage/ofd_packets/00076430 [12:23:13]Write 298 bytes [12:23:13]NVStorageSaveData done [12:23:13]OFDSenderStorePacket done [12:23:13]KKMCreateOFDPacket done [12:23:13]NVStorageSaveData kkm_last_timestamp [12:23:13]File name is /storage/kkm_last_timestamp [12:23:13]Write 4 bytes [12:23:13]NVStorageSaveData done [12:23:13]ExternCall_PrintAddStr [12:23:13]wPrintStart [12:23:13]Write to MH i2c: 01 00 00 78 30 A8 [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: 01 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: 01 07 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: 01 07 00 78 30 00 00 00 00 00 FF 0F BD [12:23:13]RasterBufferAndPrint [12:23:13]line Счет N : (1)190897 [12:23:13]line ИНН: 02508201610067 [12:23:13]line Контрольно-Кассовый Чек [12:23:13]line ПРОДАЖА [12:23:13]line ТРК (МРК, ГНК) : 51 [12:23:13]line Товар: 2710194210 [12:23:13]line ДТ-К-5 [12:23:13]line 13.720 * 72.90 [12:23:13]line = 1000.19 [12:23:13]line НДС 12% НСП 1% [12:23:13]line > о реализуемом товаре [12:23:13]line ОКРУГЛЕНИЕ: -0.19 [12:23:13]line ИТОГО: 1000.00 [12:23:13]line Внесено: 1000.00 [12:23:13]line СДАЧА: 0.00 [12:23:13]line НСП 1% : 8.85 [12:23:13]line НДС 12% : 106.21 [12:23:13]line Наличными: 1000.00 [12:23:13]line Безнал.: 0.00 [12:23:13]line Место: АЗС № 106 "Партнер Нефть" [12:23:13]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:23:13]line СНО: Общий режим [12:23:13]line Чек 50 19.04.2024 12:23 [12:23:13]line Смена: 370 ФФД: 1.0 [12:23:13]line ЗНМ: 0300000141 [12:23:13]line РНМ: 0000000000091573 [12:23:13]line Версия ККМ: 001 [12:23:13]line ФМ: 0000000000874652 [12:23:13]line ФД: 76430 [12:23:13]line ФПД: 225946284385423 [12:23:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T122317&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76430&fm=225946284385423&tin=02508201610067®Number=0000000000091573&sum=100000 [12:23:14]OFD Sender: Processing packet 76430 [packets to send 128, broken 127] [12:23:14]ProducePacketName [12:23:14]name=ofd_packets/00076430 [12:23:14]OFD Sender: To server: pG, [12:23:14]CommunicateWithHost lk.salyk.kg:30040 [12:23:14]ConnectInit lk.salyk.kg [12:23:14]written 0, free lines is 4095 [12:23:14]Connected sock=10 [12:23:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 39 E2 04 01 02 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 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 32 00 00 00 F4 03 04 00 35 62 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8E 2A 01 00 35 04 06 00 CD 7F 38 04 E4 8F B7 3B 61 4D 09 31 AB 2F [12:23:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 72 5F 47 00 5D 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 34 36 35 32 10 04 04 00 8E 2A 01 00 F4 03 04 00 C0 09 22 66 B6 04 01 00 00 80 13 DE E4 9D B5 1E B0 [12:23:14]CommunicateWithHost err = 0 [12:23:14]CheckOFDResponse [12:23:14]1017 (14) - 77093643461234 [12:23:14]1041 (16) - 0000000000874652 [12:23:14]1040 (4) - 76430 [12:23:14]1012 (4) - 19.04.2024 06:05 [12:23:14]1206 (1) - 0 [12:23:14]OFD Sender: Remove packet 76430 [12:23:14]ProducePacketName [12:23:14]name=ofd_packets/00076430 [12:23:14]NVStorageDeleteData [12:23:14]Write to MH i2c: 01 00 00 A2 30 D2 [12:23:14]Write i2c OK [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: 01 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: 01 07 00 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: 01 07 00 A2 30 00 00 00 00 00 F2 0C D7 [12:23:14]RasterBufferAndPrint [12:23:14]line [12:23:14]line [12:23:14]line [12:23:14]line [12:23:14]line [12:23:14]written 0, free lines is 3320 [12:23:14]MH_Cut [12:23:14]Write to MH i2c: D1 01 00 A9 30 01 AB [12:23:14]Write i2c OK [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: D1 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: D1 01 00 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: D1 01 00 A9 30 00 AA [12:23:14]Write to MH i2c: 01 00 00 AA 30 DA [12:23:14]Write i2c OK [12:23:14]MH_I2C_Read... [12:23:14]OFD Sender: No OFD packet to send [12:23:15]*** Cut start [12:23:15]*** Partial cut [12:23:15]*** CUTSNS_PIN = 1 [12:23:15]*** CUTSNS_PIN = 0 [12:23:15]*** Brake cut motor [12:23:15]Read from MH i2c: 01 [12:23:15]MH_I2C_Read... [12:23:15]*** Stop cut motor [12:23:15]*** Cut end [12:23:15]Read from MH i2c: 01 07 00 [12:23:15]MH_I2C_Read... [12:23:15]Read from MH i2c: 01 07 00 AA 30 00 00 00 00 00 FF 0F EF [12:23:15]process_action close_receipt done [12:23:15]requested_data is exist [12:23:15]produce_requested_data [12:23:15]requested_item fm.sn is exist - process it [12:23:15]wFMCommunicate request_size=4 [12:23:15]MH_SAM_APDU [12:23:15]CAPDU: 80 11 00 00 [12:23:15]Write to MH i2c: E2 08 00 AB 30 80 11 00 00 00 00 00 00 55 [12:23:15]Write i2c OK [12:23:15]MH_I2C_Read... [12:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:15]Read from MH i2c: E2 [12:23:15]MH_I2C_Read... [12:23:15]Read from MH i2c: E2 17 00 [12:23:15]MH_I2C_Read... [12:23:15]Read from MH i2c: E2 17 00 AB 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A8 [12:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:23:15]wFMCommunicate OK [12:23:15]requested_item fd.num is exist - process it [12:23:15]SAM_PROTO_GetFieldsCounters [12:23:15]wFMCommunicate request_size=4 [12:23:15]MH_SAM_APDU [12:23:15]CAPDU: 80 13 00 00 [12:23:15]Write to MH i2c: E2 08 00 AC 30 80 13 00 00 00 00 00 00 58 [12:23:15]Write i2c OK [12:23:15]MH_I2C_Read... [12:23:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:16]Read from MH i2c: E2 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 62 00 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 62 00 AC 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8E 2A 01 00 0E 04 04 00 72 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 3B [12:23:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8E 2A 01 00 0E 04 04 00 72 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 [12:23:16]wFMCommunicate OK [12:23:16]SAM_PROTO_GetFieldsCounters done [12:23:16]requested_item shift.num is exist - process it [12:23:16]requested_item shift.opened is exist - process it [12:23:16]req_shift_opened [12:23:16]FM_GetShiftState [12:23:16]SAM_PROTO_GetShiftState [12:23:16]wFMCommunicate request_size=4 [12:23:16]MH_SAM_APDU [12:23:16]CAPDU: 80 13 01 00 [12:23:16]Write to MH i2c: E2 08 00 AD 30 80 13 01 00 00 00 00 00 5A [12:23:16]Write i2c OK [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 [12:23:16]MH_I2C_Read... [12:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:16]Read from MH i2c: E2 0E 00 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 0E 00 AD 30 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 3F [12:23:16]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:23:16]wFMCommunicate OK [12:23:16]SAM_PROTO_GetShiftState done [12:23:16]FM_GetShiftState done [12:23:16]req_shift_opened done [12:23:16]requested_item shift.open_date is exist - process it [12:23:16]req_shift_open_date [12:23:16]req_shift_open_date done [12:23:16]produce_requested_data done [12:23:16]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76430,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [12:23:16]process_action_free close_receipt [12:23:16]json_value_free [12:23:16]json_value_free done [12:23:16]process_json_proto returns [12:23:16]Send response to host [12:23:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76430,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [12:23:16]free response buf [12:23:16]execute_script done [12:23:16]execute_script returns [12:23:16]free content buf [12:23:16]Sock 7.Close socket [12:23:16]Sock 7.Thread stoped [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:24:00]OFD Sender: No OFD packet to send [12:24:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:15]OFD Sender: No OFD packet to send [12:24:20]OFD Sender: No OFD packet to send [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:45]OFD Sender: No OFD packet to send [12:25:50]OFD Sender: No OFD packet to send [12:25:55]OFD Sender: No OFD packet to send [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:46]accept exits with 9 [12:27:46]New connection [12:27:46]New thread 3066486116 created [12:27:46]Thread 3066629476 joined [12:27:46]Waiting for new connection... [12:27:46] Sock 9.Parse request [12:27:46]Sock 9.Check first char [12:27:46]Sock 9.First char is OK [12:27:46]request: POST /json_proto HTTP/1.0 [12:27:46]Method: POST [12:27:46]URL: /json_proto [12:27:46]Method is POST - this is cgi request [12:27:46]url: /json_proto [12:27:46]query_string will be loaded in cgi processing [12:27:46]execute_cgi json_proto POST (null) [12:27:46]execute_cgi path=json_proto method=POST [12:27:46]POST find Content-Length [12:27:46]Host: 172.17.62.5:8080 [12:27:46]Content-Length: 1202 [12:27:46]Content-Type: application/json [12:27:46] [12:27:46]POST finish read [12:27:46]Found Content-Length = 1202 [12:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190898\u000A19.04.2024 12:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3731041;3731040\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:46]execute_script... [12:27:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190898\u000A19.04.2024 12:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3731041;3731040\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:46]POST & json_proto [12:27:46]process_json_proto [12:27:46]json parsed OK: [12:27:46]protocol is kg_v1.0 [12:27:46]action value=print_text [12:27:46]process_action print_text [12:27:46]cmd_print_text [12:27:46]ExternCall_PrintAddStr [12:27:46]wPrintStart [12:27:46]Write to MH i2c: 01 00 00 AE 30 DE [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: 01 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: 01 07 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: 01 07 00 AE 30 00 00 00 00 00 FF 0F F3 [12:27:46]RasterBufferAndPrint [12:27:46]line *****ТОВАРНЫЙ ЧЕК***** [12:27:46]line АЗС 106 [12:27:46]line Партнер нефть [12:27:46]line 02508201610067 [12:27:46]line Кассир : Табалдиева М. [12:27:46]line Счет N : (1)190898 [12:27:46]line 19.04.2024 12:09 [12:27:46]line ПРОДАЖА [12:27:46]line ТРК (МРК, ГНК): 13 [12:27:46]line Вид ГСМ : 2710194210 [12:27:46]line ДТ-К-5 [12:27:46]line 20.000 x 72.90 [12:27:46]line ИТОГ: 1458.00 [12:27:46]line Тип оплаты: Талоны: Партнер нефть [12:27:46]line 3731041;3731040 [12:27:46]line ______________________ [12:27:46]line (подпись) [12:27:46]written 0, free lines is 4095 [12:27:46]Write to MH i2c: 01 00 00 C2 30 F2 [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: 01 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: 01 07 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: 01 07 00 C2 30 00 00 00 00 00 13 0E 1A [12:27:46]RasterBufferAndPrint [12:27:46]line [12:27:46]line [12:27:46]line [12:27:46]line [12:27:46]line [12:27:46]written 0, free lines is 3605 [12:27:46]MH_Cut [12:27:46]Write to MH i2c: D1 01 00 C9 30 01 CB [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: D1 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: D1 01 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: D1 01 00 C9 30 00 CA [12:27:46]Write to MH i2c: 01 00 00 CA 30 FA [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:47]*** Cut start [12:27:47]*** Partial cut [12:27:47]*** CUTSNS_PIN = 1 [12:27:47]*** CUTSNS_PIN = 0 [12:27:47]*** Brake cut motor [12:27:48]Read from MH i2c: 01 [12:27:48]MH_I2C_Read... [12:27:48]*** Stop cut motor [12:27:48]*** Cut end [12:27:48]Read from MH i2c: 01 07 00 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: 01 07 00 CA 30 00 00 00 00 00 FF 0F 0F [12:27:48]process_action print_text done [12:27:48]requested_data is exist [12:27:48]produce_requested_data [12:27:48]requested_item fm.sn is exist - process it [12:27:48]wFMCommunicate request_size=4 [12:27:48]MH_SAM_APDU [12:27:48]CAPDU: 80 11 00 00 [12:27:48]Write to MH i2c: E2 08 00 CB 30 80 11 00 00 00 00 00 00 75 [12:27:48]Write i2c OK [12:27:48]MH_I2C_Read... [12:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:48]Read from MH i2c: E2 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: E2 17 00 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: E2 17 00 CB 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C8 [12:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:27:48]wFMCommunicate OK [12:27:48]requested_item fd.num is exist - process it [12:27:48]SAM_PROTO_GetFieldsCounters [12:27:48]wFMCommunicate request_size=4 [12:27:48]MH_SAM_APDU [12:27:48]CAPDU: 80 13 00 00 [12:27:48]Write to MH i2c: E2 08 00 CC 30 80 13 00 00 00 00 00 00 78 [12:27:48]Write i2c OK [12:27:48]MH_I2C_Read... [12:27:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:48]Read from MH i2c: E2 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: E2 62 00 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: E2 62 00 CC 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8E 2A 01 00 0E 04 04 00 72 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 5B [12:27: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8E 2A 01 00 0E 04 04 00 72 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 [12:27:48]wFMCommunicate OK [12:27:48]SAM_PROTO_GetFieldsCounters done [12:27:48]requested_item shift.num is exist - process it [12:27:48]requested_item shift.opened is exist - process it [12:27:48]req_shift_opened [12:27:48]FM_GetShiftState [12:27:48]SAM_PROTO_GetShiftState [12:27:48]wFMCommunicate request_size=4 [12:27:48]MH_SAM_APDU [12:27:48]CAPDU: 80 13 01 00 [12:27:48]Write to MH i2c: E2 08 00 CD 30 80 13 01 00 00 00 00 00 7A [12:27:48]Write i2c OK [12:27:48]MH_I2C_Read... [12:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:48]Read from MH i2c: E2 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: E2 0E 00 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: E2 0E 00 CD 30 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 5F [12:27:48]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:27:48]wFMCommunicate OK [12:27:48]SAM_PROTO_GetShiftState done [12:27:48]FM_GetShiftState done [12:27:48]req_shift_opened done [12:27:48]requested_item shift.open_date is exist - process it [12:27:48]req_shift_open_date [12:27:48]req_shift_open_date done [12:27:48]produce_requested_data done [12:27:48]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76430,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [12:27:48]process_action_free print_text [12:27:48]json_value_free [12:27:48]json_value_free done [12:27:48]process_json_proto returns [12:27:48]Send response to host [12:27:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76430,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [12:27:48]free response buf [12:27:48]execute_script done [12:27:48]execute_script returns [12:27:48]free content buf [12:27:48]Sock 9.Close socket [12:27:48]Sock 9.Thread stoped [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:00]OFD Sender: No OFD packet to send [12:35:05]OFD Sender: No OFD packet to send [12:35:10]OFD Sender: No OFD packet to send [12:35:15]OFD Sender: No OFD packet to send [12:35:20]OFD Sender: No OFD packet to send [12:35:25]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]accept exits with 10 [12:36:25]New connection [12:36:25]New thread 3066629476 created [12:36:25]Thread 3066486116 joined [12:36:25]Waiting for new connection... [12:36:25] Sock 10.Parse request [12:36:25]Sock 10.Check first char [12:36:25]Sock 10.First char is OK [12:36:25]request: POST /json_proto HTTP/1.0 [12:36:25]Method: POST [12:36:25]URL: /json_proto [12:36:25]Method is POST - this is cgi request [12:36:25]url: /json_proto [12:36:25]query_string will be loaded in cgi processing [12:36:25]execute_cgi json_proto POST (null) [12:36:25]execute_cgi path=json_proto method=POST [12:36:25]POST find Content-Length [12:36:25]Host: 172.17.62.5:8080 [12:36:25]Content-Length: 978 [12:36:25]Content-Type: application/json [12:36:25] [12:36:25]POST finish read [12:36:25]Found Content-Length = 978 [12:36:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.82 \u0441\u043E\u043C", "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" ] } } [12:36:25]execute_script... [12:36: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)190899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.82 \u0441\u043E\u043C", "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" ] } } [12:36:25]POST & json_proto [12:36:25]process_json_proto [12:36:25]json parsed OK: [12:36:25]protocol is kg_v1.0 [12:36:25]action value=close_receipt [12:36:25]process_action close_receipt [12:36:25]cmd_close_receipt [12:36:25]MH_GetDate [12:36:25]Write to MH i2c: F0 00 00 CE 30 ED [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: F0 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: F0 09 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: F0 09 00 CE 30 00 4E 65 22 66 F4 E9 65 64 D7 [12:36:25]GetLastDocTimeStamp 1713529397 [12:36:25]current date 1713530190 [12:36:25]FM_GetShiftState [12:36:25]SAM_PROTO_GetShiftState [12:36:25]wFMCommunicate request_size=4 [12:36:25]MH_SAM_APDU [12:36:25]CAPDU: 80 13 01 00 [12:36:25]Write to MH i2c: E2 08 00 CF 30 80 13 01 00 00 00 00 00 7C [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 0E 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 0E 00 CF 30 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 61 [12:36:25]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:36:25]wFMCommunicate OK [12:36:25]SAM_PROTO_GetShiftState done [12:36:25]FM_GetShiftState done [12:36:25]opened in 1713486233 [12:36:25]opened+sec_in_day 1713572633 [12:36:25]quantity*price = 200025 [12:36:25]sum+1 = 200027 [12:36:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 51 19.04.2024 12:36 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 27.82 сом ФМ: 0000000000874652 ФД: 76431 ФПД: 166001545772692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T123630&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76431&fm=166001545772692&tin=02508201610067®Number=0000000000091573&sum=200000 [12:36:26]StoreToDocumentArchive [12:36:26]shift 370 fd 76431 [12:36:26]save to /storage/0370/doc_00076431 [12:36:26]save last doc name /storage/0370/doc_00076431 to /storage/kkm_last_doc_name [12:36:26]save OK [12:36:26]Clear old archive folders... [12:36:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:36:26]tlvbuf is 009594A0 [12:36:26]SAM_PROTO_ClearQueue [12:36:26]wFMCommunicate request_size=4 [12:36:26]MH_SAM_APDU [12:36:26]CAPDU: 80 09 00 00 [12:36:26]Write to MH i2c: E2 08 00 DC 30 80 09 00 00 00 00 00 00 7E [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:26]Read from MH i2c: E2 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 03 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 03 00 DC 30 00 90 00 80 [12:36:26]RAPDU: 90 00 [12:36:26]wFMCommunicate OK [12:36:26]SAM_PROTO_ClearQueue done [12:36:26]KKMCreateOFDPacket [12:36:26]OFDProtocolAddRootSTLVToBuf [12:36:26]FM_MakeSignedData [12:36:26]FM_MakeSignedData [12:36:26]SAM_PROTO_SignData [12:36:26]wFMCommunicate request_size=4 [12:36:26]MH_SAM_APDU [12:36:26]CAPDU: 80 0D 01 02 [12:36:26]Write to MH i2c: E2 08 00 DD 30 80 0D 01 02 00 00 00 00 86 [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:26]Read from MH i2c: E2 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 03 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 03 00 DD 30 00 90 00 81 [12:36:26]RAPDU: 90 00 [12:36:26]wFMCommunicate OK [12:36:26]wFMCommunicate request_size=255 [12:36:26]MH_SAM_APDU [12:36:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 4E 65 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8F 2A 01 00 35 04 06 00 96 FA 3F 2A [12:36:26]Write to MH i2c: E2 02 01 DE 30 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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 4E 65 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8F 2A 01 00 35 04 06 00 96 FA 3F 2A 00 00 07 [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:26]Read from MH i2c: E2 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 03 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 03 00 DE 30 00 90 00 82 [12:36:26]RAPDU: 90 00 [12:36:26]wFMCommunicate OK [12:36:26]wFMCommunicate request_size=7 [12:36:26]MH_SAM_APDU [12:36:26]CAPDU: 80 0D 02 02 02 FE 94 [12:36:26]Write to MH i2c: E2 0A 00 DF 30 80 0D 02 02 02 00 FE 94 00 00 1F [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:26]Read from MH i2c: E2 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 03 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 03 00 DF 30 00 90 00 83 [12:36:26]RAPDU: 90 00 [12:36:26]wFMCommunicate OK [12:36:26]wFMCommunicate request_size=4 [12:36:26]MH_SAM_APDU [12:36:26]CAPDU: 80 0D 03 02 [12:36:26]Write to MH i2c: E2 08 00 E0 30 80 0D 03 02 00 00 00 00 8B [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:26]Read from MH i2c: E2 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 0B 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 0B 00 E0 30 00 76 A1 E8 0E E6 F0 86 E1 90 00 D6 [12:36:26]RAPDU: 76 A1 E8 0E E6 F0 86 E1 90 00 [12:36:26]wFMCommunicate OK [12:36:26]SAM_PROTO_SignData done [12:36:26]FM_MakeSignedData done [12:36:26]CreateOFDProtocolMessage [12:36:26]wFMCommunicate request_size=4 [12:36:26]MH_SAM_APDU [12:36:26]CAPDU: 80 11 00 00 [12:36:26]Write to MH i2c: E2 08 00 E1 30 80 11 00 00 00 00 00 00 8B [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:26]Read from MH i2c: E2 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 17 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 17 00 E1 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DE [12:36:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:36:26]wFMCommunicate OK [12:36:26]CreateOFDProtocolMessage done [12:36:26]OFDSenderStorePacket 76431 [12:36:26]StoreOFDPacket docnum=76431 [12:36:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 E6 AB 04 01 D5 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 4E 65 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8F 2A 01 00 35 04 06 00 96 FA 3F 2A FE 94 76 A1 E8 0E E6 F0 86 E1 [12:36:26]CheckFolder [12:36:26]dirname=/storage/ofd_packets [12:36:26]CheckFolder done [12:36:26]ProducePacketName [12:36:26]name=ofd_packets/00076431 [12:36:26]NVStorageSaveData ofd_packets/00076431 [12:36:26]File name is /storage/ofd_packets/00076431 [12:36:26]Write 298 bytes [12:36:26]NVStorageSaveData done [12:36:26]OFDSenderStorePacket done [12:36:26]KKMCreateOFDPacket done [12:36:26]NVStorageSaveData kkm_last_timestamp [12:36:26]File name is /storage/kkm_last_timestamp [12:36:26]Write 4 bytes [12:36:26]NVStorageSaveData done [12:36:26]ExternCall_PrintAddStr [12:36:26]wPrintStart [12:36:26]Write to MH i2c: 01 00 00 E2 30 12 [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: 01 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: 01 07 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: 01 07 00 E2 30 00 00 00 00 00 FF 0F 27 [12:36:26]RasterBufferAndPrint [12:36:26]line Счет N : (1)190899 [12:36:26]line ИНН: 02508201610067 [12:36:26]line Контрольно-Кассовый Чек [12:36:26]line ПРОДАЖА [12:36:26]line ТРК (МРК, ГНК) : 13 [12:36:26]line Товар: 2710194210 [12:36:26]line ДТ-К-5 [12:36:26]line 27.820 * 71.90 [12:36:26]line = 2000.26 [12:36:26]line НДС 12% НСП 1% [12:36:26]line > о реализуемом товаре [12:36:26]line ОКРУГЛЕНИЕ: -0.26 [12:36:26]line ИТОГО: 2000.00 [12:36:26]line Внесено: 2000.00 [12:36:26]line СДАЧА: 0.00 [12:36:26]line НСП 1% : 17.70 [12:36:26]line НДС 12% : 212.42 [12:36:26]line Наличными: 2000.00 [12:36:26]line Безнал.: 0.00 [12:36:26]line Место: АЗС № 106 "Партнер Нефть" [12:36:26]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:36:26]line СНО: Общий режим [12:36:26]line Чек 51 19.04.2024 12:36 [12:36:27]line Смена: 370 ФФД: 1.0 [12:36:27]line ЗНМ: 0300000141 [12:36:27]line РНМ: 0000000000091573 [12:36:27]line Версия ККМ: 001 [12:36:27]line [12:36:27]line Дисконтная программа [12:36:27]line ДТ [12:36:27]line номер 106 [12:36:27]line сэкономлено 27.82 сом [12:36:27]line ФМ: 0000000000874652 [12:36:27]line ФД: 76431 [12:36:27]line ФПД: 166001545772692 [12:36:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T123630&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76431&fm=166001545772692&tin=02508201610067®Number=0000000000091573&sum=200000 [12:36:27]OFD Sender: Processing packet 76431 [packets to send 128, broken 127] [12:36:27]ProducePacketName [12:36:27]name=ofd_packets/00076431 [12:36:27]OFD Sender: To server: pG, [12:36:27]CommunicateWithHost lk.salyk.kg:30040 [12:36:27]ConnectInit lk.salyk.kg [12:36:27]written 0, free lines is 4095 [12:36:27]Connected sock=9 [12:36:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 E6 AB 04 01 D5 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 4E 65 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8F 2A 01 00 35 04 06 00 96 FA 3F 2A FE 94 76 A1 E8 0E E6 F0 86 E1 [12:36:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 4C 76 47 00 5C A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 8F 2A 01 00 F4 03 04 00 DA 0C 22 66 B6 04 01 00 00 E6 99 6E 39 01 14 E3 01 [12:36:27]CommunicateWithHost err = 0 [12:36:27]CheckOFDResponse [12:36:27]1017 (14) - 77093643461234 [12:36:27]1041 (16) - 0000000000874652 [12:36:27]1040 (4) - 76431 [12:36:27]1012 (4) - 19.04.2024 06:19 [12:36:27]1206 (1) - 0 [12:36:27]OFD Sender: Remove packet 76431 [12:36:27]ProducePacketName [12:36:27]name=ofd_packets/00076431 [12:36:27]NVStorageDeleteData [12:36:27]Write to MH i2c: 01 00 00 11 31 42 [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: 01 [12:36:27]MH_I2C_Read... [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 11 31 00 00 00 00 00 9E 0C F3 [12:36:27]RasterBufferAndPrint [12:36:27]line [12:36:27]line [12:36:27]line [12:36:27]line [12:36:27]line [12:36:27]written 0, free lines is 3238 [12:36:27]MH_Cut [12:36:27]Write to MH i2c: D1 01 00 18 31 01 1B [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: D1 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: D1 01 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: D1 01 00 18 31 00 1A [12:36:27]Write to MH i2c: 01 00 00 19 31 4A [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:28]OFD Sender: No OFD packet to send [12:36:28]*** Cut start [12:36:28]*** Partial cut [12:36:28]*** CUTSNS_PIN = 1 [12:36:28]*** CUTSNS_PIN = 0 [12:36:28]*** Brake cut motor [12:36:29]Read from MH i2c: 01 [12:36:29]MH_I2C_Read... [12:36:29]*** Stop cut motor [12:36:29]*** Cut end [12:36:29]Read from MH i2c: 01 07 00 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: 01 07 00 19 31 00 00 00 00 00 FF 0F 5F [12:36:29]process_action close_receipt done [12:36:29]requested_data is exist [12:36:29]produce_requested_data [12:36:29]requested_item fm.sn is exist - process it [12:36:29]wFMCommunicate request_size=4 [12:36:29]MH_SAM_APDU [12:36:29]CAPDU: 80 11 00 00 [12:36:29]Write to MH i2c: E2 08 00 1A 31 80 11 00 00 00 00 00 00 C5 [12:36:29]Write i2c OK [12:36:29]MH_I2C_Read... [12:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:29]Read from MH i2c: E2 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 17 00 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 17 00 1A 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 18 [12:36:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:36:29]wFMCommunicate OK [12:36:29]requested_item fd.num is exist - process it [12:36:29]SAM_PROTO_GetFieldsCounters [12:36:29]wFMCommunicate request_size=4 [12:36:29]MH_SAM_APDU [12:36:29]CAPDU: 80 13 00 00 [12:36:29]Write to MH i2c: E2 08 00 1B 31 80 13 00 00 00 00 00 00 C8 [12:36:29]Write i2c OK [12:36:29]MH_I2C_Read... [12:36:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:29]Read from MH i2c: E2 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 62 00 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 62 00 1B 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8F 2A 01 00 0E 04 04 00 72 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 AF [12: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 8F 2A 01 00 0E 04 04 00 72 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 [12:36:29]wFMCommunicate OK [12:36:29]SAM_PROTO_GetFieldsCounters done [12:36:29]requested_item shift.num is exist - process it [12:36:29]requested_item shift.opened is exist - process it [12:36:29]req_shift_opened [12:36:29]FM_GetShiftState [12:36:29]SAM_PROTO_GetShiftState [12:36:29]wFMCommunicate request_size=4 [12:36:29]MH_SAM_APDU [12:36:29]CAPDU: 80 13 01 00 [12:36:29]Write to MH i2c: E2 08 00 1C 31 80 13 01 00 00 00 00 00 CA [12:36:29]Write i2c OK [12:36:29]MH_I2C_Read... [12:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:29]Read from MH i2c: E2 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 0E 00 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 0E 00 1C 31 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 AF [12:36:29]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:36:29]wFMCommunicate OK [12:36:29]SAM_PROTO_GetShiftState done [12:36:29]FM_GetShiftState done [12:36:29]req_shift_opened done [12:36:29]requested_item shift.open_date is exist - process it [12:36:29]req_shift_open_date [12:36:29]req_shift_open_date done [12:36:29]produce_requested_data done [12:36:29]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76431,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [12:36:29]process_action_free close_receipt [12:36:29]json_value_free [12:36:29]json_value_free done [12:36:29]process_json_proto returns [12:36:29]Send response to host [12:36:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76431,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [12:36:29]free response buf [12:36:29]execute_script done [12:36:29]execute_script returns [12:36:29]free content buf [12:36:29]Sock 10.Close socket [12:36:29]Sock 10.Thread stoped [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:20]accept exits with 7 [12:41:20]New connection [12:41:20]New thread 3066486116 created [12:41:20]Thread 3066629476 joined [12:41:20]Waiting for new connection... [12:41:20] Sock 7.Parse request [12:41:20]Sock 7.Check first char [12:41:20]Sock 7.First char is OK [12:41:20]request: POST /json_proto HTTP/1.0 [12:41:20]Method: POST [12:41:20]URL: /json_proto [12:41:20]Method is POST - this is cgi request [12:41:20]url: /json_proto [12:41:20]query_string will be loaded in cgi processing [12:41:20]execute_cgi json_proto POST (null) [12:41:20]execute_cgi path=json_proto method=POST [12:41:20]POST find Content-Length [12:41:20]Host: 172.17.62.5:8080 [12:41:20]Content-Length: 681 [12:41:20]Content-Type: application/json [12:41:20] [12:41:20]POST finish read [12:41:20]Found Content-Length = 681 [12:41:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 21.410, "sum" : 700.11, "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:41:20]execute_script... [12:41: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)190900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 21.410, "sum" : 700.11, "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:41:20]POST & json_proto [12:41:20]process_json_proto [12:41:20]json parsed OK: [12:41:20]protocol is kg_v1.0 [12:41:20]action value=close_receipt [12:41:20]process_action close_receipt [12:41:20]cmd_close_receipt [12:41:20]MH_GetDate [12:41:20]Write to MH i2c: F0 00 00 1D 31 3D [12:41:20]Write i2c OK [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: F0 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: F0 09 00 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: F0 09 00 1D 31 00 75 66 22 66 F4 E9 65 64 4F [12:41:20]GetLastDocTimeStamp 1713530190 [12:41:20]current date 1713530485 [12:41:20]FM_GetShiftState [12:41:20]SAM_PROTO_GetShiftState [12:41:20]wFMCommunicate request_size=4 [12:41:20]MH_SAM_APDU [12:41:20]CAPDU: 80 13 01 00 [12:41:20]Write to MH i2c: E2 08 00 1E 31 80 13 01 00 00 00 00 00 CC [12:41:20]Write i2c OK [12:41:20]MH_I2C_Read... [12:41:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:20]Read from MH i2c: E2 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: E2 0E 00 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: E2 0E 00 1E 31 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 B1 [12:41:20]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:41:20]wFMCommunicate OK [12:41:20]SAM_PROTO_GetShiftState done [12:41:20]FM_GetShiftState done [12:41:20]opened in 1713486233 [12:41:20]opened+sec_in_day 1713572633 [12:41:20]quantity*price = 70010 [12:41:20]sum+1 = 70012 [12:41:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 52 19.04.2024 12:41 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76432 ФПД: 111796863337496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T124126&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76432&fm=111796863337496&tin=02508201610067®Number=0000000000091573&sum=70000 [12:41:21]StoreToDocumentArchive [12:41:21]shift 370 fd 76432 [12:41:21]save to /storage/0370/doc_00076432 [12:41:21]save last doc name /storage/0370/doc_00076432 to /storage/kkm_last_doc_name [12:41:21]save OK [12:41:21]Clear old archive folders... [12:41:21]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:41:21]tlvbuf is 009A77E0 [12:41:21]SAM_PROTO_ClearQueue [12:41:21]wFMCommunicate request_size=4 [12:41:21]MH_SAM_APDU [12:41:21]CAPDU: 80 09 00 00 [12:41:21]Write to MH i2c: E2 08 00 2B 31 80 09 00 00 00 00 00 00 CE [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:21]Read from MH i2c: E2 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 03 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 03 00 2B 31 00 90 00 D0 [12:41:21]RAPDU: 90 00 [12:41:21]wFMCommunicate OK [12:41:21]SAM_PROTO_ClearQueue done [12:41:21]KKMCreateOFDPacket [12:41:21]OFDProtocolAddRootSTLVToBuf [12:41:21]FM_MakeSignedData [12:41:21]FM_MakeSignedData [12:41:21]SAM_PROTO_SignData [12:41:21]wFMCommunicate request_size=4 [12:41:21]MH_SAM_APDU [12:41:21]CAPDU: 80 0D 01 02 [12:41:21]Write to MH i2c: E2 08 00 2C 31 80 0D 01 02 00 00 00 00 D6 [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:22]Read from MH i2c: E2 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 03 00 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 03 00 2C 31 00 90 00 D1 [12:41:22]RAPDU: 90 00 [12:41:22]wFMCommunicate OK [12:41:22]wFMCommunicate request_size=255 [12:41:22]MH_SAM_APDU [12:41:22]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7B 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 0B 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 34 00 00 00 F4 03 04 00 76 66 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 90 2A 01 00 35 04 06 00 65 AD [12:41:22]Write to MH i2c: E2 02 01 2D 31 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7B 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 0B 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 34 00 00 00 F4 03 04 00 76 66 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 90 2A 01 00 35 04 06 00 65 AD 00 00 4D [12:41:22]Write i2c OK [12:41:22]MH_I2C_Read... [12:41:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:22]Read from MH i2c: E2 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 03 00 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 03 00 2D 31 00 90 00 D2 [12:41:22]RAPDU: 90 00 [12:41:22]wFMCommunicate OK [12:41:22]wFMCommunicate request_size=9 [12:41:22]MH_SAM_APDU [12:41:22]CAPDU: 80 0D 02 02 04 BC 53 84 18 [12:41:22]Write to MH i2c: E2 0C 00 2E 31 80 0D 02 02 04 00 BC 53 84 18 00 00 8C [12:41:22]Write i2c OK [12:41:22]MH_I2C_Read... [12:41:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:22]Read from MH i2c: E2 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 03 00 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 03 00 2E 31 00 90 00 D3 [12:41:22]RAPDU: 90 00 [12:41:22]wFMCommunicate OK [12:41:22]wFMCommunicate request_size=4 [12:41:22]MH_SAM_APDU [12:41:22]CAPDU: 80 0D 03 02 [12:41:22]Write to MH i2c: E2 08 00 2F 31 80 0D 03 02 00 00 00 00 DB [12:41:22]Write i2c OK [12:41:22]MH_I2C_Read... [12:41:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:22]Read from MH i2c: E2 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 0B 00 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 0B 00 2F 31 00 FB 5E A7 87 AE 38 0E 91 90 00 E8 [12:41:22]RAPDU: FB 5E A7 87 AE 38 0E 91 90 00 [12:41:22]wFMCommunicate OK [12:41:22]SAM_PROTO_SignData done [12:41:22]FM_MakeSignedData done [12:41:22]CreateOFDProtocolMessage [12:41:22]wFMCommunicate request_size=4 [12:41:22]MH_SAM_APDU [12:41:22]CAPDU: 80 11 00 00 [12:41:22]Write to MH i2c: E2 08 00 30 31 80 11 00 00 00 00 00 00 DB [12:41:22]Write i2c OK [12:41:22]MH_I2C_Read... [12:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:22]Read from MH i2c: E2 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 17 00 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 17 00 30 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2E [12:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:41:22]wFMCommunicate OK [12:41:22]CreateOFDProtocolMessage done [12:41:22]OFDSenderStorePacket 76432 [12:41:22]StoreOFDPacket docnum=76432 [12:41:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 7F 28 06 01 E2 34 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7B 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 0B 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 34 00 00 00 F4 03 04 00 76 66 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 90 2A 01 00 35 04 06 00 65 AD BC 53 84 18 FB 5E A7 87 AE 38 0E 91 [12:41:22]CheckFolder [12:41:22]dirname=/storage/ofd_packets [12:41:22]CheckFolder done [12:41:22]ProducePacketName [12:41:22]name=ofd_packets/00076432 [12:41:22]NVStorageSaveData ofd_packets/00076432 [12:41:22]File name is /storage/ofd_packets/00076432 [12:41:22]Write 300 bytes [12:41:22]NVStorageSaveData done [12:41:22]OFDSenderStorePacket done [12:41:22]KKMCreateOFDPacket done [12:41:22]NVStorageSaveData kkm_last_timestamp [12:41:22]File name is /storage/kkm_last_timestamp [12:41:22]Write 4 bytes [12:41:22]NVStorageSaveData done [12:41:22]ExternCall_PrintAddStr [12:41:22]wPrintStart [12:41:22]Write to MH i2c: 01 00 00 31 31 62 [12:41:22]Write i2c OK [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: 01 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: 01 07 00 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: 01 07 00 31 31 00 00 00 00 00 FF 0F 77 [12:41:22]RasterBufferAndPrint [12:41:22]line Счет N : (1)190900 [12:41:22]line ИНН: 02508201610067 [12:41:22]line Контрольно-Кассовый Чек [12:41:22]line ПРОДАЖА [12:41:22]line ТРК (МРК, ГНК) : 71 [12:41:22]line Товар: 2711190000 [12:41:22]line ГАЗ-К-5 [12:41:22]line 21.410 * 32.70 [12:41:22]line = 700.11 [12:41:22]line НДС 12% НСП 1% [12:41:22]line > о реализуемом товаре [12:41:22]line ОКРУГЛЕНИЕ: -0.11 [12:41:22]line ИТОГО: 700.00 [12:41:22]line Внесено: 700.00 [12:41:22]line СДАЧА: 0.00 [12:41:22]line НСП 1% : 6.20 [12:41:22]line НДС 12% : 74.35 [12:41:22]line Наличными: 700.00 [12:41:22]line Безнал.: 0.00 [12:41:22]line Место: АЗС № 106 "Партнер Нефть" [12:41:22]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:41:22]line СНО: Общий режим [12:41:22]line Чек 52 19.04.2024 12:41 [12:41:22]line Смена: 370 ФФД: 1.0 [12:41:22]line ЗНМ: 0300000141 [12:41:22]line РНМ: 0000000000091573 [12:41:22]line Версия ККМ: 001 [12:41:22]line ФМ: 0000000000874652 [12:41:22]line ФД: 76432 [12:41:22]line ФПД: 111796863337496 [12:41:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T124126&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76432&fm=111796863337496&tin=02508201610067®Number=0000000000091573&sum=70000 [12:41:22]OFD Sender: Processing packet 76432 [packets to send 128, broken 127] [12:41:22]ProducePacketName [12:41:22]name=ofd_packets/00076432 [12:41:22]OFD Sender: To server: pG, [12:41:22]CommunicateWithHost lk.salyk.kg:30040 [12:41:22]ConnectInit lk.salyk.kg [12:41:22]written 0, free lines is 4095 [12:41:22]Connected sock=10 [12:41:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 7F 28 06 01 E2 34 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7B 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 0B 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 34 00 00 00 F4 03 04 00 76 66 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 90 2A 01 00 35 04 06 00 65 AD BC 53 84 18 FB 5E A7 87 AE 38 0E 91 [12:41:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 E4 93 47 00 43 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 34 36 35 32 10 04 04 00 90 2A 01 00 F4 03 04 00 01 0E 22 66 B6 04 01 00 00 11 3E 87 0E 9E 71 66 1F [12:41:23]CommunicateWithHost err = 0 [12:41:23]CheckOFDResponse [12:41:23]1017 (14) - 77093643461234 [12:41:23]1041 (16) - 0000000000874652 [12:41:23]1040 (4) - 76432 [12:41:23]1012 (4) - 19.04.2024 06:24 [12:41:23]1206 (1) - 0 [12:41:23]OFD Sender: Remove packet 76432 [12:41:23]ProducePacketName [12:41:23]name=ofd_packets/00076432 [12:41:23]NVStorageDeleteData [12:41:23]Write to MH i2c: 01 00 00 5B 31 8C [12:41:23]Write i2c OK [12:41:23]MH_I2C_Read... [12:41:23]Read from MH i2c: 01 [12:41:23]MH_I2C_Read... [12:41:23]Read from MH i2c: 01 07 00 [12:41:23]MH_I2C_Read... [12:41:23]Read from MH i2c: 01 07 00 5B 31 00 00 00 00 00 DD 0C 7C [12:41:23]RasterBufferAndPrint [12:41:23]line [12:41:23]line [12:41:23]line [12:41:23]line [12:41:23]line [12:41:23]written 0, free lines is 3299 [12:41:23]MH_Cut [12:41:23]Write to MH i2c: D1 01 00 62 31 01 65 [12:41:23]Write i2c OK [12:41:23]MH_I2C_Read... [12:41:23]Read from MH i2c: D1 [12:41:23]MH_I2C_Read... [12:41:23]Read from MH i2c: D1 01 00 [12:41:23]MH_I2C_Read... [12:41:23]Read from MH i2c: D1 01 00 62 31 00 64 [12:41:23]Write to MH i2c: 01 00 00 63 31 94 [12:41:23]Write i2c OK [12:41:23]MH_I2C_Read... [12:41:23]OFD Sender: No OFD packet to send [12:41:23]*** Cut start [12:41:23]*** Partial cut [12:41:23]*** CUTSNS_PIN = 1 [12:41:24]*** CUTSNS_PIN = 0 [12:41:24]*** Brake cut motor [12:41:24]Read from MH i2c: 01 [12:41:24]MH_I2C_Read... [12:41:24]*** Stop cut motor [12:41:24]*** Cut end [12:41:24]Read from MH i2c: 01 07 00 [12:41:24]MH_I2C_Read... [12:41:24]Read from MH i2c: 01 07 00 63 31 00 00 00 00 00 FF 0F A9 [12:41:24]process_action close_receipt done [12:41:24]requested_data is exist [12:41:24]produce_requested_data [12:41:24]requested_item fm.sn is exist - process it [12:41:24]wFMCommunicate request_size=4 [12:41:24]MH_SAM_APDU [12:41:24]CAPDU: 80 11 00 00 [12:41:24]Write to MH i2c: E2 08 00 64 31 80 11 00 00 00 00 00 00 0F [12:41:24]Write i2c OK [12:41:24]MH_I2C_Read... [12:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:24]Read from MH i2c: E2 [12:41:24]MH_I2C_Read... [12:41:24]Read from MH i2c: E2 17 00 [12:41:24]MH_I2C_Read... [12:41:24]Read from MH i2c: E2 17 00 64 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 62 [12:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:41:24]wFMCommunicate OK [12:41:24]requested_item fd.num is exist - process it [12:41:24]SAM_PROTO_GetFieldsCounters [12:41:24]wFMCommunicate request_size=4 [12:41:24]MH_SAM_APDU [12:41:24]CAPDU: 80 13 00 00 [12:41:24]Write to MH i2c: E2 08 00 65 31 80 13 00 00 00 00 00 00 12 [12:41:24]Write i2c OK [12:41:24]MH_I2C_Read... [12:41:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:24]Read from MH i2c: E2 [12:41:24]MH_I2C_Read... [12:41:24]Read from MH i2c: E2 62 00 [12:41:24]MH_I2C_Read... [12:41:24]Read from MH i2c: E2 62 00 65 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 90 2A 01 00 0E 04 04 00 72 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 FD [12:41: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 90 2A 01 00 0E 04 04 00 72 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 [12:41:24]wFMCommunicate OK [12:41:24]SAM_PROTO_GetFieldsCounters done [12:41:24]requested_item shift.num is exist - process it [12:41:24]requested_item shift.opened is exist - process it [12:41:24]req_shift_opened [12:41:24]FM_GetShiftState [12:41:24]SAM_PROTO_GetShiftState [12:41:24]wFMCommunicate request_size=4 [12:41:24]MH_SAM_APDU [12:41:24]CAPDU: 80 13 01 00 [12:41:24]Write to MH i2c: E2 08 00 66 31 80 13 01 00 00 00 00 00 14 [12:41:24]Write i2c OK [12:41:24]MH_I2C_Read... [12:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:24]Read from MH i2c: E2 [12:41:24]MH_I2C_Read... [12:41:24]Read from MH i2c: E2 0E 00 [12:41:24]MH_I2C_Read... [12:41:24]Read from MH i2c: E2 0E 00 66 31 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 F9 [12:41:24]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:41:24]wFMCommunicate OK [12:41:24]SAM_PROTO_GetShiftState done [12:41:24]FM_GetShiftState done [12:41:24]req_shift_opened done [12:41:24]requested_item shift.open_date is exist - process it [12:41:24]req_shift_open_date [12:41:24]req_shift_open_date done [12:41:24]produce_requested_data done [12:41:24]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76432,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [12:41:24]process_action_free close_receipt [12:41:24]json_value_free [12:41:24]json_value_free done [12:41:24]process_json_proto returns [12:41:24]Send response to host [12:41:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76432,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [12:41:24]free response buf [12:41:24]execute_script done [12:41:24]execute_script returns [12:41:24]free content buf [12:41:24]Sock 7.Close socket [12:41:24]Sock 7.Thread stoped [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:49]accept exits with 9 [12:46:49]New connection [12:46:49]New thread 3066629476 created [12:46:49]Thread 3066486116 joined [12:46:49]Waiting for new connection... [12:46:49] Sock 9.Parse request [12:46:49]Sock 9.Check first char [12:46:49]Sock 9.First char is OK [12:46:49]request: POST /json_proto HTTP/1.0 [12:46:49]Method: POST [12:46:49]URL: /json_proto [12:46:49]Method is POST - this is cgi request [12:46:49]url: /json_proto [12:46:49]query_string will be loaded in cgi processing [12:46:49]execute_cgi json_proto POST (null) [12:46:49]execute_cgi path=json_proto method=POST [12:46:49]POST find Content-Length [12:46:49]Host: 172.17.62.5:8080 [12:46:49]Content-Length: 819 [12:46:49]Content-Type: application/json [12:46:49] [12:46:49]POST finish read [12:46:49]Found Content-Length = 819 [12:46:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190901", "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" : 64.40, "quantity" : 18.640, "sum" : 1200.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1200.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:49]execute_script... [12:46: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)190901", "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" : 64.40, "quantity" : 18.640, "sum" : 1200.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1200.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:49]POST & json_proto [12:46:49]process_json_proto [12:46:49]json parsed OK: [12:46:49]protocol is kg_v1.0 [12:46:49]action value=close_receipt [12:46:49]process_action close_receipt [12:46:49]cmd_close_receipt [12:46:49]MH_GetDate [12:46:49]Write to MH i2c: F0 00 00 67 31 87 [12:46:49]Write i2c OK [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: F0 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: F0 09 00 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: F0 09 00 67 31 00 BE 67 22 66 F4 E9 65 64 E3 [12:46:49]GetLastDocTimeStamp 1713530486 [12:46:49]current date 1713530814 [12:46:49]FM_GetShiftState [12:46:49]SAM_PROTO_GetShiftState [12:46:49]wFMCommunicate request_size=4 [12:46:49]MH_SAM_APDU [12:46:49]CAPDU: 80 13 01 00 [12:46:49]Write to MH i2c: E2 08 00 68 31 80 13 01 00 00 00 00 00 16 [12:46:49]Write i2c OK [12:46:49]MH_I2C_Read... [12:46:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:49]Read from MH i2c: E2 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 0E 00 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 0E 00 68 31 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 FB [12:46:49]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:46:49]wFMCommunicate OK [12:46:49]SAM_PROTO_GetShiftState done [12:46:49]FM_GetShiftState done [12:46:49]opened in 1713486233 [12:46:49]opened+sec_in_day 1713572633 [12:46:49]quantity*price = 120041 [12:46:49]sum+1 = 120043 [12:46:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.42 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 0.00 Безнал.: 1200.42 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 53 19.04.2024 12:46 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76433 ФПД: 65139205581334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T124654&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76433&fm=65139205581334&tin=02508201610067®Number=0000000000091573&sum=120042 [12:46:50]StoreToDocumentArchive [12:46:50]shift 370 fd 76433 [12:46:50]save to /storage/0370/doc_00076433 [12:46:50]save last doc name /storage/0370/doc_00076433 to /storage/kkm_last_doc_name [12:46:50]save OK [12:46:50]Clear old archive folders... [12:46:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:50]tlvbuf is B6F09280 [12:46:50]SAM_PROTO_ClearQueue [12:46:50]wFMCommunicate request_size=4 [12:46:50]MH_SAM_APDU [12:46:50]CAPDU: 80 09 00 00 [12:46:50]Write to MH i2c: E2 08 00 75 31 80 09 00 00 00 00 00 00 18 [12:46:50]Write i2c OK [12:46:50]MH_I2C_Read... [12:46:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:50]Read from MH i2c: E2 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 03 00 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 03 00 75 31 00 90 00 1A [12:46:50]RAPDU: 90 00 [12:46:50]wFMCommunicate OK [12:46:50]SAM_PROTO_ClearQueue done [12:46:50]KKMCreateOFDPacket [12:46:50]OFDProtocolAddRootSTLVToBuf [12:46:50]FM_MakeSignedData [12:46:50]FM_MakeSignedData [12:46:50]SAM_PROTO_SignData [12:46:50]wFMCommunicate request_size=4 [12:46:50]MH_SAM_APDU [12:46:50]CAPDU: 80 0D 01 02 [12:46:50]Write to MH i2c: E2 08 00 76 31 80 0D 01 02 00 00 00 00 20 [12:46:50]Write i2c OK [12:46:50]MH_I2C_Read... [12:46:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:50]Read from MH i2c: E2 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 03 00 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 03 00 76 31 00 90 00 1B [12:46:50]RAPDU: 90 00 [12:46:50]wFMCommunicate OK [12:46:50]wFMCommunicate request_size=255 [12:46:50]MH_SAM_APDU [12: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 D0 48 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 EA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 BE 67 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 91 2A 01 00 35 04 06 00 3B [12:46:50]Write to MH i2c: E2 02 01 77 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 D0 48 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 EA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 BE 67 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 91 2A 01 00 35 04 06 00 3B 00 00 33 [12:46:50]Write i2c OK [12:46:50]MH_I2C_Read... [12:46:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:50]Read from MH i2c: E2 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 03 00 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 03 00 77 31 00 90 00 1C [12:46:50]RAPDU: 90 00 [12:46:50]wFMCommunicate OK [12:46:50]wFMCommunicate request_size=10 [12:46:50]MH_SAM_APDU [12:46:50]CAPDU: 80 0D 02 02 05 3E 67 35 AA 16 [12:46:50]Write to MH i2c: E2 0D 00 78 31 80 0D 02 02 05 00 3E 67 35 AA 16 00 00 C7 [12:46:50]Write i2c OK [12:46:50]MH_I2C_Read... [12:46:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:50]Read from MH i2c: E2 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 03 00 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 03 00 78 31 00 90 00 1D [12:46:50]RAPDU: 90 00 [12:46:50]wFMCommunicate OK [12:46:50]wFMCommunicate request_size=4 [12:46:50]MH_SAM_APDU [12:46:50]CAPDU: 80 0D 03 02 [12:46:50]Write to MH i2c: E2 08 00 79 31 80 0D 03 02 00 00 00 00 25 [12:46:50]Write i2c OK [12:46:50]MH_I2C_Read... [12:46:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:51]Read from MH i2c: E2 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 0B 00 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 0B 00 79 31 00 C3 E4 94 D8 52 69 BD D2 90 00 83 [12:46:51]RAPDU: C3 E4 94 D8 52 69 BD D2 90 00 [12:46:51]wFMCommunicate OK [12:46:51]SAM_PROTO_SignData done [12:46:51]FM_MakeSignedData done [12:46:51]CreateOFDProtocolMessage [12:46:51]wFMCommunicate request_size=4 [12:46:51]MH_SAM_APDU [12:46:51]CAPDU: 80 11 00 00 [12:46:51]Write to MH i2c: E2 08 00 7A 31 80 11 00 00 00 00 00 00 25 [12:46:51]Write i2c OK [12:46:51]MH_I2C_Read... [12:46:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:51]Read from MH i2c: E2 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 17 00 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 17 00 7A 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 78 [12:46:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:46:51]wFMCommunicate OK [12:46:51]CreateOFDProtocolMessage done [12:46:51]OFDSenderStorePacket 76433 [12:46:51]StoreOFDPacket docnum=76433 [12:46:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 5F 00 07 01 3D 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 48 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 EA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 BE 67 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 91 2A 01 00 35 04 06 00 3B 3E 67 35 AA 16 C3 E4 94 D8 52 69 BD D2 [12:46:51]CheckFolder [12:46:51]dirname=/storage/ofd_packets [12:46:51]CheckFolder done [12:46:51]ProducePacketName [12:46:51]name=ofd_packets/00076433 [12:46:51]NVStorageSaveData ofd_packets/00076433 [12:46:51]File name is /storage/ofd_packets/00076433 [12:46:51]Write 301 bytes [12:46:51]NVStorageSaveData done [12:46:51]OFDSenderStorePacket done [12:46:51]KKMCreateOFDPacket done [12:46:51]NVStorageSaveData kkm_last_timestamp [12:46:51]File name is /storage/kkm_last_timestamp [12:46:51]Write 4 bytes [12:46:51]NVStorageSaveData done [12:46:51]ExternCall_PrintAddStr [12:46:51]wPrintStart [12:46:51]Write to MH i2c: 01 00 00 7B 31 AC [12:46:51]Write i2c OK [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: 01 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: 01 07 00 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: 01 07 00 7B 31 00 00 00 00 00 FF 0F C1 [12:46:51]RasterBufferAndPrint [12:46:51]line Счет N : (1)190901 [12:46:51]line ИНН: 02508201610067 [12:46:51]line Контрольно-Кассовый Чек [12:46:51]line ПРОДАЖА [12:46:51]line ТРК (МРК, ГНК) : 22 [12:46:51]line Товар: 2710124130 [12:46:51]line Аи-92-К-5 [12:46:51]line 18.640 * 64.40 [12:46:51]line = 1200.42 [12:46:51]line НДС 12% НСП 1% [12:46:51]line > о реализуемом товаре [12:46:51]line ИТОГО: 1200.42 [12:46:51]line НСП 1% : 10.62 [12:46:51]line НДС 12% : 127.48 [12:46:51]line Наличными: 0.00 [12:46:51]line Безнал.: 1200.42 [12:46:51]line Место: АЗС № 106 "Партнер Нефть" [12:46:51]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:46:51]line СНО: Общий режим [12:46:51]line Чек 53 19.04.2024 12:46 [12:46:51]line Смена: 370 ФФД: 1.0 [12:46:51]line ЗНМ: 0300000141 [12:46:51]line РНМ: 0000000000091573 [12:46:51]line Версия ККМ: 001 [12:46:51]line Платежная система: Бакай Банк [12:46:51]line ФМ: 0000000000874652 [12:46:51]line ФД: 76433 [12:46:51]line ФПД: 65139205581334 [12:46:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T124654&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76433&fm=65139205581334&tin=02508201610067®Number=0000000000091573&sum=120042 [12:46:51]written 0, free lines is 4095 [12:46:51]OFD Sender: Processing packet 76433 [packets to send 128, broken 127] [12:46:51]ProducePacketName [12:46:51]name=ofd_packets/00076433 [12:46:51]OFD Sender: To server: pG, [12:46:51]CommunicateWithHost lk.salyk.kg:30040 [12:46:51]ConnectInit lk.salyk.kg [12:46:51]Connected sock=10 [12: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 34 36 35 32 0F 01 00 00 5F 00 07 01 3D 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 48 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 EA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 BE 67 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 91 2A 01 00 35 04 06 00 3B 3E 67 35 AA 16 C3 E4 94 D8 52 69 BD D2 [12:46:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 94 1A 47 00 4B 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 34 36 35 32 10 04 04 00 91 2A 01 00 F4 03 04 00 49 0F 22 66 B6 04 01 00 00 8C BF EF 8B 0A 7B 7B 06 [12:46:51]CommunicateWithHost err = 0 [12:46:51]CheckOFDResponse [12:46:51]1017 (14) - 77093643461234 [12:46:51]1041 (16) - 0000000000874652 [12:46:51]1040 (4) - 76433 [12:46:51]1012 (4) - 19.04.2024 06:29 [12:46:51]1206 (1) - 0 [12:46:51]OFD Sender: Remove packet 76433 [12:46:51]ProducePacketName [12:46:51]name=ofd_packets/00076433 [12:46:51]NVStorageDeleteData [12:46:51]Write to MH i2c: 01 00 00 A4 31 D5 [12:46:51]Write i2c OK [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: 01 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: 01 07 00 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: 01 07 00 A4 31 00 00 00 00 00 FC 0C E4 [12:46:51]RasterBufferAndPrint [12:46:51]line [12:46:51]line [12:46:51]line [12:46:51]line [12:46:51]line [12:46:51]written 0, free lines is 3330 [12:46:51]MH_Cut [12:46:51]Write to MH i2c: D1 01 00 AB 31 01 AE [12:46:51]Write i2c OK [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: D1 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: D1 01 00 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: D1 01 00 AB 31 00 AD [12:46:51]Write to MH i2c: 01 00 00 AC 31 DD [12:46:51]Write i2c OK [12:46:51]MH_I2C_Read... [12:46:52]OFD Sender: No OFD packet to send [12:46:52]*** Cut start [12:46:52]*** Partial cut [12:46:52]*** CUTSNS_PIN = 1 [12:46:52]*** CUTSNS_PIN = 0 [12:46:52]*** Brake cut motor [12:46:52]Read from MH i2c: 01 [12:46:52]MH_I2C_Read... [12:46:52]*** Stop cut motor [12:46:52]*** Cut end [12:46:52]Read from MH i2c: 01 07 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: 01 07 00 AC 31 00 00 00 00 00 FF 0F F2 [12:46:52]process_action close_receipt done [12:46:52]requested_data is exist [12:46:52]produce_requested_data [12:46:52]requested_item fm.sn is exist - process it [12:46:52]wFMCommunicate request_size=4 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 11 00 00 [12:46:52]Write to MH i2c: E2 08 00 AD 31 80 11 00 00 00 00 00 00 58 [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 17 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 17 00 AD 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AB [12:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:46:52]wFMCommunicate OK [12:46:52]requested_item fd.num is exist - process it [12:46:52]SAM_PROTO_GetFieldsCounters [12:46:52]wFMCommunicate request_size=4 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 13 00 00 [12:46:52]Write to MH i2c: E2 08 00 AE 31 80 13 00 00 00 00 00 00 5B [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:53]Read from MH i2c: E2 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 62 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 62 00 AE 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 91 2A 01 00 0E 04 04 00 72 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 4A [12: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 91 2A 01 00 0E 04 04 00 72 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 [12:46:53]wFMCommunicate OK [12:46:53]SAM_PROTO_GetFieldsCounters done [12:46:53]requested_item shift.num is exist - process it [12:46:53]requested_item shift.opened is exist - process it [12:46:53]req_shift_opened [12:46:53]FM_GetShiftState [12:46:53]SAM_PROTO_GetShiftState [12:46:53]wFMCommunicate request_size=4 [12:46:53]MH_SAM_APDU [12:46:53]CAPDU: 80 13 01 00 [12:46:53]Write to MH i2c: E2 08 00 AF 31 80 13 01 00 00 00 00 00 5D [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:53]Read from MH i2c: E2 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 0E 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 0E 00 AF 31 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 42 [12:46:53]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:46:53]wFMCommunicate OK [12:46:53]SAM_PROTO_GetShiftState done [12:46:53]FM_GetShiftState done [12:46:53]req_shift_opened done [12:46:53]requested_item shift.open_date is exist - process it [12:46:53]req_shift_open_date [12:46:53]req_shift_open_date done [12:46:53]produce_requested_data done [12:46:53]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76433,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [12:46:53]process_action_free close_receipt [12:46:53]json_value_free [12:46:53]json_value_free done [12:46:53]process_json_proto returns [12:46:53]Send response to host [12:46:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76433,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [12:46:53]free response buf [12:46:53]execute_script done [12:46:53]execute_script returns [12:46:53]free content buf [12:46:53]Sock 9.Close socket [12:46:53]Sock 9.Thread stoped [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:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:06]accept exits with 7 [12:57:06]New connection [12:57:06]New thread 3066486116 created [12:57:06]Thread 3066629476 joined [12:57:06]Waiting for new connection... [12:57:06] Sock 7.Parse request [12:57:06]Sock 7.Check first char [12:57:06]Sock 7.First char is OK [12:57:06]request: POST /json_proto HTTP/1.0 [12:57:06]Method: POST [12:57:06]URL: /json_proto [12:57:06]Method is POST - this is cgi request [12:57:06]url: /json_proto [12:57:06]query_string will be loaded in cgi processing [12:57:06]execute_cgi json_proto POST (null) [12:57:06]execute_cgi path=json_proto method=POST [12:57:06]POST find Content-Length [12:57:06]Host: 172.17.62.5:8080 [12:57:06]Content-Length: 990 [12:57:06]Content-Type: application/json [12:57:06] [12:57:06]POST finish read [12:57:06]Found Content-Length = 990 [12:57:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 40.070, "sum" : 1270.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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 40.07 \u0441\u043E\u043C", "deposit" : 1400.00, "total" : 1270.00, "payments": [ { "type": 0, "sum" : 1270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:06]execute_script... [12:57: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)190902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 40.070, "sum" : 1270.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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 40.07 \u0441\u043E\u043C", "deposit" : 1400.00, "total" : 1270.00, "payments": [ { "type": 0, "sum" : 1270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:06]POST & json_proto [12:57:06]process_json_proto [12:57:06]json parsed OK: [12:57:06]protocol is kg_v1.0 [12:57:06]action value=close_receipt [12:57:06]process_action close_receipt [12:57:06]cmd_close_receipt [12:57:06]MH_GetDate [12:57:06]Write to MH i2c: F0 00 00 B0 31 D0 [12:57:06]Write i2c OK [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: F0 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: F0 09 00 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: F0 09 00 B0 31 00 27 6A 22 66 F4 E9 65 64 98 [12:57:06]GetLastDocTimeStamp 1713530814 [12:57:06]current date 1713531431 [12:57:06]FM_GetShiftState [12:57:06]SAM_PROTO_GetShiftState [12:57:06]wFMCommunicate request_size=4 [12:57:06]MH_SAM_APDU [12:57:06]CAPDU: 80 13 01 00 [12:57:06]Write to MH i2c: E2 08 00 B1 31 80 13 01 00 00 00 00 00 5F [12:57:06]Write i2c OK [12:57:06]MH_I2C_Read... [12:57:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:06]Read from MH i2c: E2 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 0E 00 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 0E 00 B1 31 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 44 [12:57:06]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:57:06]wFMCommunicate OK [12:57:06]SAM_PROTO_GetShiftState done [12:57:06]FM_GetShiftState done [12:57:06]opened in 1713486233 [12:57:06]opened+sec_in_day 1713572633 [12:57:06]quantity*price = 127021 [12:57:06]sum+1 = 127023 [12:57:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1270.00 Внесено: 1400.00 СДАЧА: 130.00 НСП 1% : 11.24 НДС 12% : 134.89 Наличными: 1270.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 54 19.04.2024 12:57 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 40.07 сом ФМ: 0000000000874652 ФД: 76434 ФПД: 201828032002255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T125711&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76434&fm=201828032002255&tin=02508201610067®Number=0000000000091573&sum=127000 [12:57:07]StoreToDocumentArchive [12:57:07]shift 370 fd 76434 [12:57:07]save to /storage/0370/doc_00076434 [12:57:07]save last doc name /storage/0370/doc_00076434 to /storage/kkm_last_doc_name [12:57:07]save OK [12:57:07]Clear old archive folders... [12:57:07]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:57:07]tlvbuf is 00930D20 [12:57:07]SAM_PROTO_ClearQueue [12:57:07]wFMCommunicate request_size=4 [12:57:07]MH_SAM_APDU [12:57:07]CAPDU: 80 09 00 00 [12:57:07]Write to MH i2c: E2 08 00 BE 31 80 09 00 00 00 00 00 00 61 [12:57:07]Write i2c OK [12:57:07]MH_I2C_Read... [12:57:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:07]Read from MH i2c: E2 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 03 00 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 03 00 BE 31 00 90 00 63 [12:57:07]RAPDU: 90 00 [12:57:07]wFMCommunicate OK [12:57:07]SAM_PROTO_ClearQueue done [12:57:07]KKMCreateOFDPacket [12:57:07]OFDProtocolAddRootSTLVToBuf [12:57:07]FM_MakeSignedData [12:57:07]FM_MakeSignedData [12:57:07]SAM_PROTO_SignData [12:57:07]wFMCommunicate request_size=4 [12:57:07]MH_SAM_APDU [12:57:07]CAPDU: 80 0D 01 02 [12:57:07]Write to MH i2c: E2 08 00 BF 31 80 0D 01 02 00 00 00 00 69 [12:57:07]Write i2c OK [12:57:07]MH_I2C_Read... [12:57:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:07]Read from MH i2c: E2 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 03 00 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 03 00 BF 31 00 90 00 64 [12:57:07]RAPDU: 90 00 [12:57:07]wFMCommunicate OK [12:57:07]wFMCommunicate request_size=255 [12:57:07]MH_SAM_APDU [12:57:07]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 86 9C 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 2E F0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 34 00 00 00 00 07 04 06 00 18 F0 01 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 27 6A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 92 2A 01 00 35 04 06 00 B7 8F [12:57:07]Write to MH i2c: E2 02 01 C0 31 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 86 9C 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 2E F0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 34 00 00 00 00 07 04 06 00 18 F0 01 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 27 6A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 92 2A 01 00 35 04 06 00 B7 8F 00 00 ED [12:57:07]Write i2c OK [12:57:07]MH_I2C_Read... [12:57:07]OFD Sender: No OFD packet to send [12:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:07]Read from MH i2c: E2 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 03 00 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 03 00 C0 31 00 90 00 65 [12:57:07]RAPDU: 90 00 [12:57:07]wFMCommunicate OK [12:57:07]wFMCommunicate request_size=9 [12:57:07]MH_SAM_APDU [12:57:07]CAPDU: 80 0D 02 02 04 C0 27 38 CF [12:57:07]Write to MH i2c: E2 0C 00 C1 31 80 0D 02 02 04 00 C0 27 38 CF 00 00 62 [12:57:07]Write i2c OK [12:57:07]MH_I2C_Read... [12:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:07]Read from MH i2c: E2 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 03 00 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 03 00 C1 31 00 90 00 66 [12:57:07]RAPDU: 90 00 [12:57:07]wFMCommunicate OK [12:57:07]wFMCommunicate request_size=4 [12:57:07]MH_SAM_APDU [12:57:07]CAPDU: 80 0D 03 02 [12:57:07]Write to MH i2c: E2 08 00 C2 31 80 0D 03 02 00 00 00 00 6E [12:57:07]Write i2c OK [12:57:07]MH_I2C_Read... [12:57:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:07]Read from MH i2c: E2 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 0B 00 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 0B 00 C2 31 00 D1 94 CE F9 3A 14 07 00 90 00 F0 [12:57:07]RAPDU: D1 94 CE F9 3A 14 07 00 90 00 [12:57:07]wFMCommunicate OK [12:57:07]SAM_PROTO_SignData done [12:57:07]FM_MakeSignedData done [12:57:07]CreateOFDProtocolMessage [12:57:07]wFMCommunicate request_size=4 [12:57:07]MH_SAM_APDU [12:57:07]CAPDU: 80 11 00 00 [12:57:07]Write to MH i2c: E2 08 00 C3 31 80 11 00 00 00 00 00 00 6E [12:57:07]Write i2c OK [12:57:07]MH_I2C_Read... [12:57:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:07]Read from MH i2c: E2 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 17 00 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: E2 17 00 C3 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C1 [12:57:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:57:07]wFMCommunicate OK [12:57:07]CreateOFDProtocolMessage done [12:57:07]OFDSenderStorePacket 76434 [12:57:07]StoreOFDPacket docnum=76434 [12:57:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 20 8E 06 01 9D 52 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 86 9C 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 2E F0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 34 00 00 00 00 07 04 06 00 18 F0 01 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 27 6A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 92 2A 01 00 35 04 06 00 B7 8F C0 27 38 CF D1 94 CE F9 3A 14 07 00 [12:57:07]CheckFolder [12:57:07]dirname=/storage/ofd_packets [12:57:07]CheckFolder done [12:57:07]ProducePacketName [12:57:07]name=ofd_packets/00076434 [12:57:07]NVStorageSaveData ofd_packets/00076434 [12:57:07]File name is /storage/ofd_packets/00076434 [12:57:07]Write 300 bytes [12:57:07]NVStorageSaveData done [12:57:07]OFDSenderStorePacket done [12:57:07]KKMCreateOFDPacket done [12:57:07]NVStorageSaveData kkm_last_timestamp [12:57:07]File name is /storage/kkm_last_timestamp [12:57:07]Write 4 bytes [12:57:07]NVStorageSaveData done [12:57:07]ExternCall_PrintAddStr [12:57:07]wPrintStart [12:57:07]Write to MH i2c: 01 00 00 C4 31 F5 [12:57:07]Write i2c OK [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: 01 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: 01 07 00 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: 01 07 00 C4 31 00 00 00 00 00 FF 0F 0A [12:57:07]RasterBufferAndPrint [12:57:07]line Счет N : (1)190902 [12:57:07]line ИНН: 02508201610067 [12:57:07]line Контрольно-Кассовый Чек [12:57:07]line ПРОДАЖА [12:57:07]line ТРК (МРК, ГНК) : 71 [12:57:07]line Товар: 2711190000 [12:57:07]line ГАЗ-К-5 [12:57:07]line 40.070 * 31.70 [12:57:07]line = 1270.22 [12:57:07]line НДС 12% НСП 1% [12:57:07]line > о реализуемом товаре [12:57:07]line ОКРУГЛЕНИЕ: -0.22 [12:57:07]line ИТОГО: 1270.00 [12:57:07]line Внесено: 1400.00 [12:57:07]line СДАЧА: 130.00 [12:57:07]line НСП 1% : 11.24 [12:57:07]line НДС 12% : 134.89 [12:57:07]line Наличными: 1270.00 [12:57:07]line Безнал.: 0.00 [12:57:07]line Место: АЗС № 106 "Партнер Нефть" [12:57:07]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:57:07]line СНО: Общий режим [12:57:07]line Чек 54 19.04.2024 12:57 [12:57:07]line Смена: 370 ФФД: 1.0 [12:57:07]line ЗНМ: 0300000141 [12:57:07]line РНМ: 0000000000091573 [12:57:07]line Версия ККМ: 001 [12:57:07]line [12:57:07]line Дисконтная программа [12:57:07]line СУГ [12:57:07]line номер 106 [12:57:07]line сэкономлено 40.07 сом [12:57:07]line ФМ: 0000000000874652 [12:57:07]line ФД: 76434 [12:57:07]line ФПД: 201828032002255 [12:57:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T125711&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76434&fm=201828032002255&tin=02508201610067®Number=0000000000091573&sum=127000 [12:57:08]OFD Sender: Processing packet 76434 [packets to send 128, broken 127] [12:57:08]ProducePacketName [12:57:08]name=ofd_packets/00076434 [12:57:08]OFD Sender: To server: pG, [12:57:08]CommunicateWithHost lk.salyk.kg:30040 [12:57:08]ConnectInit lk.salyk.kg [12:57:08]written 0, free lines is 4095 [12:57:08]Connected sock=10 [12:57:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 20 8E 06 01 9D 52 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 86 9C 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 2E F0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 34 00 00 00 00 07 04 06 00 18 F0 01 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 27 6A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 92 2A 01 00 35 04 06 00 B7 8F C0 27 38 CF D1 94 CE F9 3A 14 07 00 [12:57:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A0 3C 47 00 7C 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 34 36 35 32 10 04 04 00 92 2A 01 00 F4 03 04 00 B3 11 22 66 B6 04 01 00 00 C2 7B F7 71 1A 2B A6 7B [12:57:08]CommunicateWithHost err = 0 [12:57:08]CheckOFDResponse [12:57:08]1017 (14) - 77093643461234 [12:57:08]1041 (16) - 0000000000874652 [12:57:08]1040 (4) - 76434 [12:57:08]1012 (4) - 19.04.2024 06:39 [12:57:08]1206 (1) - 0 [12:57:08]OFD Sender: Remove packet 76434 [12:57:08]ProducePacketName [12:57:08]name=ofd_packets/00076434 [12:57:08]NVStorageDeleteData [12:57:08]Write to MH i2c: 01 00 00 F3 31 24 [12:57:08]Write i2c OK [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: 01 [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: 01 07 00 [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: 01 07 00 F3 31 00 00 00 00 00 9B 0C D2 [12:57:08]RasterBufferAndPrint [12:57:08]line [12:57:08]line [12:57:08]line [12:57:08]line [12:57:08]line [12:57:08]written 0, free lines is 3234 [12:57:08]MH_Cut [12:57:08]Write to MH i2c: D1 01 00 FA 31 01 FD [12:57:08]Write i2c OK [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: D1 [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: D1 01 00 [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: D1 01 00 FA 31 00 FC [12:57:08]Write to MH i2c: 01 00 00 FB 31 2C [12:57:08]Write i2c OK [12:57:08]MH_I2C_Read... [12:57:09]OFD Sender: No OFD packet to send [12:57:09]*** Cut start [12:57:09]*** Partial cut [12:57:09]*** CUTSNS_PIN = 1 [12:57:09]*** CUTSNS_PIN = 0 [12:57:09]*** Brake cut motor [12:57:10]Read from MH i2c: 01 [12:57:10]MH_I2C_Read... [12:57:10]*** Stop cut motor [12:57:10]*** Cut end [12:57:10]Read from MH i2c: 01 07 00 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: 01 07 00 FB 31 00 00 00 00 00 FF 0F 41 [12:57:10]process_action close_receipt done [12:57:10]requested_data is exist [12:57:10]produce_requested_data [12:57:10]requested_item fm.sn is exist - process it [12:57:10]wFMCommunicate request_size=4 [12:57:10]MH_SAM_APDU [12:57:10]CAPDU: 80 11 00 00 [12:57:10]Write to MH i2c: E2 08 00 FC 31 80 11 00 00 00 00 00 00 A7 [12:57:10]Write i2c OK [12:57:10]MH_I2C_Read... [12:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:10]Read from MH i2c: E2 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: E2 17 00 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: E2 17 00 FC 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FA [12:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:57:10]wFMCommunicate OK [12:57:10]requested_item fd.num is exist - process it [12:57:10]SAM_PROTO_GetFieldsCounters [12:57:10]wFMCommunicate request_size=4 [12:57:10]MH_SAM_APDU [12:57:10]CAPDU: 80 13 00 00 [12:57:10]Write to MH i2c: E2 08 00 FD 31 80 13 00 00 00 00 00 00 AA [12:57:10]Write i2c OK [12:57:10]MH_I2C_Read... [12:57:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:10]Read from MH i2c: E2 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: E2 62 00 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: E2 62 00 FD 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 92 2A 01 00 0E 04 04 00 72 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 9D [12:57: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 92 2A 01 00 0E 04 04 00 72 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 [12:57:10]wFMCommunicate OK [12:57:10]SAM_PROTO_GetFieldsCounters done [12:57:10]requested_item shift.num is exist - process it [12:57:10]requested_item shift.opened is exist - process it [12:57:10]req_shift_opened [12:57:10]FM_GetShiftState [12:57:10]SAM_PROTO_GetShiftState [12:57:10]wFMCommunicate request_size=4 [12:57:10]MH_SAM_APDU [12:57:10]CAPDU: 80 13 01 00 [12:57:10]Write to MH i2c: E2 08 00 FE 31 80 13 01 00 00 00 00 00 AC [12:57:10]Write i2c OK [12:57:10]MH_I2C_Read... [12:57:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:10]Read from MH i2c: E2 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: E2 0E 00 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: E2 0E 00 FE 31 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 91 [12:57:10]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:57:10]wFMCommunicate OK [12:57:10]SAM_PROTO_GetShiftState done [12:57:10]FM_GetShiftState done [12:57:10]req_shift_opened done [12:57:10]requested_item shift.open_date is exist - process it [12:57:10]req_shift_open_date [12:57:10]req_shift_open_date done [12:57:10]produce_requested_data done [12:57:10]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76434,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [12:57:10]process_action_free close_receipt [12:57:10]json_value_free [12:57:10]json_value_free done [12:57:10]process_json_proto returns [12:57:10]Send response to host [12:57:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76434,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [12:57:10]free response buf [12:57:10]execute_script done [12:57:10]execute_script returns [12:57:10]free content buf [12:57:10]Sock 7.Close socket [12:57:10]Sock 7.Thread stoped [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:25]accept exits with 9 [12:59:25]New connection [12:59:25]New thread 3066629476 created [12:59:25]Thread 3066486116 joined [12:59:25]Waiting for new connection... [12:59:25] Sock 9.Parse request [12:59:25]Sock 9.Check first char [12:59:25]Sock 9.First char is OK [12:59:25]request: POST /json_proto HTTP/1.0 [12:59:25]Method: POST [12:59:25]URL: /json_proto [12:59:25]Method is POST - this is cgi request [12:59:25]url: /json_proto [12:59:25]query_string will be loaded in cgi processing [12:59:25]execute_cgi json_proto POST (null) [12:59:25]execute_cgi path=json_proto method=POST [12:59:25]POST find Content-Length [12:59:25]Host: 172.17.62.5:8080 [12:59:25]Content-Length: 677 [12:59:25]Content-Type: application/json [12:59:25] [12:59:25]POST finish read [12:59:25]Found Content-Length = 677 [12:59:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 9.320, "sum" : 600.21, "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:59:25]execute_script... [12:59:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 9.320, "sum" : 600.21, "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:59:25]POST & json_proto [12:59:25]process_json_proto [12:59:25]json parsed OK: [12:59:25]protocol is kg_v1.0 [12:59:25]action value=close_receipt [12:59:25]process_action close_receipt [12:59:25]cmd_close_receipt [12:59:25]MH_GetDate [12:59:25]Write to MH i2c: F0 00 00 FF 31 1F [12:59:25]Write i2c OK [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: F0 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: F0 09 00 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: F0 09 00 FF 31 00 B3 6A 22 66 F4 E9 65 64 73 [12:59:25]GetLastDocTimeStamp 1713531431 [12:59:25]current date 1713531571 [12:59:25]FM_GetShiftState [12:59:25]SAM_PROTO_GetShiftState [12:59:25]wFMCommunicate request_size=4 [12:59:25]MH_SAM_APDU [12:59:25]CAPDU: 80 13 01 00 [12:59:25]Write to MH i2c: E2 08 00 00 32 80 13 01 00 00 00 00 00 AF [12:59:25]Write i2c OK [12:59:25]MH_I2C_Read... [12:59:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:25]Read from MH i2c: E2 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 0E 00 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 0E 00 00 32 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 94 [12:59:25]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:59:25]wFMCommunicate OK [12:59:25]SAM_PROTO_GetShiftState done [12:59:25]FM_GetShiftState done [12:59:25]opened in 1713486233 [12:59:25]opened+sec_in_day 1713572633 [12:59:25]quantity*price = 60020 [12:59:25]sum+1 = 60022 [12:59:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 55 19.04.2024 12:59 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76435 ФПД: 207278577119541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T125931&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76435&fm=207278577119541&tin=02508201610067®Number=0000000000091573&sum=60000 [12:59:27]StoreToDocumentArchive [12:59:27]shift 370 fd 76435 [12:59:27]save to /storage/0370/doc_00076435 [12:59:27]save last doc name /storage/0370/doc_00076435 to /storage/kkm_last_doc_name [12:59:27]save OK [12:59:27]Clear old archive folders... [12:59:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:27]tlvbuf is 009592C0 [12:59:27]SAM_PROTO_ClearQueue [12:59:27]wFMCommunicate request_size=4 [12:59:27]MH_SAM_APDU [12:59:27]CAPDU: 80 09 00 00 [12:59:27]Write to MH i2c: E2 08 00 0D 32 80 09 00 00 00 00 00 00 B1 [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 [12:59:27]MH_I2C_Read... [12:59:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:27]Read from MH i2c: E2 03 00 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 03 00 0D 32 00 90 00 B3 [12:59:27]RAPDU: 90 00 [12:59:27]wFMCommunicate OK [12:59:27]SAM_PROTO_ClearQueue done [12:59:27]KKMCreateOFDPacket [12:59:27]OFDProtocolAddRootSTLVToBuf [12:59:27]FM_MakeSignedData [12:59:27]FM_MakeSignedData [12:59:27]SAM_PROTO_SignData [12:59:27]wFMCommunicate request_size=4 [12:59:27]MH_SAM_APDU [12:59:27]CAPDU: 80 0D 01 02 [12:59:27]Write to MH i2c: E2 08 00 0E 32 80 0D 01 02 00 00 00 00 B9 [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:27]Read from MH i2c: E2 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 03 00 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 03 00 0E 32 00 90 00 B4 [12:59:27]RAPDU: 90 00 [12:59:27]wFMCommunicate OK [12:59:27]wFMCommunicate request_size=255 [12:59:27]MH_SAM_APDU [12:59: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 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 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 37 00 00 00 F4 03 04 00 B3 6A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 93 2A 01 00 35 04 06 00 BC [12:59:27]Write to MH i2c: E2 02 01 0F 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 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 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 37 00 00 00 F4 03 04 00 B3 6A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 93 2A 01 00 35 04 06 00 BC 00 00 5F [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:27]Read from MH i2c: E2 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 03 00 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 03 00 0F 32 00 90 00 B5 [12:59:27]RAPDU: 90 00 [12:59:27]wFMCommunicate OK [12:59:27]wFMCommunicate request_size=10 [12:59:27]MH_SAM_APDU [12:59:27]CAPDU: 80 0D 02 02 05 84 CD F5 71 35 [12:59:27]Write to MH i2c: E2 0D 00 10 32 80 0D 02 02 05 00 84 CD F5 71 35 00 00 B2 [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:27]Read from MH i2c: E2 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 03 00 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 03 00 10 32 00 90 00 B6 [12:59:27]RAPDU: 90 00 [12:59:27]wFMCommunicate OK [12:59:27]wFMCommunicate request_size=4 [12:59:27]MH_SAM_APDU [12:59:27]CAPDU: 80 0D 03 02 [12:59:27]Write to MH i2c: E2 08 00 11 32 80 0D 03 02 00 00 00 00 BE [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:27]Read from MH i2c: E2 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 0B 00 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 0B 00 11 32 00 C9 DD BC CB 26 29 14 63 90 00 B2 [12:59:27]RAPDU: C9 DD BC CB 26 29 14 63 90 00 [12:59:27]wFMCommunicate OK [12:59:27]SAM_PROTO_SignData done [12:59:27]FM_MakeSignedData done [12:59:27]CreateOFDProtocolMessage [12:59:27]wFMCommunicate request_size=4 [12:59:27]MH_SAM_APDU [12:59:27]CAPDU: 80 11 00 00 [12:59:27]Write to MH i2c: E2 08 00 12 32 80 11 00 00 00 00 00 00 BE [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:27]Read from MH i2c: E2 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 17 00 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 17 00 12 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 11 [12:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:59:27]wFMCommunicate OK [12:59:27]CreateOFDProtocolMessage done [12:59:27]OFDSenderStorePacket 76435 [12:59:27]StoreOFDPacket docnum=76435 [12:59:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 AE 01 07 01 93 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 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 37 00 00 00 F4 03 04 00 B3 6A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 93 2A 01 00 35 04 06 00 BC 84 CD F5 71 35 C9 DD BC CB 26 29 14 63 [12:59:27]CheckFolder [12:59:27]dirname=/storage/ofd_packets [12:59:27]CheckFolder done [12:59:27]ProducePacketName [12:59:27]name=ofd_packets/00076435 [12:59:27]NVStorageSaveData ofd_packets/00076435 [12:59:27]File name is /storage/ofd_packets/00076435 [12:59:27]Write 301 bytes [12:59:27]NVStorageSaveData done [12:59:27]OFDSenderStorePacket done [12:59:27]KKMCreateOFDPacket done [12:59:27]NVStorageSaveData kkm_last_timestamp [12:59:27]File name is /storage/kkm_last_timestamp [12:59:27]Write 4 bytes [12:59:27]NVStorageSaveData done [12:59:27]ExternCall_PrintAddStr [12:59:27]wPrintStart [12:59:27]Write to MH i2c: 01 00 00 13 32 45 [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: 01 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: 01 07 00 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: 01 07 00 13 32 00 00 00 00 00 FF 0F 5A [12:59:27]RasterBufferAndPrint [12:59:27]line Счет N : (1)190903 [12:59:27]line ИНН: 02508201610067 [12:59:27]line Контрольно-Кассовый Чек [12:59:27]line ПРОДАЖА [12:59:27]line ТРК (МРК, ГНК) : 43 [12:59:27]line Товар: 2710124130 [12:59:27]line Аи-92-К-5 [12:59:27]line 9.320 * 64.40 [12:59:27]line = 600.21 [12:59:27]line НДС 12% НСП 1% [12:59:27]line > о реализуемом товаре [12:59:27]line ОКРУГЛЕНИЕ: -0.21 [12:59:27]line ИТОГО: 600.00 [12:59:27]line Внесено: 600.00 [12:59:27]line СДАЧА: 0.00 [12:59:27]line НСП 1% : 5.31 [12:59:27]line НДС 12% : 63.74 [12:59:27]line Наличными: 600.00 [12:59:27]line Безнал.: 0.00 [12:59:27]line Место: АЗС № 106 "Партнер Нефть" [12:59:27]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:59:27]line СНО: Общий режим [12:59:27]line Чек 55 19.04.2024 12:59 [12:59:27]line Смена: 370 ФФД: 1.0 [12:59:27]line ЗНМ: 0300000141 [12:59:27]line РНМ: 0000000000091573 [12:59:27]line Версия ККМ: 001 [12:59:27]line ФМ: 0000000000874652 [12:59:27]line ФД: 76435 [12:59:27]line ФПД: 207278577119541 [12:59:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T125931&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76435&fm=207278577119541&tin=02508201610067®Number=0000000000091573&sum=60000 [12:59:27]written 0, free lines is 4095 [12:59:27]OFD Sender: Processing packet 76435 [packets to send 128, broken 127] [12:59:27]ProducePacketName [12:59:27]name=ofd_packets/00076435 [12:59:27]OFD Sender: To server: pG, [12:59:27]CommunicateWithHost lk.salyk.kg:30040 [12:59:27]ConnectInit lk.salyk.kg [12:59:28]Connected sock=11 [12:59:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 AE 01 07 01 93 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 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 37 00 00 00 F4 03 04 00 B3 6A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 93 2A 01 00 35 04 06 00 BC 84 CD F5 71 35 C9 DD BC CB 26 29 14 63 [12:59:28]Write to MH i2c: 01 00 00 3D 32 6F [12:59:28]Write i2c OK [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: 01 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: 01 07 00 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: 01 07 00 3D 32 00 00 00 00 00 E4 0C 66 [12:59:28]RasterBufferAndPrint [12:59:28]line [12:59:28]line [12:59:28]line [12:59:28]line [12:59:28]line [12:59:28]written 0, free lines is 3306 [12:59:28]MH_Cut [12:59:28]Write to MH i2c: D1 01 00 44 32 01 48 [12:59:28]Write i2c OK [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: D1 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: D1 01 00 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: D1 01 00 44 32 00 47 [12:59:28]Write to MH i2c: 01 00 00 45 32 77 [12:59:28]Write i2c OK [12:59:28]MH_I2C_Read... [12:59:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 E8 C6 47 00 59 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 93 2A 01 00 F4 03 04 00 3E 12 22 66 B6 04 01 00 00 2F AA 1D 79 A8 BB B5 52 [12:59:28]CommunicateWithHost err = 0 [12:59:28]CheckOFDResponse [12:59:28]1017 (14) - 77093643461234 [12:59:28]1041 (16) - 0000000000874652 [12:59:28]1040 (4) - 76435 [12:59:28]1012 (4) - 19.04.2024 06:42 [12:59:28]1206 (1) - 0 [12:59:28]OFD Sender: Remove packet 76435 [12:59:28]ProducePacketName [12:59:28]name=ofd_packets/00076435 [12:59:28]NVStorageDeleteData [12:59:28]OFD Sender: No OFD packet to send [12:59:29]*** Cut start [12:59:29]*** Partial cut [12:59:29]*** CUTSNS_PIN = 1 [12:59:29]*** CUTSNS_PIN = 0 [12:59:29]*** Brake cut motor [12:59:29]Read from MH i2c: 01 [12:59:29]MH_I2C_Read... [12:59:29]*** Stop cut motor [12:59:29]*** Cut end [12:59:29]Read from MH i2c: 01 07 00 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: 01 07 00 45 32 00 00 00 00 00 FF 0F 8C [12:59:29]process_action close_receipt done [12:59:29]requested_data is exist [12:59:29]produce_requested_data [12:59:29]requested_item fm.sn is exist - process it [12:59:29]wFMCommunicate request_size=4 [12:59:29]MH_SAM_APDU [12:59:29]CAPDU: 80 11 00 00 [12:59:29]Write to MH i2c: E2 08 00 46 32 80 11 00 00 00 00 00 00 F2 [12:59:29]Write i2c OK [12:59:29]MH_I2C_Read... [12:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:29]Read from MH i2c: E2 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: E2 17 00 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: E2 17 00 46 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 45 [12:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:59:29]wFMCommunicate OK [12:59:29]requested_item fd.num is exist - process it [12:59:29]SAM_PROTO_GetFieldsCounters [12:59:29]wFMCommunicate request_size=4 [12:59:29]MH_SAM_APDU [12:59:29]CAPDU: 80 13 00 00 [12:59:29]Write to MH i2c: E2 08 00 47 32 80 13 00 00 00 00 00 00 F5 [12:59:29]Write i2c OK [12:59:29]MH_I2C_Read... [12:59:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:29]Read from MH i2c: E2 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: E2 62 00 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: E2 62 00 47 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 93 2A 01 00 0E 04 04 00 72 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 EC [12:59:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 93 2A 01 00 0E 04 04 00 72 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 [12:59:29]wFMCommunicate OK [12:59:29]SAM_PROTO_GetFieldsCounters done [12:59:29]requested_item shift.num is exist - process it [12:59:29]requested_item shift.opened is exist - process it [12:59:29]req_shift_opened [12:59:29]FM_GetShiftState [12:59:29]SAM_PROTO_GetShiftState [12:59:29]wFMCommunicate request_size=4 [12:59:29]MH_SAM_APDU [12:59:29]CAPDU: 80 13 01 00 [12:59:29]Write to MH i2c: E2 08 00 48 32 80 13 01 00 00 00 00 00 F7 [12:59:29]Write i2c OK [12:59:29]MH_I2C_Read... [12:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:30]Read from MH i2c: E2 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: E2 0E 00 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: E2 0E 00 48 32 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 DC [12:59:30]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [12:59:30]wFMCommunicate OK [12:59:30]SAM_PROTO_GetShiftState done [12:59:30]FM_GetShiftState done [12:59:30]req_shift_opened done [12:59:30]requested_item shift.open_date is exist - process it [12:59:30]req_shift_open_date [12:59:30]req_shift_open_date done [12:59:30]produce_requested_data done [12:59:30]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76435,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [12:59:30]process_action_free close_receipt [12:59:30]json_value_free [12:59:30]json_value_free done [12:59:30]process_json_proto returns [12:59:30]Send response to host [12:59:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76435,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [12:59:30]free response buf [12:59:30]execute_script done [12:59:30]execute_script returns [12:59:30]free content buf [12:59:30]Sock 9.Close socket [12:59:30]Sock 9.Thread stoped [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:08]OFD Sender: No OFD packet to send [13:00:14]OFD Sender: No OFD packet to send [13:00:19]OFD Sender: No OFD packet to send [13:00:24]OFD Sender: No OFD packet to send [13:00:29]OFD Sender: No OFD packet to send [13:00:34]OFD Sender: No OFD packet to send [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:54]OFD Sender: No OFD packet to send [13:00:59]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:08]accept exits with 7 [13:03:08]New connection [13:03:08]New thread 3066486116 created [13:03:08]Thread 3066629476 joined [13:03:08]Waiting for new connection... [13:03:08] Sock 7.Parse request [13:03:08]Sock 7.Check first char [13:03:08]Sock 7.First char is OK [13:03:08]request: POST /json_proto HTTP/1.0 [13:03:08]Method: POST [13:03:08]URL: /json_proto [13:03:08]Method is POST - this is cgi request [13:03:08]url: /json_proto [13:03:08]query_string will be loaded in cgi processing [13:03:08]execute_cgi json_proto POST (null) [13:03:08]execute_cgi path=json_proto method=POST [13:03:08]POST find Content-Length [13:03:08]Host: 172.17.62.5:8080 [13:03:08]Content-Length: 674 [13:03:08]Content-Type: application/json [13:03:08] [13:03:08]POST finish read [13:03:08]Found Content-Length = 674 [13:03:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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:03:08]execute_script... [13: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)190904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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:03:08]POST & json_proto [13:03:08]process_json_proto [13:03:08]json parsed OK: [13:03:08]protocol is kg_v1.0 [13:03:08]action value=close_receipt [13:03:08]process_action close_receipt [13:03:08]cmd_close_receipt [13:03:08]MH_GetDate [13:03:08]Write to MH i2c: F0 00 00 49 32 6A [13:03:08]Write i2c OK [13:03:08]MH_I2C_Read... [13:03:08]Read from MH i2c: F0 [13:03:08]MH_I2C_Read... [13:03:08]Read from MH i2c: F0 09 00 [13:03:08]MH_I2C_Read... [13:03:08]Read from MH i2c: F0 09 00 49 32 00 92 6B 22 66 F4 E9 65 64 9E [13:03:08]GetLastDocTimeStamp 1713531571 [13:03:08]current date 1713531794 [13:03:08]FM_GetShiftState [13:03:08]SAM_PROTO_GetShiftState [13:03:08]wFMCommunicate request_size=4 [13:03:08]MH_SAM_APDU [13:03:08]CAPDU: 80 13 01 00 [13:03:08]Write to MH i2c: E2 08 00 4A 32 80 13 01 00 00 00 00 00 F9 [13:03:08]Write i2c OK [13:03:08]MH_I2C_Read... [13:03:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:08]Read from MH i2c: E2 [13:03:08]MH_I2C_Read... [13:03:08]Read from MH i2c: E2 0E 00 [13:03:08]MH_I2C_Read... [13:03:08]Read from MH i2c: E2 0E 00 4A 32 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 DE [13:03:08]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:03:08]wFMCommunicate OK [13:03:08]SAM_PROTO_GetShiftState done [13:03:08]FM_GetShiftState done [13:03:08]opened in 1713486233 [13:03:08]opened+sec_in_day 1713572633 [13:03:08]quantity*price = 50009 [13:03:08]sum+1 = 50010 [13:03:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 56 19.04.2024 13:03 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76436 ФПД: 255941135487239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T130314&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76436&fm=255941135487239&tin=02508201610067®Number=0000000000091573&sum=50000 [13:03:10]StoreToDocumentArchive [13:03:10]shift 370 fd 76436 [13:03:10]save to /storage/0370/doc_00076436 [13:03:10]save last doc name /storage/0370/doc_00076436 to /storage/kkm_last_doc_name [13:03:10]save OK [13:03:10]Clear old archive folders... [13:03:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:03:10]tlvbuf is 00961D80 [13:03:10]SAM_PROTO_ClearQueue [13:03:10]wFMCommunicate request_size=4 [13:03:10]MH_SAM_APDU [13:03:10]CAPDU: 80 09 00 00 [13:03:10]Write to MH i2c: E2 08 00 57 32 80 09 00 00 00 00 00 00 FB [13:03:10]Write i2c OK [13:03:10]MH_I2C_Read... [13:03:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:10]Read from MH i2c: E2 [13:03:10]MH_I2C_Read... [13:03:10]Read from MH i2c: E2 03 00 [13:03:10]MH_I2C_Read... [13:03:10]Read from MH i2c: E2 03 00 57 32 00 90 00 FD [13:03:10]RAPDU: 90 00 [13:03:10]wFMCommunicate OK [13:03:10]SAM_PROTO_ClearQueue done [13:03:10]KKMCreateOFDPacket [13:03:10]OFDProtocolAddRootSTLVToBuf [13:03:10]FM_MakeSignedData [13:03:10]FM_MakeSignedData [13:03:10]SAM_PROTO_SignData [13:03:10]wFMCommunicate request_size=4 [13:03:10]MH_SAM_APDU [13:03:10]CAPDU: 80 0D 01 02 [13:03:10]Write to MH i2c: E2 08 00 58 32 80 0D 01 02 00 00 00 00 03 [13:03:10]Write i2c OK [13:03:10]MH_I2C_Read... [13:03:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:10]Read from MH i2c: E2 [13:03:10]MH_I2C_Read... [13:03:10]Read from MH i2c: E2 03 00 [13:03:10]MH_I2C_Read... [13:03:10]Read from MH i2c: E2 03 00 58 32 00 90 00 FE [13:03:10]RAPDU: 90 00 [13:03:10]wFMCommunicate OK [13:03:10]wFMCommunicate request_size=255 [13:03:10]MH_SAM_APDU [13:03: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 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 38 00 00 00 F4 03 04 00 92 6B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 94 2A 01 00 35 04 06 00 E8 C6 F0 76 [13:03:10]Write to MH i2c: E2 02 01 59 32 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 38 00 00 00 F4 03 04 00 92 6B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 94 2A 01 00 35 04 06 00 E8 C6 F0 76 00 00 B0 [13:03:10]Write i2c OK [13:03:10]MH_I2C_Read... [13:03:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:10]Read from MH i2c: E2 [13:03:10]MH_I2C_Read... [13:03:10]Read from MH i2c: E2 03 00 [13:03:10]MH_I2C_Read... [13:03:10]Read from MH i2c: E2 03 00 59 32 00 90 00 FF [13:03:10]RAPDU: 90 00 [13:03:10]wFMCommunicate OK [13:03:10]wFMCommunicate request_size=7 [13:03:10]MH_SAM_APDU [13:03:10]CAPDU: 80 0D 02 02 02 D1 07 [13:03:10]Write to MH i2c: E2 0A 00 5A 32 80 0D 02 02 02 00 D1 07 00 00 E2 [13:03:10]Write i2c OK [13:03:10]MH_I2C_Read... [13:03:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:10]Read from MH i2c: E2 [13:03:10]MH_I2C_Read... [13:03:10]Read from MH i2c: E2 03 00 [13:03:10]MH_I2C_Read... [13:03:10]Read from MH i2c: E2 03 00 5A 32 00 90 00 00 [13:03:10]RAPDU: 90 00 [13:03:10]wFMCommunicate OK [13:03:10]wFMCommunicate request_size=4 [13:03:10]MH_SAM_APDU [13:03:10]CAPDU: 80 0D 03 02 [13:03:10]Write to MH i2c: E2 08 00 5B 32 80 0D 03 02 00 00 00 00 08 [13:03:10]Write i2c OK [13:03:10]MH_I2C_Read... [13:03:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:10]Read from MH i2c: E2 [13:03:10]MH_I2C_Read... [13:03:10]Read from MH i2c: E2 0B 00 [13:03:10]MH_I2C_Read... [13:03:10]Read from MH i2c: E2 0B 00 5B 32 00 09 79 6A 9B 4B 9A BD A0 90 00 D2 [13:03:10]RAPDU: 09 79 6A 9B 4B 9A BD A0 90 00 [13:03:10]wFMCommunicate OK [13:03:10]SAM_PROTO_SignData done [13:03:10]FM_MakeSignedData done [13:03:10]CreateOFDProtocolMessage [13:03:10]wFMCommunicate request_size=4 [13:03:10]MH_SAM_APDU [13:03:10]CAPDU: 80 11 00 00 [13:03:10]Write to MH i2c: E2 08 00 5C 32 80 11 00 00 00 00 00 00 08 [13:03:10]Write i2c OK [13:03:10]MH_I2C_Read... [13:03:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:10]Read from MH i2c: E2 [13:03:10]MH_I2C_Read... [13:03:10]Read from MH i2c: E2 17 00 [13:03:10]MH_I2C_Read... [13:03:10]Read from MH i2c: E2 17 00 5C 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5B [13:03:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:03:10]wFMCommunicate OK [13:03:10]CreateOFDProtocolMessage done [13:03:10]OFDSenderStorePacket 76436 [13:03:10]StoreOFDPacket docnum=76436 [13:03:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 A6 7D 04 01 80 C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 38 00 00 00 F4 03 04 00 92 6B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 94 2A 01 00 35 04 06 00 E8 C6 F0 76 D1 07 09 79 6A 9B 4B 9A BD A0 [13:03:10]CheckFolder [13:03:10]dirname=/storage/ofd_packets [13:03:10]CheckFolder done [13:03:10]ProducePacketName [13:03:10]name=ofd_packets/00076436 [13:03:10]NVStorageSaveData ofd_packets/00076436 [13:03:10]File name is /storage/ofd_packets/00076436 [13:03:10]Write 298 bytes [13:03:10]NVStorageSaveData done [13:03:10]OFDSenderStorePacket done [13:03:10]KKMCreateOFDPacket done [13:03:10]NVStorageSaveData kkm_last_timestamp [13:03:10]File name is /storage/kkm_last_timestamp [13:03:10]Write 4 bytes [13:03:10]NVStorageSaveData done [13:03:10]ExternCall_PrintAddStr [13:03:10]wPrintStart [13:03:10]Write to MH i2c: 01 00 00 5D 32 8F [13:03:10]Write i2c OK [13:03:10]MH_I2C_Read... [13:03:10]Read from MH i2c: 01 [13:03:10]MH_I2C_Read... [13:03:10]Read from MH i2c: 01 07 00 [13:03:10]MH_I2C_Read... [13:03:10]Read from MH i2c: 01 07 00 5D 32 00 00 00 00 00 FF 0F A4 [13:03:10]RasterBufferAndPrint [13:03:10]line Счет N : (1)190904 [13:03:10]line ИНН: 02508201610067 [13:03:10]line Контрольно-Кассовый Чек [13:03:10]line ПРОДАЖА [13:03:10]line ТРК (МРК, ГНК) : 13 [13:03:10]line Товар: 2710194210 [13:03:10]line ДТ-К-5 [13:03:10]line 6.860 * 72.90 [13:03:10]line = 500.09 [13:03:10]line НДС 12% НСП 1% [13:03:10]line > о реализуемом товаре [13:03:10]line ОКРУГЛЕНИЕ: -0.09 [13:03:10]line ИТОГО: 500.00 [13:03:10]line Внесено: 500.00 [13:03:10]line СДАЧА: 0.00 [13:03:10]line НСП 1% : 4.43 [13:03:10]line НДС 12% : 53.11 [13:03:10]line Наличными: 500.00 [13:03:10]line Безнал.: 0.00 [13:03:10]line Место: АЗС № 106 "Партнер Нефть" [13:03:10]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:03:10]line СНО: Общий режим [13:03:10]line Чек 56 19.04.2024 13:03 [13:03:10]line Смена: 370 ФФД: 1.0 [13:03:10]line ЗНМ: 0300000141 [13:03:10]line РНМ: 0000000000091573 [13:03:10]line Версия ККМ: 001 [13:03:10]line ФМ: 0000000000874652 [13:03:10]line ФД: 76436 [13:03:10]line ФПД: 255941135487239 [13:03:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T130314&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76436&fm=255941135487239&tin=02508201610067®Number=0000000000091573&sum=50000 [13:03:10]OFD Sender: Processing packet 76436 [packets to send 128, broken 127] [13:03:10]ProducePacketName [13:03:10]name=ofd_packets/00076436 [13:03:10]OFD Sender: To server: pG, [13:03:10]CommunicateWithHost lk.salyk.kg:30040 [13:03:10]ConnectInit lk.salyk.kg [13:03:10]written 0, free lines is 4095 [13:03:11]Write to MH i2c: 01 00 00 87 32 B9 [13:03:11]Write i2c OK [13:03:11]MH_I2C_Read... [13:03:11]Read from MH i2c: 01 [13:03:11]MH_I2C_Read... [13:03:11]Read from MH i2c: 01 07 00 [13:03:11]MH_I2C_Read... [13:03:11]Read from MH i2c: 01 07 00 87 32 00 00 00 00 00 E3 0C AF [13:03:11]RasterBufferAndPrint [13:03:11]line [13:03:11]line [13:03:11]line [13:03:11]line [13:03:11]line [13:03:11]written 0, free lines is 3302 [13:03:11]MH_Cut [13:03:11]Write to MH i2c: D1 01 00 8E 32 01 92 [13:03:11]Write i2c OK [13:03:11]MH_I2C_Read... [13:03:11]Read from MH i2c: D1 [13:03:11]MH_I2C_Read... [13:03:11]Read from MH i2c: D1 01 00 [13:03:11]MH_I2C_Read... [13:03:11]Read from MH i2c: D1 01 00 8E 32 00 91 [13:03:11]Write to MH i2c: 01 00 00 8F 32 C1 [13:03:11]Write i2c OK [13:03:11]MH_I2C_Read... [13:03:12]*** Cut start [13:03:12]*** Partial cut [13:03:12]*** CUTSNS_PIN = 1 [13:03:12]*** CUTSNS_PIN = 0 [13:03:12]*** Brake cut motor [13:03:12]Read from MH i2c: 01 [13:03:12]MH_I2C_Read... [13:03:12]*** Stop cut motor [13:03:12]*** Cut end [13:03:12]Read from MH i2c: 01 07 00 [13:03:12]MH_I2C_Read... [13:03:12]Read from MH i2c: 01 07 00 8F 32 00 00 00 00 00 FF 0F D6 [13:03:12]process_action close_receipt done [13:03:12]requested_data is exist [13:03:12]produce_requested_data [13:03:12]requested_item fm.sn is exist - process it [13:03:12]wFMCommunicate request_size=4 [13:03:12]MH_SAM_APDU [13:03:12]CAPDU: 80 11 00 00 [13:03:12]Write to MH i2c: E2 08 00 90 32 80 11 00 00 00 00 00 00 3C [13:03:12]Write i2c OK [13:03:12]MH_I2C_Read... [13:03:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:12]Read from MH i2c: E2 [13:03:12]MH_I2C_Read... [13:03:12]Read from MH i2c: E2 17 00 [13:03:12]MH_I2C_Read... [13:03:12]Read from MH i2c: E2 17 00 90 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8F [13:03:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:03:12]wFMCommunicate OK [13:03:12]requested_item fd.num is exist - process it [13:03:12]SAM_PROTO_GetFieldsCounters [13:03:12]wFMCommunicate request_size=4 [13:03:12]MH_SAM_APDU [13:03:12]CAPDU: 80 13 00 00 [13:03:12]Write to MH i2c: E2 08 00 91 32 80 13 00 00 00 00 00 00 3F [13:03:12]Write i2c OK [13:03:12]MH_I2C_Read... [13:03:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:12]Read from MH i2c: E2 [13:03:12]MH_I2C_Read... [13:03:12]Read from MH i2c: E2 62 00 [13:03:12]MH_I2C_Read... [13:03:12]Read from MH i2c: E2 62 00 91 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 94 2A 01 00 0E 04 04 00 72 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 3A [13: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 94 2A 01 00 0E 04 04 00 72 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 [13:03:12]wFMCommunicate OK [13:03:12]SAM_PROTO_GetFieldsCounters done [13:03:12]requested_item shift.num is exist - process it [13:03:12]requested_item shift.opened is exist - process it [13:03:12]req_shift_opened [13:03:12]FM_GetShiftState [13:03:12]SAM_PROTO_GetShiftState [13:03:12]wFMCommunicate request_size=4 [13:03:12]MH_SAM_APDU [13:03:12]CAPDU: 80 13 01 00 [13:03:12]Write to MH i2c: E2 08 00 92 32 80 13 01 00 00 00 00 00 41 [13:03:12]Write i2c OK [13:03:12]MH_I2C_Read... [13:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:13]Read from MH i2c: E2 [13:03:13]MH_I2C_Read... [13:03:13]Read from MH i2c: E2 0E 00 [13:03:13]MH_I2C_Read... [13:03:13]Read from MH i2c: E2 0E 00 92 32 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 26 [13:03:13]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:03:13]wFMCommunicate OK [13:03:13]SAM_PROTO_GetShiftState done [13:03:13]FM_GetShiftState done [13:03:13]req_shift_opened done [13:03:13]requested_item shift.open_date is exist - process it [13:03:13]req_shift_open_date [13:03:13]req_shift_open_date done [13:03:13]produce_requested_data done [13:03:13]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76436,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [13:03:13]process_action_free close_receipt [13:03:13]json_value_free [13:03:13]json_value_free done [13:03:13]process_json_proto returns [13:03:13]Send response to host [13:03:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76436,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [13:03:13]free response buf [13:03:13]execute_script done [13:03:13]execute_script returns [13:03:13]free content buf [13:03:13]Sock 7.Close socket [13:03:13]Sock 7.Thread stoped [13:05:22]ConnectInit Can't connect to host [13:05:22]CommunicateWithHost connect error [13:05:22]CommunicateWithHost err = -1 [13:05:22]OFD Sender: Server communicate error [13:05:27]OFD Sender: Processing packet 76436 [packets to send 128, broken 127] [13:05:27]ProducePacketName [13:05:27]name=ofd_packets/00076436 [13:05:27]OFD Sender: To server: pG, [13:05:27]CommunicateWithHost lk.salyk.kg:30040 [13:05:27]ConnectInit lk.salyk.kg [13:05:27]Connected sock=7 [13:05:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 A6 7D 04 01 80 C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 38 00 00 00 F4 03 04 00 92 6B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 94 2A 01 00 35 04 06 00 E8 C6 F0 76 D1 07 09 79 6A 9B 4B 9A BD A0 [13:05:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 40 20 47 00 D7 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 94 2A 01 00 F4 03 04 00 A6 13 22 66 B6 04 01 00 00 90 8B C3 7B 03 38 D2 0B [13:05:28]CommunicateWithHost err = 0 [13:05:28]CheckOFDResponse [13:05:28]1017 (14) - 77093643461234 [13:05:28]1041 (16) - 0000000000874652 [13:05:28]1040 (4) - 76436 [13:05:28]1012 (4) - 19.04.2024 06:48 [13:05:28]1206 (1) - 0 [13:05:28]OFD Sender: Remove packet 76436 [13:05:28]ProducePacketName [13:05:28]name=ofd_packets/00076436 [13:05:28]NVStorageDeleteData [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10: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:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:13]accept exits with 9 [13:13:13]New connection [13:13:13]New thread 3066629476 created [13:13:13]Thread 3066486116 joined [13:13:13]Waiting for new connection... [13:13:13] Sock 9.Parse request [13:13:13]Sock 9.Check first char [13:13:13]Sock 9.First char is OK [13:13:13]request: POST /json_proto HTTP/1.0 [13:13:13]Method: POST [13:13:13]URL: /json_proto [13:13:13]Method is POST - this is cgi request [13:13:13]url: /json_proto [13:13:13]query_string will be loaded in cgi processing [13:13:13]execute_cgi json_proto POST (null) [13:13:13]execute_cgi path=json_proto method=POST [13:13:13]POST find Content-Length [13:13:13]Host: 172.17.62.5:8080 [13:13:13]Content-Length: 808 [13:13:13]Content-Type: application/json [13:13:13] [13:13:13]POST finish read [13:13:13]Found Content-Length = 808 [13:13:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 18.640, "sum" : 1200.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:13]execute_script... [13:13:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 18.640, "sum" : 1200.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:13]POST & json_proto [13:13:13]process_json_proto [13:13:13]json parsed OK: [13:13:13]protocol is kg_v1.0 [13:13:13]action value=close_receipt [13:13:13]process_action close_receipt [13:13:13]cmd_close_receipt [13:13:13]MH_GetDate [13:13:13]Write to MH i2c: F0 00 00 93 32 B4 [13:13:13]Write i2c OK [13:13:13]MH_I2C_Read... [13:13:13]Read from MH i2c: F0 [13:13:13]MH_I2C_Read... [13:13:13]Read from MH i2c: F0 09 00 [13:13:13]MH_I2C_Read... [13:13:13]Read from MH i2c: F0 09 00 93 32 00 EF 6D 22 66 F4 E9 65 64 47 [13:13:13]GetLastDocTimeStamp 1713531794 [13:13:13]current date 1713532399 [13:13:13]FM_GetShiftState [13:13:13]SAM_PROTO_GetShiftState [13:13:13]wFMCommunicate request_size=4 [13:13:13]MH_SAM_APDU [13:13:13]CAPDU: 80 13 01 00 [13:13:13]Write to MH i2c: E2 08 00 94 32 80 13 01 00 00 00 00 00 43 [13:13:13]Write i2c OK [13:13:13]MH_I2C_Read... [13:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:13]Read from MH i2c: E2 [13:13:13]MH_I2C_Read... [13:13:13]Read from MH i2c: E2 0E 00 [13:13:13]MH_I2C_Read... [13:13:13]Read from MH i2c: E2 0E 00 94 32 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 28 [13:13:13]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:13:13]wFMCommunicate OK [13:13:13]SAM_PROTO_GetShiftState done [13:13:13]FM_GetShiftState done [13:13:13]opened in 1713486233 [13:13:13]opened+sec_in_day 1713572633 [13:13:13]quantity*price = 120041 [13:13:13]sum+1 = 120043 [13:13:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.42 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 0.00 Безнал.: 1200.42 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 57 19.04.2024 13:13 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76437 ФПД: 104159293954201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T131319&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76437&fm=104159293954201&tin=02508201610067®Number=0000000000091573&sum=120042 [13:13:15]StoreToDocumentArchive [13:13:15]shift 370 fd 76437 [13:13:15]save to /storage/0370/doc_00076437 [13:13:15]save last doc name /storage/0370/doc_00076437 to /storage/kkm_last_doc_name [13:13:15]save OK [13:13:15]Clear old archive folders... [13:13:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:15]tlvbuf is 00927D80 [13:13:15]SAM_PROTO_ClearQueue [13:13:15]wFMCommunicate request_size=4 [13:13:15]MH_SAM_APDU [13:13:15]CAPDU: 80 09 00 00 [13:13:15]Write to MH i2c: E2 08 00 A1 32 80 09 00 00 00 00 00 00 45 [13:13:15]Write i2c OK [13:13:15]MH_I2C_Read... [13:13:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:15]Read from MH i2c: E2 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 03 00 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 03 00 A1 32 00 90 00 47 [13:13:15]RAPDU: 90 00 [13:13:15]wFMCommunicate OK [13:13:15]SAM_PROTO_ClearQueue done [13:13:15]KKMCreateOFDPacket [13:13:15]OFDProtocolAddRootSTLVToBuf [13:13:15]FM_MakeSignedData [13:13:15]FM_MakeSignedData [13:13:15]SAM_PROTO_SignData [13:13:15]wFMCommunicate request_size=4 [13:13:15]MH_SAM_APDU [13:13:15]CAPDU: 80 0D 01 02 [13:13:15]Write to MH i2c: E2 08 00 A2 32 80 0D 01 02 00 00 00 00 4D [13:13:15]Write i2c OK [13:13:15]MH_I2C_Read... [13:13:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:15]Read from MH i2c: E2 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 03 00 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 03 00 A2 32 00 90 00 48 [13:13:15]RAPDU: 90 00 [13:13:15]wFMCommunicate OK [13:13:15]wFMCommunicate request_size=255 [13:13:15]MH_SAM_APDU [13:13: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 D0 48 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 EA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 EF 6D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 95 2A 01 00 35 04 06 00 5E [13:13:15]Write to MH i2c: E2 02 01 A3 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 D0 48 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 EA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 EF 6D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 95 2A 01 00 35 04 06 00 5E 00 00 C2 [13:13:15]Write i2c OK [13:13:15]MH_I2C_Read... [13:13:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:15]Read from MH i2c: E2 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 03 00 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 03 00 A3 32 00 90 00 49 [13:13:15]RAPDU: 90 00 [13:13:15]wFMCommunicate OK [13:13:15]wFMCommunicate request_size=10 [13:13:15]MH_SAM_APDU [13:13:15]CAPDU: 80 0D 02 02 05 BB 79 B7 58 99 [13:13:15]Write to MH i2c: E2 0D 00 A4 32 80 0D 02 02 05 00 BB 79 B7 58 99 00 00 36 [13:13:15]Write i2c OK [13:13:15]MH_I2C_Read... [13:13:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:15]Read from MH i2c: E2 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 03 00 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 03 00 A4 32 00 90 00 4A [13:13:15]RAPDU: 90 00 [13:13:15]wFMCommunicate OK [13:13:15]wFMCommunicate request_size=4 [13:13:15]MH_SAM_APDU [13:13:15]CAPDU: 80 0D 03 02 [13:13:15]Write to MH i2c: E2 08 00 A5 32 80 0D 03 02 00 00 00 00 52 [13:13:15]Write i2c OK [13:13:15]MH_I2C_Read... [13:13:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:15]Read from MH i2c: E2 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 0B 00 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 0B 00 A5 32 00 D2 8B 07 D4 2A CF 3A BF 90 00 7D [13:13:15]RAPDU: D2 8B 07 D4 2A CF 3A BF 90 00 [13:13:15]wFMCommunicate OK [13:13:15]SAM_PROTO_SignData done [13:13:15]FM_MakeSignedData done [13:13:15]CreateOFDProtocolMessage [13:13:15]wFMCommunicate request_size=4 [13:13:15]MH_SAM_APDU [13:13:15]CAPDU: 80 11 00 00 [13:13:15]Write to MH i2c: E2 08 00 A6 32 80 11 00 00 00 00 00 00 52 [13:13:15]Write i2c OK [13:13:15]MH_I2C_Read... [13:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:15]Read from MH i2c: E2 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 17 00 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 17 00 A6 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A5 [13:13:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:13:15]wFMCommunicate OK [13:13:15]CreateOFDProtocolMessage done [13:13:15]OFDSenderStorePacket 76437 [13:13:15]StoreOFDPacket docnum=76437 [13:13:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 B4 5F 07 01 D7 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 D0 48 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 EA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 EF 6D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 95 2A 01 00 35 04 06 00 5E BB 79 B7 58 99 D2 8B 07 D4 2A CF 3A BF [13:13:15]CheckFolder [13:13:15]dirname=/storage/ofd_packets [13:13:15]CheckFolder done [13:13:15]ProducePacketName [13:13:15]name=ofd_packets/00076437 [13:13:15]NVStorageSaveData ofd_packets/00076437 [13:13:15]File name is /storage/ofd_packets/00076437 [13:13:15]Write 301 bytes [13:13:15]NVStorageSaveData done [13:13:15]OFDSenderStorePacket done [13:13:15]KKMCreateOFDPacket done [13:13:15]NVStorageSaveData kkm_last_timestamp [13:13:15]File name is /storage/kkm_last_timestamp [13:13:15]Write 4 bytes [13:13:15]NVStorageSaveData done [13:13:15]ExternCall_PrintAddStr [13:13:15]wPrintStart [13:13:15]Write to MH i2c: 01 00 00 A7 32 D9 [13:13:15]Write i2c OK [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: 01 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: 01 07 00 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: 01 07 00 A7 32 00 00 00 00 00 FF 0F EE [13:13:15]RasterBufferAndPrint [13:13:15]line Счет N : (1)190905 [13:13:15]line ИНН: 02508201610067 [13:13:15]line Контрольно-Кассовый Чек [13:13:15]line ПРОДАЖА [13:13:15]line ТРК (МРК, ГНК) : 33 [13:13:15]line Товар: 2710124130 [13:13:15]line Аи-92-К-5 [13:13:15]line 18.640 * 64.40 [13:13:15]line = 1200.42 [13:13:15]line НДС 12% НСП 1% [13:13:15]line > о реализуемом товаре [13:13:15]line ИТОГО: 1200.42 [13:13:15]line НСП 1% : 10.62 [13:13:15]line НДС 12% : 127.48 [13:13:15]line Наличными: 0.00 [13:13:15]line Безнал.: 1200.42 [13:13:15]line Место: АЗС № 106 "Партнер Нефть" [13:13:15]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:13:15]line СНО: Общий режим [13:13:15]line Чек 57 19.04.2024 13:13 [13:13:15]line Смена: 370 ФФД: 1.0 [13:13:15]line ЗНМ: 0300000141 [13:13:15]line РНМ: 0000000000091573 [13:13:15]line Версия ККМ: 001 [13:13:15]line Платежная система: О! деньги [13:13:15]line ФМ: 0000000000874652 [13:13:15]line ФД: 76437 [13:13:15]line ФПД: 104159293954201 [13:13:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T131319&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76437&fm=104159293954201&tin=02508201610067®Number=0000000000091573&sum=120042 [13:13:15]written 0, free lines is 4095 [13:13:15]OFD Sender: Processing packet 76437 [packets to send 128, broken 127] [13:13:15]ProducePacketName [13:13:15]name=ofd_packets/00076437 [13:13:15]OFD Sender: To server: pG, [13:13:15]CommunicateWithHost lk.salyk.kg:30040 [13:13:15]ConnectInit lk.salyk.kg [13:13:16]Write to MH i2c: 01 00 00 D0 32 02 [13:13:16]Write i2c OK [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: 01 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: 01 07 00 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: 01 07 00 D0 32 00 00 00 00 00 FA 0C 0F [13:13:16]RasterBufferAndPrint [13:13:16]line [13:13:16]line [13:13:16]line [13:13:16]line [13:13:16]line [13:13:16]written 0, free lines is 3329 [13:13:16]MH_Cut [13:13:16]Write to MH i2c: D1 01 00 D7 32 01 DB [13:13:16]Write i2c OK [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: D1 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: D1 01 00 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: D1 01 00 D7 32 00 DA [13:13:16]Write to MH i2c: 01 00 00 D8 32 0A [13:13:16]Write i2c OK [13:13:16]MH_I2C_Read... [13:13:16]Connected sock=10 [13:13:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 B4 5F 07 01 D7 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 D0 48 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 EA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 EF 6D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 95 2A 01 00 35 04 06 00 5E BB 79 B7 58 99 D2 8B 07 D4 2A CF 3A BF [13:13:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 BB 53 47 00 40 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 34 36 35 32 10 04 04 00 95 2A 01 00 F4 03 04 00 7A 15 22 66 B6 04 01 00 00 6B 53 43 69 AD AB 78 4A [13:13:16]CommunicateWithHost err = 0 [13:13:16]CheckOFDResponse [13:13:16]1017 (14) - 77093643461234 [13:13:16]1041 (16) - 0000000000874652 [13:13:16]1040 (4) - 76437 [13:13:16]1012 (4) - 19.04.2024 06:55 [13:13:16]1206 (1) - 0 [13:13:16]OFD Sender: Remove packet 76437 [13:13:16]ProducePacketName [13:13:16]name=ofd_packets/00076437 [13:13:16]NVStorageDeleteData [13:13:16]OFD Sender: No OFD packet to send [13:13:16]*** Cut start [13:13:16]*** Partial cut [13:13:16]*** CUTSNS_PIN = 1 [13:13:16]*** CUTSNS_PIN = 0 [13:13:17]*** Brake cut motor [13:13:17]Read from MH i2c: 01 [13:13:17]MH_I2C_Read... [13:13:17]*** Stop cut motor [13:13:17]*** Cut end [13:13:17]Read from MH i2c: 01 07 00 [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: 01 07 00 D8 32 00 00 00 00 00 FF 0F 1F [13:13:17]process_action close_receipt done [13:13:17]requested_data is exist [13:13:17]produce_requested_data [13:13:17]requested_item fm.sn is exist - process it [13:13:17]wFMCommunicate request_size=4 [13:13:17]MH_SAM_APDU [13:13:17]CAPDU: 80 11 00 00 [13:13:17]Write to MH i2c: E2 08 00 D9 32 80 11 00 00 00 00 00 00 85 [13:13:17]Write i2c OK [13:13:17]MH_I2C_Read... [13:13:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:17]Read from MH i2c: E2 [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: E2 17 00 [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: E2 17 00 D9 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D8 [13:13:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:13:17]wFMCommunicate OK [13:13:17]requested_item fd.num is exist - process it [13:13:17]SAM_PROTO_GetFieldsCounters [13:13:17]wFMCommunicate request_size=4 [13:13:17]MH_SAM_APDU [13:13:17]CAPDU: 80 13 00 00 [13:13:17]Write to MH i2c: E2 08 00 DA 32 80 13 00 00 00 00 00 00 88 [13:13:17]Write i2c OK [13:13:17]MH_I2C_Read... [13:13:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:17]Read from MH i2c: E2 [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: E2 62 00 [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: E2 62 00 DA 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 95 2A 01 00 0E 04 04 00 72 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 87 [13:13:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 95 2A 01 00 0E 04 04 00 72 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 [13:13:17]wFMCommunicate OK [13:13:17]SAM_PROTO_GetFieldsCounters done [13:13:17]requested_item shift.num is exist - process it [13:13:17]requested_item shift.opened is exist - process it [13:13:17]req_shift_opened [13:13:17]FM_GetShiftState [13:13:17]SAM_PROTO_GetShiftState [13:13:17]wFMCommunicate request_size=4 [13:13:17]MH_SAM_APDU [13:13:17]CAPDU: 80 13 01 00 [13:13:17]Write to MH i2c: E2 08 00 DB 32 80 13 01 00 00 00 00 00 8A [13:13:17]Write i2c OK [13:13:17]MH_I2C_Read... [13:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:17]Read from MH i2c: E2 [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: E2 0E 00 [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: E2 0E 00 DB 32 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 6F [13:13:17]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:13:17]wFMCommunicate OK [13:13:17]SAM_PROTO_GetShiftState done [13:13:17]FM_GetShiftState done [13:13:17]req_shift_opened done [13:13:17]requested_item shift.open_date is exist - process it [13:13:17]req_shift_open_date [13:13:17]req_shift_open_date done [13:13:17]produce_requested_data done [13:13:17]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76437,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [13:13:17]process_action_free close_receipt [13:13:17]json_value_free [13:13:17]json_value_free done [13:13:17]process_json_proto returns [13:13:17]Send response to host [13:13:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76437,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [13:13:17]free response buf [13:13:17]execute_script done [13:13:17]execute_script returns [13:13:17]free content buf [13:13:17]Sock 9.Close socket [13:13:17]Sock 9.Thread stoped [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16: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:12]OFD Sender: No OFD packet to send [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:27]OFD Sender: No OFD packet to send [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:37]OFD Sender: No OFD packet to send [13:20:42]OFD Sender: No OFD packet to send [13:20:47]OFD Sender: No OFD packet to send [13:20:52]OFD Sender: No OFD packet to send [13:20:57]OFD Sender: No OFD packet to send [13:21:02]OFD Sender: No OFD packet to send [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21: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:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21:52]OFD Sender: No OFD packet to send [13:21:57]OFD Sender: No OFD packet to send [13:22:02]OFD Sender: No OFD packet to send [13:22:07]OFD Sender: No OFD packet to send [13:22:12]OFD Sender: No OFD packet to send [13:22:17]OFD Sender: No OFD packet to send [13:22:22]OFD Sender: No OFD packet to send [13:22:27]OFD Sender: No OFD packet to send [13:22:32]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:23]accept exits with 7 [13:23:23]New connection [13:23:23]New thread 3066486116 created [13:23:23]Thread 3066629476 joined [13:23:23]Waiting for new connection... [13:23:23] Sock 7.Parse request [13:23:23]Sock 7.Check first char [13:23:23]Sock 7.First char is OK [13:23:23]request: POST /json_proto HTTP/1.0 [13:23:23]Method: POST [13:23:23]URL: /json_proto [13:23:23]Method is POST - this is cgi request [13:23:23]url: /json_proto [13:23:23]query_string will be loaded in cgi processing [13:23:23]execute_cgi json_proto POST (null) [13:23:23]execute_cgi path=json_proto method=POST [13:23:23]POST find Content-Length [13:23:23]Host: 172.17.62.5:8080 [13:23:23]Content-Length: 682 [13:23:23]Content-Type: application/json [13:23:23] [13:23:23]POST finish read [13:23:23]Found Content-Length = 682 [13:23:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190906", "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" : 64.40, "quantity" : 26.400, "sum" : 1700.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:23]execute_script... [13:23: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)190906", "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" : 64.40, "quantity" : 26.400, "sum" : 1700.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:23]POST & json_proto [13:23:23]process_json_proto [13:23:23]json parsed OK: [13:23:23]protocol is kg_v1.0 [13:23:23]action value=close_receipt [13:23:23]process_action close_receipt [13:23:23]cmd_close_receipt [13:23:23]MH_GetDate [13:23:23]Write to MH i2c: F0 00 00 DC 32 FD [13:23:23]Write i2c OK [13:23:23]MH_I2C_Read... [13:23:23]Read from MH i2c: F0 [13:23:23]MH_I2C_Read... [13:23:23]Read from MH i2c: F0 09 00 [13:23:23]MH_I2C_Read... [13:23:23]Read from MH i2c: F0 09 00 DC 32 00 50 70 22 66 F4 E9 65 64 F4 [13:23:23]GetLastDocTimeStamp 1713532399 [13:23:23]current date 1713533008 [13:23:23]FM_GetShiftState [13:23:23]SAM_PROTO_GetShiftState [13:23:23]wFMCommunicate request_size=4 [13:23:23]MH_SAM_APDU [13:23:23]CAPDU: 80 13 01 00 [13:23:23]Write to MH i2c: E2 08 00 DD 32 80 13 01 00 00 00 00 00 8C [13:23:23]Write i2c OK [13:23:23]MH_I2C_Read... [13:23:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:23]Read from MH i2c: E2 [13:23:23]MH_I2C_Read... [13:23:23]Read from MH i2c: E2 0E 00 [13:23:23]MH_I2C_Read... [13:23:23]Read from MH i2c: E2 0E 00 DD 32 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 71 [13:23:23]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:23:23]wFMCommunicate OK [13:23:23]SAM_PROTO_GetShiftState done [13:23:23]FM_GetShiftState done [13:23:23]opened in 1713486233 [13:23:23]opened+sec_in_day 1713572633 [13:23:23]quantity*price = 170016 [13:23:23]sum+1 = 170017 [13:23:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.55 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 58 19.04.2024 13:23 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76438 ФПД: 272375917837590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T132328&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76438&fm=272375917837590&tin=02508201610067®Number=0000000000091573&sum=170000 [13:23:24]StoreToDocumentArchive [13:23:24]shift 370 fd 76438 [13:23:24]save to /storage/0370/doc_00076438 [13:23:24]save last doc name /storage/0370/doc_00076438 to /storage/kkm_last_doc_name [13:23:24]save OK [13:23:24]Clear old archive folders... [13:23:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:24]tlvbuf is 009311E0 [13:23:24]SAM_PROTO_ClearQueue [13:23:24]wFMCommunicate request_size=4 [13:23:24]MH_SAM_APDU [13:23:24]CAPDU: 80 09 00 00 [13:23:24]Write to MH i2c: E2 08 00 EA 32 80 09 00 00 00 00 00 00 8E [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:24]Read from MH i2c: E2 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 03 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 03 00 EA 32 00 90 00 90 [13:23:24]RAPDU: 90 00 [13:23:24]wFMCommunicate OK [13:23:24]SAM_PROTO_ClearQueue done [13:23:24]KKMCreateOFDPacket [13:23:24]OFDProtocolAddRootSTLVToBuf [13:23:24]FM_MakeSignedData [13:23:24]FM_MakeSignedData [13:23:24]SAM_PROTO_SignData [13:23:24]wFMCommunicate request_size=4 [13:23:24]MH_SAM_APDU [13:23:24]CAPDU: 80 0D 01 02 [13:23:24]Write to MH i2c: E2 08 00 EB 32 80 0D 01 02 00 00 00 00 96 [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:24]Read from MH i2c: E2 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 03 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 03 00 EB 32 00 90 00 91 [13:23:24]RAPDU: 90 00 [13:23:24]wFMCommunicate OK [13:23:24]wFMCommunicate request_size=255 [13:23:24]MH_SAM_APDU [13:23: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 20 67 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 20 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 3A 00 00 00 F4 03 04 00 50 70 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 96 2A 01 00 35 04 06 00 F7 [13:23:24]Write to MH i2c: E2 02 01 EC 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 20 67 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 20 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 3A 00 00 00 F4 03 04 00 50 70 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 96 2A 01 00 35 04 06 00 F7 00 00 D6 [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:24]Read from MH i2c: E2 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 03 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 03 00 EC 32 00 90 00 92 [13:23:24]RAPDU: 90 00 [13:23:24]wFMCommunicate OK [13:23:24]wFMCommunicate request_size=10 [13:23:24]MH_SAM_APDU [13:23:24]CAPDU: 80 0D 02 02 05 B9 75 D3 FD 16 [13:23:24]Write to MH i2c: E2 0D 00 ED 32 80 0D 02 02 05 00 B9 75 D3 FD 16 00 00 B7 [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:24]Read from MH i2c: E2 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 03 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 03 00 ED 32 00 90 00 93 [13:23:24]RAPDU: 90 00 [13:23:24]wFMCommunicate OK [13:23:24]wFMCommunicate request_size=4 [13:23:24]MH_SAM_APDU [13:23:24]CAPDU: 80 0D 03 02 [13:23:24]Write to MH i2c: E2 08 00 EE 32 80 0D 03 02 00 00 00 00 9B [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:24]Read from MH i2c: E2 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 0B 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 0B 00 EE 32 00 30 07 52 F3 6B AD 82 D8 90 00 8A [13:23:24]RAPDU: 30 07 52 F3 6B AD 82 D8 90 00 [13:23:24]wFMCommunicate OK [13:23:24]SAM_PROTO_SignData done [13:23:24]FM_MakeSignedData done [13:23:24]CreateOFDProtocolMessage [13:23:24]wFMCommunicate request_size=4 [13:23:24]MH_SAM_APDU [13:23:24]CAPDU: 80 11 00 00 [13:23:24]Write to MH i2c: E2 08 00 EF 32 80 11 00 00 00 00 00 00 9B [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:24]Read from MH i2c: E2 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 17 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 17 00 EF 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EE [13:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:23:24]wFMCommunicate OK [13:23:24]CreateOFDProtocolMessage done [13:23:24]OFDSenderStorePacket 76438 [13:23:24]StoreOFDPacket docnum=76438 [13:23:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E0 04 07 01 D3 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 20 67 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 20 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 3A 00 00 00 F4 03 04 00 50 70 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 96 2A 01 00 35 04 06 00 F7 B9 75 D3 FD 16 30 07 52 F3 6B AD 82 D8 [13:23:24]CheckFolder [13:23:24]dirname=/storage/ofd_packets [13:23:24]CheckFolder done [13:23:24]ProducePacketName [13:23:24]name=ofd_packets/00076438 [13:23:24]NVStorageSaveData ofd_packets/00076438 [13:23:24]File name is /storage/ofd_packets/00076438 [13:23:24]Write 301 bytes [13:23:24]NVStorageSaveData done [13:23:24]OFDSenderStorePacket done [13:23:24]KKMCreateOFDPacket done [13:23:24]NVStorageSaveData kkm_last_timestamp [13:23:24]File name is /storage/kkm_last_timestamp [13:23:24]Write 4 bytes [13:23:24]NVStorageSaveData done [13:23:24]ExternCall_PrintAddStr [13:23:24]wPrintStart [13:23:24]Write to MH i2c: 01 00 00 F0 32 22 [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: 01 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: 01 07 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: 01 07 00 F0 32 00 00 00 00 00 FF 0F 37 [13:23:24]RasterBufferAndPrint [13:23:24]line Счет N : (1)190906 [13:23:24]line ИНН: 02508201610067 [13:23:24]line Контрольно-Кассовый Чек [13:23:24]line ПРОДАЖА [13:23:24]line ТРК (МРК, ГНК) : 22 [13:23:24]line Товар: 2710124130 [13:23:24]line Аи-92-К-5 [13:23:24]line 26.400 * 64.40 [13:23:24]line = 1700.16 [13:23:24]line НДС 12% НСП 1% [13:23:24]line > о реализуемом товаре [13:23:24]line ОКРУГЛЕНИЕ: -0.16 [13:23:24]line ИТОГО: 1700.00 [13:23:24]line Внесено: 1700.00 [13:23:24]line СДАЧА: 0.00 [13:23:24]line НСП 1% : 15.05 [13:23:24]line НДС 12% : 180.55 [13:23:24]line Наличными: 1700.00 [13:23:24]line Безнал.: 0.00 [13:23:24]line Место: АЗС № 106 "Партнер Нефть" [13:23:24]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:23:24]line СНО: Общий режим [13:23:24]line Чек 58 19.04.2024 13:23 [13:23:24]line Смена: 370 ФФД: 1.0 [13:23:24]line ЗНМ: 0300000141 [13:23:24]line РНМ: 0000000000091573 [13:23:24]line Версия ККМ: 001 [13:23:24]line ФМ: 0000000000874652 [13:23:24]line ФД: 76438 [13:23:24]line ФПД: 272375917837590 [13:23:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T132328&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76438&fm=272375917837590&tin=02508201610067®Number=0000000000091573&sum=170000 [13:23:25]written 0, free lines is 4095 [13:23:25]OFD Sender: Processing packet 76438 [packets to send 128, broken 127] [13:23:25]ProducePacketName [13:23:25]name=ofd_packets/00076438 [13:23:25]OFD Sender: To server: pG, [13:23:25]CommunicateWithHost lk.salyk.kg:30040 [13:23:25]ConnectInit lk.salyk.kg [13:23:25]Connected sock=10 [13:23:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E0 04 07 01 D3 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 20 67 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 20 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 3A 00 00 00 F4 03 04 00 50 70 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 96 2A 01 00 35 04 06 00 F7 B9 75 D3 FD 16 30 07 52 F3 6B AD 82 D8 [13:23:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 4C 5E 47 00 25 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 96 2A 01 00 F4 03 04 00 DC 17 22 66 B6 04 01 00 00 79 0F 4F EF 9F 49 5C FD [13:23:25]CommunicateWithHost err = 0 [13:23:25]CheckOFDResponse [13:23:25]1017 (14) - 77093643461234 [13:23:25]1041 (16) - 0000000000874652 [13:23:25]1040 (4) - 76438 [13:23:25]1012 (4) - 19.04.2024 07:06 [13:23:25]1206 (1) - 0 [13:23:25]OFD Sender: Remove packet 76438 [13:23:25]ProducePacketName [13:23:25]name=ofd_packets/00076438 [13:23:25]NVStorageDeleteData [13:23:25]Write to MH i2c: 01 00 00 1A 33 4D [13:23:25]Write i2c OK [13:23:25]MH_I2C_Read... [13:23:25]Read from MH i2c: 01 [13:23:25]MH_I2C_Read... [13:23:25]Read from MH i2c: 01 07 00 [13:23:25]MH_I2C_Read... [13:23:25]Read from MH i2c: 01 07 00 1A 33 00 00 00 00 00 02 0D 63 [13:23:25]RasterBufferAndPrint [13:23:25]line [13:23:25]line [13:23:25]line [13:23:25]line [13:23:25]line [13:23:25]written 0, free lines is 3336 [13:23:25]MH_Cut [13:23:25]Write to MH i2c: D1 01 00 21 33 01 26 [13:23:25]Write i2c OK [13:23:25]MH_I2C_Read... [13:23:25]Read from MH i2c: D1 [13:23:25]MH_I2C_Read... [13:23:25]Read from MH i2c: D1 01 00 [13:23:25]MH_I2C_Read... [13:23:25]Read from MH i2c: D1 01 00 21 33 00 25 [13:23:25]Write to MH i2c: 01 00 00 22 33 55 [13:23:25]Write i2c OK [13:23:25]MH_I2C_Read... [13:23:26]OFD Sender: No OFD packet to send [13:23:26]*** Cut start [13:23:26]*** Partial cut [13:23:26]*** CUTSNS_PIN = 1 [13:23:26]*** CUTSNS_PIN = 0 [13:23:26]*** Brake cut motor [13:23:27]Read from MH i2c: 01 [13:23:27]MH_I2C_Read... [13:23:27]*** Stop cut motor [13:23:27]*** Cut end [13:23:27]Read from MH i2c: 01 07 00 [13:23:27]MH_I2C_Read... [13:23:27]Read from MH i2c: 01 07 00 22 33 00 00 00 00 00 FF 0F 6A [13:23:27]process_action close_receipt done [13:23:27]requested_data is exist [13:23:27]produce_requested_data [13:23:27]requested_item fm.sn is exist - process it [13:23:27]wFMCommunicate request_size=4 [13:23:27]MH_SAM_APDU [13:23:27]CAPDU: 80 11 00 00 [13:23:27]Write to MH i2c: E2 08 00 23 33 80 11 00 00 00 00 00 00 D0 [13:23:27]Write i2c OK [13:23:27]MH_I2C_Read... [13:23:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:27]Read from MH i2c: E2 [13:23:27]MH_I2C_Read... [13:23:27]Read from MH i2c: E2 17 00 [13:23:27]MH_I2C_Read... [13:23:27]Read from MH i2c: E2 17 00 23 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 23 [13:23:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:23:27]wFMCommunicate OK [13:23:27]requested_item fd.num is exist - process it [13:23:27]SAM_PROTO_GetFieldsCounters [13:23:27]wFMCommunicate request_size=4 [13:23:27]MH_SAM_APDU [13:23:27]CAPDU: 80 13 00 00 [13:23:27]Write to MH i2c: E2 08 00 24 33 80 13 00 00 00 00 00 00 D3 [13:23:27]Write i2c OK [13:23:27]MH_I2C_Read... [13:23:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:27]Read from MH i2c: E2 [13:23:27]MH_I2C_Read... [13:23:27]Read from MH i2c: E2 62 00 [13:23:27]MH_I2C_Read... [13:23:27]Read from MH i2c: E2 62 00 24 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 96 2A 01 00 0E 04 04 00 72 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 D6 [13:23:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 96 2A 01 00 0E 04 04 00 72 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 [13:23:27]wFMCommunicate OK [13:23:27]SAM_PROTO_GetFieldsCounters done [13:23:27]requested_item shift.num is exist - process it [13:23:27]requested_item shift.opened is exist - process it [13:23:27]req_shift_opened [13:23:27]FM_GetShiftState [13:23:27]SAM_PROTO_GetShiftState [13:23:27]wFMCommunicate request_size=4 [13:23:27]MH_SAM_APDU [13:23:27]CAPDU: 80 13 01 00 [13:23:27]Write to MH i2c: E2 08 00 25 33 80 13 01 00 00 00 00 00 D5 [13:23:27]Write i2c OK [13:23:27]MH_I2C_Read... [13:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:27]Read from MH i2c: E2 [13:23:27]MH_I2C_Read... [13:23:27]Read from MH i2c: E2 0E 00 [13:23:27]MH_I2C_Read... [13:23:27]Read from MH i2c: E2 0E 00 25 33 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 BA [13:23:27]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:23:27]wFMCommunicate OK [13:23:27]SAM_PROTO_GetShiftState done [13:23:27]FM_GetShiftState done [13:23:27]req_shift_opened done [13:23:27]requested_item shift.open_date is exist - process it [13:23:27]req_shift_open_date [13:23:27]req_shift_open_date done [13:23:27]produce_requested_data done [13:23:27]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76438,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [13:23:27]process_action_free close_receipt [13:23:27]json_value_free [13:23:27]json_value_free done [13:23:27]process_json_proto returns [13:23:27]Send response to host [13:23:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76438,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [13:23:27]free response buf [13:23:27]execute_script done [13:23:27]execute_script returns [13:23:27]free content buf [13:23:27]Sock 7.Close socket [13:23:27]Sock 7.Thread stoped [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:11]accept exits with 9 [13:26:11]New connection [13:26:11]New thread 3066629476 created [13:26:11]Thread 3066486116 joined [13:26:11]Waiting for new connection... [13:26:11] Sock 9.Parse request [13:26:11]Sock 9.Check first char [13:26:11]Sock 9.First char is OK [13:26:11]request: POST /json_proto HTTP/1.0 [13:26:11]Method: POST [13:26:11]URL: /json_proto [13:26:11]Method is POST - this is cgi request [13:26:11]url: /json_proto [13:26:11]query_string will be loaded in cgi processing [13:26:11]execute_cgi json_proto POST (null) [13:26:11]execute_cgi path=json_proto method=POST [13:26:11]POST find Content-Length [13:26:11]Host: 172.17.62.5:8080 [13:26:11]Content-Length: 670 [13:26:11]Content-Type: application/json [13:26:11] [13:26:11]POST finish read [13:26:11]Found Content-Length = 670 [13:26:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 7.650, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:11]execute_script... [13:26: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)190907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 7.650, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:11]POST & json_proto [13:26:11]process_json_proto [13:26:11]json parsed OK: [13:26:11]protocol is kg_v1.0 [13:26:11]action value=close_receipt [13:26:11]process_action close_receipt [13:26:11]cmd_close_receipt [13:26:11]MH_GetDate [13:26:11]Write to MH i2c: F0 00 00 26 33 48 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: F0 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: F0 09 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: F0 09 00 26 33 00 F8 70 22 66 F4 E9 65 64 E7 [13:26:11]GetLastDocTimeStamp 1713533008 [13:26:11]current date 1713533176 [13:26:11]FM_GetShiftState [13:26:11]SAM_PROTO_GetShiftState [13:26:11]wFMCommunicate request_size=4 [13:26:11]MH_SAM_APDU [13:26:11]CAPDU: 80 13 01 00 [13:26:11]Write to MH i2c: E2 08 00 27 33 80 13 01 00 00 00 00 00 D7 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 0E 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 0E 00 27 33 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 BC [13:26:11]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:26:11]wFMCommunicate OK [13:26:11]SAM_PROTO_GetShiftState done [13:26:11]FM_GetShiftState done [13:26:11]opened in 1713486233 [13:26:11]opened+sec_in_day 1713572633 [13:26:11]quantity*price = 50031 [13:26:11]sum+1 = 50032 [13:26:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 59 19.04.2024 13:26 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76439 ФПД: 14475268890212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T132616&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76439&fm=14475268890212&tin=02508201610067®Number=0000000000091573&sum=50000 [13:26:12]StoreToDocumentArchive [13:26:12]shift 370 fd 76439 [13:26:12]save to /storage/0370/doc_00076439 [13:26:12]save last doc name /storage/0370/doc_00076439 to /storage/kkm_last_doc_name [13:26:12]save OK [13:26:12]Clear old archive folders... [13:26:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:26:12]tlvbuf is B6D59730 [13:26:12]SAM_PROTO_ClearQueue [13:26:12]wFMCommunicate request_size=4 [13:26:12]MH_SAM_APDU [13:26:12]CAPDU: 80 09 00 00 [13:26:12]Write to MH i2c: E2 08 00 34 33 80 09 00 00 00 00 00 00 D9 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 [13:26:12]MH_I2C_Read... [13:26:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:12]Read from MH i2c: E2 03 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 03 00 34 33 00 90 00 DB [13:26:12]RAPDU: 90 00 [13:26:12]wFMCommunicate OK [13:26:12]SAM_PROTO_ClearQueue done [13:26:12]KKMCreateOFDPacket [13:26:12]OFDProtocolAddRootSTLVToBuf [13:26:12]FM_MakeSignedData [13:26:12]FM_MakeSignedData [13:26:12]SAM_PROTO_SignData [13:26:12]wFMCommunicate request_size=4 [13:26:12]MH_SAM_APDU [13:26:12]CAPDU: 80 0D 01 02 [13:26:12]Write to MH i2c: E2 08 00 35 33 80 0D 01 02 00 00 00 00 E1 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 [13:26:12]MH_I2C_Read... [13:26:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:12]Read from MH i2c: E2 03 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 03 00 35 33 00 90 00 DC [13:26:12]RAPDU: 90 00 [13:26:12]wFMCommunicate OK [13:26:12]wFMCommunicate request_size=255 [13:26:12]MH_SAM_APDU [13:26:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3B 00 00 00 F4 03 04 00 F8 70 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 97 2A 01 00 35 04 06 00 [13:26:12]Write to MH i2c: E2 02 01 36 33 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 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3B 00 00 00 F4 03 04 00 F8 70 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 97 2A 01 00 35 04 06 00 00 00 75 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:12]Read from MH i2c: E2 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 03 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 03 00 36 33 00 90 00 DD [13:26:12]RAPDU: 90 00 [13:26:12]wFMCommunicate OK [13:26:12]wFMCommunicate request_size=11 [13:26:12]MH_SAM_APDU [13:26:12]CAPDU: 80 0D 02 02 06 0D 2A 49 42 9E 64 [13:26:12]Write to MH i2c: E2 0E 00 37 33 80 0D 02 02 06 00 0D 2A 49 42 9E 64 00 00 B4 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:13]Read from MH i2c: E2 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 03 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 03 00 37 33 00 90 00 DE [13:26:13]RAPDU: 90 00 [13:26:13]wFMCommunicate OK [13:26:13]wFMCommunicate request_size=4 [13:26:13]MH_SAM_APDU [13:26:13]CAPDU: 80 0D 03 02 [13:26:13]Write to MH i2c: E2 08 00 38 33 80 0D 03 02 00 00 00 00 E6 [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:13]Read from MH i2c: E2 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 0B 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 0B 00 38 33 00 EE 47 76 EE 05 3D 64 C4 90 00 EA [13:26:13]RAPDU: EE 47 76 EE 05 3D 64 C4 90 00 [13:26:13]wFMCommunicate OK [13:26:13]SAM_PROTO_SignData done [13:26:13]FM_MakeSignedData done [13:26:13]CreateOFDProtocolMessage [13:26:13]wFMCommunicate request_size=4 [13:26:13]MH_SAM_APDU [13:26:13]CAPDU: 80 11 00 00 [13:26:13]Write to MH i2c: E2 08 00 39 33 80 11 00 00 00 00 00 00 E6 [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:13]Read from MH i2c: E2 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 17 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 17 00 39 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 39 [13:26:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:26:13]wFMCommunicate OK [13:26:13]CreateOFDProtocolMessage done [13:26:13]OFDSenderStorePacket 76439 [13:26:13]StoreOFDPacket docnum=76439 [13:26:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 CF 9D 08 01 59 B6 5A 03 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 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3B 00 00 00 F4 03 04 00 F8 70 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 97 2A 01 00 35 04 06 00 0D 2A 49 42 9E 64 EE 47 76 EE 05 3D 64 C4 [13:26:13]CheckFolder [13:26:13]dirname=/storage/ofd_packets [13:26:13]CheckFolder done [13:26:13]ProducePacketName [13:26:13]name=ofd_packets/00076439 [13:26:13]NVStorageSaveData ofd_packets/00076439 [13:26:13]File name is /storage/ofd_packets/00076439 [13:26:13]Write 302 bytes [13:26:13]NVStorageSaveData done [13:26:13]OFDSenderStorePacket done [13:26:13]KKMCreateOFDPacket done [13:26:13]NVStorageSaveData kkm_last_timestamp [13:26:13]File name is /storage/kkm_last_timestamp [13:26:13]Write 4 bytes [13:26:13]NVStorageSaveData done [13:26:13]ExternCall_PrintAddStr [13:26:13]wPrintStart [13:26:13]Write to MH i2c: 01 00 00 3A 33 6D [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: 01 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: 01 07 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: 01 07 00 3A 33 00 00 00 00 00 FF 0F 82 [13:26:13]RasterBufferAndPrint [13:26:13]line Счет N : (1)190907 [13:26:13]line ИНН: 02508201610067 [13:26:13]line Контрольно-Кассовый Чек [13:26:13]line ПРОДАЖА [13:26:13]line ТРК (МРК, ГНК) : 41 [13:26:13]line Товар: 2710124130 [13:26:13]line SUPER 92-К-5 [13:26:13]line 7.650 * 65.40 [13:26:13]line = 500.31 [13:26:13]line НДС 12% НСП 1% [13:26:13]line > о реализуемом товаре [13:26:13]line ОКРУГЛЕНИЕ: -0.31 [13:26:13]line ИТОГО: 500.00 [13:26:13]line Внесено: 500.00 [13:26:13]line СДАЧА: 0.00 [13:26:13]line НСП 1% : 4.43 [13:26:13]line НДС 12% : 53.13 [13:26:13]line Наличными: 500.00 [13:26:13]line Безнал.: 0.00 [13:26:13]line Место: АЗС № 106 "Партнер Нефть" [13:26:13]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:26:13]line СНО: Общий режим [13:26:13]line Чек 59 19.04.2024 13:26 [13:26:13]line Смена: 370 ФФД: 1.0 [13:26:13]line ЗНМ: 0300000141 [13:26:13]line РНМ: 0000000000091573 [13:26:13]line Версия ККМ: 001 [13:26:13]line ФМ: 0000000000874652 [13:26:13]line ФД: 76439 [13:26:13]line ФПД: 14475268890212 [13:26:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T132616&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76439&fm=14475268890212&tin=02508201610067®Number=0000000000091573&sum=50000 [13:26:13]OFD Sender: Processing packet 76439 [packets to send 128, broken 127] [13:26:13]ProducePacketName [13:26:13]name=ofd_packets/00076439 [13:26:13]OFD Sender: To server: pG, [13:26:13]CommunicateWithHost lk.salyk.kg:30040 [13:26:13]ConnectInit lk.salyk.kg [13:26:13]written 0, free lines is 4095 [13:26:13]Connected sock=10 [13:26:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 CF 9D 08 01 59 B6 5A 03 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 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3B 00 00 00 F4 03 04 00 F8 70 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 97 2A 01 00 35 04 06 00 0D 2A 49 42 9E 64 EE 47 76 EE 05 3D 64 C4 [13:26:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 36 41 47 00 18 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 97 2A 01 00 F4 03 04 00 84 18 22 66 B6 04 01 00 00 9A 9F 84 8B 9A 02 17 3E [13:26:13]CommunicateWithHost err = 0 [13:26:13]CheckOFDResponse [13:26:13]1017 (14) - 77093643461234 [13:26:13]1041 (16) - 0000000000874652 [13:26:13]1040 (4) - 76439 [13:26:13]1012 (4) - 19.04.2024 07:08 [13:26:13]1206 (1) - 0 [13:26:13]OFD Sender: Remove packet 76439 [13:26:13]ProducePacketName [13:26:13]name=ofd_packets/00076439 [13:26:13]NVStorageDeleteData [13:26:13]Write to MH i2c: 01 00 00 64 33 97 [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: 01 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: 01 07 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: 01 07 00 64 33 00 00 00 00 00 EB 0C 95 [13:26:13]RasterBufferAndPrint [13:26:13]line [13:26:13]line [13:26:13]line [13:26:13]line [13:26:13]line [13:26:13]written 0, free lines is 3313 [13:26:13]MH_Cut [13:26:13]Write to MH i2c: D1 01 00 6B 33 01 70 [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: D1 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: D1 01 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: D1 01 00 6B 33 00 6F [13:26:13]Write to MH i2c: 01 00 00 6C 33 9F [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:14]OFD Sender: No OFD packet to send [13:26:14]*** Cut start [13:26:14]*** Partial cut [13:26:14]*** CUTSNS_PIN = 1 [13:26:14]*** CUTSNS_PIN = 0 [13:26:14]*** Brake cut motor [13:26:15]Read from MH i2c: 01 [13:26:15]MH_I2C_Read... [13:26:15]*** Stop cut motor [13:26:15]*** Cut end [13:26:15]Read from MH i2c: 01 07 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: 01 07 00 6C 33 00 00 00 00 00 FF 0F B4 [13:26:15]process_action close_receipt done [13:26:15]requested_data is exist [13:26:15]produce_requested_data [13:26:15]requested_item fm.sn is exist - process it [13:26:15]wFMCommunicate request_size=4 [13:26:15]MH_SAM_APDU [13:26:15]CAPDU: 80 11 00 00 [13:26:15]Write to MH i2c: E2 08 00 6D 33 80 11 00 00 00 00 00 00 1A [13:26:15]Write i2c OK [13:26:15]MH_I2C_Read... [13:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:15]Read from MH i2c: E2 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 17 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 17 00 6D 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6D [13:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:26:15]wFMCommunicate OK [13:26:15]requested_item fd.num is exist - process it [13:26:15]SAM_PROTO_GetFieldsCounters [13:26:15]wFMCommunicate request_size=4 [13:26:15]MH_SAM_APDU [13:26:15]CAPDU: 80 13 00 00 [13:26:15]Write to MH i2c: E2 08 00 6E 33 80 13 00 00 00 00 00 00 1D [13:26:15]Write i2c OK [13:26:15]MH_I2C_Read... [13:26:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:15]Read from MH i2c: E2 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 62 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 62 00 6E 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 97 2A 01 00 0E 04 04 00 72 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 24 [13:26:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 97 2A 01 00 0E 04 04 00 72 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 [13:26:15]wFMCommunicate OK [13:26:15]SAM_PROTO_GetFieldsCounters done [13:26:15]requested_item shift.num is exist - process it [13:26:15]requested_item shift.opened is exist - process it [13:26:15]req_shift_opened [13:26:15]FM_GetShiftState [13:26:15]SAM_PROTO_GetShiftState [13:26:15]wFMCommunicate request_size=4 [13:26:15]MH_SAM_APDU [13:26:15]CAPDU: 80 13 01 00 [13:26:15]Write to MH i2c: E2 08 00 6F 33 80 13 01 00 00 00 00 00 1F [13:26:15]Write i2c OK [13:26:15]MH_I2C_Read... [13:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:15]Read from MH i2c: E2 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 0E 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 0E 00 6F 33 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 04 [13:26:15]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:26:15]wFMCommunicate OK [13:26:15]SAM_PROTO_GetShiftState done [13:26:15]FM_GetShiftState done [13:26:15]req_shift_opened done [13:26:15]requested_item shift.open_date is exist - process it [13:26:15]req_shift_open_date [13:26:15]req_shift_open_date done [13:26:15]produce_requested_data done [13:26:15]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76439,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [13:26:15]process_action_free close_receipt [13:26:15]json_value_free [13:26:15]json_value_free done [13:26:15]process_json_proto returns [13:26:15]Send response to host [13:26:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76439,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [13:26:15]free response buf [13:26:15]execute_script done [13:26:15]execute_script returns [13:26:15]free content buf [13:26:15]Sock 9.Close socket [13:26:15]Sock 9.Thread stoped [13:26:19]OFD Sender: No OFD packet to send [13:26:21]accept exits with 7 [13:26:21]New connection [13:26:21]New thread 3066486116 created [13:26:21]Thread 3066629476 joined [13:26:21]Waiting for new connection... [13:26:21] Sock 7.Parse request [13:26:21]Sock 7.Check first char [13:26:21]Sock 7.First char is OK [13:26:21]request: POST /json_proto HTTP/1.0 [13:26:21]Method: POST [13:26:21]URL: /json_proto [13:26:21]Method is POST - this is cgi request [13:26:21]url: /json_proto [13:26:21]query_string will be loaded in cgi processing [13:26:21]execute_cgi json_proto POST (null) [13:26:21]execute_cgi path=json_proto method=POST [13:26:21]POST find Content-Length [13:26:21]Host: 172.17.62.5:8080 [13:26:21]Content-Length: 677 [13:26:21]Content-Type: application/json [13:26:21] [13:26:21]POST finish read [13:26:21]Found Content-Length = 677 [13:26:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190908", "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" : 64.40, "quantity" : 4.350, "sum" : 280.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:21]execute_script... [13:26: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)190908", "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" : 64.40, "quantity" : 4.350, "sum" : 280.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:21]POST & json_proto [13:26:21]process_json_proto [13:26:21]json parsed OK: [13:26:21]protocol is kg_v1.0 [13:26:21]action value=close_receipt [13:26:21]process_action close_receipt [13:26:21]cmd_close_receipt [13:26:21]MH_GetDate [13:26:21]Write to MH i2c: F0 00 00 70 33 92 [13:26:21]Write i2c OK [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: F0 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: F0 09 00 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: F0 09 00 70 33 00 03 71 22 66 F4 E9 65 64 3D [13:26:21]GetLastDocTimeStamp 1713533176 [13:26:21]current date 1713533187 [13:26:21]FM_GetShiftState [13:26:21]SAM_PROTO_GetShiftState [13:26:21]wFMCommunicate request_size=4 [13:26:21]MH_SAM_APDU [13:26:21]CAPDU: 80 13 01 00 [13:26:21]Write to MH i2c: E2 08 00 71 33 80 13 01 00 00 00 00 00 21 [13:26:21]Write i2c OK [13:26:21]MH_I2C_Read... [13:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:21]Read from MH i2c: E2 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: E2 0E 00 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: E2 0E 00 71 33 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 06 [13:26:21]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:26:21]wFMCommunicate OK [13:26:21]SAM_PROTO_GetShiftState done [13:26:21]FM_GetShiftState done [13:26:21]opened in 1713486233 [13:26:21]opened+sec_in_day 1713572633 [13:26:21]quantity*price = 28014 [13:26:21]sum+1 = 28015 [13:26:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 280.00 Внесено: 280.00 СДАЧА: 0.00 НСП 1% : 2.48 НДС 12% : 29.75 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 60 19.04.2024 13:26 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76440 ФПД: 229154504277181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T132627&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76440&fm=229154504277181&tin=02508201610067®Number=0000000000091573&sum=28000 [13:26:23]StoreToDocumentArchive [13:26:23]shift 370 fd 76440 [13:26:23]save to /storage/0370/doc_00076440 [13:26:23]save last doc name /storage/0370/doc_00076440 to /storage/kkm_last_doc_name [13:26:23]save OK [13:26:23]Clear old archive folders... [13:26:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:23]tlvbuf is B6E72400 [13:26:23]SAM_PROTO_ClearQueue [13:26:23]wFMCommunicate request_size=4 [13:26:23]MH_SAM_APDU [13:26:23]CAPDU: 80 09 00 00 [13:26:23]Write to MH i2c: E2 08 00 7E 33 80 09 00 00 00 00 00 00 23 [13:26:23]Write i2c OK [13:26:23]MH_I2C_Read... [13:26:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:23]Read from MH i2c: E2 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 03 00 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 03 00 7E 33 00 90 00 25 [13:26:23]RAPDU: 90 00 [13:26:23]wFMCommunicate OK [13:26:23]SAM_PROTO_ClearQueue done [13:26:23]KKMCreateOFDPacket [13:26:23]OFDProtocolAddRootSTLVToBuf [13:26:23]FM_MakeSignedData [13:26:23]FM_MakeSignedData [13:26:23]SAM_PROTO_SignData [13:26:23]wFMCommunicate request_size=4 [13:26:23]MH_SAM_APDU [13:26:23]CAPDU: 80 0D 01 02 [13:26:23]Write to MH i2c: E2 08 00 7F 33 80 0D 01 02 00 00 00 00 2B [13:26:23]Write i2c OK [13:26:23]MH_I2C_Read... [13:26:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:23]Read from MH i2c: E2 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 03 00 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 03 00 7F 33 00 90 00 26 [13:26:23]RAPDU: 90 00 [13:26:23]wFMCommunicate OK [13:26:23]wFMCommunicate request_size=255 [13:26:23]MH_SAM_APDU [13:26: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 FE 10 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 6E 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 03 71 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 98 2A 01 00 35 04 06 00 D0 [13:26:23]Write to MH i2c: E2 02 01 80 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 FE 10 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 6E 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 03 71 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 98 2A 01 00 35 04 06 00 D0 00 00 D9 [13:26:23]Write i2c OK [13:26:23]MH_I2C_Read... [13:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:23]Read from MH i2c: E2 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 03 00 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 03 00 80 33 00 90 00 27 [13:26:23]RAPDU: 90 00 [13:26:23]wFMCommunicate OK [13:26:23]wFMCommunicate request_size=10 [13:26:23]MH_SAM_APDU [13:26:23]CAPDU: 80 0D 02 02 05 6A 30 D3 7C BD [13:26:23]Write to MH i2c: E2 0D 00 81 33 80 0D 02 02 05 00 6A 30 D3 7C BD 00 00 DE [13:26:23]Write i2c OK [13:26:23]MH_I2C_Read... [13:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:23]Read from MH i2c: E2 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 03 00 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 03 00 81 33 00 90 00 28 [13:26:23]RAPDU: 90 00 [13:26:23]wFMCommunicate OK [13:26:23]wFMCommunicate request_size=4 [13:26:23]MH_SAM_APDU [13:26:23]CAPDU: 80 0D 03 02 [13:26:23]Write to MH i2c: E2 08 00 82 33 80 0D 03 02 00 00 00 00 30 [13:26:23]Write i2c OK [13:26:23]MH_I2C_Read... [13:26:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:23]Read from MH i2c: E2 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 0B 00 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 0B 00 82 33 00 F6 E0 3B 66 69 C8 01 89 90 00 63 [13:26:23]RAPDU: F6 E0 3B 66 69 C8 01 89 90 00 [13:26:23]wFMCommunicate OK [13:26:23]SAM_PROTO_SignData done [13:26:23]FM_MakeSignedData done [13:26:23]CreateOFDProtocolMessage [13:26:23]wFMCommunicate request_size=4 [13:26:23]MH_SAM_APDU [13:26:23]CAPDU: 80 11 00 00 [13:26:23]Write to MH i2c: E2 08 00 83 33 80 11 00 00 00 00 00 00 30 [13:26:23]Write i2c OK [13:26:23]MH_I2C_Read... [13:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:23]Read from MH i2c: E2 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 17 00 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 17 00 83 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 83 [13:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:26:23]wFMCommunicate OK [13:26:23]CreateOFDProtocolMessage done [13:26:23]OFDSenderStorePacket 76440 [13:26:23]StoreOFDPacket docnum=76440 [13:26:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 9E 62 07 01 83 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 10 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 6E 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 03 71 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 98 2A 01 00 35 04 06 00 D0 6A 30 D3 7C BD F6 E0 3B 66 69 C8 01 89 [13:26:23]CheckFolder [13:26:23]dirname=/storage/ofd_packets [13:26:23]CheckFolder done [13:26:23]ProducePacketName [13:26:23]name=ofd_packets/00076440 [13:26:23]NVStorageSaveData ofd_packets/00076440 [13:26:23]File name is /storage/ofd_packets/00076440 [13:26:23]Write 301 bytes [13:26:23]NVStorageSaveData done [13:26:23]OFDSenderStorePacket done [13:26:23]KKMCreateOFDPacket done [13:26:23]NVStorageSaveData kkm_last_timestamp [13:26:23]File name is /storage/kkm_last_timestamp [13:26:23]Write 4 bytes [13:26:23]NVStorageSaveData done [13:26:23]ExternCall_PrintAddStr [13:26:23]wPrintStart [13:26:23]Write to MH i2c: 01 00 00 84 33 B7 [13:26:23]Write i2c OK [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: 01 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: 01 07 00 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: 01 07 00 84 33 00 00 00 00 00 FF 0F CC [13:26:23]RasterBufferAndPrint [13:26:23]line Счет N : (1)190908 [13:26:23]line ИНН: 02508201610067 [13:26:23]line Контрольно-Кассовый Чек [13:26:23]line ПРОДАЖА [13:26:23]line ТРК (МРК, ГНК) : 22 [13:26:23]line Товар: 2710124130 [13:26:23]line Аи-92-К-5 [13:26:23]line 4.350 * 64.40 [13:26:23]line = 280.14 [13:26:23]line НДС 12% НСП 1% [13:26:23]line > о реализуемом товаре [13:26:23]line ОКРУГЛЕНИЕ: -0.14 [13:26:23]line ИТОГО: 280.00 [13:26:23]line Внесено: 280.00 [13:26:23]line СДАЧА: 0.00 [13:26:23]line НСП 1% : 2.48 [13:26:23]line НДС 12% : 29.75 [13:26:23]line Наличными: 280.00 [13:26:23]line Безнал.: 0.00 [13:26:23]line Место: АЗС № 106 "Партнер Нефть" [13:26:23]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:26:23]line СНО: Общий режим [13:26:23]line Чек 60 19.04.2024 13:26 [13:26:23]line Смена: 370 ФФД: 1.0 [13:26:23]line ЗНМ: 0300000141 [13:26:23]line РНМ: 0000000000091573 [13:26:23]line Версия ККМ: 001 [13:26:23]line ФМ: 0000000000874652 [13:26:23]line ФД: 76440 [13:26:23]line ФПД: 229154504277181 [13:26:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T132627&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76440&fm=229154504277181&tin=02508201610067®Number=0000000000091573&sum=28000 [13:26:23]written 0, free lines is 4095 [13:26:23]OFD Sender: Processing packet 76440 [packets to send 128, broken 127] [13:26:23]ProducePacketName [13:26:23]name=ofd_packets/00076440 [13:26:23]OFD Sender: To server: pG, [13:26:23]CommunicateWithHost lk.salyk.kg:30040 [13:26:23]ConnectInit lk.salyk.kg [13:26:23]Connected sock=10 [13:26:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 9E 62 07 01 83 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 10 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 6E 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 03 71 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 98 2A 01 00 35 04 06 00 D0 6A 30 D3 7C BD F6 E0 3B 66 69 C8 01 89 [13:26:24]Write to MH i2c: 01 00 00 AE 33 E1 [13:26:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 43 D5 47 00 D6 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 34 36 35 32 10 04 04 00 98 2A 01 00 F4 03 04 00 8E 18 22 66 B6 04 01 00 00 BA AB 07 35 0E 8C 47 52 [13:26:24]CommunicateWithHost err = 0 [13:26:24]CheckOFDResponse [13:26:24]1017 (14) - 77093643461234 [13:26:24]1041 (16) - 0000000000874652 [13:26:24]1040 (4) - 76440 [13:26:24]1012 (4) - 19.04.2024 07:09 [13:26:24]1206 (1) - 0 [13:26:24]OFD Sender: Remove packet 76440 [13:26:24]ProducePacketName [13:26:24]name=ofd_packets/00076440 [13:26:24]NVStorageDeleteData [13:26:24]Write i2c OK [13:26:24]MH_I2C_Read... [13:26:24]Read from MH i2c: 01 [13:26:24]MH_I2C_Read... [13:26:24]Read from MH i2c: 01 07 00 [13:26:24]MH_I2C_Read... [13:26:24]Read from MH i2c: 01 07 00 AE 33 00 00 00 00 00 ED 0C E1 [13:26:24]RasterBufferAndPrint [13:26:24]line [13:26:24]line [13:26:24]line [13:26:24]line [13:26:24]line [13:26:24]written 0, free lines is 3357 [13:26:24]MH_Cut [13:26:24]Write to MH i2c: D1 01 00 B5 33 01 BA [13:26:24]Write i2c OK [13:26:24]MH_I2C_Read... [13:26:24]Read from MH i2c: D1 [13:26:24]MH_I2C_Read... [13:26:24]Read from MH i2c: D1 01 00 [13:26:24]MH_I2C_Read... [13:26:24]Read from MH i2c: D1 01 00 B5 33 00 B9 [13:26:24]Write to MH i2c: 01 00 00 B6 33 E9 [13:26:24]Write i2c OK [13:26:24]MH_I2C_Read... [13:26:24]OFD Sender: No OFD packet to send [13:26:24]*** Cut start [13:26:24]*** Partial cut [13:26:24]*** CUTSNS_PIN = 1 [13:26:24]*** CUTSNS_PIN = 0 [13:26:25]*** Brake cut motor [13:26:25]Read from MH i2c: 01 [13:26:25]MH_I2C_Read... [13:26:25]*** Stop cut motor [13:26:25]*** Cut end [13:26:25]Read from MH i2c: 01 07 00 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: 01 07 00 B6 33 00 00 00 00 00 FF 0F FE [13:26:25]process_action close_receipt done [13:26:25]requested_data is exist [13:26:25]produce_requested_data [13:26:25]requested_item fm.sn is exist - process it [13:26:25]wFMCommunicate request_size=4 [13:26:25]MH_SAM_APDU [13:26:25]CAPDU: 80 11 00 00 [13:26:25]Write to MH i2c: E2 08 00 B7 33 80 11 00 00 00 00 00 00 64 [13:26:25]Write i2c OK [13:26:25]MH_I2C_Read... [13:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:25]Read from MH i2c: E2 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 17 00 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 17 00 B7 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B7 [13:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:26:25]wFMCommunicate OK [13:26:25]requested_item fd.num is exist - process it [13:26:25]SAM_PROTO_GetFieldsCounters [13:26:25]wFMCommunicate request_size=4 [13:26:25]MH_SAM_APDU [13:26:25]CAPDU: 80 13 00 00 [13:26:25]Write to MH i2c: E2 08 00 B8 33 80 13 00 00 00 00 00 00 67 [13:26:25]Write i2c OK [13:26:25]MH_I2C_Read... [13:26:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:25]Read from MH i2c: E2 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 62 00 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 62 00 B8 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 98 2A 01 00 0E 04 04 00 72 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 72 [13:26:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 98 2A 01 00 0E 04 04 00 72 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 [13:26:25]wFMCommunicate OK [13:26:25]SAM_PROTO_GetFieldsCounters done [13:26:25]requested_item shift.num is exist - process it [13:26:25]requested_item shift.opened is exist - process it [13:26:25]req_shift_opened [13:26:25]FM_GetShiftState [13:26:25]SAM_PROTO_GetShiftState [13:26:25]wFMCommunicate request_size=4 [13:26:25]MH_SAM_APDU [13:26:25]CAPDU: 80 13 01 00 [13:26:25]Write to MH i2c: E2 08 00 B9 33 80 13 01 00 00 00 00 00 69 [13:26:25]Write i2c OK [13:26:25]MH_I2C_Read... [13:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:25]Read from MH i2c: E2 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 0E 00 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 0E 00 B9 33 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 4E [13:26:25]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:26:25]wFMCommunicate OK [13:26:25]SAM_PROTO_GetShiftState done [13:26:25]FM_GetShiftState done [13:26:25]req_shift_opened done [13:26:25]requested_item shift.open_date is exist - process it [13:26:25]req_shift_open_date [13:26:25]req_shift_open_date done [13:26:25]produce_requested_data done [13:26:25]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76440,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [13:26:25]process_action_free close_receipt [13:26:25]json_value_free [13:26:25]json_value_free done [13:26:25]process_json_proto returns [13:26:25]Send response to host [13:26:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76440,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [13:26:25]free response buf [13:26:25]execute_script done [13:26:25]execute_script returns [13:26:25]free content buf [13:26:25]Sock 7.Close socket [13:26:25]Sock 7.Thread stoped [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [13:28:44]OFD Sender: No OFD packet to send [13:28:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:09]OFD Sender: No OFD packet to send [13:30:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:44]OFD Sender: No OFD packet to send [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:51]accept exits with 9 [13:33:51]New connection [13:33:51]New thread 3066629476 created [13:33:51]Thread 3066486116 joined [13:33:51]Waiting for new connection... [13:33:51] Sock 9.Parse request [13:33:51]Sock 9.Check first char [13:33:51]Sock 9.First char is OK [13:33:51]request: POST /json_proto HTTP/1.0 [13:33:51]Method: POST [13:33:51]URL: /json_proto [13:33:51]Method is POST - this is cgi request [13:33:51]url: /json_proto [13:33:51]query_string will be loaded in cgi processing [13:33:51]execute_cgi json_proto POST (null) [13:33:51]execute_cgi path=json_proto method=POST [13:33:51]POST find Content-Length [13:33:51]Host: 172.17.62.5:8080 [13:33:51]Content-Length: 677 [13:33:51]Content-Type: application/json [13:33:51] [13:33:51]POST finish read [13:33:51]Found Content-Length = 677 [13:33:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190909", "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" : 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:33:51]execute_script... [13: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)190909", "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" : 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:33:51]POST & json_proto [13:33:51]process_json_proto [13:33:51]json parsed OK: [13:33:51]protocol is kg_v1.0 [13:33:51]action value=close_receipt [13:33:51]process_action close_receipt [13:33:51]cmd_close_receipt [13:33:51]MH_GetDate [13:33:51]Write to MH i2c: F0 00 00 BA 33 DC [13:33:51]Write i2c OK [13:33:51]MH_I2C_Read... [13:33:51]Read from MH i2c: F0 [13:33:51]MH_I2C_Read... [13:33:51]Read from MH i2c: F0 09 00 [13:33:51]MH_I2C_Read... [13:33:51]Read from MH i2c: F0 09 00 BA 33 00 C4 72 22 66 F4 E9 65 64 49 [13:33:51]GetLastDocTimeStamp 1713533187 [13:33:51]current date 1713533636 [13:33:51]FM_GetShiftState [13:33:51]SAM_PROTO_GetShiftState [13:33:51]wFMCommunicate request_size=4 [13:33:51]MH_SAM_APDU [13:33:51]CAPDU: 80 13 01 00 [13:33:51]Write to MH i2c: E2 08 00 BB 33 80 13 01 00 00 00 00 00 6B [13:33:51]Write i2c OK [13:33:51]MH_I2C_Read... [13:33:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:51]Read from MH i2c: E2 [13:33:51]MH_I2C_Read... [13:33:51]Read from MH i2c: E2 0E 00 [13:33:51]MH_I2C_Read... [13:33:51]Read from MH i2c: E2 0E 00 BB 33 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 50 [13:33:51]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:33:51]wFMCommunicate OK [13:33:51]SAM_PROTO_GetShiftState done [13:33:51]FM_GetShiftState done [13:33:51]opened in 1713486233 [13:33:51]opened+sec_in_day 1713572633 [13:33:51]quantity*price = 50009 [13:33:51]sum+1 = 50010 [13:33:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 61 19.04.2024 13:33 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76441 ФПД: 140546509535277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T133356&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76441&fm=140546509535277&tin=02508201610067®Number=0000000000091573&sum=50000 [13:33:52]StoreToDocumentArchive [13:33:52]shift 370 fd 76441 [13:33:52]save to /storage/0370/doc_00076441 [13:33:52]save last doc name /storage/0370/doc_00076441 to /storage/kkm_last_doc_name [13:33:52]save OK [13:33:52]Clear old archive folders... [13:33:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:33:52]tlvbuf is B6F06A30 [13:33:52]SAM_PROTO_ClearQueue [13:33:52]wFMCommunicate request_size=4 [13:33:52]MH_SAM_APDU [13:33:52]CAPDU: 80 09 00 00 [13:33:52]Write to MH i2c: E2 08 00 C8 33 80 09 00 00 00 00 00 00 6D [13:33:52]Write i2c OK [13:33:52]MH_I2C_Read... [13:33:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:52]Read from MH i2c: E2 [13:33:52]MH_I2C_Read... [13:33:52]Read from MH i2c: E2 03 00 [13:33:52]MH_I2C_Read... [13:33:52]Read from MH i2c: E2 03 00 C8 33 00 90 00 6F [13:33:52]RAPDU: 90 00 [13:33:52]wFMCommunicate OK [13:33:52]SAM_PROTO_ClearQueue done [13:33:52]KKMCreateOFDPacket [13:33:52]OFDProtocolAddRootSTLVToBuf [13:33:52]FM_MakeSignedData [13:33:52]FM_MakeSignedData [13:33:52]SAM_PROTO_SignData [13:33:52]wFMCommunicate request_size=4 [13:33:52]MH_SAM_APDU [13:33:52]CAPDU: 80 0D 01 02 [13:33:52]Write to MH i2c: E2 08 00 C9 33 80 0D 01 02 00 00 00 00 75 [13:33:52]Write i2c OK [13:33:52]MH_I2C_Read... [13:33:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:52]Read from MH i2c: E2 [13:33:52]MH_I2C_Read... [13:33:52]Read from MH i2c: E2 03 00 [13:33:52]MH_I2C_Read... [13:33:52]Read from MH i2c: E2 03 00 C9 33 00 90 00 70 [13:33:52]RAPDU: 90 00 [13:33:52]wFMCommunicate OK [13:33:52]wFMCommunicate request_size=255 [13:33:52]MH_SAM_APDU [13:33:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 3D 00 00 00 F4 03 04 00 C4 72 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 99 2A 01 00 35 04 06 00 7F [13:33:52]Write to MH i2c: E2 02 01 CA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 3D 00 00 00 F4 03 04 00 C4 72 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 99 2A 01 00 35 04 06 00 7F 00 00 81 [13:33:52]Write i2c OK [13:33:52]MH_I2C_Read... [13:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:52]Read from MH i2c: E2 [13:33:52]MH_I2C_Read... [13:33:52]Read from MH i2c: E2 03 00 [13:33:52]MH_I2C_Read... [13:33:52]Read from MH i2c: E2 03 00 CA 33 00 90 00 71 [13:33:52]RAPDU: 90 00 [13:33:52]wFMCommunicate OK [13:33:52]wFMCommunicate request_size=10 [13:33:52]MH_SAM_APDU [13:33:52]CAPDU: 80 0D 02 02 05 D3 88 C6 78 2D [13:33:52]Write to MH i2c: E2 0D 00 CB 33 80 0D 02 02 05 00 D3 88 C6 78 2D 00 00 48 [13:33:52]Write i2c OK [13:33:52]MH_I2C_Read... [13:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:52]Read from MH i2c: E2 [13:33:52]MH_I2C_Read... [13:33:52]Read from MH i2c: E2 03 00 [13:33:52]MH_I2C_Read... [13:33:52]Read from MH i2c: E2 03 00 CB 33 00 90 00 72 [13:33:52]RAPDU: 90 00 [13:33:52]wFMCommunicate OK [13:33:52]wFMCommunicate request_size=4 [13:33:52]MH_SAM_APDU [13:33:52]CAPDU: 80 0D 03 02 [13:33:52]Write to MH i2c: E2 08 00 CC 33 80 0D 03 02 00 00 00 00 7A [13:33:52]Write i2c OK [13:33:52]MH_I2C_Read... [13:33:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:52]Read from MH i2c: E2 [13:33:52]MH_I2C_Read... [13:33:52]Read from MH i2c: E2 0B 00 [13:33:52]MH_I2C_Read... [13:33:52]Read from MH i2c: E2 0B 00 CC 33 00 B8 33 6B E4 CD 84 9E B5 90 00 59 [13:33:52]RAPDU: B8 33 6B E4 CD 84 9E B5 90 00 [13:33:52]wFMCommunicate OK [13:33:52]SAM_PROTO_SignData done [13:33:52]FM_MakeSignedData done [13:33:52]CreateOFDProtocolMessage [13:33:52]wFMCommunicate request_size=4 [13:33:52]MH_SAM_APDU [13:33:52]CAPDU: 80 11 00 00 [13:33:52]Write to MH i2c: E2 08 00 CD 33 80 11 00 00 00 00 00 00 7A [13:33:52]Write i2c OK [13:33:52]MH_I2C_Read... [13:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:52]Read from MH i2c: E2 [13:33:52]MH_I2C_Read... [13:33:52]Read from MH i2c: E2 17 00 [13:33:52]MH_I2C_Read... [13:33:52]Read from MH i2c: E2 17 00 CD 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CD [13:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:33:52]wFMCommunicate OK [13:33:52]CreateOFDProtocolMessage done [13:33:52]OFDSenderStorePacket 76441 [13:33:52]StoreOFDPacket docnum=76441 [13:33:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 27 DB 07 01 E2 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 3D 00 00 00 F4 03 04 00 C4 72 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 99 2A 01 00 35 04 06 00 7F D3 88 C6 78 2D B8 33 6B E4 CD 84 9E B5 [13:33:52]CheckFolder [13:33:52]dirname=/storage/ofd_packets [13:33:52]CheckFolder done [13:33:52]ProducePacketName [13:33:52]name=ofd_packets/00076441 [13:33:52]NVStorageSaveData ofd_packets/00076441 [13:33:52]File name is /storage/ofd_packets/00076441 [13:33:52]Write 301 bytes [13:33:52]NVStorageSaveData done [13:33:52]OFDSenderStorePacket done [13:33:52]KKMCreateOFDPacket done [13:33:52]NVStorageSaveData kkm_last_timestamp [13:33:52]File name is /storage/kkm_last_timestamp [13:33:52]Write 4 bytes [13:33:52]NVStorageSaveData done [13:33:52]ExternCall_PrintAddStr [13:33:52]wPrintStart [13:33:52]Write to MH i2c: 01 00 00 CE 33 01 [13:33:52]Write i2c OK [13:33:52]MH_I2C_Read... [13:33:52]Read from MH i2c: 01 [13:33:52]MH_I2C_Read... [13:33:52]Read from MH i2c: 01 07 00 [13:33:52]MH_I2C_Read... [13:33:52]Read from MH i2c: 01 07 00 CE 33 00 00 00 00 00 FF 0F 16 [13:33:52]RasterBufferAndPrint [13:33:52]line Счет N : (1)190909 [13:33:52]line ИНН: 02508201610067 [13:33:52]line Контрольно-Кассовый Чек [13:33:52]line ПРОДАЖА [13:33:52]line ТРК (МРК, ГНК) : 32 [13:33:52]line Товар: 2710124500 [13:33:52]line Аи-95-К-5 [13:33:52]line 6.860 * 72.90 [13:33:52]line = 500.09 [13:33:52]line НДС 12% НСП 1% [13:33:52]line > о реализуемом товаре [13:33:52]line ОКРУГЛЕНИЕ: -0.09 [13:33:52]line ИТОГО: 500.00 [13:33:52]line Внесено: 500.00 [13:33:52]line СДАЧА: 0.00 [13:33:52]line НСП 1% : 4.43 [13:33:52]line НДС 12% : 53.11 [13:33:52]line Наличными: 500.00 [13:33:52]line Безнал.: 0.00 [13:33:52]line Место: АЗС № 106 "Партнер Нефть" [13:33:52]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:33:52]line СНО: Общий режим [13:33:52]line Чек 61 19.04.2024 13:33 [13:33:52]line Смена: 370 ФФД: 1.0 [13:33:52]line ЗНМ: 0300000141 [13:33:52]line РНМ: 0000000000091573 [13:33:52]line Версия ККМ: 001 [13:33:52]line ФМ: 0000000000874652 [13:33:52]line ФД: 76441 [13:33:52]line ФПД: 140546509535277 [13:33:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T133356&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76441&fm=140546509535277&tin=02508201610067®Number=0000000000091573&sum=50000 [13:33:53]OFD Sender: Processing packet 76441 [packets to send 128, broken 127] [13:33:53]ProducePacketName [13:33:53]name=ofd_packets/00076441 [13:33:53]OFD Sender: To server: pG, [13:33:53]CommunicateWithHost lk.salyk.kg:30040 [13:33:53]ConnectInit lk.salyk.kg [13:33:53]written 0, free lines is 4095 [13:33:53]Connected sock=10 [13: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 34 36 35 32 0F 01 00 00 27 DB 07 01 E2 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 3D 00 00 00 F4 03 04 00 C4 72 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 99 2A 01 00 35 04 06 00 7F D3 88 C6 78 2D B8 33 6B E4 CD 84 9E B5 [13:33:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A0 B2 47 00 A6 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 99 2A 01 00 F4 03 04 00 50 1A 22 66 B6 04 01 00 00 11 85 6C 06 D9 18 59 97 [13:33:53]CommunicateWithHost err = 0 [13:33:53]CheckOFDResponse [13:33:53]1017 (14) - 77093643461234 [13:33:53]1041 (16) - 0000000000874652 [13:33:53]1040 (4) - 76441 [13:33:53]1012 (4) - 19.04.2024 07:16 [13:33:53]1206 (1) - 0 [13:33:53]OFD Sender: Remove packet 76441 [13:33:53]ProducePacketName [13:33:53]name=ofd_packets/00076441 [13:33:53]NVStorageDeleteData [13:33:53]Write to MH i2c: 01 00 00 F8 33 2B [13:33:53]Write i2c OK [13:33:53]MH_I2C_Read... [13:33:53]Read from MH i2c: 01 [13:33:53]MH_I2C_Read... [13:33:53]Read from MH i2c: 01 07 00 [13:33:53]MH_I2C_Read... [13:33:53]Read from MH i2c: 01 07 00 F8 33 00 00 00 00 00 E5 0C 23 [13:33:53]RasterBufferAndPrint [13:33:53]line [13:33:53]line [13:33:53]line [13:33:53]line [13:33:53]line [13:33:53]written 0, free lines is 3307 [13:33:53]MH_Cut [13:33:53]Write to MH i2c: D1 01 00 FF 33 01 04 [13:33:53]Write i2c OK [13:33:53]MH_I2C_Read... [13:33:53]Read from MH i2c: D1 [13:33:53]MH_I2C_Read... [13:33:53]Read from MH i2c: D1 01 00 [13:33:53]MH_I2C_Read... [13:33:53]Read from MH i2c: D1 01 00 FF 33 00 03 [13:33:53]Write to MH i2c: 01 00 00 00 34 34 [13:33:53]Write i2c OK [13:33:53]MH_I2C_Read... [13:33:53]OFD Sender: No OFD packet to send [13:33:54]*** Cut start [13:33:54]*** Partial cut [13:33:54]*** CUTSNS_PIN = 1 [13:33:54]*** CUTSNS_PIN = 0 [13:33:54]*** Brake cut motor [13:33:54]Read from MH i2c: 01 [13:33:54]MH_I2C_Read... [13:33:54]*** Stop cut motor [13:33:54]*** Cut end [13:33:54]Read from MH i2c: 01 07 00 [13:33:54]MH_I2C_Read... [13:33:54]Read from MH i2c: 01 07 00 00 34 00 00 00 00 00 FF 0F 49 [13:33:54]process_action close_receipt done [13:33:54]requested_data is exist [13:33:54]produce_requested_data [13:33:54]requested_item fm.sn is exist - process it [13:33:54]wFMCommunicate request_size=4 [13:33:54]MH_SAM_APDU [13:33:54]CAPDU: 80 11 00 00 [13:33:54]Write to MH i2c: E2 08 00 01 34 80 11 00 00 00 00 00 00 AF [13:33:54]Write i2c OK [13:33:54]MH_I2C_Read... [13:33:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:54]Read from MH i2c: E2 [13:33:54]MH_I2C_Read... [13:33:54]Read from MH i2c: E2 17 00 [13:33:54]MH_I2C_Read... [13:33:54]Read from MH i2c: E2 17 00 01 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 02 [13:33:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:33:54]wFMCommunicate OK [13:33:54]requested_item fd.num is exist - process it [13:33:54]SAM_PROTO_GetFieldsCounters [13:33:54]wFMCommunicate request_size=4 [13:33:54]MH_SAM_APDU [13:33:54]CAPDU: 80 13 00 00 [13:33:54]Write to MH i2c: E2 08 00 02 34 80 13 00 00 00 00 00 00 B2 [13:33:54]Write i2c OK [13:33:54]MH_I2C_Read... [13:33:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:55]Read from MH i2c: E2 [13:33:55]MH_I2C_Read... [13:33:55]Read from MH i2c: E2 62 00 [13:33:55]MH_I2C_Read... [13:33:55]Read from MH i2c: E2 62 00 02 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 99 2A 01 00 0E 04 04 00 72 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 C1 [13:33:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 99 2A 01 00 0E 04 04 00 72 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 [13:33:55]wFMCommunicate OK [13:33:55]SAM_PROTO_GetFieldsCounters done [13:33:55]requested_item shift.num is exist - process it [13:33:55]requested_item shift.opened is exist - process it [13:33:55]req_shift_opened [13:33:55]FM_GetShiftState [13:33:55]SAM_PROTO_GetShiftState [13:33:55]wFMCommunicate request_size=4 [13:33:55]MH_SAM_APDU [13:33:55]CAPDU: 80 13 01 00 [13:33:55]Write to MH i2c: E2 08 00 03 34 80 13 01 00 00 00 00 00 B4 [13:33:55]Write i2c OK [13:33:55]MH_I2C_Read... [13:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:55]Read from MH i2c: E2 [13:33:55]MH_I2C_Read... [13:33:55]Read from MH i2c: E2 0E 00 [13:33:55]MH_I2C_Read... [13:33:55]Read from MH i2c: E2 0E 00 03 34 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 99 [13:33:55]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:33:55]wFMCommunicate OK [13:33:55]SAM_PROTO_GetShiftState done [13:33:55]FM_GetShiftState done [13:33:55]req_shift_opened done [13:33:55]requested_item shift.open_date is exist - process it [13:33:55]req_shift_open_date [13:33:55]req_shift_open_date done [13:33:55]produce_requested_data done [13:33:55]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76441,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [13:33:55]process_action_free close_receipt [13:33:55]json_value_free [13:33:55]json_value_free done [13:33:55]process_json_proto returns [13:33:55]Send response to host [13:33:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76441,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [13:33:55]free response buf [13:33:55]execute_script done [13:33:55]execute_script returns [13:33:55]free content buf [13:33:55]Sock 9.Close socket [13:33:55]Sock 9.Thread stoped [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:10]accept exits with 7 [13:36:10]New connection [13:36:10]New thread 3066486116 created [13:36:10]Thread 3066629476 joined [13:36:10]Waiting for new connection... [13:36:10] Sock 7.Parse request [13:36:10]Sock 7.Check first char [13:36:10]Sock 7.First char is OK [13:36:10]request: POST /json_proto HTTP/1.0 [13:36:10]Method: POST [13:36:10]URL: /json_proto [13:36:10]Method is POST - this is cgi request [13:36:10]url: /json_proto [13:36:10]query_string will be loaded in cgi processing [13:36:10]execute_cgi json_proto POST (null) [13:36:10]execute_cgi path=json_proto method=POST [13:36:10]POST find Content-Length [13:36:10]Host: 172.17.62.5:8080 [13:36:10]Content-Length: 670 [13:36:10]Content-Type: application/json [13:36:10] [13:36:10]POST finish read [13:36:10]Found Content-Length = 670 [13:36:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 5.510, "sum" : 360.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:10]execute_script... [13:36: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)190910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 5.510, "sum" : 360.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:10]POST & json_proto [13:36:10]process_json_proto [13:36:10]json parsed OK: [13:36:10]protocol is kg_v1.0 [13:36:10]action value=close_receipt [13:36:10]process_action close_receipt [13:36:10]cmd_close_receipt [13:36:10]MH_GetDate [13:36:10]Write to MH i2c: F0 00 00 04 34 27 [13:36:10]Write i2c OK [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: F0 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: F0 09 00 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: F0 09 00 04 34 00 4F 73 22 66 F4 E9 65 64 20 [13:36:10]GetLastDocTimeStamp 1713533636 [13:36:10]current date 1713533775 [13:36:10]FM_GetShiftState [13:36:10]SAM_PROTO_GetShiftState [13:36:10]wFMCommunicate request_size=4 [13:36:10]MH_SAM_APDU [13:36:10]CAPDU: 80 13 01 00 [13:36:10]Write to MH i2c: E2 08 00 05 34 80 13 01 00 00 00 00 00 B6 [13:36:10]Write i2c OK [13:36:10]MH_I2C_Read... [13:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:10]Read from MH i2c: E2 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: E2 0E 00 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: E2 0E 00 05 34 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 9B [13:36:10]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:36:10]wFMCommunicate OK [13:36:10]SAM_PROTO_GetShiftState done [13:36:10]FM_GetShiftState done [13:36:10]opened in 1713486233 [13:36:10]opened+sec_in_day 1713572633 [13:36:10]quantity*price = 36035 [13:36:10]sum+1 = 36036 [13:36:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.27 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 62 19.04.2024 13:36 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76442 ФПД: 189400390114798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T133615&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76442&fm=189400390114798&tin=02508201610067®Number=0000000000091573&sum=36000 [13:36:11]StoreToDocumentArchive [13:36:11]shift 370 fd 76442 [13:36:11]save to /storage/0370/doc_00076442 [13:36:11]save last doc name /storage/0370/doc_00076442 to /storage/kkm_last_doc_name [13:36:11]save OK [13:36:11]Clear old archive folders... [13:36:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:36:11]tlvbuf is 009989D0 [13:36:11]SAM_PROTO_ClearQueue [13:36:11]wFMCommunicate request_size=4 [13:36:11]MH_SAM_APDU [13:36:11]CAPDU: 80 09 00 00 [13:36:11]Write to MH i2c: E2 08 00 12 34 80 09 00 00 00 00 00 00 B8 [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:11]Read from MH i2c: E2 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 03 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 03 00 12 34 00 90 00 BA [13:36:11]RAPDU: 90 00 [13:36:11]wFMCommunicate OK [13:36:11]SAM_PROTO_ClearQueue done [13:36:11]KKMCreateOFDPacket [13:36:11]OFDProtocolAddRootSTLVToBuf [13:36:11]FM_MakeSignedData [13:36:11]FM_MakeSignedData [13:36:11]SAM_PROTO_SignData [13:36:11]wFMCommunicate request_size=4 [13:36:11]MH_SAM_APDU [13:36:11]CAPDU: 80 0D 01 02 [13:36:11]Write to MH i2c: E2 08 00 13 34 80 0D 01 02 00 00 00 00 C0 [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:11]Read from MH i2c: E2 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 03 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 03 00 13 34 00 90 00 BB [13:36:11]RAPDU: 90 00 [13:36:11]wFMCommunicate OK [13:36:11]wFMCommunicate request_size=255 [13:36:11]MH_SAM_APDU [13:36:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 15 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 C3 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 4F 73 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9A 2A 01 00 35 04 06 00 [13:36:11]Write to MH i2c: E2 02 01 14 34 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 C3 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 4F 73 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9A 2A 01 00 35 04 06 00 00 00 4F [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:11]Read from MH i2c: E2 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 03 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 03 00 14 34 00 90 00 BC [13:36:11]RAPDU: 90 00 [13:36:11]wFMCommunicate OK [13:36:11]wFMCommunicate request_size=11 [13:36:11]MH_SAM_APDU [13:36:11]CAPDU: 80 0D 02 02 06 AC 42 36 F9 1D EE [13:36:11]Write to MH i2c: E2 0E 00 15 34 80 0D 02 02 06 00 AC 42 36 F9 1D EE 00 00 F7 [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:11]Read from MH i2c: E2 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 03 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 03 00 15 34 00 90 00 BD [13:36:11]RAPDU: 90 00 [13:36:11]wFMCommunicate OK [13:36:11]wFMCommunicate request_size=4 [13:36:11]MH_SAM_APDU [13:36:11]CAPDU: 80 0D 03 02 [13:36:11]Write to MH i2c: E2 08 00 16 34 80 0D 03 02 00 00 00 00 C5 [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:11]Read from MH i2c: E2 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 0B 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 0B 00 16 34 00 BB FB 7C 89 0C 68 FC 1D 90 00 0E [13:36:11]RAPDU: BB FB 7C 89 0C 68 FC 1D 90 00 [13:36:11]wFMCommunicate OK [13:36:11]SAM_PROTO_SignData done [13:36:11]FM_MakeSignedData done [13:36:11]CreateOFDProtocolMessage [13:36:11]wFMCommunicate request_size=4 [13:36:11]MH_SAM_APDU [13:36:11]CAPDU: 80 11 00 00 [13:36:11]Write to MH i2c: E2 08 00 17 34 80 11 00 00 00 00 00 00 C5 [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:11]Read from MH i2c: E2 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 17 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 17 00 17 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 18 [13:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:36:11]wFMCommunicate OK [13:36:11]CreateOFDProtocolMessage done [13:36:11]OFDSenderStorePacket 76442 [13:36:11]StoreOFDPacket docnum=76442 [13:36:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 05 9B 08 01 C6 5A 5A 03 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 15 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 C3 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 4F 73 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9A 2A 01 00 35 04 06 00 AC 42 36 F9 1D EE BB FB 7C 89 0C 68 FC 1D [13:36:11]CheckFolder [13:36:11]dirname=/storage/ofd_packets [13:36:11]CheckFolder done [13:36:11]ProducePacketName [13:36:11]name=ofd_packets/00076442 [13:36:11]NVStorageSaveData ofd_packets/00076442 [13:36:11]File name is /storage/ofd_packets/00076442 [13:36:11]Write 302 bytes [13:36:11]NVStorageSaveData done [13:36:11]OFDSenderStorePacket done [13:36:11]KKMCreateOFDPacket done [13:36:11]NVStorageSaveData kkm_last_timestamp [13:36:11]File name is /storage/kkm_last_timestamp [13:36:11]Write 4 bytes [13:36:11]NVStorageSaveData done [13:36:12]ExternCall_PrintAddStr [13:36:12]wPrintStart [13:36:12]Write to MH i2c: 01 00 00 18 34 4C [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: 01 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: 01 07 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: 01 07 00 18 34 00 00 00 00 00 FF 0F 61 [13:36:12]RasterBufferAndPrint [13:36:12]line Счет N : (1)190910 [13:36:12]line ИНН: 02508201610067 [13:36:12]line Контрольно-Кассовый Чек [13:36:12]line ПРОДАЖА [13:36:12]line ТРК (МРК, ГНК) : 31 [13:36:12]line Товар: 2710124130 [13:36:12]line SUPER 92-К-5 [13:36:12]line 5.510 * 65.40 [13:36:12]line = 360.35 [13:36:12]line НДС 12% НСП 1% [13:36:12]line > о реализуемом товаре [13:36:12]line ОКРУГЛЕНИЕ: -0.35 [13:36:12]line ИТОГО: 360.00 [13:36:12]line Внесено: 360.00 [13:36:12]line СДАЧА: 0.00 [13:36:12]line НСП 1% : 3.19 [13:36:12]line НДС 12% : 38.27 [13:36:12]line Наличными: 360.00 [13:36:12]line Безнал.: 0.00 [13:36:12]line Место: АЗС № 106 "Партнер Нефть" [13:36:12]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:36:12]line СНО: Общий режим [13:36:12]line Чек 62 19.04.2024 13:36 [13:36:12]line Смена: 370 ФФД: 1.0 [13:36:12]line ЗНМ: 0300000141 [13:36:12]line РНМ: 0000000000091573 [13:36:12]line Версия ККМ: 001 [13:36:12]line ФМ: 0000000000874652 [13:36:12]line ФД: 76442 [13:36:12]line ФПД: 189400390114798 [13:36:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T133615&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76442&fm=189400390114798&tin=02508201610067®Number=0000000000091573&sum=36000 [13:36:12]written 0, free lines is 4095 [13:36:12]OFD Sender: Processing packet 76442 [packets to send 128, broken 127] [13:36:12]ProducePacketName [13:36:12]name=ofd_packets/00076442 [13:36:12]OFD Sender: To server: pG, [13:36:12]CommunicateWithHost lk.salyk.kg:30040 [13:36:12]ConnectInit lk.salyk.kg [13:36:12]Connected sock=10 [13:36:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 05 9B 08 01 C6 5A 5A 03 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 15 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 C3 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 4F 73 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9A 2A 01 00 35 04 06 00 AC 42 36 F9 1D EE BB FB 7C 89 0C 68 FC 1D [13:36:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 31 25 47 00 C1 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9A 2A 01 00 F4 03 04 00 DB 1A 22 66 B6 04 01 00 00 7B 9B 1A DD FD ED 8A 41 [13:36:12]CommunicateWithHost err = 0 [13:36:12]CheckOFDResponse [13:36:12]1017 (14) - 77093643461234 [13:36:12]1041 (16) - 0000000000874652 [13:36:12]1040 (4) - 76442 [13:36:12]1012 (4) - 19.04.2024 07:18 [13:36:12]1206 (1) - 0 [13:36:12]OFD Sender: Remove packet 76442 [13:36:12]ProducePacketName [13:36:12]name=ofd_packets/00076442 [13:36:12]NVStorageDeleteData [13:36:12]Write to MH i2c: 01 00 00 42 34 76 [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: 01 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: 01 07 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: 01 07 00 42 34 00 00 00 00 00 F8 0C 81 [13:36:12]RasterBufferAndPrint [13:36:12]line [13:36:12]line [13:36:12]line [13:36:12]line [13:36:12]line [13:36:12]written 0, free lines is 3327 [13:36:12]MH_Cut [13:36:12]Write to MH i2c: D1 01 00 49 34 01 4F [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: D1 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: D1 01 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: D1 01 00 49 34 00 4E [13:36:12]Write to MH i2c: 01 00 00 4A 34 7E [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:13]OFD Sender: No OFD packet to send [13:36:13]*** Cut start [13:36:13]*** Partial cut [13:36:13]*** CUTSNS_PIN = 1 [13:36:13]*** CUTSNS_PIN = 0 [13:36:13]*** Brake cut motor [13:36:14]Read from MH i2c: 01 [13:36:14]MH_I2C_Read... [13:36:14]*** Stop cut motor [13:36:14]*** Cut end [13:36:14]Read from MH i2c: 01 07 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: 01 07 00 4A 34 00 00 00 00 00 FF 0F 93 [13:36:14]process_action close_receipt done [13:36:14]requested_data is exist [13:36:14]produce_requested_data [13:36:14]requested_item fm.sn is exist - process it [13:36:14]wFMCommunicate request_size=4 [13:36:14]MH_SAM_APDU [13:36:14]CAPDU: 80 11 00 00 [13:36:14]Write to MH i2c: E2 08 00 4B 34 80 11 00 00 00 00 00 00 F9 [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:14]Read from MH i2c: E2 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 17 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 17 00 4B 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4C [13:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:36:14]wFMCommunicate OK [13:36:14]requested_item fd.num is exist - process it [13:36:14]SAM_PROTO_GetFieldsCounters [13:36:14]wFMCommunicate request_size=4 [13:36:14]MH_SAM_APDU [13:36:14]CAPDU: 80 13 00 00 [13:36:14]Write to MH i2c: E2 08 00 4C 34 80 13 00 00 00 00 00 00 FC [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:14]Read from MH i2c: E2 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 62 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 62 00 4C 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9A 2A 01 00 0E 04 04 00 72 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 0F [13:36:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9A 2A 01 00 0E 04 04 00 72 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 [13:36:14]wFMCommunicate OK [13:36:14]SAM_PROTO_GetFieldsCounters done [13:36:14]requested_item shift.num is exist - process it [13:36:14]requested_item shift.opened is exist - process it [13:36:14]req_shift_opened [13:36:14]FM_GetShiftState [13:36:14]SAM_PROTO_GetShiftState [13:36:14]wFMCommunicate request_size=4 [13:36:14]MH_SAM_APDU [13:36:14]CAPDU: 80 13 01 00 [13:36:14]Write to MH i2c: E2 08 00 4D 34 80 13 01 00 00 00 00 00 FE [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:14]Read from MH i2c: E2 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 0E 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 0E 00 4D 34 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E3 [13:36:14]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:36:14]wFMCommunicate OK [13:36:14]SAM_PROTO_GetShiftState done [13:36:14]FM_GetShiftState done [13:36:14]req_shift_opened done [13:36:14]requested_item shift.open_date is exist - process it [13:36:14]req_shift_open_date [13:36:14]req_shift_open_date done [13:36:14]produce_requested_data done [13:36:14]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76442,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [13:36:14]process_action_free close_receipt [13:36:14]json_value_free [13:36:14]json_value_free done [13:36:14]process_json_proto returns [13:36:14]Send response to host [13:36:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76442,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [13:36:14]free response buf [13:36:14]execute_script done [13:36:14]execute_script returns [13:36:14]free content buf [13:36:14]Sock 7.Close socket [13:36:14]Sock 7.Thread stoped [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:39]accept exits with 9 [13:39:39]New connection [13:39:39]New thread 3066629476 created [13:39:39]Thread 3066486116 joined [13:39:39]Waiting for new connection... [13:39:39] Sock 9.Parse request [13:39:39]Sock 9.Check first char [13:39:39]Sock 9.First char is OK [13:39:39]request: POST /json_proto HTTP/1.0 [13:39:39]Method: POST [13:39:39]URL: /json_proto [13:39:39]Method is POST - this is cgi request [13:39:39]url: /json_proto [13:39:39]query_string will be loaded in cgi processing [13:39:39]execute_cgi json_proto POST (null) [13:39:39]execute_cgi path=json_proto method=POST [13:39:39]POST find Content-Length [13:39:39]Host: 172.17.62.5:8080 [13:39:39]Content-Length: 682 [13:39:39]Content-Type: application/json [13:39:39] [13:39:39]POST finish read [13:39:39]Found Content-Length = 682 [13:39:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:39]execute_script... [13:39: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)190911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:39]POST & json_proto [13:39:39]process_json_proto [13:39:39]json parsed OK: [13:39:39]protocol is kg_v1.0 [13:39:39]action value=close_receipt [13:39:39]process_action close_receipt [13:39:39]cmd_close_receipt [13:39:39]MH_GetDate [13:39:39]Write to MH i2c: F0 00 00 4E 34 71 [13:39:39]Write i2c OK [13:39:39]MH_I2C_Read... [13:39:39]Read from MH i2c: F0 [13:39:39]MH_I2C_Read... [13:39:39]Read from MH i2c: F0 09 00 [13:39:39]MH_I2C_Read... [13:39:39]Read from MH i2c: F0 09 00 4E 34 00 20 74 22 66 F4 E9 65 64 3C [13:39:39]GetLastDocTimeStamp 1713533775 [13:39:39]current date 1713533984 [13:39:39]FM_GetShiftState [13:39:39]SAM_PROTO_GetShiftState [13:39:39]wFMCommunicate request_size=4 [13:39:39]MH_SAM_APDU [13:39:39]CAPDU: 80 13 01 00 [13:39:39]Write to MH i2c: E2 08 00 4F 34 80 13 01 00 00 00 00 00 00 [13:39:39]Write i2c OK [13:39:39]MH_I2C_Read... [13:39:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:39]Read from MH i2c: E2 [13:39:39]MH_I2C_Read... [13:39:39]Read from MH i2c: E2 0E 00 [13:39:39]MH_I2C_Read... [13:39:39]Read from MH i2c: E2 0E 00 4F 34 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E5 [13:39:39]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:39:39]wFMCommunicate OK [13:39:39]SAM_PROTO_GetShiftState done [13:39:39]FM_GetShiftState done [13:39:39]opened in 1713486233 [13:39:39]opened+sec_in_day 1713572633 [13:39:39]quantity*price = 100013 [13:39:39]sum+1 = 100014 [13:39:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 63 19.04.2024 13:39 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76443 ФПД: 150219297180725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T133944&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76443&fm=150219297180725&tin=02508201610067®Number=0000000000091573&sum=100000 [13:39:40]StoreToDocumentArchive [13:39:40]shift 370 fd 76443 [13:39:40]save to /storage/0370/doc_00076443 [13:39:40]save last doc name /storage/0370/doc_00076443 to /storage/kkm_last_doc_name [13:39:40]save OK [13:39:40]Clear old archive folders... [13:39:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:39:40]tlvbuf is 009643F0 [13:39:40]SAM_PROTO_ClearQueue [13:39:40]wFMCommunicate request_size=4 [13:39:40]MH_SAM_APDU [13:39:40]CAPDU: 80 09 00 00 [13:39:40]Write to MH i2c: E2 08 00 5C 34 80 09 00 00 00 00 00 00 02 [13:39:40]Write i2c OK [13:39:40]MH_I2C_Read... [13:39:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:40]Read from MH i2c: E2 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: E2 03 00 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: E2 03 00 5C 34 00 90 00 04 [13:39:40]RAPDU: 90 00 [13:39:40]wFMCommunicate OK [13:39:40]SAM_PROTO_ClearQueue done [13:39:40]KKMCreateOFDPacket [13:39:40]OFDProtocolAddRootSTLVToBuf [13:39:40]FM_MakeSignedData [13:39:40]FM_MakeSignedData [13:39:40]SAM_PROTO_SignData [13:39:40]wFMCommunicate request_size=4 [13:39:40]MH_SAM_APDU [13:39:40]CAPDU: 80 0D 01 02 [13:39:40]Write to MH i2c: E2 08 00 5D 34 80 0D 01 02 00 00 00 00 0A [13:39:40]Write i2c OK [13:39:40]MH_I2C_Read... [13:39:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:40]Read from MH i2c: E2 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: E2 03 00 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: E2 03 00 5D 34 00 90 00 05 [13:39:40]RAPDU: 90 00 [13:39:40]wFMCommunicate OK [13:39:40]wFMCommunicate request_size=255 [13:39:40]MH_SAM_APDU [13:39: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 20 74 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9B 2A 01 00 35 04 06 00 88 [13:39:40]Write to MH i2c: E2 02 01 5E 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 20 74 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9B 2A 01 00 35 04 06 00 88 00 00 F7 [13:39:40]Write i2c OK [13:39:40]MH_I2C_Read... [13:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:40]Read from MH i2c: E2 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: E2 03 00 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: E2 03 00 5E 34 00 90 00 06 [13:39:40]RAPDU: 90 00 [13:39:40]wFMCommunicate OK [13:39:40]wFMCommunicate request_size=10 [13:39:40]MH_SAM_APDU [13:39:40]CAPDU: 80 0D 02 02 05 9F A7 D8 CC 35 [13:39:40]Write to MH i2c: E2 0D 00 5F 34 80 0D 02 02 05 00 9F A7 D8 CC 35 00 00 36 [13:39:40]Write i2c OK [13:39:40]MH_I2C_Read... [13:39:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:41]Read from MH i2c: E2 [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: E2 03 00 [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: E2 03 00 5F 34 00 90 00 07 [13:39:41]RAPDU: 90 00 [13:39:41]wFMCommunicate OK [13:39:41]wFMCommunicate request_size=4 [13:39:41]MH_SAM_APDU [13:39:41]CAPDU: 80 0D 03 02 [13:39:41]Write to MH i2c: E2 08 00 60 34 80 0D 03 02 00 00 00 00 0F [13:39:41]Write i2c OK [13:39:41]MH_I2C_Read... [13:39:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:41]Read from MH i2c: E2 [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: E2 0B 00 [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: E2 0B 00 60 34 00 79 31 6A 93 88 B0 8D 34 90 00 B0 [13:39:41]RAPDU: 79 31 6A 93 88 B0 8D 34 90 00 [13:39:41]wFMCommunicate OK [13:39:41]SAM_PROTO_SignData done [13:39:41]FM_MakeSignedData done [13:39:41]CreateOFDProtocolMessage [13:39:41]wFMCommunicate request_size=4 [13:39:41]MH_SAM_APDU [13:39:41]CAPDU: 80 11 00 00 [13:39:41]Write to MH i2c: E2 08 00 61 34 80 11 00 00 00 00 00 00 0F [13:39:41]Write i2c OK [13:39:41]MH_I2C_Read... [13:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:41]Read from MH i2c: E2 [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: E2 17 00 [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: E2 17 00 61 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 62 [13:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:39:41]wFMCommunicate OK [13:39:41]CreateOFDProtocolMessage done [13:39:41]OFDSenderStorePacket 76443 [13:39:41]StoreOFDPacket docnum=76443 [13:39:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 99 9A 07 01 F7 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 20 74 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9B 2A 01 00 35 04 06 00 88 9F A7 D8 CC 35 79 31 6A 93 88 B0 8D 34 [13:39:41]CheckFolder [13:39:41]dirname=/storage/ofd_packets [13:39:41]CheckFolder done [13:39:41]ProducePacketName [13:39:41]name=ofd_packets/00076443 [13:39:41]NVStorageSaveData ofd_packets/00076443 [13:39:41]File name is /storage/ofd_packets/00076443 [13:39:41]Write 301 bytes [13:39:41]NVStorageSaveData done [13:39:41]OFDSenderStorePacket done [13:39:41]KKMCreateOFDPacket done [13:39:41]NVStorageSaveData kkm_last_timestamp [13:39:41]File name is /storage/kkm_last_timestamp [13:39:41]Write 4 bytes [13:39:41]NVStorageSaveData done [13:39:41]ExternCall_PrintAddStr [13:39:41]wPrintStart [13:39:41]Write to MH i2c: 01 00 00 62 34 96 [13:39:41]Write i2c OK [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: 01 [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: 01 07 00 [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: 01 07 00 62 34 00 00 00 00 00 FF 0F AB [13:39:41]RasterBufferAndPrint [13:39:41]line Счет N : (1)190911 [13:39:41]line ИНН: 02508201610067 [13:39:41]line Контрольно-Кассовый Чек [13:39:41]line ПРОДАЖА [13:39:41]line ТРК (МРК, ГНК) : 33 [13:39:41]line Товар: 2710124130 [13:39:41]line Аи-92-К-5 [13:39:41]line 15.530 * 64.40 [13:39:41]line = 1000.13 [13:39:41]line НДС 12% НСП 1% [13:39:41]line > о реализуемом товаре [13:39:41]line ОКРУГЛЕНИЕ: -0.13 [13:39:41]line ИТОГО: 1000.00 [13:39:41]line Внесено: 1000.00 [13:39:41]line СДАЧА: 0.00 [13:39:41]line НСП 1% : 8.85 [13:39:41]line НДС 12% : 106.21 [13:39:41]line Наличными: 1000.00 [13:39:41]line Безнал.: 0.00 [13:39:41]line Место: АЗС № 106 "Партнер Нефть" [13:39:41]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:39:41]line СНО: Общий режим [13:39:41]line Чек 63 19.04.2024 13:39 [13:39:41]line Смена: 370 ФФД: 1.0 [13:39:41]line ЗНМ: 0300000141 [13:39:41]line РНМ: 0000000000091573 [13:39:41]line Версия ККМ: 001 [13:39:41]line ФМ: 0000000000874652 [13:39:41]line ФД: 76443 [13:39:41]line ФПД: 150219297180725 [13:39:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T133944&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76443&fm=150219297180725&tin=02508201610067®Number=0000000000091573&sum=100000 [13:39:41]written 0, free lines is 4095 [13:39:41]OFD Sender: Processing packet 76443 [packets to send 128, broken 127] [13:39:41]ProducePacketName [13:39:41]name=ofd_packets/00076443 [13:39:41]OFD Sender: To server: pG, [13:39:41]CommunicateWithHost lk.salyk.kg:30040 [13:39:41]ConnectInit lk.salyk.kg [13:39:41]Connected sock=10 [13:39:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 99 9A 07 01 F7 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 20 74 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9B 2A 01 00 35 04 06 00 88 9F A7 D8 CC 35 79 31 6A 93 88 B0 8D 34 [13:39:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 F5 8B 47 00 A7 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 34 36 35 32 10 04 04 00 9B 2A 01 00 F4 03 04 00 AC 1B 22 66 B6 04 01 00 00 EE 36 D4 EF 3B 07 6B 04 [13:39:41]CommunicateWithHost err = 0 [13:39:41]CheckOFDResponse [13:39:41]1017 (14) - 77093643461234 [13:39:41]1041 (16) - 0000000000874652 [13:39:41]1040 (4) - 76443 [13:39:41]1012 (4) - 19.04.2024 07:22 [13:39:41]1206 (1) - 0 [13:39:41]OFD Sender: Remove packet 76443 [13:39:41]ProducePacketName [13:39:41]name=ofd_packets/00076443 [13:39:41]NVStorageDeleteData [13:39:41]Write to MH i2c: 01 00 00 8C 34 C0 [13:39:41]Write i2c OK [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: 01 [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: 01 07 00 [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: 01 07 00 8C 34 00 00 00 00 00 E3 0C B6 [13:39:41]RasterBufferAndPrint [13:39:41]line [13:39:41]line [13:39:41]line [13:39:41]line [13:39:41]line [13:39:41]written 0, free lines is 3305 [13:39:41]MH_Cut [13:39:41]Write to MH i2c: D1 01 00 93 34 01 99 [13:39:41]Write i2c OK [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: D1 [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: D1 01 00 [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: D1 01 00 93 34 00 98 [13:39:41]Write to MH i2c: 01 00 00 94 34 C8 [13:39:41]Write i2c OK [13:39:41]MH_I2C_Read... [13:39:42]OFD Sender: No OFD packet to send [13:39:42]*** Cut start [13:39:42]*** Partial cut [13:39:42]*** CUTSNS_PIN = 1 [13:39:42]*** CUTSNS_PIN = 0 [13:39:42]*** Brake cut motor [13:39:43]Read from MH i2c: 01 [13:39:43]MH_I2C_Read... [13:39:43]*** Stop cut motor [13:39:43]*** Cut end [13:39:43]Read from MH i2c: 01 07 00 [13:39:43]MH_I2C_Read... [13:39:43]Read from MH i2c: 01 07 00 94 34 00 00 00 00 00 FF 0F DD [13:39:43]process_action close_receipt done [13:39:43]requested_data is exist [13:39:43]produce_requested_data [13:39:43]requested_item fm.sn is exist - process it [13:39:43]wFMCommunicate request_size=4 [13:39:43]MH_SAM_APDU [13:39:43]CAPDU: 80 11 00 00 [13:39:43]Write to MH i2c: E2 08 00 95 34 80 11 00 00 00 00 00 00 43 [13:39:43]Write i2c OK [13:39:43]MH_I2C_Read... [13:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:43]Read from MH i2c: E2 [13:39:43]MH_I2C_Read... [13:39:43]Read from MH i2c: E2 17 00 [13:39:43]MH_I2C_Read... [13:39:43]Read from MH i2c: E2 17 00 95 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 96 [13:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:39:43]wFMCommunicate OK [13:39:43]requested_item fd.num is exist - process it [13:39:43]SAM_PROTO_GetFieldsCounters [13:39:43]wFMCommunicate request_size=4 [13:39:43]MH_SAM_APDU [13:39:43]CAPDU: 80 13 00 00 [13:39:43]Write to MH i2c: E2 08 00 96 34 80 13 00 00 00 00 00 00 46 [13:39:43]Write i2c OK [13:39:43]MH_I2C_Read... [13:39:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:43]Read from MH i2c: E2 [13:39:43]MH_I2C_Read... [13:39:43]Read from MH i2c: E2 62 00 [13:39:43]MH_I2C_Read... [13:39:43]Read from MH i2c: E2 62 00 96 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9B 2A 01 00 0E 04 04 00 72 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 5D [13:39:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9B 2A 01 00 0E 04 04 00 72 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 [13:39:43]wFMCommunicate OK [13:39:43]SAM_PROTO_GetFieldsCounters done [13:39:43]requested_item shift.num is exist - process it [13:39:43]requested_item shift.opened is exist - process it [13:39:43]req_shift_opened [13:39:43]FM_GetShiftState [13:39:43]SAM_PROTO_GetShiftState [13:39:43]wFMCommunicate request_size=4 [13:39:43]MH_SAM_APDU [13:39:43]CAPDU: 80 13 01 00 [13:39:43]Write to MH i2c: E2 08 00 97 34 80 13 01 00 00 00 00 00 48 [13:39:43]Write i2c OK [13:39:43]MH_I2C_Read... [13:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:43]Read from MH i2c: E2 [13:39:43]MH_I2C_Read... [13:39:43]Read from MH i2c: E2 0E 00 [13:39:43]MH_I2C_Read... [13:39:43]Read from MH i2c: E2 0E 00 97 34 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 2D [13:39:43]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:39:43]wFMCommunicate OK [13:39:43]SAM_PROTO_GetShiftState done [13:39:43]FM_GetShiftState done [13:39:43]req_shift_opened done [13:39:43]requested_item shift.open_date is exist - process it [13:39:43]req_shift_open_date [13:39:43]req_shift_open_date done [13:39:43]produce_requested_data done [13:39:43]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76443,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [13:39:43]process_action_free close_receipt [13:39:43]json_value_free [13:39:43]json_value_free done [13:39:43]process_json_proto returns [13:39:43]Send response to host [13:39:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76443,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [13:39:43]free response buf [13:39:43]execute_script done [13:39:43]execute_script returns [13:39:43]free content buf [13:39:43]Sock 9.Close socket [13:39:43]Sock 9.Thread stoped [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:44]accept exits with 7 [13:40:44]New connection [13:40:44]New thread 3066486116 created [13:40:44]Thread 3066629476 joined [13:40:44]Waiting for new connection... [13:40:44] Sock 7.Parse request [13:40:44]Sock 7.Check first char [13:40:44]Sock 7.First char is OK [13:40:44]request: POST /json_proto HTTP/1.0 [13:40:44]Method: POST [13:40:44]URL: /json_proto [13:40:44]Method is POST - this is cgi request [13:40:44]url: /json_proto [13:40:44]query_string will be loaded in cgi processing [13:40:44]execute_cgi json_proto POST (null) [13:40:44]execute_cgi path=json_proto method=POST [13:40:44]POST find Content-Length [13:40:44]Host: 172.17.62.5:8080 [13:40:44]Content-Length: 819 [13:40:44]Content-Type: application/json [13:40:44] [13:40:44]POST finish read [13:40:44]Found Content-Length = 819 [13:40:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190912", "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" : 64.40, "quantity" : 23.300, "sum" : 1500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:44]execute_script... [13:40: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)190912", "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" : 64.40, "quantity" : 23.300, "sum" : 1500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:44]POST & json_proto [13:40:44]process_json_proto [13:40:44]json parsed OK: [13:40:44]protocol is kg_v1.0 [13:40:44]action value=close_receipt [13:40:44]process_action close_receipt [13:40:44]cmd_close_receipt [13:40:44]MH_GetDate [13:40:44]Write to MH i2c: F0 00 00 98 34 BB [13:40:44]Write i2c OK [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: F0 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: F0 09 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: F0 09 00 98 34 00 62 74 22 66 F4 E9 65 64 C8 [13:40:44]GetLastDocTimeStamp 1713533984 [13:40:44]current date 1713534050 [13:40:44]FM_GetShiftState [13:40:44]SAM_PROTO_GetShiftState [13:40:44]wFMCommunicate request_size=4 [13:40:44]MH_SAM_APDU [13:40:44]CAPDU: 80 13 01 00 [13:40:44]Write to MH i2c: E2 08 00 99 34 80 13 01 00 00 00 00 00 4A [13:40:44]Write i2c OK [13:40:44]MH_I2C_Read... [13:40:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:44]Read from MH i2c: E2 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 0E 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 0E 00 99 34 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 2F [13:40:44]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:40:44]wFMCommunicate OK [13:40:44]SAM_PROTO_GetShiftState done [13:40:44]FM_GetShiftState done [13:40:44]opened in 1713486233 [13:40:44]opened+sec_in_day 1713572633 [13:40:44]quantity*price = 150052 [13:40:44]sum+1 = 150053 [13:40:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.52 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.52 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 64 19.04.2024 13:40 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76444 ФПД: 180428992490829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T134050&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76444&fm=180428992490829&tin=02508201610067®Number=0000000000091573&sum=150052 [13:40:45]StoreToDocumentArchive [13:40:45]shift 370 fd 76444 [13:40:45]save to /storage/0370/doc_00076444 [13:40:45]save last doc name /storage/0370/doc_00076444 to /storage/kkm_last_doc_name [13:40:45]save OK [13:40:45]Clear old archive folders... [13:40:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:40:45]tlvbuf is 00927B80 [13:40:45]SAM_PROTO_ClearQueue [13:40:45]wFMCommunicate request_size=4 [13:40:45]MH_SAM_APDU [13:40:45]CAPDU: 80 09 00 00 [13:40:45]Write to MH i2c: E2 08 00 A6 34 80 09 00 00 00 00 00 00 4C [13:40:45]Write i2c OK [13:40:45]MH_I2C_Read... [13:40:45]Read from MH i2c: E2 [13:40:45]MH_I2C_Read... [13:40:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:45]Read from MH i2c: E2 03 00 [13:40:45]MH_I2C_Read... [13:40:45]Read from MH i2c: E2 03 00 A6 34 00 90 00 4E [13:40:45]RAPDU: 90 00 [13:40:45]wFMCommunicate OK [13:40:45]SAM_PROTO_ClearQueue done [13:40:45]KKMCreateOFDPacket [13:40:45]OFDProtocolAddRootSTLVToBuf [13:40:45]FM_MakeSignedData [13:40:45]FM_MakeSignedData [13:40:45]SAM_PROTO_SignData [13:40:45]wFMCommunicate request_size=4 [13:40:45]MH_SAM_APDU [13:40:45]CAPDU: 80 0D 01 02 [13:40:45]Write to MH i2c: E2 08 00 A7 34 80 0D 01 02 00 00 00 00 54 [13:40:45]Write i2c OK [13:40:45]MH_I2C_Read... [13:40:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:46]Read from MH i2c: E2 [13:40:46]MH_I2C_Read... [13:40:46]Read from MH i2c: E2 03 00 [13:40:46]MH_I2C_Read... [13:40:46]Read from MH i2c: E2 03 00 A7 34 00 90 00 4F [13:40:46]RAPDU: 90 00 [13:40:46]wFMCommunicate OK [13:40:46]wFMCommunicate request_size=255 [13:40:46]MH_SAM_APDU [13:40: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 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 62 74 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9C 2A 01 00 35 04 06 00 A4 [13:40:46]Write to MH i2c: E2 02 01 A8 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 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 62 74 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9C 2A 01 00 35 04 06 00 A4 00 00 7C [13:40:46]Write i2c OK [13:40:46]MH_I2C_Read... [13:40:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:46]Read from MH i2c: E2 [13:40:46]MH_I2C_Read... [13:40:46]Read from MH i2c: E2 03 00 [13:40:46]MH_I2C_Read... [13:40:46]Read from MH i2c: E2 03 00 A8 34 00 90 00 50 [13:40:46]RAPDU: 90 00 [13:40:46]wFMCommunicate OK [13:40:46]wFMCommunicate request_size=10 [13:40:46]MH_SAM_APDU [13:40:46]CAPDU: 80 0D 02 02 05 19 66 01 2D 4D [13:40:46]Write to MH i2c: E2 0D 00 A9 34 80 0D 02 02 05 00 19 66 01 2D 4D 00 00 5B [13:40:46]Write i2c OK [13:40:46]MH_I2C_Read... [13:40:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:46]Read from MH i2c: E2 [13:40:46]MH_I2C_Read... [13:40:46]Read from MH i2c: E2 03 00 [13:40:46]MH_I2C_Read... [13:40:46]Read from MH i2c: E2 03 00 A9 34 00 90 00 51 [13:40:46]RAPDU: 90 00 [13:40:46]wFMCommunicate OK [13:40:46]wFMCommunicate request_size=4 [13:40:46]MH_SAM_APDU [13:40:46]CAPDU: 80 0D 03 02 [13:40:46]Write to MH i2c: E2 08 00 AA 34 80 0D 03 02 00 00 00 00 59 [13:40:46]Write i2c OK [13:40:46]MH_I2C_Read... [13:40:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:46]Read from MH i2c: E2 [13:40:46]MH_I2C_Read... [13:40:46]Read from MH i2c: E2 0B 00 [13:40:46]MH_I2C_Read... [13:40:46]Read from MH i2c: E2 0B 00 AA 34 00 1F 01 84 14 9A 9E AE 7A 90 00 72 [13:40:46]RAPDU: 1F 01 84 14 9A 9E AE 7A 90 00 [13:40:46]wFMCommunicate OK [13:40:46]SAM_PROTO_SignData done [13:40:46]FM_MakeSignedData done [13:40:46]CreateOFDProtocolMessage [13:40:46]wFMCommunicate request_size=4 [13:40:46]MH_SAM_APDU [13:40:46]CAPDU: 80 11 00 00 [13:40:46]Write to MH i2c: E2 08 00 AB 34 80 11 00 00 00 00 00 00 59 [13:40:46]Write i2c OK [13:40:46]MH_I2C_Read... [13:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:46]Read from MH i2c: E2 [13:40:46]MH_I2C_Read... [13:40:46]Read from MH i2c: E2 17 00 [13:40:46]MH_I2C_Read... [13:40:46]Read from MH i2c: E2 17 00 AB 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AC [13:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:40:46]wFMCommunicate OK [13:40:46]CreateOFDProtocolMessage done [13:40:46]OFDSenderStorePacket 76444 [13:40:46]StoreOFDPacket docnum=76444 [13:40:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 B2 96 07 01 EB 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 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 62 74 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9C 2A 01 00 35 04 06 00 A4 19 66 01 2D 4D 1F 01 84 14 9A 9E AE 7A [13:40:46]CheckFolder [13:40:46]dirname=/storage/ofd_packets [13:40:46]CheckFolder done [13:40:46]ProducePacketName [13:40:46]name=ofd_packets/00076444 [13:40:46]NVStorageSaveData ofd_packets/00076444 [13:40:46]File name is /storage/ofd_packets/00076444 [13:40:46]Write 301 bytes [13:40:46]NVStorageSaveData done [13:40:46]OFDSenderStorePacket done [13:40:46]KKMCreateOFDPacket done [13:40:46]NVStorageSaveData kkm_last_timestamp [13:40:46]File name is /storage/kkm_last_timestamp [13:40:46]Write 4 bytes [13:40:46]NVStorageSaveData done [13:40:46]ExternCall_PrintAddStr [13:40:46]wPrintStart [13:40:46]Write to MH i2c: 01 00 00 AC 34 E0 [13:40:46]Write i2c OK [13:40:46]MH_I2C_Read... [13:40:46]Read from MH i2c: 01 [13:40:46]MH_I2C_Read... [13:40:46]Read from MH i2c: 01 07 00 [13:40:46]MH_I2C_Read... [13:40:46]Read from MH i2c: 01 07 00 AC 34 00 00 00 00 00 FF 0F F5 [13:40:46]RasterBufferAndPrint [13:40:46]line Счет N : (1)190912 [13:40:46]line ИНН: 02508201610067 [13:40:46]line Контрольно-Кассовый Чек [13:40:46]line ПРОДАЖА [13:40:46]line ТРК (МРК, ГНК) : 12 [13:40:46]line Товар: 2710124130 [13:40:46]line Аи-92-К-5 [13:40:46]line 23.300 * 64.40 [13:40:46]line = 1500.52 [13:40:46]line НДС 12% НСП 1% [13:40:46]line > о реализуемом товаре [13:40:46]line ИТОГО: 1500.52 [13:40:46]line НСП 1% : 13.28 [13:40:46]line НДС 12% : 159.35 [13:40:46]line Наличными: 0.00 [13:40:46]line Безнал.: 1500.52 [13:40:46]line Место: АЗС № 106 "Партнер Нефть" [13:40:46]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:40:46]line СНО: Общий режим [13:40:46]line Чек 64 19.04.2024 13:40 [13:40:46]line Смена: 370 ФФД: 1.0 [13:40:46]line ЗНМ: 0300000141 [13:40:46]line РНМ: 0000000000091573 [13:40:46]line Версия ККМ: 001 [13:40:46]line Платежная система: Бакай Банк [13:40:46]line ФМ: 0000000000874652 [13:40:46]line ФД: 76444 [13:40:46]line ФПД: 180428992490829 [13:40:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T134050&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76444&fm=180428992490829&tin=02508201610067®Number=0000000000091573&sum=150052 [13:40:46]OFD Sender: Processing packet 76444 [packets to send 128, broken 127] [13:40:46]ProducePacketName [13:40:46]name=ofd_packets/00076444 [13:40:46]OFD Sender: To server: pG, [13:40:46]CommunicateWithHost lk.salyk.kg:30040 [13:40:46]ConnectInit lk.salyk.kg [13:40:46]written 0, free lines is 4095 [13:40:46]Connected sock=10 [13:40:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 B2 96 07 01 EB 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 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 62 74 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9C 2A 01 00 35 04 06 00 A4 19 66 01 2D 4D 1F 01 84 14 9A 9E AE 7A [13:40:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 6C 59 47 00 14 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9C 2A 01 00 F4 03 04 00 ED 1B 22 66 B6 04 01 00 00 D3 20 E7 CD E7 2B 79 06 [13:40:47]CommunicateWithHost err = 0 [13:40:47]CheckOFDResponse [13:40:47]1017 (14) - 77093643461234 [13:40:47]1041 (16) - 0000000000874652 [13:40:47]1040 (4) - 76444 [13:40:47]1012 (4) - 19.04.2024 07:23 [13:40:47]1206 (1) - 0 [13:40:47]OFD Sender: Remove packet 76444 [13:40:47]ProducePacketName [13:40:47]name=ofd_packets/00076444 [13:40:47]NVStorageDeleteData [13:40:47]Write to MH i2c: 01 00 00 D5 34 09 [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: 01 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: 01 07 00 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: 01 07 00 D5 34 00 00 00 00 00 0E 0D 2B [13:40:47]RasterBufferAndPrint [13:40:47]line [13:40:47]line [13:40:47]line [13:40:47]line [13:40:47]line [13:40:47]written 0, free lines is 3348 [13:40:47]MH_Cut [13:40:47]Write to MH i2c: D1 01 00 DC 34 01 E2 [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: D1 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: D1 01 00 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: D1 01 00 DC 34 00 E1 [13:40:47]Write to MH i2c: 01 00 00 DD 34 11 [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:47]OFD Sender: No OFD packet to send [13:40:47]*** Cut start [13:40:47]*** Partial cut [13:40:47]*** CUTSNS_PIN = 1 [13:40:48]*** CUTSNS_PIN = 0 [13:40:48]*** Brake cut motor [13:40:48]Read from MH i2c: 01 [13:40:48]MH_I2C_Read... [13:40:48]*** Stop cut motor [13:40:48]*** Cut end [13:40:48]Read from MH i2c: 01 07 00 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: 01 07 00 DD 34 00 00 00 00 00 FF 0F 26 [13:40:48]process_action close_receipt done [13:40:48]requested_data is exist [13:40:48]produce_requested_data [13:40:48]requested_item fm.sn is exist - process it [13:40:48]wFMCommunicate request_size=4 [13:40:48]MH_SAM_APDU [13:40:48]CAPDU: 80 11 00 00 [13:40:48]Write to MH i2c: E2 08 00 DE 34 80 11 00 00 00 00 00 00 8C [13:40:48]Write i2c OK [13:40:48]MH_I2C_Read... [13:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:48]Read from MH i2c: E2 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: E2 17 00 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: E2 17 00 DE 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DF [13:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:40:48]wFMCommunicate OK [13:40:48]requested_item fd.num is exist - process it [13:40:48]SAM_PROTO_GetFieldsCounters [13:40:48]wFMCommunicate request_size=4 [13:40:48]MH_SAM_APDU [13:40:48]CAPDU: 80 13 00 00 [13:40:48]Write to MH i2c: E2 08 00 DF 34 80 13 00 00 00 00 00 00 8F [13:40:48]Write i2c OK [13:40:48]MH_I2C_Read... [13:40:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:48]Read from MH i2c: E2 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: E2 62 00 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: E2 62 00 DF 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9C 2A 01 00 0E 04 04 00 72 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 AA [13:40: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9C 2A 01 00 0E 04 04 00 72 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 [13:40:48]wFMCommunicate OK [13:40:48]SAM_PROTO_GetFieldsCounters done [13:40:48]requested_item shift.num is exist - process it [13:40:48]requested_item shift.opened is exist - process it [13:40:48]req_shift_opened [13:40:48]FM_GetShiftState [13:40:48]SAM_PROTO_GetShiftState [13:40:48]wFMCommunicate request_size=4 [13:40:48]MH_SAM_APDU [13:40:48]CAPDU: 80 13 01 00 [13:40:48]Write to MH i2c: E2 08 00 E0 34 80 13 01 00 00 00 00 00 91 [13:40:48]Write i2c OK [13:40:48]MH_I2C_Read... [13:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:48]Read from MH i2c: E2 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: E2 0E 00 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: E2 0E 00 E0 34 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 76 [13:40:48]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:40:48]wFMCommunicate OK [13:40:48]SAM_PROTO_GetShiftState done [13:40:48]FM_GetShiftState done [13:40:48]req_shift_opened done [13:40:48]requested_item shift.open_date is exist - process it [13:40:48]req_shift_open_date [13:40:48]req_shift_open_date done [13:40:48]produce_requested_data done [13:40:48]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76444,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [13:40:48]process_action_free close_receipt [13:40:48]json_value_free [13:40:48]json_value_free done [13:40:48]process_json_proto returns [13:40:48]Send response to host [13:40:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76444,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [13:40:48]free response buf [13:40:48]execute_script done [13:40:48]execute_script returns [13:40:48]free content buf [13:40:48]Sock 7.Close socket [13:40:48]Sock 7.Thread stoped [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:22]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:42]OFD Sender: No OFD packet to send [13:42:47]OFD Sender: No OFD packet to send [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:42]OFD Sender: No OFD packet to send [13:43:47]OFD Sender: No OFD packet to send [13:43:52]OFD Sender: No OFD packet to send [13:43:57]OFD Sender: No OFD packet to send [13:44:02]OFD Sender: No OFD packet to send [13:44:07]OFD Sender: No OFD packet to send [13:44:12]OFD Sender: No OFD packet to send [13:44:17]OFD Sender: No OFD packet to send [13:44:22]OFD Sender: No OFD packet to send [13:44:27]OFD Sender: No OFD packet to send [13:44:32]OFD Sender: No OFD packet to send [13:44:37]OFD Sender: No OFD packet to send [13:44:42]OFD Sender: No OFD packet to send [13:44:47]OFD Sender: No OFD packet to send [13:44:52]OFD Sender: No OFD packet to send [13:44:57]OFD Sender: No OFD packet to send [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]accept exits with 9 [13:45:12]New connection [13:45:12]New thread 3066629476 created [13:45:12]Thread 3066486116 joined [13:45:12]Waiting for new connection... [13:45:12] Sock 9.Parse request [13:45:12]Sock 9.Check first char [13:45:12]Sock 9.First char is OK [13:45:12]request: POST /json_proto HTTP/1.0 [13:45:12]Method: POST [13:45:12]URL: /json_proto [13:45:12]Method is POST - this is cgi request [13:45:12]url: /json_proto [13:45:12]query_string will be loaded in cgi processing [13:45:12]execute_cgi json_proto POST (null) [13:45:12]execute_cgi path=json_proto method=POST [13:45:12]POST find Content-Length [13:45:12]Host: 172.17.62.5:8080 [13:45:12]Content-Length: 1169 [13:45:12]Content-Type: application/json [13:45:12] [13:45:12]POST finish read [13:45:12]Found Content-Length = 1169 [13:45:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190913\u000A19.04.2024 13:26\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 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:12]execute_script... [13:45:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190913\u000A19.04.2024 13:26\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 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:12]POST & json_proto [13:45:12]process_json_proto [13:45:12]json parsed OK: [13:45:12]protocol is kg_v1.0 [13:45:12]action value=print_text [13:45:12]process_action print_text [13:45:12]cmd_print_text [13:45:12]ExternCall_PrintAddStr [13:45:12]wPrintStart [13:45:12]Write to MH i2c: 01 00 00 E1 34 15 [13:45:12]Write i2c OK [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: 01 [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: 01 07 00 [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: 01 07 00 E1 34 00 00 00 00 00 FF 0F 2A [13:45:12]RasterBufferAndPrint [13:45:12]line *****ТОВАРНЫЙ ЧЕК***** [13:45:12]line АЗС 106 [13:45:12]line Партнер нефть [13:45:12]line 02508201610067 [13:45:12]line Кассир : Табалдиева М. [13:45:12]line Счет N : (1)190913 [13:45:12]line 19.04.2024 13:26 [13:45:12]line ПРОДАЖА [13:45:12]line ТРК (МРК, ГНК): 12 [13:45:12]line Вид ГСМ : 2710124130 [13:45:12]line Аи-92-К-5 [13:45:12]line 20.000 x 64.40 [13:45:12]line ИТОГ: 1288.00 [13:45:12]line Тип оплаты: Талоны: ТК ГПНА Online [13:45:12]line 30102984 [13:45:12]line ______________________ [13:45:12]line (подпись) [13:45:12]written 0, free lines is 4095 [13:45:12]Write to MH i2c: 01 00 00 F5 34 29 [13:45:12]Write i2c OK [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: 01 [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: 01 07 00 [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: 01 07 00 F5 34 00 00 00 00 00 11 0E 4F [13:45:12]RasterBufferAndPrint [13:45:12]line [13:45:12]line [13:45:12]line [13:45:12]line [13:45:12]line [13:45:12]written 0, free lines is 3602 [13:45:12]MH_Cut [13:45:12]Write to MH i2c: D1 01 00 FC 34 01 02 [13:45:12]Write i2c OK [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: D1 [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: D1 01 00 [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: D1 01 00 FC 34 00 01 [13:45:12]Write to MH i2c: 01 00 00 FD 34 31 [13:45:12]Write i2c OK [13:45:12]MH_I2C_Read... [13:45:12]OFD Sender: No OFD packet to send [13:45:13]*** Cut start [13:45:13]*** Partial cut [13:45:13]*** CUTSNS_PIN = 1 [13:45:13]*** CUTSNS_PIN = 0 [13:45:13]*** Brake cut motor [13:45:13]Read from MH i2c: 01 [13:45:13]MH_I2C_Read... [13:45:13]*** Stop cut motor [13:45:13]*** Cut end [13:45:13]Read from MH i2c: 01 07 00 [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: 01 07 00 FD 34 00 00 00 00 00 FF 0F 46 [13:45:13]process_action print_text done [13:45:13]requested_data is exist [13:45:13]produce_requested_data [13:45:13]requested_item fm.sn is exist - process it [13:45:13]wFMCommunicate request_size=4 [13:45:13]MH_SAM_APDU [13:45:13]CAPDU: 80 11 00 00 [13:45:13]Write to MH i2c: E2 08 00 FE 34 80 11 00 00 00 00 00 00 AC [13:45:13]Write i2c OK [13:45:13]MH_I2C_Read... [13:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:13]Read from MH i2c: E2 [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: E2 17 00 [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: E2 17 00 FE 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FF [13:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:45:13]wFMCommunicate OK [13:45:13]requested_item fd.num is exist - process it [13:45:13]SAM_PROTO_GetFieldsCounters [13:45:13]wFMCommunicate request_size=4 [13:45:13]MH_SAM_APDU [13:45:13]CAPDU: 80 13 00 00 [13:45:13]Write to MH i2c: E2 08 00 FF 34 80 13 00 00 00 00 00 00 AF [13:45:13]Write i2c OK [13:45:13]MH_I2C_Read... [13:45:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:13]Read from MH i2c: E2 [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: E2 62 00 [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: E2 62 00 FF 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9C 2A 01 00 0E 04 04 00 72 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 CA [13:45:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9C 2A 01 00 0E 04 04 00 72 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 [13:45:13]wFMCommunicate OK [13:45:13]SAM_PROTO_GetFieldsCounters done [13:45:13]requested_item shift.num is exist - process it [13:45:13]requested_item shift.opened is exist - process it [13:45:13]req_shift_opened [13:45:13]FM_GetShiftState [13:45:13]SAM_PROTO_GetShiftState [13:45:13]wFMCommunicate request_size=4 [13:45:13]MH_SAM_APDU [13:45:13]CAPDU: 80 13 01 00 [13:45:13]Write to MH i2c: E2 08 00 00 35 80 13 01 00 00 00 00 00 B2 [13:45:13]Write i2c OK [13:45:13]MH_I2C_Read... [13:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:14]Read from MH i2c: E2 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 0E 00 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 0E 00 00 35 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 97 [13:45:14]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:45:14]wFMCommunicate OK [13:45:14]SAM_PROTO_GetShiftState done [13:45:14]FM_GetShiftState done [13:45:14]req_shift_opened done [13:45:14]requested_item shift.open_date is exist - process it [13:45:14]req_shift_open_date [13:45:14]req_shift_open_date done [13:45:14]produce_requested_data done [13:45:14]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76444,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [13:45:14]process_action_free print_text [13:45:14]json_value_free [13:45:14]json_value_free done [13:45:14]process_json_proto returns [13:45:14]Send response to host [13:45:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76444,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [13:45:14]free response buf [13:45:14]execute_script done [13:45:14]execute_script returns [13:45:14]free content buf [13:45:14]Sock 9.Close socket [13:45:14]Sock 9.Thread stoped [13:45:17]OFD Sender: No OFD packet to send [13:45:22]OFD Sender: No OFD packet to send [13:45:27]OFD Sender: No OFD packet to send [13:45:32]OFD Sender: No OFD packet to send [13:45:37]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:33]accept exits with 7 [13:46:33]New connection [13:46:33]New thread 3066486116 created [13:46:33]Thread 3066629476 joined [13:46:33]Waiting for new connection... [13:46:33] Sock 7.Parse request [13:46:33]Sock 7.Check first char [13:46:33]Sock 7.First char is OK [13:46:33]request: POST /json_proto HTTP/1.0 [13:46:33]Method: POST [13:46:33]URL: /json_proto [13:46:33]Method is POST - this is cgi request [13:46:33]url: /json_proto [13:46:33]query_string will be loaded in cgi processing [13:46:33]execute_cgi json_proto POST (null) [13:46:33]execute_cgi path=json_proto method=POST [13:46:33]POST find Content-Length [13:46:33]Host: 172.17.62.5:8080 [13:46:33]Content-Length: 1168 [13:46:33]Content-Type: application/json [13:46:33] [13:46:33]POST finish read [13:46:33]Found Content-Length = 1168 [13:46:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190914\u000A19.04.2024 13:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 966.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102919\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:33]execute_script... [13:46:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190914\u000A19.04.2024 13:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 966.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102919\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:33]POST & json_proto [13:46:33]process_json_proto [13:46:33]json parsed OK: [13:46:33]protocol is kg_v1.0 [13:46:33]action value=print_text [13:46:33]process_action print_text [13:46:33]cmd_print_text [13:46:33]ExternCall_PrintAddStr [13:46:33]wPrintStart [13:46:33]Write to MH i2c: 01 00 00 01 35 36 [13:46:33]Write i2c OK [13:46:33]MH_I2C_Read... [13:46:33]Read from MH i2c: 01 [13:46:33]MH_I2C_Read... [13:46:33]Read from MH i2c: 01 07 00 [13:46:33]MH_I2C_Read... [13:46:33]Read from MH i2c: 01 07 00 01 35 00 00 00 00 00 FF 0F 4B [13:46:33]RasterBufferAndPrint [13:46:33]line *****ТОВАРНЫЙ ЧЕК***** [13:46:33]line АЗС 106 [13:46:33]line Партнер нефть [13:46:33]line 02508201610067 [13:46:33]line Кассир : Табалдиева М. [13:46:33]line Счет N : (1)190914 [13:46:33]line 19.04.2024 13:28 [13:46:33]line ПРОДАЖА [13:46:33]line ТРК (МРК, ГНК): 33 [13:46:33]line Вид ГСМ : 2710124130 [13:46:33]line Аи-92-К-5 [13:46:33]line 15.000 x 64.40 [13:46:33]line ИТОГ: 966.00 [13:46:33]line Тип оплаты: Талоны: ТК ГПНА Online [13:46:33]line 30102919 [13:46:33]line ______________________ [13:46:33]line (подпись) [13:46:33]written 0, free lines is 4095 [13:46:33]Write to MH i2c: 01 00 00 15 35 4A [13:46:33]Write i2c OK [13:46:33]MH_I2C_Read... [13:46:33]Read from MH i2c: 01 [13:46:33]MH_I2C_Read... [13:46:33]Read from MH i2c: 01 07 00 [13:46:33]MH_I2C_Read... [13:46:33]Read from MH i2c: 01 07 00 15 35 00 00 00 00 00 0F 0E 6E [13:46:33]RasterBufferAndPrint [13:46:33]line [13:46:33]line [13:46:33]line [13:46:33]line [13:46:33]line [13:46:33]written 0, free lines is 3601 [13:46:33]MH_Cut [13:46:33]Write to MH i2c: D1 01 00 1C 35 01 23 [13:46:33]Write i2c OK [13:46:33]MH_I2C_Read... [13:46:33]Read from MH i2c: D1 [13:46:33]MH_I2C_Read... [13:46:33]Read from MH i2c: D1 01 00 [13:46:33]MH_I2C_Read... [13:46:33]Read from MH i2c: D1 01 00 1C 35 00 22 [13:46:33]Write to MH i2c: 01 00 00 1D 35 52 [13:46:33]Write i2c OK [13:46:33]MH_I2C_Read... [13:46:34]*** Cut start [13:46:34]*** Partial cut [13:46:34]*** CUTSNS_PIN = 1 [13:46:34]*** CUTSNS_PIN = 0 [13:46:34]*** Brake cut motor [13:46:35]Read from MH i2c: 01 [13:46:35]MH_I2C_Read... [13:46:35]*** Stop cut motor [13:46:35]*** Cut end [13:46:35]Read from MH i2c: 01 07 00 [13:46:35]MH_I2C_Read... [13:46:35]Read from MH i2c: 01 07 00 1D 35 00 00 00 00 00 FF 0F 67 [13:46:35]process_action print_text done [13:46:35]requested_data is exist [13:46:35]produce_requested_data [13:46:35]requested_item fm.sn is exist - process it [13:46:35]wFMCommunicate request_size=4 [13:46:35]MH_SAM_APDU [13:46:35]CAPDU: 80 11 00 00 [13:46:35]Write to MH i2c: E2 08 00 1E 35 80 11 00 00 00 00 00 00 CD [13:46:35]Write i2c OK [13:46:35]MH_I2C_Read... [13:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:35]Read from MH i2c: E2 [13:46:35]MH_I2C_Read... [13:46:35]Read from MH i2c: E2 17 00 [13:46:35]MH_I2C_Read... [13:46:35]Read from MH i2c: E2 17 00 1E 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 20 [13:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:46:35]wFMCommunicate OK [13:46:35]requested_item fd.num is exist - process it [13:46:35]SAM_PROTO_GetFieldsCounters [13:46:35]wFMCommunicate request_size=4 [13:46:35]MH_SAM_APDU [13:46:35]CAPDU: 80 13 00 00 [13:46:35]Write to MH i2c: E2 08 00 1F 35 80 13 00 00 00 00 00 00 D0 [13:46:35]Write i2c OK [13:46:35]MH_I2C_Read... [13:46:35]Read from MH i2c: E2 [13:46:35]MH_I2C_Read... [13:46:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:35]Read from MH i2c: E2 62 00 [13:46:35]MH_I2C_Read... [13:46:35]Read from MH i2c: E2 62 00 1F 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9C 2A 01 00 0E 04 04 00 72 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 EB [13:46:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9C 2A 01 00 0E 04 04 00 72 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 [13:46:35]wFMCommunicate OK [13:46:35]SAM_PROTO_GetFieldsCounters done [13:46:35]requested_item shift.num is exist - process it [13:46:35]requested_item shift.opened is exist - process it [13:46:35]req_shift_opened [13:46:35]FM_GetShiftState [13:46:35]SAM_PROTO_GetShiftState [13:46:35]wFMCommunicate request_size=4 [13:46:35]MH_SAM_APDU [13:46:35]CAPDU: 80 13 01 00 [13:46:35]Write to MH i2c: E2 08 00 20 35 80 13 01 00 00 00 00 00 D2 [13:46:35]Write i2c OK [13:46:35]MH_I2C_Read... [13:46:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:35]Read from MH i2c: E2 [13:46:35]MH_I2C_Read... [13:46:35]Read from MH i2c: E2 0E 00 [13:46:35]MH_I2C_Read... [13:46:35]Read from MH i2c: E2 0E 00 20 35 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 B7 [13:46:35]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:46:35]wFMCommunicate OK [13:46:35]SAM_PROTO_GetShiftState done [13:46:35]FM_GetShiftState done [13:46:35]req_shift_opened done [13:46:35]requested_item shift.open_date is exist - process it [13:46:35]req_shift_open_date [13:46:35]req_shift_open_date done [13:46:35]produce_requested_data done [13:46:35]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76444,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [13:46:35]process_action_free print_text [13:46:35]json_value_free [13:46:35]json_value_free done [13:46:35]process_json_proto returns [13:46:35]Send response to host [13:46:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76444,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [13:46:35]free response buf [13:46:35]execute_script done [13:46:35]execute_script returns [13:46:35]free content buf [13:46:35]Sock 7.Close socket [13:46:35]Sock 7.Thread stoped [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:18]OFD Sender: No OFD packet to send [13:47:23]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:33]OFD Sender: No OFD packet to send [13:47:38]OFD Sender: No OFD packet to send [13:47:43]OFD Sender: No OFD packet to send [13:47:48]accept exits with 9 [13:47:48]New connection [13:47:48]New thread 3066629476 created [13:47:48]Thread 3066486116 joined [13:47:48]Waiting for new connection... [13:47:48] Sock 9.Parse request [13:47:48]Sock 9.Check first char [13:47:48]Sock 9.First char is OK [13:47:48]request: POST /json_proto HTTP/1.0 [13:47:48]Method: POST [13:47:48]URL: /json_proto [13:47:48]Method is POST - this is cgi request [13:47:48]url: /json_proto [13:47:48]query_string will be loaded in cgi processing [13:47:48]execute_cgi json_proto POST (null) [13:47:48]execute_cgi path=json_proto method=POST [13:47:48]POST find Content-Length [13:47:48]Host: 172.17.62.5:8080 [13:47:48]Content-Length: 675 [13:47:48]Content-Type: application/json [13:47:48] [13:47:48]POST finish read [13:47:48]Found Content-Length = 675 [13:47:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.160, "sum" : 740.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:48]execute_script... [13:47: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)190915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.160, "sum" : 740.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:48]POST & json_proto [13:47:48]process_json_proto [13:47:48]json parsed OK: [13:47:48]protocol is kg_v1.0 [13:47:48]action value=close_receipt [13:47:48]process_action close_receipt [13:47:48]cmd_close_receipt [13:47:48]MH_GetDate [13:47:48]Write to MH i2c: F0 00 00 21 35 45 [13:47:48]Write i2c OK [13:47:48]MH_I2C_Read... [13:47:48]Read from MH i2c: F0 [13:47:48]MH_I2C_Read... [13:47:48]Read from MH i2c: F0 09 00 [13:47:48]MH_I2C_Read... [13:47:48]Read from MH i2c: F0 09 00 21 35 00 09 76 22 66 F4 E9 65 64 FB [13:47:48]GetLastDocTimeStamp 1713534050 [13:47:48]current date 1713534473 [13:47:48]FM_GetShiftState [13:47:48]SAM_PROTO_GetShiftState [13:47:48]wFMCommunicate request_size=4 [13:47:48]MH_SAM_APDU [13:47:48]CAPDU: 80 13 01 00 [13:47:48]Write to MH i2c: E2 08 00 22 35 80 13 01 00 00 00 00 00 D4 [13:47:48]Write i2c OK [13:47:48]MH_I2C_Read... [13:47:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:48]Read from MH i2c: E2 [13:47:48]MH_I2C_Read... [13:47:48]Read from MH i2c: E2 0E 00 [13:47:48]MH_I2C_Read... [13:47:48]Read from MH i2c: E2 0E 00 22 35 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 B9 [13:47:48]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:47:48]wFMCommunicate OK [13:47:48]SAM_PROTO_GetShiftState done [13:47:48]FM_GetShiftState done [13:47:48]opened in 1713486233 [13:47:48]opened+sec_in_day 1713572633 [13:47:48]quantity*price = 74066 [13:47:48]sum+1 = 74067 [13:47:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 740.00 Внесено: 740.00 СДАЧА: 0.00 НСП 1% : 6.55 НДС 12% : 78.65 Наличными: 740.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 65 19.04.2024 13:47 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76445 ФПД: 41344279975410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T134753&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76445&fm=41344279975410&tin=02508201610067®Number=0000000000091573&sum=74000 [13:47:49]StoreToDocumentArchive [13:47:49]shift 370 fd 76445 [13:47:49]save to /storage/0370/doc_00076445 [13:47:49]save last doc name /storage/0370/doc_00076445 to /storage/kkm_last_doc_name [13:47:49]save OK [13:47:49]Clear old archive folders... [13:47:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:47:49]tlvbuf is 00A01930 [13:47:49]SAM_PROTO_ClearQueue [13:47:49]wFMCommunicate request_size=4 [13:47:49]MH_SAM_APDU [13:47:49]CAPDU: 80 09 00 00 [13:47:49]Write to MH i2c: E2 08 00 2F 35 80 09 00 00 00 00 00 00 D6 [13:47:49]Write i2c OK [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 [13:47:49]MH_I2C_Read... [13:47:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:49]Read from MH i2c: E2 03 00 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 03 00 2F 35 00 90 00 D8 [13:47:49]RAPDU: 90 00 [13:47:49]wFMCommunicate OK [13:47:49]SAM_PROTO_ClearQueue done [13:47:49]KKMCreateOFDPacket [13:47:49]OFDProtocolAddRootSTLVToBuf [13:47:49]FM_MakeSignedData [13:47:49]FM_MakeSignedData [13:47:49]SAM_PROTO_SignData [13:47:49]wFMCommunicate request_size=4 [13:47:49]MH_SAM_APDU [13:47:49]CAPDU: 80 0D 01 02 [13:47:49]Write to MH i2c: E2 08 00 30 35 80 0D 01 02 00 00 00 00 DE [13:47:49]Write i2c OK [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 [13:47:49]MH_I2C_Read... [13:47:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:49]Read from MH i2c: E2 03 00 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 03 00 30 35 00 90 00 D9 [13:47:49]RAPDU: 90 00 [13:47:49]wFMCommunicate OK [13:47:49]wFMCommunicate request_size=255 [13:47:49]MH_SAM_APDU [13:47: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 B0 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 52 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 09 76 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9D 2A 01 00 35 04 06 00 25 9A 37 1F [13:47:49]Write to MH i2c: E2 02 01 31 35 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 B0 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 52 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 09 76 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9D 2A 01 00 35 04 06 00 25 9A 37 1F 00 00 80 [13:47:49]Write i2c OK [13:47:49]MH_I2C_Read... [13:47:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:49]Read from MH i2c: E2 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 03 00 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 03 00 31 35 00 90 00 DA [13:47:49]RAPDU: 90 00 [13:47:49]wFMCommunicate OK [13:47:49]wFMCommunicate request_size=7 [13:47:49]MH_SAM_APDU [13:47:49]CAPDU: 80 0D 02 02 02 15 F2 [13:47:49]Write to MH i2c: E2 0A 00 32 35 80 0D 02 02 02 00 15 F2 00 00 EC [13:47:49]Write i2c OK [13:47:49]MH_I2C_Read... [13:47:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:49]Read from MH i2c: E2 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 03 00 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 03 00 32 35 00 90 00 DB [13:47:49]RAPDU: 90 00 [13:47:49]wFMCommunicate OK [13:47:49]wFMCommunicate request_size=4 [13:47:49]MH_SAM_APDU [13:47:49]CAPDU: 80 0D 03 02 [13:47:49]Write to MH i2c: E2 08 00 33 35 80 0D 03 02 00 00 00 00 E3 [13:47:49]Write i2c OK [13:47:49]MH_I2C_Read... [13:47:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:49]Read from MH i2c: E2 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 0B 00 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 0B 00 33 35 00 26 39 3A B3 9E 7F 55 B9 90 00 5B [13:47:49]RAPDU: 26 39 3A B3 9E 7F 55 B9 90 00 [13:47:49]wFMCommunicate OK [13:47:49]SAM_PROTO_SignData done [13:47:49]FM_MakeSignedData done [13:47:49]CreateOFDProtocolMessage [13:47:49]wFMCommunicate request_size=4 [13:47:49]MH_SAM_APDU [13:47:49]CAPDU: 80 11 00 00 [13:47:49]Write to MH i2c: E2 08 00 34 35 80 11 00 00 00 00 00 00 E3 [13:47:49]Write i2c OK [13:47:49]MH_I2C_Read... [13:47:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:49]Read from MH i2c: E2 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 17 00 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 17 00 34 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 36 [13:47:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:47:49]wFMCommunicate OK [13:47:49]CreateOFDProtocolMessage done [13:47:49]OFDSenderStorePacket 76445 [13:47:49]StoreOFDPacket docnum=76445 [13:47:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 77 3A 04 01 B1 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 B0 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 52 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 09 76 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9D 2A 01 00 35 04 06 00 25 9A 37 1F 15 F2 26 39 3A B3 9E 7F 55 B9 [13:47:49]CheckFolder [13:47:49]dirname=/storage/ofd_packets [13:47:49]CheckFolder done [13:47:49]ProducePacketName [13:47:49]name=ofd_packets/00076445 [13:47:49]NVStorageSaveData ofd_packets/00076445 [13:47:49]File name is /storage/ofd_packets/00076445 [13:47:49]Write 298 bytes [13:47:49]NVStorageSaveData done [13:47:49]OFDSenderStorePacket done [13:47:49]KKMCreateOFDPacket done [13:47:49]NVStorageSaveData kkm_last_timestamp [13:47:49]File name is /storage/kkm_last_timestamp [13:47:49]Write 4 bytes [13:47:49]NVStorageSaveData done [13:47:49]ExternCall_PrintAddStr [13:47:49]wPrintStart [13:47:49]Write to MH i2c: 01 00 00 35 35 6A [13:47:49]Write i2c OK [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: 01 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: 01 07 00 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: 01 07 00 35 35 00 00 00 00 00 FF 0F 7F [13:47:49]RasterBufferAndPrint [13:47:49]line Счет N : (1)190915 [13:47:49]line ИНН: 02508201610067 [13:47:49]line Контрольно-Кассовый Чек [13:47:49]line ПРОДАЖА [13:47:49]line ТРК (МРК, ГНК) : 23 [13:47:49]line Товар: 2710194210 [13:47:49]line ДТ-К-5 [13:47:49]line 10.160 * 72.90 [13:47:49]line = 740.66 [13:47:49]line НДС 12% НСП 1% [13:47:49]line > о реализуемом товаре [13:47:49]line ОКРУГЛЕНИЕ: -0.66 [13:47:49]line ИТОГО: 740.00 [13:47:49]line Внесено: 740.00 [13:47:49]line СДАЧА: 0.00 [13:47:49]line НСП 1% : 6.55 [13:47:49]line НДС 12% : 78.65 [13:47:49]line Наличными: 740.00 [13:47:49]line Безнал.: 0.00 [13:47:49]line Место: АЗС № 106 "Партнер Нефть" [13:47:49]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:47:49]line СНО: Общий режим [13:47:49]line Чек 65 19.04.2024 13:47 [13:47:49]line Смена: 370 ФФД: 1.0 [13:47:49]line ЗНМ: 0300000141 [13:47:49]line РНМ: 0000000000091573 [13:47:49]line Версия ККМ: 001 [13:47:49]line ФМ: 0000000000874652 [13:47:49]line ФД: 76445 [13:47:49]line ФПД: 41344279975410 [13:47:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T134753&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76445&fm=41344279975410&tin=02508201610067®Number=0000000000091573&sum=74000 [13:47:50]OFD Sender: Processing packet 76445 [packets to send 128, broken 127] [13:47:50]ProducePacketName [13:47:50]name=ofd_packets/00076445 [13:47:50]OFD Sender: To server: pG, [13:47:50]CommunicateWithHost lk.salyk.kg:30040 [13:47:50]ConnectInit lk.salyk.kg [13:47:50]written 0, free lines is 4095 [13:47:50]Connected sock=10 [13:47:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 77 3A 04 01 B1 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 B0 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 52 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 09 76 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9D 2A 01 00 35 04 06 00 25 9A 37 1F 15 F2 26 39 3A B3 9E 7F 55 B9 [13:47:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 09 0A 47 00 05 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 34 36 35 32 10 04 04 00 9D 2A 01 00 F4 03 04 00 94 1D 22 66 B6 04 01 00 00 EB 0B 3D 06 FF 72 40 9C [13:47:50]CommunicateWithHost err = 0 [13:47:50]CheckOFDResponse [13:47:50]1017 (14) - 77093643461234 [13:47:50]1041 (16) - 0000000000874652 [13:47:50]1040 (4) - 76445 [13:47:50]1012 (4) - 19.04.2024 07:30 [13:47:50]1206 (1) - 0 [13:47:50]OFD Sender: Remove packet 76445 [13:47:50]ProducePacketName [13:47:50]name=ofd_packets/00076445 [13:47:50]NVStorageDeleteData [13:47:50]Write to MH i2c: 01 00 00 5F 35 94 [13:47:50]Write i2c OK [13:47:50]MH_I2C_Read... [13:47:50]Read from MH i2c: 01 [13:47:50]MH_I2C_Read... [13:47:50]Read from MH i2c: 01 07 00 [13:47:50]MH_I2C_Read... [13:47:50]Read from MH i2c: 01 07 00 5F 35 00 00 00 00 00 EE 0C 95 [13:47:50]RasterBufferAndPrint [13:47:50]line [13:47:50]line [13:47:50]line [13:47:50]line [13:47:50]line [13:47:50]written 0, free lines is 3318 [13:47:50]MH_Cut [13:47:50]Write to MH i2c: D1 01 00 66 35 01 6D [13:47:50]Write i2c OK [13:47:50]MH_I2C_Read... [13:47:50]Read from MH i2c: D1 [13:47:50]MH_I2C_Read... [13:47:50]Read from MH i2c: D1 01 00 [13:47:50]MH_I2C_Read... [13:47:50]Read from MH i2c: D1 01 00 66 35 00 6C [13:47:50]Write to MH i2c: 01 00 00 67 35 9C [13:47:50]Write i2c OK [13:47:50]MH_I2C_Read... [13:47:50]OFD Sender: No OFD packet to send [13:47:51]*** Cut start [13:47:51]*** Partial cut [13:47:51]*** CUTSNS_PIN = 1 [13:47:51]*** CUTSNS_PIN = 0 [13:47:51]*** Brake cut motor [13:47:51]Read from MH i2c: 01 [13:47:51]MH_I2C_Read... [13:47:51]*** Stop cut motor [13:47:51]*** Cut end [13:47:51]Read from MH i2c: 01 07 00 [13:47:51]MH_I2C_Read... [13:47:51]Read from MH i2c: 01 07 00 67 35 00 00 00 00 00 FF 0F B1 [13:47:51]process_action close_receipt done [13:47:51]requested_data is exist [13:47:51]produce_requested_data [13:47:51]requested_item fm.sn is exist - process it [13:47:51]wFMCommunicate request_size=4 [13:47:51]MH_SAM_APDU [13:47:51]CAPDU: 80 11 00 00 [13:47:51]Write to MH i2c: E2 08 00 68 35 80 11 00 00 00 00 00 00 17 [13:47:51]Write i2c OK [13:47:51]MH_I2C_Read... [13:47:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:51]Read from MH i2c: E2 [13:47:51]MH_I2C_Read... [13:47:51]Read from MH i2c: E2 17 00 [13:47:51]MH_I2C_Read... [13:47:51]Read from MH i2c: E2 17 00 68 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6A [13:47:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:47:51]wFMCommunicate OK [13:47:51]requested_item fd.num is exist - process it [13:47:51]SAM_PROTO_GetFieldsCounters [13:47:51]wFMCommunicate request_size=4 [13:47:51]MH_SAM_APDU [13:47:51]CAPDU: 80 13 00 00 [13:47:51]Write to MH i2c: E2 08 00 69 35 80 13 00 00 00 00 00 00 1A [13:47:51]Write i2c OK [13:47:51]MH_I2C_Read... [13:47:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:52]Read from MH i2c: E2 [13:47:52]MH_I2C_Read... [13:47:52]Read from MH i2c: E2 62 00 [13:47:52]MH_I2C_Read... [13:47:52]Read from MH i2c: E2 62 00 69 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9D 2A 01 00 0E 04 04 00 72 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 39 [13:47:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9D 2A 01 00 0E 04 04 00 72 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 [13:47:52]wFMCommunicate OK [13:47:52]SAM_PROTO_GetFieldsCounters done [13:47:52]requested_item shift.num is exist - process it [13:47:52]requested_item shift.opened is exist - process it [13:47:52]req_shift_opened [13:47:52]FM_GetShiftState [13:47:52]SAM_PROTO_GetShiftState [13:47:52]wFMCommunicate request_size=4 [13:47:52]MH_SAM_APDU [13:47:52]CAPDU: 80 13 01 00 [13:47:52]Write to MH i2c: E2 08 00 6A 35 80 13 01 00 00 00 00 00 1C [13:47:52]Write i2c OK [13:47:52]MH_I2C_Read... [13:47:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:52]Read from MH i2c: E2 [13:47:52]MH_I2C_Read... [13:47:52]Read from MH i2c: E2 0E 00 [13:47:52]MH_I2C_Read... [13:47:52]Read from MH i2c: E2 0E 00 6A 35 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 01 [13:47:52]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:47:52]wFMCommunicate OK [13:47:52]SAM_PROTO_GetShiftState done [13:47:52]FM_GetShiftState done [13:47:52]req_shift_opened done [13:47:52]requested_item shift.open_date is exist - process it [13:47:52]req_shift_open_date [13:47:52]req_shift_open_date done [13:47:52]produce_requested_data done [13:47:52]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76445,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [13:47:52]process_action_free close_receipt [13:47:52]json_value_free [13:47:52]json_value_free done [13:47:52]process_json_proto returns [13:47:52]Send response to host [13:47:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76445,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [13:47:52]free response buf [13:47:52]execute_script done [13:47:52]execute_script returns [13:47:52]free content buf [13:47:52]Sock 9.Close socket [13:47:52]Sock 9.Thread stoped [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:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:36]OFD Sender: No OFD packet to send [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:13]accept exits with 7 [13:53:13]New connection [13:53:13]New thread 3066486116 created [13:53:13]Thread 3066629476 joined [13:53:13]Waiting for new connection... [13:53:13] Sock 7.Parse request [13:53:13]Sock 7.Check first char [13:53:13]Sock 7.First char is OK [13:53:13]request: POST /json_proto HTTP/1.0 [13:53:13]Method: POST [13:53:13]URL: /json_proto [13:53:13]Method is POST - this is cgi request [13:53:13]url: /json_proto [13:53:13]query_string will be loaded in cgi processing [13:53:13]execute_cgi json_proto POST (null) [13:53:13]execute_cgi path=json_proto method=POST [13:53:13]POST find Content-Length [13:53:13]Host: 172.17.62.5:8080 [13:53:13]Content-Length: 805 [13:53:13]Content-Type: application/json [13:53:13] [13:53:13]POST finish read [13:53:13]Found Content-Length = 805 [13:53:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 450.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:13]execute_script... [13:53: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)190917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 450.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:13]POST & json_proto [13:53:13]process_json_proto [13:53:13]json parsed OK: [13:53:13]protocol is kg_v1.0 [13:53:13]action value=close_receipt [13:53:13]process_action close_receipt [13:53:13]cmd_close_receipt [13:53:13]MH_GetDate [13:53:13]Write to MH i2c: F0 00 00 6B 35 8F [13:53:13]Write i2c OK [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: F0 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: F0 09 00 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: F0 09 00 6B 35 00 4E 77 22 66 F4 E9 65 64 8B [13:53:13]GetLastDocTimeStamp 1713534473 [13:53:13]current date 1713534798 [13:53:13]FM_GetShiftState [13:53:13]SAM_PROTO_GetShiftState [13:53:13]wFMCommunicate request_size=4 [13:53:13]MH_SAM_APDU [13:53:13]CAPDU: 80 13 01 00 [13:53:13]Write to MH i2c: E2 08 00 6C 35 80 13 01 00 00 00 00 00 1E [13:53:13]Write i2c OK [13:53:13]MH_I2C_Read... [13:53:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:13]Read from MH i2c: E2 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 0E 00 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 0E 00 6C 35 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 03 [13:53:13]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:53:13]wFMCommunicate OK [13:53:13]SAM_PROTO_GetShiftState done [13:53:13]FM_GetShiftState done [13:53:13]opened in 1713486233 [13:53:13]opened+sec_in_day 1713572633 [13:53:13]quantity*price = 45052 [13:53:13]sum+1 = 45053 [13:53:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.52 НСП 1% : 3.99 НДС 12% : 47.84 Наличными: 0.00 Безнал.: 450.52 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 66 19.04.2024 13:53 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76446 ФПД: 202643816797433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T135318&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76446&fm=202643816797433&tin=02508201610067®Number=0000000000091573&sum=45052 [13:53:14]StoreToDocumentArchive [13:53:14]shift 370 fd 76446 [13:53:14]save to /storage/0370/doc_00076446 [13:53:14]save last doc name /storage/0370/doc_00076446 to /storage/kkm_last_doc_name [13:53:14]save OK [13:53:14]Clear old archive folders... [13:53:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:53:14]tlvbuf is 00913360 [13:53:14]SAM_PROTO_ClearQueue [13:53:14]wFMCommunicate request_size=4 [13:53:14]MH_SAM_APDU [13:53:14]CAPDU: 80 09 00 00 [13:53:14]Write to MH i2c: E2 08 00 79 35 80 09 00 00 00 00 00 00 20 [13:53:14]Write i2c OK [13:53:14]MH_I2C_Read... [13:53:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:14]Read from MH i2c: E2 [13:53:14]MH_I2C_Read... [13:53:14]Read from MH i2c: E2 03 00 [13:53:14]MH_I2C_Read... [13:53:14]Read from MH i2c: E2 03 00 79 35 00 90 00 22 [13:53:14]RAPDU: 90 00 [13:53:14]wFMCommunicate OK [13:53:14]SAM_PROTO_ClearQueue done [13:53:14]KKMCreateOFDPacket [13:53:14]OFDProtocolAddRootSTLVToBuf [13:53:14]FM_MakeSignedData [13:53:14]FM_MakeSignedData [13:53:14]SAM_PROTO_SignData [13:53:14]wFMCommunicate request_size=4 [13:53:14]MH_SAM_APDU [13:53:14]CAPDU: 80 0D 01 02 [13:53:14]Write to MH i2c: E2 08 00 7A 35 80 0D 01 02 00 00 00 00 28 [13:53:14]Write i2c OK [13:53:14]MH_I2C_Read... [13:53:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:14]Read from MH i2c: E2 [13:53:14]MH_I2C_Read... [13:53:14]Read from MH i2c: E2 03 00 [13:53:14]MH_I2C_Read... [13:53:14]Read from MH i2c: E2 03 00 7A 35 00 90 00 23 [13:53:14]RAPDU: 90 00 [13:53:14]wFMCommunicate OK [13:53:14]wFMCommunicate request_size=255 [13:53:14]MH_SAM_APDU [13:53:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 4E 77 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9E 2A 01 00 35 04 06 00 B8 [13:53:14]Write to MH i2c: E2 02 01 7B 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 42 00 00 00 F4 03 04 00 4E 77 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9E 2A 01 00 35 04 06 00 B8 00 00 DE [13:53:14]Write i2c OK [13:53:14]MH_I2C_Read... [13:53:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:14]Read from MH i2c: E2 [13:53:14]MH_I2C_Read... [13:53:14]Read from MH i2c: E2 03 00 [13:53:14]MH_I2C_Read... [13:53:14]Read from MH i2c: E2 03 00 7B 35 00 90 00 24 [13:53:14]RAPDU: 90 00 [13:53:14]wFMCommunicate OK [13:53:14]wFMCommunicate request_size=10 [13:53:14]MH_SAM_APDU [13:53:14]CAPDU: 80 0D 02 02 05 4D B0 B7 54 F9 [13:53:14]Write to MH i2c: E2 0D 00 7C 35 80 0D 02 02 05 00 4D B0 B7 54 F9 00 00 36 [13:53:14]Write i2c OK [13:53:14]MH_I2C_Read... [13:53:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:14]Read from MH i2c: E2 [13:53:14]MH_I2C_Read... [13:53:14]Read from MH i2c: E2 03 00 [13:53:14]MH_I2C_Read... [13:53:14]Read from MH i2c: E2 03 00 7C 35 00 90 00 25 [13:53:14]RAPDU: 90 00 [13:53:14]wFMCommunicate OK [13:53:14]wFMCommunicate request_size=4 [13:53:14]MH_SAM_APDU [13:53:14]CAPDU: 80 0D 03 02 [13:53:14]Write to MH i2c: E2 08 00 7D 35 80 0D 03 02 00 00 00 00 2D [13:53:14]Write i2c OK [13:53:14]MH_I2C_Read... [13:53:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:14]Read from MH i2c: E2 [13:53:14]MH_I2C_Read... [13:53:14]Read from MH i2c: E2 0B 00 [13:53:14]MH_I2C_Read... [13:53:14]Read from MH i2c: E2 0B 00 7D 35 00 7B CF 3B 33 29 6F D6 9D 90 00 F1 [13:53:14]RAPDU: 7B CF 3B 33 29 6F D6 9D 90 00 [13:53:14]wFMCommunicate OK [13:53:14]SAM_PROTO_SignData done [13:53:14]FM_MakeSignedData done [13:53:14]CreateOFDProtocolMessage [13:53:14]wFMCommunicate request_size=4 [13:53:14]MH_SAM_APDU [13:53:14]CAPDU: 80 11 00 00 [13:53:14]Write to MH i2c: E2 08 00 7E 35 80 11 00 00 00 00 00 00 2D [13:53:14]Write i2c OK [13:53:14]MH_I2C_Read... [13:53:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:15]Read from MH i2c: E2 [13:53:15]MH_I2C_Read... [13:53:15]Read from MH i2c: E2 17 00 [13:53:15]MH_I2C_Read... [13:53:15]Read from MH i2c: E2 17 00 7E 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 80 [13:53:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:53:15]wFMCommunicate OK [13:53:15]CreateOFDProtocolMessage done [13:53:15]OFDSenderStorePacket 76446 [13:53:15]StoreOFDPacket docnum=76446 [13:53:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 29 98 07 01 A7 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 4E 77 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9E 2A 01 00 35 04 06 00 B8 4D B0 B7 54 F9 7B CF 3B 33 29 6F D6 9D [13:53:15]CheckFolder [13:53:15]dirname=/storage/ofd_packets [13:53:15]CheckFolder done [13:53:15]ProducePacketName [13:53:15]name=ofd_packets/00076446 [13:53:15]NVStorageSaveData ofd_packets/00076446 [13:53:15]File name is /storage/ofd_packets/00076446 [13:53:15]Write 301 bytes [13:53:15]NVStorageSaveData done [13:53:15]OFDSenderStorePacket done [13:53:15]KKMCreateOFDPacket done [13:53:15]NVStorageSaveData kkm_last_timestamp [13:53:15]File name is /storage/kkm_last_timestamp [13:53:15]Write 4 bytes [13:53:15]NVStorageSaveData done [13:53:15]ExternCall_PrintAddStr [13:53:15]wPrintStart [13:53:15]Write to MH i2c: 01 00 00 7F 35 B4 [13:53:15]Write i2c OK [13:53:15]MH_I2C_Read... [13:53:15]Read from MH i2c: 01 [13:53:15]MH_I2C_Read... [13:53:15]Read from MH i2c: 01 07 00 [13:53:15]MH_I2C_Read... [13:53:15]Read from MH i2c: 01 07 00 7F 35 00 00 00 00 00 FF 0F C9 [13:53:15]RasterBufferAndPrint [13:53:15]line Счет N : (1)190917 [13:53:15]line ИНН: 02508201610067 [13:53:15]line Контрольно-Кассовый Чек [13:53:15]line ПРОДАЖА [13:53:15]line ТРК (МРК, ГНК) : 11 [13:53:15]line Товар: 2710124500 [13:53:15]line Аи-95-К-5 [13:53:15]line 6.180 * 72.90 [13:53:15]line = 450.52 [13:53:15]line НДС 12% НСП 1% [13:53:15]line > о реализуемом товаре [13:53:15]line ИТОГО: 450.52 [13:53:15]line НСП 1% : 3.99 [13:53:15]line НДС 12% : 47.84 [13:53:15]line Наличными: 0.00 [13:53:15]line Безнал.: 450.52 [13:53:15]line Место: АЗС № 106 "Партнер Нефть" [13:53:15]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:53:15]line СНО: Общий режим [13:53:15]line Чек 66 19.04.2024 13:53 [13:53:15]line Смена: 370 ФФД: 1.0 [13:53:15]line ЗНМ: 0300000141 [13:53:15]line РНМ: 0000000000091573 [13:53:15]line Версия ККМ: 001 [13:53:15]line Платежная система: О! деньги [13:53:15]line ФМ: 0000000000874652 [13:53:15]line ФД: 76446 [13:53:15]line ФПД: 202643816797433 [13:53:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T135318&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76446&fm=202643816797433&tin=02508201610067®Number=0000000000091573&sum=45052 [13:53:15]written 0, free lines is 4095 [13:53:15]OFD Sender: Processing packet 76446 [packets to send 128, broken 127] [13:53:15]ProducePacketName [13:53:15]name=ofd_packets/00076446 [13:53:15]OFD Sender: To server: pG, [13:53:15]CommunicateWithHost lk.salyk.kg:30040 [13:53:15]ConnectInit lk.salyk.kg [13:53:15]Connected sock=10 [13: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 34 36 35 32 0F 01 00 00 29 98 07 01 A7 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 4E 77 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9E 2A 01 00 35 04 06 00 B8 4D B0 B7 54 F9 7B CF 3B 33 29 6F D6 9D [13:53:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 86 32 47 00 67 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 34 36 35 32 10 04 04 00 9E 2A 01 00 F4 03 04 00 DA 1E 22 66 B6 04 01 00 00 4F A2 D9 D6 D6 F4 AC 79 [13:53:15]CommunicateWithHost err = 0 [13:53:15]CheckOFDResponse [13:53:15]1017 (14) - 77093643461234 [13:53:15]1041 (16) - 0000000000874652 [13:53:15]1040 (4) - 76446 [13:53:15]1012 (4) - 19.04.2024 07:35 [13:53:15]1206 (1) - 0 [13:53:15]OFD Sender: Remove packet 76446 [13:53:15]ProducePacketName [13:53:15]name=ofd_packets/00076446 [13:53:15]NVStorageDeleteData [13:53:15]Write to MH i2c: 01 00 00 A8 35 DD [13:53:15]Write i2c OK [13:53:15]MH_I2C_Read... [13:53:15]Read from MH i2c: 01 [13:53:15]MH_I2C_Read... [13:53:15]Read from MH i2c: 01 07 00 [13:53:15]MH_I2C_Read... [13:53:15]Read from MH i2c: 01 07 00 A8 35 00 00 00 00 00 0B 0D FC [13:53:15]RasterBufferAndPrint [13:53:15]line [13:53:15]line [13:53:15]line [13:53:15]line [13:53:15]line [13:53:15]written 0, free lines is 3345 [13:53:15]MH_Cut [13:53:15]Write to MH i2c: D1 01 00 AF 35 01 B6 [13:53:15]Write i2c OK [13:53:15]MH_I2C_Read... [13:53:15]Read from MH i2c: D1 [13:53:15]MH_I2C_Read... [13:53:15]Read from MH i2c: D1 01 00 [13:53:15]MH_I2C_Read... [13:53:15]Read from MH i2c: D1 01 00 AF 35 00 B5 [13:53:15]Write to MH i2c: 01 00 00 B0 35 E5 [13:53:15]Write i2c OK [13:53:15]MH_I2C_Read... [13:53:15]OFD Sender: No OFD packet to send [13:53:16]*** Cut start [13:53:16]*** Partial cut [13:53:16]*** CUTSNS_PIN = 1 [13:53:16]*** CUTSNS_PIN = 0 [13:53:16]*** Brake cut motor [13:53:16]Read from MH i2c: 01 [13:53:16]MH_I2C_Read... [13:53:16]*** Stop cut motor [13:53:16]*** Cut end [13:53:16]Read from MH i2c: 01 07 00 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: 01 07 00 B0 35 00 00 00 00 00 FF 0F FA [13:53:16]process_action close_receipt done [13:53:16]requested_data is exist [13:53:16]produce_requested_data [13:53:16]requested_item fm.sn is exist - process it [13:53:16]wFMCommunicate request_size=4 [13:53:16]MH_SAM_APDU [13:53:16]CAPDU: 80 11 00 00 [13:53:16]Write to MH i2c: E2 08 00 B1 35 80 11 00 00 00 00 00 00 60 [13:53:16]Write i2c OK [13:53:16]MH_I2C_Read... [13:53:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:16]Read from MH i2c: E2 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: E2 17 00 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: E2 17 00 B1 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B3 [13:53:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:53:16]wFMCommunicate OK [13:53:16]requested_item fd.num is exist - process it [13:53:16]SAM_PROTO_GetFieldsCounters [13:53:16]wFMCommunicate request_size=4 [13:53:16]MH_SAM_APDU [13:53:16]CAPDU: 80 13 00 00 [13:53:16]Write to MH i2c: E2 08 00 B2 35 80 13 00 00 00 00 00 00 63 [13:53:16]Write i2c OK [13:53:16]MH_I2C_Read... [13:53:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:17]Read from MH i2c: E2 [13:53:17]MH_I2C_Read... [13:53:17]Read from MH i2c: E2 62 00 [13:53:17]MH_I2C_Read... [13:53:17]Read from MH i2c: E2 62 00 B2 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9E 2A 01 00 0E 04 04 00 72 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 86 [13: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9E 2A 01 00 0E 04 04 00 72 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 [13:53:17]wFMCommunicate OK [13:53:17]SAM_PROTO_GetFieldsCounters done [13:53:17]requested_item shift.num is exist - process it [13:53:17]requested_item shift.opened is exist - process it [13:53:17]req_shift_opened [13:53:17]FM_GetShiftState [13:53:17]SAM_PROTO_GetShiftState [13:53:17]wFMCommunicate request_size=4 [13:53:17]MH_SAM_APDU [13:53:17]CAPDU: 80 13 01 00 [13:53:17]Write to MH i2c: E2 08 00 B3 35 80 13 01 00 00 00 00 00 65 [13:53:17]Write i2c OK [13:53:17]MH_I2C_Read... [13:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:17]Read from MH i2c: E2 [13:53:17]MH_I2C_Read... [13:53:17]Read from MH i2c: E2 0E 00 [13:53:17]MH_I2C_Read... [13:53:17]Read from MH i2c: E2 0E 00 B3 35 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 4A [13:53:17]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:53:17]wFMCommunicate OK [13:53:17]SAM_PROTO_GetShiftState done [13:53:17]FM_GetShiftState done [13:53:17]req_shift_opened done [13:53:17]requested_item shift.open_date is exist - process it [13:53:17]req_shift_open_date [13:53:17]req_shift_open_date done [13:53:17]produce_requested_data done [13:53:17]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76446,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [13:53:17]process_action_free close_receipt [13:53:17]json_value_free [13:53:17]json_value_free done [13:53:17]process_json_proto returns [13:53:17]Send response to host [13:53:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76446,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [13:53:17]free response buf [13:53:17]execute_script done [13:53:17]execute_script returns [13:53:17]free content buf [13:53:17]Sock 7.Close socket [13:53:17]Sock 7.Thread stoped [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:48]accept exits with 9 [13:54:48]New connection [13:54:48]New thread 3066629476 created [13:54:48]Thread 3066486116 joined [13:54:48]Waiting for new connection... [13:54:48] Sock 9.Parse request [13:54:48]Sock 9.Check first char [13:54:48]Sock 9.First char is OK [13:54:48]request: POST /json_proto HTTP/1.0 [13:54:48]Method: POST [13:54:48]URL: /json_proto [13:54:48]Method is POST - this is cgi request [13:54:48]url: /json_proto [13:54:48]query_string will be loaded in cgi processing [13:54:48]execute_cgi json_proto POST (null) [13:54:48]execute_cgi path=json_proto method=POST [13:54:48]POST find Content-Length [13:54:48]Host: 172.17.62.5:8080 [13:54:48]Content-Length: 677 [13:54:48]Content-Type: application/json [13:54:48] [13:54:48]POST finish read [13:54:48]Found Content-Length = 677 [13:54:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:48]execute_script... [13:54: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)190918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:48]POST & json_proto [13:54:48]process_json_proto [13:54:48]json parsed OK: [13:54:48]protocol is kg_v1.0 [13:54:48]action value=close_receipt [13:54:48]process_action close_receipt [13:54:48]cmd_close_receipt [13:54:48]MH_GetDate [13:54:48]Write to MH i2c: F0 00 00 B4 35 D8 [13:54:48]Write i2c OK [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: F0 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: F0 09 00 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: F0 09 00 B4 35 00 AD 77 22 66 F4 E9 65 64 33 [13:54:48]GetLastDocTimeStamp 1713534798 [13:54:48]current date 1713534893 [13:54:48]FM_GetShiftState [13:54:48]SAM_PROTO_GetShiftState [13:54:48]wFMCommunicate request_size=4 [13:54:48]MH_SAM_APDU [13:54:48]CAPDU: 80 13 01 00 [13:54:48]Write to MH i2c: E2 08 00 B5 35 80 13 01 00 00 00 00 00 67 [13:54:48]Write i2c OK [13:54:48]MH_I2C_Read... [13:54:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:48]Read from MH i2c: E2 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: E2 0E 00 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: E2 0E 00 B5 35 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 4C [13:54:48]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:54:48]wFMCommunicate OK [13:54:48]SAM_PROTO_GetShiftState done [13:54:48]FM_GetShiftState done [13:54:48]opened in 1713486233 [13:54:48]opened+sec_in_day 1713572633 [13:54:48]quantity*price = 50038 [13:54:48]sum+1 = 50040 [13:54:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 67 19.04.2024 13:54 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76447 ФПД: 215408385105758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T135453&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76447&fm=215408385105758&tin=02508201610067®Number=0000000000091573&sum=50000 [13:54:49]StoreToDocumentArchive [13:54:49]shift 370 fd 76447 [13:54:49]save to /storage/0370/doc_00076447 [13:54:49]save last doc name /storage/0370/doc_00076447 to /storage/kkm_last_doc_name [13:54:49]save OK [13:54:49]Clear old archive folders... [13:54:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:54:49]tlvbuf is 009594B0 [13:54:49]SAM_PROTO_ClearQueue [13:54:49]wFMCommunicate request_size=4 [13:54:49]MH_SAM_APDU [13:54:49]CAPDU: 80 09 00 00 [13:54:49]Write to MH i2c: E2 08 00 C2 35 80 09 00 00 00 00 00 00 69 [13:54:49]Write i2c OK [13:54:49]MH_I2C_Read... [13:54:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:49]Read from MH i2c: E2 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 03 00 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 03 00 C2 35 00 90 00 6B [13:54:49]RAPDU: 90 00 [13:54:49]wFMCommunicate OK [13:54:49]SAM_PROTO_ClearQueue done [13:54:49]KKMCreateOFDPacket [13:54:49]OFDProtocolAddRootSTLVToBuf [13:54:49]FM_MakeSignedData [13:54:49]FM_MakeSignedData [13:54:49]SAM_PROTO_SignData [13:54:49]wFMCommunicate request_size=4 [13:54:49]MH_SAM_APDU [13:54:49]CAPDU: 80 0D 01 02 [13:54:49]Write to MH i2c: E2 08 00 C3 35 80 0D 01 02 00 00 00 00 71 [13:54:49]Write i2c OK [13:54:49]MH_I2C_Read... [13:54:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:49]Read from MH i2c: E2 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 03 00 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 03 00 C3 35 00 90 00 6C [13:54:49]RAPDU: 90 00 [13:54:49]wFMCommunicate OK [13:54:49]wFMCommunicate request_size=255 [13:54:49]MH_SAM_APDU [13:54: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AD 77 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9F 2A 01 00 35 04 06 00 C3 [13:54:49]Write to MH i2c: E2 02 01 C4 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AD 77 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9F 2A 01 00 35 04 06 00 C3 00 00 15 [13:54:49]Write i2c OK [13:54:49]MH_I2C_Read... [13:54:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:49]Read from MH i2c: E2 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 03 00 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 03 00 C4 35 00 90 00 6D [13:54:49]RAPDU: 90 00 [13:54:49]wFMCommunicate OK [13:54:49]wFMCommunicate request_size=10 [13:54:49]MH_SAM_APDU [13:54:49]CAPDU: 80 0D 02 02 05 E9 AC 46 9F 5E [13:54:49]Write to MH i2c: E2 0D 00 C5 35 80 0D 02 02 05 00 E9 AC 46 9F 5E 00 00 56 [13:54:49]Write i2c OK [13:54:49]MH_I2C_Read... [13:54:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:49]Read from MH i2c: E2 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 03 00 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 03 00 C5 35 00 90 00 6E [13:54:49]RAPDU: 90 00 [13:54:49]wFMCommunicate OK [13:54:49]wFMCommunicate request_size=4 [13:54:49]MH_SAM_APDU [13:54:49]CAPDU: 80 0D 03 02 [13:54:49]Write to MH i2c: E2 08 00 C6 35 80 0D 03 02 00 00 00 00 76 [13:54:49]Write i2c OK [13:54:49]MH_I2C_Read... [13:54:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:49]Read from MH i2c: E2 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 0B 00 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 0B 00 C6 35 00 5B 84 E2 08 A5 AB E2 B1 90 00 23 [13:54:49]RAPDU: 5B 84 E2 08 A5 AB E2 B1 90 00 [13:54:49]wFMCommunicate OK [13:54:49]SAM_PROTO_SignData done [13:54:49]FM_MakeSignedData done [13:54:49]CreateOFDProtocolMessage [13:54:49]wFMCommunicate request_size=4 [13:54:49]MH_SAM_APDU [13:54:49]CAPDU: 80 11 00 00 [13:54:49]Write to MH i2c: E2 08 00 C7 35 80 11 00 00 00 00 00 00 76 [13:54:49]Write i2c OK [13:54:49]MH_I2C_Read... [13:54:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:49]Read from MH i2c: E2 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 17 00 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 17 00 C7 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C9 [13:54:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:54:49]wFMCommunicate OK [13:54:49]CreateOFDProtocolMessage done [13:54:49]OFDSenderStorePacket 76447 [13:54:49]StoreOFDPacket docnum=76447 [13:54:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 EE 71 07 01 5F 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AD 77 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9F 2A 01 00 35 04 06 00 C3 E9 AC 46 9F 5E 5B 84 E2 08 A5 AB E2 B1 [13:54:49]CheckFolder [13:54:49]dirname=/storage/ofd_packets [13:54:49]CheckFolder done [13:54:49]ProducePacketName [13:54:49]name=ofd_packets/00076447 [13:54:49]NVStorageSaveData ofd_packets/00076447 [13:54:49]File name is /storage/ofd_packets/00076447 [13:54:49]Write 301 bytes [13:54:49]NVStorageSaveData done [13:54:49]OFDSenderStorePacket done [13:54:49]KKMCreateOFDPacket done [13:54:49]NVStorageSaveData kkm_last_timestamp [13:54:49]File name is /storage/kkm_last_timestamp [13:54:49]Write 4 bytes [13:54:49]NVStorageSaveData done [13:54:49]ExternCall_PrintAddStr [13:54:49]wPrintStart [13:54:49]Write to MH i2c: 01 00 00 C8 35 FD [13:54:49]Write i2c OK [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: 01 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: 01 07 00 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: 01 07 00 C8 35 00 00 00 00 00 FF 0F 12 [13:54:49]RasterBufferAndPrint [13:54:49]line Счет N : (1)190918 [13:54:49]line ИНН: 02508201610067 [13:54:49]line Контрольно-Кассовый Чек [13:54:49]line ПРОДАЖА [13:54:49]line ТРК (МРК, ГНК) : 43 [13:54:49]line Товар: 2710124130 [13:54:49]line Аи-92-К-5 [13:54:49]line 7.770 * 64.40 [13:54:49]line = 500.39 [13:54:49]line НДС 12% НСП 1% [13:54:49]line > о реализуемом товаре [13:54:49]line ОКРУГЛЕНИЕ: -0.39 [13:54:49]line ИТОГО: 500.00 [13:54:49]line Внесено: 500.00 [13:54:49]line СДАЧА: 0.00 [13:54:49]line НСП 1% : 4.43 [13:54:49]line НДС 12% : 53.14 [13:54:49]line Наличными: 500.00 [13:54:49]line Безнал.: 0.00 [13:54:49]line Место: АЗС № 106 "Партнер Нефть" [13:54:49]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:54:49]line СНО: Общий режим [13:54:49]line Чек 67 19.04.2024 13:54 [13:54:49]line Смена: 370 ФФД: 1.0 [13:54:49]line ЗНМ: 0300000141 [13:54:49]line РНМ: 0000000000091573 [13:54:49]line Версия ККМ: 001 [13:54:49]line ФМ: 0000000000874652 [13:54:49]line ФД: 76447 [13:54:49]line ФПД: 215408385105758 [13:54:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T135453&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76447&fm=215408385105758&tin=02508201610067®Number=0000000000091573&sum=50000 [13:54:50]OFD Sender: Processing packet 76447 [packets to send 128, broken 127] [13:54:50]ProducePacketName [13:54:50]name=ofd_packets/00076447 [13:54:50]OFD Sender: To server: pG, [13:54:50]CommunicateWithHost lk.salyk.kg:30040 [13:54:50]ConnectInit lk.salyk.kg [13:54:50]written 0, free lines is 4095 [13:54:50]Connected sock=10 [13:54:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 EE 71 07 01 5F 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AD 77 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9F 2A 01 00 35 04 06 00 C3 E9 AC 46 9F 5E 5B 84 E2 08 A5 AB E2 B1 [13:54:50]Write to MH i2c: 01 00 00 F2 35 27 [13:54:50]Write i2c OK [13:54:50]MH_I2C_Read... [13:54:50]Read from MH i2c: 01 [13:54:50]MH_I2C_Read... [13:54:50]Read from MH i2c: 01 07 00 [13:54:50]MH_I2C_Read... [13:54:50]Read from MH i2c: 01 07 00 F2 35 00 00 00 00 00 F2 0C 2C [13:54:50]RasterBufferAndPrint [13:54:50]line [13:54:50]line [13:54:50]line [13:54:50]line [13:54:50]line [13:54:50]written 0, free lines is 3318 [13:54:50]MH_Cut [13:54:50]Write to MH i2c: D1 01 00 F9 35 01 00 [13:54:50]Write i2c OK [13:54:50]MH_I2C_Read... [13:54:50]Read from MH i2c: D1 [13:54:50]MH_I2C_Read... [13:54:50]Read from MH i2c: D1 01 00 [13:54:50]MH_I2C_Read... [13:54:50]Read from MH i2c: D1 01 00 F9 35 00 FF [13:54:50]Write to MH i2c: 01 00 00 FA 35 2F [13:54:50]Write i2c OK [13:54:50]MH_I2C_Read... [13:54:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 43 1F 47 00 F0 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 9F 2A 01 00 F4 03 04 00 39 1F 22 66 B6 04 01 00 00 91 B0 36 73 68 85 FF E4 [13:54:50]CommunicateWithHost err = 0 [13:54:50]CheckOFDResponse [13:54:50]1017 (14) - 77093643461234 [13:54:50]1041 (16) - 0000000000874652 [13:54:50]1040 (4) - 76447 [13:54:50]1012 (4) - 19.04.2024 07:37 [13:54:50]1206 (1) - 0 [13:54:50]OFD Sender: Remove packet 76447 [13:54:50]ProducePacketName [13:54:50]name=ofd_packets/00076447 [13:54:50]NVStorageDeleteData [13:54:51]OFD Sender: No OFD packet to send [13:54:51]*** Cut start [13:54:51]*** Partial cut [13:54:51]*** CUTSNS_PIN = 1 [13:54:51]*** CUTSNS_PIN = 0 [13:54:51]*** Brake cut motor [13:54:51]Read from MH i2c: 01 [13:54:51]MH_I2C_Read... [13:54:51]*** Stop cut motor [13:54:51]*** Cut end [13:54:51]Read from MH i2c: 01 07 00 [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: 01 07 00 FA 35 00 00 00 00 00 FF 0F 44 [13:54:51]process_action close_receipt done [13:54:51]requested_data is exist [13:54:51]produce_requested_data [13:54:51]requested_item fm.sn is exist - process it [13:54:51]wFMCommunicate request_size=4 [13:54:51]MH_SAM_APDU [13:54:51]CAPDU: 80 11 00 00 [13:54:51]Write to MH i2c: E2 08 00 FB 35 80 11 00 00 00 00 00 00 AA [13:54:51]Write i2c OK [13:54:51]MH_I2C_Read... [13:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:51]Read from MH i2c: E2 [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: E2 17 00 [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: E2 17 00 FB 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FD [13:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:54:51]wFMCommunicate OK [13:54:51]requested_item fd.num is exist - process it [13:54:51]SAM_PROTO_GetFieldsCounters [13:54:51]wFMCommunicate request_size=4 [13:54:51]MH_SAM_APDU [13:54:51]CAPDU: 80 13 00 00 [13:54:51]Write to MH i2c: E2 08 00 FC 35 80 13 00 00 00 00 00 00 AD [13:54:51]Write i2c OK [13:54:51]MH_I2C_Read... [13:54:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:52]Read from MH i2c: E2 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 62 00 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 62 00 FC 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9F 2A 01 00 0E 04 04 00 72 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 D4 [13:54:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 9F 2A 01 00 0E 04 04 00 72 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 [13:54:52]wFMCommunicate OK [13:54:52]SAM_PROTO_GetFieldsCounters done [13:54:52]requested_item shift.num is exist - process it [13:54:52]requested_item shift.opened is exist - process it [13:54:52]req_shift_opened [13:54:52]FM_GetShiftState [13:54:52]SAM_PROTO_GetShiftState [13:54:52]wFMCommunicate request_size=4 [13:54:52]MH_SAM_APDU [13:54:52]CAPDU: 80 13 01 00 [13:54:52]Write to MH i2c: E2 08 00 FD 35 80 13 01 00 00 00 00 00 AF [13:54:52]Write i2c OK [13:54:52]MH_I2C_Read... [13:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:52]Read from MH i2c: E2 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 0E 00 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 0E 00 FD 35 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 94 [13:54:52]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:54:52]wFMCommunicate OK [13:54:52]SAM_PROTO_GetShiftState done [13:54:52]FM_GetShiftState done [13:54:52]req_shift_opened done [13:54:52]requested_item shift.open_date is exist - process it [13:54:52]req_shift_open_date [13:54:52]req_shift_open_date done [13:54:52]produce_requested_data done [13:54:52]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76447,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [13:54:52]process_action_free close_receipt [13:54:52]json_value_free [13:54:52]json_value_free done [13:54:52]process_json_proto returns [13:54:52]Send response to host [13:54:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76447,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [13:54:52]free response buf [13:54:52]execute_script done [13:54:52]execute_script returns [13:54:52]free content buf [13:54:52]Sock 9.Close socket [13:54:52]Sock 9.Thread stoped [13:54:56]OFD Sender: No OFD packet to send [13:55:01]OFD Sender: No OFD packet to send [13:55:06]OFD Sender: No OFD packet to send [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:08]accept exits with 7 [13:56:08]New connection [13:56:08]New thread 3066486116 created [13:56:08]Thread 3066629476 joined [13:56:08]Waiting for new connection... [13:56:08] Sock 7.Parse request [13:56:08]Sock 7.Check first char [13:56:08]Sock 7.First char is OK [13:56:08]request: POST /json_proto HTTP/1.0 [13:56:08]Method: POST [13:56:08]URL: /json_proto [13:56:08]Method is POST - this is cgi request [13:56:08]url: /json_proto [13:56:08]query_string will be loaded in cgi processing [13:56:08]execute_cgi json_proto POST (null) [13:56:08]execute_cgi path=json_proto method=POST [13:56:08]POST find Content-Length [13:56:08]Host: 172.17.62.5:8080 [13:56:08]Content-Length: 990 [13:56:08]Content-Type: application/json [13:56:08] [13:56:08]POST finish read [13:56:08]Found Content-Length = 990 [13:56:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 39.390, "sum" : 1248.66, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 39.39 \u0441\u043E\u043C", "deposit" : 1600.00, "total" : 1248.00, "payments": [ { "type": 0, "sum" : 1248.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:08]execute_script... [13:56: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)190916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 39.390, "sum" : 1248.66, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 39.39 \u0441\u043E\u043C", "deposit" : 1600.00, "total" : 1248.00, "payments": [ { "type": 0, "sum" : 1248.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:08]POST & json_proto [13:56:08]process_json_proto [13:56:08]json parsed OK: [13:56:08]protocol is kg_v1.0 [13:56:08]action value=close_receipt [13:56:08]process_action close_receipt [13:56:08]cmd_close_receipt [13:56:08]MH_GetDate [13:56:08]Write to MH i2c: F0 00 00 FE 35 22 [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: F0 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: F0 09 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: F0 09 00 FE 35 00 FD 77 22 66 F4 E9 65 64 CD [13:56:08]GetLastDocTimeStamp 1713534893 [13:56:08]current date 1713534973 [13:56:08]FM_GetShiftState [13:56:08]SAM_PROTO_GetShiftState [13:56:08]wFMCommunicate request_size=4 [13:56:08]MH_SAM_APDU [13:56:08]CAPDU: 80 13 01 00 [13:56:08]Write to MH i2c: E2 08 00 FF 35 80 13 01 00 00 00 00 00 B1 [13:56:08]Write i2c OK [13:56:08]MH_I2C_Read... [13:56:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:08]Read from MH i2c: E2 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 0E 00 [13:56:08]MH_I2C_Read... [13:56:08]Read from MH i2c: E2 0E 00 FF 35 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 96 [13:56:08]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:56:08]wFMCommunicate OK [13:56:08]SAM_PROTO_GetShiftState done [13:56:08]FM_GetShiftState done [13:56:08]opened in 1713486233 [13:56:08]opened+sec_in_day 1713572633 [13:56:08]quantity*price = 124866 [13:56:08]sum+1 = 124867 [13:56:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1248.00 Внесено: 1600.00 СДАЧА: 352.00 НСП 1% : 11.05 НДС 12% : 132.60 Наличными: 1248.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 68 19.04.2024 13:56 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 39.39 сом ФМ: 0000000000874652 ФД: 76448 ФПД: 150022076134478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T135613&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76448&fm=150022076134478&tin=02508201610067®Number=0000000000091573&sum=124800 [13:56:09]StoreToDocumentArchive [13:56:09]shift 370 fd 76448 [13:56:09]save to /storage/0370/doc_00076448 [13:56:09]save last doc name /storage/0370/doc_00076448 to /storage/kkm_last_doc_name [13:56:09]save OK [13:56:09]Clear old archive folders... [13:56:09]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:56:09]tlvbuf is 0098CCA0 [13:56:09]SAM_PROTO_ClearQueue [13:56:09]wFMCommunicate request_size=4 [13:56:09]MH_SAM_APDU [13:56:09]CAPDU: 80 09 00 00 [13:56:09]Write to MH i2c: E2 08 00 0C 36 80 09 00 00 00 00 00 00 B4 [13:56:09]Write i2c OK [13:56:09]MH_I2C_Read... [13:56:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:09]Read from MH i2c: E2 [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: E2 03 00 [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: E2 03 00 0C 36 00 90 00 B6 [13:56:09]RAPDU: 90 00 [13:56:09]wFMCommunicate OK [13:56:09]SAM_PROTO_ClearQueue done [13:56:09]KKMCreateOFDPacket [13:56:09]OFDProtocolAddRootSTLVToBuf [13:56:09]FM_MakeSignedData [13:56:09]FM_MakeSignedData [13:56:09]SAM_PROTO_SignData [13:56:09]wFMCommunicate request_size=4 [13:56:09]MH_SAM_APDU [13:56:09]CAPDU: 80 0D 01 02 [13:56:09]Write to MH i2c: E2 08 00 0D 36 80 0D 01 02 00 00 00 00 BC [13:56:09]Write i2c OK [13:56:09]MH_I2C_Read... [13:56:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:09]Read from MH i2c: E2 [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: E2 03 00 [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: E2 03 00 0D 36 00 90 00 B7 [13:56:09]RAPDU: 90 00 [13:56:09]wFMCommunicate OK [13:56:09]wFMCommunicate request_size=255 [13:56:09]MH_SAM_APDU [13:56:09]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DE 99 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 C2 E7 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 E7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 33 00 00 00 00 07 04 06 00 80 E7 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 FD 77 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A0 2A 01 00 35 04 06 00 88 71 [13:56:09]Write to MH i2c: E2 02 01 0E 36 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DE 99 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 C2 E7 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 E7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 33 00 00 00 00 07 04 06 00 80 E7 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 FD 77 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A0 2A 01 00 35 04 06 00 88 71 00 00 97 [13:56:09]Write i2c OK [13:56:09]MH_I2C_Read... [13:56:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:09]Read from MH i2c: E2 [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: E2 03 00 [13:56:09]MH_I2C_Read... [13:56:09]Read from MH i2c: E2 03 00 0E 36 00 90 00 B8 [13:56:09]RAPDU: 90 00 [13:56:09]wFMCommunicate OK [13:56:09]wFMCommunicate request_size=9 [13:56:09]MH_SAM_APDU [13:56:09]CAPDU: 80 0D 02 02 04 BC 8E 74 4E [13:56:09]Write to MH i2c: E2 0C 00 0F 36 80 0D 02 02 04 00 BC 8E 74 4E 00 00 D3 [13:56:09]Write i2c OK [13:56:09]MH_I2C_Read... [13:56:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:10]Read from MH i2c: E2 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 03 00 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 03 00 0F 36 00 90 00 B9 [13:56:10]RAPDU: 90 00 [13:56:10]wFMCommunicate OK [13:56:10]wFMCommunicate request_size=4 [13:56:10]MH_SAM_APDU [13:56:10]CAPDU: 80 0D 03 02 [13:56:10]Write to MH i2c: E2 08 00 10 36 80 0D 03 02 00 00 00 00 C1 [13:56:10]Write i2c OK [13:56:10]MH_I2C_Read... [13:56:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:10]Read from MH i2c: E2 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 0B 00 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 0B 00 10 36 00 A3 80 35 78 9B FD 47 13 90 00 84 [13:56:10]RAPDU: A3 80 35 78 9B FD 47 13 90 00 [13:56:10]wFMCommunicate OK [13:56:10]SAM_PROTO_SignData done [13:56:10]FM_MakeSignedData done [13:56:10]CreateOFDProtocolMessage [13:56:10]wFMCommunicate request_size=4 [13:56:10]MH_SAM_APDU [13:56:10]CAPDU: 80 11 00 00 [13:56:10]Write to MH i2c: E2 08 00 11 36 80 11 00 00 00 00 00 00 C1 [13:56:10]Write i2c OK [13:56:10]MH_I2C_Read... [13:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:10]Read from MH i2c: E2 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 17 00 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: E2 17 00 11 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 14 [13:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:56:10]wFMCommunicate OK [13:56:10]CreateOFDProtocolMessage done [13:56:10]OFDSenderStorePacket 76448 [13:56:10]StoreOFDPacket docnum=76448 [13:56:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 3B 7D 06 01 6E 84 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DE 99 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 C2 E7 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 E7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 33 00 00 00 00 07 04 06 00 80 E7 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 FD 77 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A0 2A 01 00 35 04 06 00 88 71 BC 8E 74 4E A3 80 35 78 9B FD 47 13 [13:56:10]CheckFolder [13:56:10]dirname=/storage/ofd_packets [13:56:10]CheckFolder done [13:56:10]ProducePacketName [13:56:10]name=ofd_packets/00076448 [13:56:10]NVStorageSaveData ofd_packets/00076448 [13:56:10]File name is /storage/ofd_packets/00076448 [13:56:10]Write 300 bytes [13:56:10]NVStorageSaveData done [13:56:10]OFDSenderStorePacket done [13:56:10]KKMCreateOFDPacket done [13:56:10]NVStorageSaveData kkm_last_timestamp [13:56:10]File name is /storage/kkm_last_timestamp [13:56:10]Write 4 bytes [13:56:10]NVStorageSaveData done [13:56:10]ExternCall_PrintAddStr [13:56:10]wPrintStart [13:56:10]Write to MH i2c: 01 00 00 12 36 48 [13:56:10]Write i2c OK [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: 01 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: 01 07 00 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: 01 07 00 12 36 00 00 00 00 00 FF 0F 5D [13:56:10]RasterBufferAndPrint [13:56:10]line Счет N : (1)190916 [13:56:10]line ИНН: 02508201610067 [13:56:10]line Контрольно-Кассовый Чек [13:56:10]line ПРОДАЖА [13:56:10]line ТРК (МРК, ГНК) : 71 [13:56:10]line Товар: 2711190000 [13:56:10]line ГАЗ-К-5 [13:56:10]line 39.390 * 31.70 [13:56:10]line = 1248.66 [13:56:10]line НДС 12% НСП 1% [13:56:10]line > о реализуемом товаре [13:56:10]line ОКРУГЛЕНИЕ: -0.66 [13:56:10]line ИТОГО: 1248.00 [13:56:10]line Внесено: 1600.00 [13:56:10]line СДАЧА: 352.00 [13:56:10]line НСП 1% : 11.05 [13:56:10]line НДС 12% : 132.60 [13:56:10]line Наличными: 1248.00 [13:56:10]line Безнал.: 0.00 [13:56:10]line Место: АЗС № 106 "Партнер Нефть" [13:56:10]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:56:10]line СНО: Общий режим [13:56:10]line Чек 68 19.04.2024 13:56 [13:56:10]line Смена: 370 ФФД: 1.0 [13:56:10]line ЗНМ: 0300000141 [13:56:10]line РНМ: 0000000000091573 [13:56:10]line Версия ККМ: 001 [13:56:10]line [13:56:10]line Дисконтная программа [13:56:10]line СУГ [13:56:10]line номер 106 [13:56:10]line сэкономлено 39.39 сом [13:56:10]line ФМ: 0000000000874652 [13:56:10]line ФД: 76448 [13:56:10]line ФПД: 150022076134478 [13:56:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T135613&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76448&fm=150022076134478&tin=02508201610067®Number=0000000000091573&sum=124800 [13:56:10]OFD Sender: Processing packet 76448 [packets to send 128, broken 127] [13:56:10]ProducePacketName [13:56:10]name=ofd_packets/00076448 [13:56:10]OFD Sender: To server: pG, [13:56:10]CommunicateWithHost lk.salyk.kg:30040 [13:56:10]ConnectInit lk.salyk.kg [13:56:10]written 0, free lines is 4095 [13:56:10]Connected sock=10 [13:56:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 3B 7D 06 01 6E 84 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DE 99 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 C2 E7 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 E7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 33 00 00 00 00 07 04 06 00 80 E7 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 FD 77 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A0 2A 01 00 35 04 06 00 88 71 BC 8E 74 4E A3 80 35 78 9B FD 47 13 [13:56:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 7A 3E 47 00 EB 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A0 2A 01 00 F4 03 04 00 89 1F 22 66 B6 04 01 00 00 9C 40 F0 72 36 A0 FD 77 [13:56:10]CommunicateWithHost err = 0 [13:56:10]CheckOFDResponse [13:56:10]1017 (14) - 77093643461234 [13:56:10]1041 (16) - 0000000000874652 [13:56:10]1040 (4) - 76448 [13:56:10]1012 (4) - 19.04.2024 07:38 [13:56:10]1206 (1) - 0 [13:56:10]OFD Sender: Remove packet 76448 [13:56:10]ProducePacketName [13:56:10]name=ofd_packets/00076448 [13:56:10]NVStorageDeleteData [13:56:10]Write to MH i2c: 01 00 00 41 36 77 [13:56:10]Write i2c OK [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: 01 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: 01 07 00 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: 01 07 00 41 36 00 00 00 00 00 9C 0C 26 [13:56:10]RasterBufferAndPrint [13:56:10]line [13:56:10]line [13:56:10]line [13:56:10]line [13:56:10]line [13:56:10]written 0, free lines is 3233 [13:56:10]MH_Cut [13:56:10]Write to MH i2c: D1 01 00 48 36 01 50 [13:56:10]Write i2c OK [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: D1 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: D1 01 00 [13:56:10]MH_I2C_Read... [13:56:10]Read from MH i2c: D1 01 00 48 36 00 4F [13:56:10]Write to MH i2c: 01 00 00 49 36 7F [13:56:10]Write i2c OK [13:56:10]MH_I2C_Read... [13:56:11]OFD Sender: No OFD packet to send [13:56:11]*** Cut start [13:56:11]*** Partial cut [13:56:11]*** CUTSNS_PIN = 1 [13:56:11]*** CUTSNS_PIN = 0 [13:56:12]*** Brake cut motor [13:56:12]Read from MH i2c: 01 [13:56:12]MH_I2C_Read... [13:56:12]*** Stop cut motor [13:56:12]*** Cut end [13:56:12]Read from MH i2c: 01 07 00 [13:56:12]MH_I2C_Read... [13:56:12]Read from MH i2c: 01 07 00 49 36 00 00 00 00 00 FF 0F 94 [13:56:12]process_action close_receipt done [13:56:12]requested_data is exist [13:56:12]produce_requested_data [13:56:12]requested_item fm.sn is exist - process it [13:56:12]wFMCommunicate request_size=4 [13:56:12]MH_SAM_APDU [13:56:12]CAPDU: 80 11 00 00 [13:56:12]Write to MH i2c: E2 08 00 4A 36 80 11 00 00 00 00 00 00 FA [13:56:12]Write i2c OK [13:56:12]MH_I2C_Read... [13:56:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:12]Read from MH i2c: E2 [13:56:12]MH_I2C_Read... [13:56:12]Read from MH i2c: E2 17 00 [13:56:12]MH_I2C_Read... [13:56:12]Read from MH i2c: E2 17 00 4A 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4D [13:56:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:56:12]wFMCommunicate OK [13:56:12]requested_item fd.num is exist - process it [13:56:12]SAM_PROTO_GetFieldsCounters [13:56:12]wFMCommunicate request_size=4 [13:56:12]MH_SAM_APDU [13:56:12]CAPDU: 80 13 00 00 [13:56:12]Write to MH i2c: E2 08 00 4B 36 80 13 00 00 00 00 00 00 FD [13:56:12]Write i2c OK [13:56:12]MH_I2C_Read... [13:56:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:12]Read from MH i2c: E2 [13:56:12]MH_I2C_Read... [13:56:12]Read from MH i2c: E2 62 00 [13:56:12]MH_I2C_Read... [13:56:12]Read from MH i2c: E2 62 00 4B 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A0 2A 01 00 0E 04 04 00 72 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 28 [13:56: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A0 2A 01 00 0E 04 04 00 72 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 [13:56:12]wFMCommunicate OK [13:56:12]SAM_PROTO_GetFieldsCounters done [13:56:12]requested_item shift.num is exist - process it [13:56:12]requested_item shift.opened is exist - process it [13:56:12]req_shift_opened [13:56:12]FM_GetShiftState [13:56:12]SAM_PROTO_GetShiftState [13:56:12]wFMCommunicate request_size=4 [13:56:12]MH_SAM_APDU [13:56:12]CAPDU: 80 13 01 00 [13:56:12]Write to MH i2c: E2 08 00 4C 36 80 13 01 00 00 00 00 00 FF [13:56:12]Write i2c OK [13:56:12]MH_I2C_Read... [13:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:12]Read from MH i2c: E2 [13:56:12]MH_I2C_Read... [13:56:12]Read from MH i2c: E2 0E 00 [13:56:12]MH_I2C_Read... [13:56:12]Read from MH i2c: E2 0E 00 4C 36 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E4 [13:56:12]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [13:56:12]wFMCommunicate OK [13:56:12]SAM_PROTO_GetShiftState done [13:56:12]FM_GetShiftState done [13:56:12]req_shift_opened done [13:56:12]requested_item shift.open_date is exist - process it [13:56:12]req_shift_open_date [13:56:12]req_shift_open_date done [13:56:12]produce_requested_data done [13:56:12]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76448,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [13:56:12]process_action_free close_receipt [13:56:12]json_value_free [13:56:12]json_value_free done [13:56:12]process_json_proto returns [13:56:12]Send response to host [13:56:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76448,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [13:56:12]free response buf [13:56:12]execute_script done [13:56:12]execute_script returns [13:56:12]free content buf [13:56:12]Sock 7.Close socket [13:56:12]Sock 7.Thread stoped [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:21]OFD Sender: No OFD packet to send [13:57:26]OFD Sender: No OFD packet to send [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:41]OFD Sender: No OFD packet to send [13:57:46]OFD Sender: No OFD packet to send [13:57:51]OFD Sender: No OFD packet to send [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:06]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:21]OFD Sender: No OFD packet to send [13:58:26]OFD Sender: No OFD packet to send [13:58:31]OFD Sender: No OFD packet to send [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:48]accept exits with 9 [14:01:48]New connection [14:01:48]New thread 3066629476 created [14:01:48]Thread 3066486116 joined [14:01:48]Waiting for new connection... [14:01:48] Sock 9.Parse request [14:01:48]Sock 9.Check first char [14:01:48]Sock 9.First char is OK [14:01:48]request: POST /json_proto HTTP/1.0 [14:01:48]Method: POST [14:01:48]URL: /json_proto [14:01:48]Method is POST - this is cgi request [14:01:48]url: /json_proto [14:01:48]query_string will be loaded in cgi processing [14:01:48]execute_cgi json_proto POST (null) [14:01:48]execute_cgi path=json_proto method=POST [14:01:48]POST find Content-Length [14:01:48]Host: 172.17.62.5:8080 [14:01:48]Content-Length: 677 [14:01:48]Content-Type: application/json [14:01:48] [14:01:48]POST finish read [14:01:48]Found Content-Length = 677 [14:01:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [14:01:48]execute_script... [14:01: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)190920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [14:01:48]POST & json_proto [14:01:48]process_json_proto [14:01:48]json parsed OK: [14:01:48]protocol is kg_v1.0 [14:01:48]action value=close_receipt [14:01:48]process_action close_receipt [14:01:48]cmd_close_receipt [14:01:48]MH_GetDate [14:01:48]Write to MH i2c: F0 00 00 4D 36 72 [14:01:48]Write i2c OK [14:01:48]MH_I2C_Read... [14:01:48]Read from MH i2c: F0 [14:01:48]MH_I2C_Read... [14:01:48]Read from MH i2c: F0 09 00 [14:01:48]MH_I2C_Read... [14:01:48]Read from MH i2c: F0 09 00 4D 36 00 51 79 22 66 F4 E9 65 64 73 [14:01:48]GetLastDocTimeStamp 1713534973 [14:01:48]current date 1713535313 [14:01:48]FM_GetShiftState [14:01:48]SAM_PROTO_GetShiftState [14:01:48]wFMCommunicate request_size=4 [14:01:48]MH_SAM_APDU [14:01:48]CAPDU: 80 13 01 00 [14:01:48]Write to MH i2c: E2 08 00 4E 36 80 13 01 00 00 00 00 00 01 [14:01:48]Write i2c OK [14:01:48]MH_I2C_Read... [14:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:48]Read from MH i2c: E2 [14:01:48]MH_I2C_Read... [14:01:48]Read from MH i2c: E2 0E 00 [14:01:48]MH_I2C_Read... [14:01:48]Read from MH i2c: E2 0E 00 4E 36 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E6 [14:01:48]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:01:48]wFMCommunicate OK [14:01:48]SAM_PROTO_GetShiftState done [14:01:48]FM_GetShiftState done [14:01:48]opened in 1713486233 [14:01:48]opened+sec_in_day 1713572633 [14:01:48]quantity*price = 20047 [14:01:48]sum+1 = 20049 [14:01:48]Check (price>sum+1) || (price+1 о реализуемом товаре [14:05:33]line ОКРУГЛЕНИЕ: -0.48 [14:05:33]line ИТОГО: 200.00 [14:05:33]line Внесено: 200.00 [14:05:33]line СДАЧА: 0.00 [14:05:33]line НСП 1% : 1.77 [14:05:33]line НДС 12% : 21.29 [14:05:33]line Наличными: 200.00 [14:05:33]line Безнал.: 0.00 [14:05:33]line Место: АЗС № 106 "Партнер Нефть" [14:05:33]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:05:33]line СНО: Общий режим [14:05:33]line Чек 69 19.04.2024 14:01 [14:05:33]line Смена: 370 ФФД: 1.0 [14:05:33]line ЗНМ: 0300000141 [14:05:33]line РНМ: 0000000000091573 [14:05:33]line Версия ККМ: 001 [14:05:33]line ФМ: 0000000000874652 [14:05:33]line ФД: 76449 [14:05:33]line ФПД: 169838671104672 [14:05:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T140153&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76449&fm=169838671104672&tin=02508201610067®Number=0000000000091573&sum=20000 [14:05:33]written 0, free lines is 4095 [14:05:34]Write to MH i2c: 01 00 00 47 00 47 [14:05:34]Write i2c OK [14:05:34]MH_I2C_Read... [14:05:34]Read from MH i2c: 01 [14:05:34]MH_I2C_Read... [14:05:34]Read from MH i2c: 01 07 00 [14:05:34]MH_I2C_Read... [14:05:34]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 EA 0C 44 [14:05:34]RasterBufferAndPrint [14:05:34]line [14:05:34]line [14:05:34]line [14:05:34]line [14:05:34]line [14:05:34]written 0, free lines is 3319 [14:05:34]MH_Cut [14:05:34]Write to MH i2c: D1 01 00 4E 00 01 20 [14:05:34]Write i2c OK [14:05:34]MH_I2C_Read... [14:05:34]Read from MH i2c: D1 [14:05:34]MH_I2C_Read... [14:05:34]Read from MH i2c: D1 01 00 [14:05:34]MH_I2C_Read... [14:05:34]Read from MH i2c: D1 01 00 4E 00 00 1F [14:05:34]Write to MH i2c: 01 00 00 4F 00 4F [14:05:34]Write i2c OK [14:05:34]MH_I2C_Read... [14:05:35]OFD Sender: No OFD packet to send [14:05:35]*** Cut start [14:05:35]*** Partial cut [14:05:35]*** CUTSNS_PIN = 1 [14:05:35]*** CUTSNS_PIN = 0 [14:05:35]*** Brake cut motor [14:05:35]Read from MH i2c: 01 [14:05:35]MH_I2C_Read... [14:05:35]*** Stop cut motor [14:05:35]*** Cut end [14:05:35]Read from MH i2c: 01 07 00 [14:05:35]MH_I2C_Read... [14:05:35]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [14:05:35]process_action print_doc done [14:05:35]requested_data is exist [14:05:35]produce_requested_data [14:05:35]produce_requested_data return (null) [14:05:35]process_action_free print_doc [14:05:35]json_value_free [14:05:35]json_value_free done [14:05:35]process_json_proto returns [14:05:35]Send response to host [14:05:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [14:05:35]free response buf [14:05:35]execute_script done [14:05:35]execute_script returns [14:05:35]free content buf [14:05:35]Sock 9.Close socket [14:05:35]Sock 9.Thread stoped [14:05:40]OFD Sender: No OFD packet to send [14:05:45]OFD Sender: No OFD packet to send [14:05:50]OFD Sender: No OFD packet to send [14:05:55]OFD Sender: No OFD packet to send [14:06:00]OFD Sender: No OFD packet to send [14:06:05]OFD Sender: No OFD packet to send [14:06:10]OFD Sender: No OFD packet to send [14:06:15]OFD Sender: No OFD packet to send [14:06:15]accept exits with 7 [14:06:15]New connection [14:06:15]New thread 3066936676 created [14:06:15]Thread 3067080036 joined [14:06:15]Waiting for new connection... [14:06:15] Sock 7.Parse request [14:06:15]Sock 7.Check first char [14:06:15]Sock 7.First char is OK [14:06:15]request: POST /json_proto HTTP/1.0 [14:06:15]Method: POST [14:06:15]URL: /json_proto [14:06:15]Method is POST - this is cgi request [14:06:15]url: /json_proto [14:06:15]query_string will be loaded in cgi processing [14:06:15]execute_cgi json_proto POST (null) [14:06:15]execute_cgi path=json_proto method=POST [14:06:15]POST find Content-Length [14:06:15]Host: 172.17.62.5:8080 [14:06:15]Content-Length: 670 [14:06:15]Content-Type: application/json [14:06:15] [14:06:15]POST finish read [14:06:15]Found Content-Length = 670 [14:06:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 9.180, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:15]execute_script... [14:06:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 9.180, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:15]POST & json_proto [14:06:15]process_json_proto [14:06:15]json parsed OK: [14:06:15]protocol is kg_v1.0 [14:06:15]action value=close_receipt [14:06:15]process_action close_receipt [14:06:15]cmd_close_receipt [14:06:15]MH_GetDate [14:06:15]Write to MH i2c: F0 00 00 50 00 3F [14:06:15]Write i2c OK [14:06:15]MH_I2C_Read... [14:06:15]Read from MH i2c: F0 [14:06:15]MH_I2C_Read... [14:06:15]Read from MH i2c: F0 09 00 [14:06:15]MH_I2C_Read... [14:06:15]Read from MH i2c: F0 09 00 50 00 00 58 7A 22 66 F4 E9 65 64 48 [14:06:15]GetLastDocTimeStamp 1713535313 [14:06:15]current date 1713535576 [14:06:15]FM_GetShiftState [14:06:15]SAM_PROTO_GetShiftState [14:06:15]wFMCommunicate request_size=4 [14:06:15]MH_SAM_APDU [14:06:15]CAPDU: 80 13 01 00 [14:06:15]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [14:06:15]Write i2c OK [14:06:15]MH_I2C_Read... [14:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:15]Read from MH i2c: E2 [14:06:15]MH_I2C_Read... [14:06:15]Read from MH i2c: E2 0E 00 [14:06:15]MH_I2C_Read... [14:06:15]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 B3 [14:06:15]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:06:15]wFMCommunicate OK [14:06:15]SAM_PROTO_GetShiftState done [14:06:15]FM_GetShiftState done [14:06:15]opened in 1713486233 [14:06:15]opened+sec_in_day 1713572633 [14:06:15]quantity*price = 60037 [14:06:15]sum+1 = 60038 [14:06:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 70 19.04.2024 14:06 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76450 ФПД: 159887338757877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T140616&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76450&fm=159887338757877&tin=02508201610067®Number=0000000000091573&sum=60000 [14:06:16]StoreToDocumentArchive [14:06:16]shift 370 fd 76450 [14:06:16]save to /storage/0370/doc_00076450 [14:06:16]save last doc name /storage/0370/doc_00076450 to /storage/kkm_last_doc_name [14:06:16]save OK [14:06:16]Clear old archive folders... [14:06:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:06:16]tlvbuf is 009F15D0 [14:06:16]SAM_PROTO_ClearQueue [14:06:16]wFMCommunicate request_size=4 [14:06:16]MH_SAM_APDU [14:06:16]CAPDU: 80 09 00 00 [14:06:16]Write to MH i2c: E2 08 00 5E 00 80 09 00 00 00 00 00 00 D0 [14:06:16]Write i2c OK [14:06:16]MH_I2C_Read... [14:06:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:16]Read from MH i2c: E2 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 03 00 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [14:06:16]RAPDU: 90 00 [14:06:16]wFMCommunicate OK [14:06:16]SAM_PROTO_ClearQueue done [14:06:16]KKMCreateOFDPacket [14:06:16]OFDProtocolAddRootSTLVToBuf [14:06:16]FM_MakeSignedData [14:06:16]FM_MakeSignedData [14:06:16]SAM_PROTO_SignData [14:06:16]wFMCommunicate request_size=4 [14:06:16]MH_SAM_APDU [14:06:16]CAPDU: 80 0D 01 02 [14:06:16]Write to MH i2c: E2 08 00 5F 00 80 0D 01 02 00 00 00 00 D8 [14:06:16]Write i2c OK [14:06:16]MH_I2C_Read... [14:06:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:16]Read from MH i2c: E2 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 03 00 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [14:06:16]RAPDU: 90 00 [14:06:16]wFMCommunicate OK [14:06:16]wFMCommunicate request_size=255 [14:06:16]MH_SAM_APDU [14:06: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 DC 23 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 58 7A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A2 2A 01 00 35 04 06 00 [14:06:16]Write to MH i2c: E2 02 01 60 00 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 DC 23 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 58 7A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A2 2A 01 00 35 04 06 00 00 00 1B [14:06:16]Write i2c OK [14:06:16]MH_I2C_Read... [14:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:16]Read from MH i2c: E2 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 03 00 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [14:06:16]RAPDU: 90 00 [14:06:16]wFMCommunicate OK [14:06:16]wFMCommunicate request_size=11 [14:06:16]MH_SAM_APDU [14:06:16]CAPDU: 80 0D 02 02 06 91 6A AC 07 DE F5 [14:06:16]Write to MH i2c: E2 0E 00 61 00 80 0D 02 02 06 00 91 6A AC 07 DE F5 00 00 68 [14:06:16]Write i2c OK [14:06:16]MH_I2C_Read... [14:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:16]Read from MH i2c: E2 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 03 00 [14:06:16]MH_I2C_Read... [14:06:17]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [14:06:17]RAPDU: 90 00 [14:06:17]wFMCommunicate OK [14:06:17]wFMCommunicate request_size=4 [14:06:17]MH_SAM_APDU [14:06:17]CAPDU: 80 0D 03 02 [14:06:17]Write to MH i2c: E2 08 00 62 00 80 0D 03 02 00 00 00 00 DD [14:06:17]Write i2c OK [14:06:17]MH_I2C_Read... [14:06:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:17]Read from MH i2c: E2 [14:06:17]MH_I2C_Read... [14:06:17]Read from MH i2c: E2 0B 00 [14:06:17]MH_I2C_Read... [14:06:17]Read from MH i2c: E2 0B 00 62 00 00 44 93 3F 99 AD 2B 59 86 90 00 44 [14:06:17]RAPDU: 44 93 3F 99 AD 2B 59 86 90 00 [14:06:17]wFMCommunicate OK [14:06:17]SAM_PROTO_SignData done [14:06:17]FM_MakeSignedData done [14:06:17]CreateOFDProtocolMessage [14:06:17]wFMCommunicate request_size=4 [14:06:17]MH_SAM_APDU [14:06:17]CAPDU: 80 11 00 00 [14:06:17]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [14:06:17]Write i2c OK [14:06:17]MH_I2C_Read... [14:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:17]Read from MH i2c: E2 [14:06:17]MH_I2C_Read... [14:06:17]Read from MH i2c: E2 17 00 [14:06:17]MH_I2C_Read... [14:06:17]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 30 [14:06:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:06:17]wFMCommunicate OK [14:06:17]CreateOFDProtocolMessage done [14:06:17]OFDSenderStorePacket 76450 [14:06:17]StoreOFDPacket docnum=76450 [14:06:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 C1 39 08 01 5F 11 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 58 7A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A2 2A 01 00 35 04 06 00 91 6A AC 07 DE F5 44 93 3F 99 AD 2B 59 86 [14:06:17]CheckFolder [14:06:17]dirname=/storage/ofd_packets [14:06:17]CheckFolder done [14:06:17]ProducePacketName [14:06:17]name=ofd_packets/00076450 [14:06:17]NVStorageSaveData ofd_packets/00076450 [14:06:17]File name is /storage/ofd_packets/00076450 [14:06:17]Write 302 bytes [14:06:17]NVStorageSaveData done [14:06:17]OFDSenderStorePacket done [14:06:17]KKMCreateOFDPacket done [14:06:17]NVStorageSaveData kkm_last_timestamp [14:06:17]File name is /storage/kkm_last_timestamp [14:06:17]Write 4 bytes [14:06:17]NVStorageSaveData done [14:06:17]OFD Sender: Processing packet 76450 [packets to send 128, broken 127] [14:06:17]ProducePacketName [14:06:17]name=ofd_packets/00076450 [14:06:17]OFD Sender: To server: pG, [14:06:17]CommunicateWithHost lk.salyk.kg:30040 [14:06:17]ConnectInit lk.salyk.kg [14:06:17]ExternCall_PrintAddStr [14:06:17]wPrintStart [14:06:17]Write to MH i2c: 01 00 00 64 00 64 [14:06:17]Write i2c OK [14:06:17]MH_I2C_Read... [14:06:17]Read from MH i2c: 01 [14:06:17]MH_I2C_Read... [14:06:17]Read from MH i2c: 01 07 00 [14:06:17]MH_I2C_Read... [14:06:17]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [14:06:17]RasterBufferAndPrint [14:06:17]line Счет N : (1)190922 [14:06:17]line ИНН: 02508201610067 [14:06:17]line Контрольно-Кассовый Чек [14:06:17]line ПРОДАЖА [14:06:17]line ТРК (МРК, ГНК) : 41 [14:06:17]line Товар: 2710124130 [14:06:17]line SUPER 92-К-5 [14:06:17]line 9.180 * 65.40 [14:06:17]line = 600.37 [14:06:17]line НДС 12% НСП 1% [14:06:17]line > о реализуемом товаре [14:06:17]line ОКРУГЛЕНИЕ: -0.37 [14:06:17]line ИТОГО: 600.00 [14:06:17]line Внесено: 600.00 [14:06:17]line СДАЧА: 0.00 [14:06:17]line НСП 1% : 5.31 [14:06:17]line НДС 12% : 63.76 [14:06:17]line Наличными: 600.00 [14:06:17]line Безнал.: 0.00 [14:06:17]line Место: АЗС № 106 "Партнер Нефть" [14:06:17]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:06:17]line СНО: Общий режим [14:06:17]line Чек 70 19.04.2024 14:06 [14:06:17]line Смена: 370 ФФД: 1.0 [14:06:17]line ЗНМ: 0300000141 [14:06:17]line РНМ: 0000000000091573 [14:06:17]line Версия ККМ: 001 [14:06:17]line ФМ: 0000000000874652 [14:06:17]line ФД: 76450 [14:06:17]line ФПД: 159887338757877 [14:06:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T140616&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76450&fm=159887338757877&tin=02508201610067®Number=0000000000091573&sum=60000 [14:06:17]Connected sock=11 [14:06:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 C1 39 08 01 5F 11 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 58 7A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A2 2A 01 00 35 04 06 00 91 6A AC 07 DE F5 44 93 3F 99 AD 2B 59 86 [14:06:17]written 0, free lines is 4095 [14:06:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 20 98 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 34 36 35 32 10 04 04 00 A2 2A 01 00 F4 03 04 00 E3 21 22 66 B6 04 01 00 00 7F C7 7C 93 99 36 78 F9 [14:06:17]CommunicateWithHost err = 0 [14:06:17]CheckOFDResponse [14:06:17]1017 (14) - 77093643461234 [14:06:17]1041 (16) - 0000000000874652 [14:06:17]1040 (4) - 76450 [14:06:17]1012 (4) - 19.04.2024 07:48 [14:06:17]1206 (1) - 0 [14:06:17]OFD Sender: Remove packet 76450 [14:06:17]ProducePacketName [14:06:17]name=ofd_packets/00076450 [14:06:17]NVStorageDeleteData [14:06:17]Write to MH i2c: 01 00 00 8E 00 8E [14:06:17]Write i2c OK [14:06:17]MH_I2C_Read... [14:06:17]Read from MH i2c: 01 [14:06:17]MH_I2C_Read... [14:06:17]Read from MH i2c: 01 07 00 [14:06:17]MH_I2C_Read... [14:06:17]Read from MH i2c: 01 07 00 8E 00 00 00 00 00 00 ED 0C 8E [14:06:17]RasterBufferAndPrint [14:06:17]line [14:06:17]line [14:06:17]line [14:06:17]line [14:06:17]line [14:06:17]written 0, free lines is 3317 [14:06:17]MH_Cut [14:06:17]Write to MH i2c: D1 01 00 95 00 01 67 [14:06:17]Write i2c OK [14:06:17]MH_I2C_Read... [14:06:17]Read from MH i2c: D1 [14:06:17]MH_I2C_Read... [14:06:17]Read from MH i2c: D1 01 00 [14:06:17]MH_I2C_Read... [14:06:17]Read from MH i2c: D1 01 00 95 00 00 66 [14:06:17]Write to MH i2c: 01 00 00 96 00 96 [14:06:17]Write i2c OK [14:06:17]MH_I2C_Read... [14:06:18]OFD Sender: No OFD packet to send [14:06:18]*** Cut start [14:06:18]*** Partial cut [14:06:18]*** CUTSNS_PIN = 1 [14:06:18]*** CUTSNS_PIN = 0 [14:06:18]*** Brake cut motor [14:06:19]Read from MH i2c: 01 [14:06:19]MH_I2C_Read... [14:06:19]*** Stop cut motor [14:06:19]*** Cut end [14:06:19]Read from MH i2c: 01 07 00 [14:06:19]MH_I2C_Read... [14:06:19]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 FF 0F AB [14:06:19]process_action close_receipt done [14:06:19]requested_data is exist [14:06:19]produce_requested_data [14:06:19]requested_item fm.sn is exist - process it [14:06:19]wFMCommunicate request_size=4 [14:06:19]MH_SAM_APDU [14:06:19]CAPDU: 80 11 00 00 [14:06:19]Write to MH i2c: E2 08 00 97 00 80 11 00 00 00 00 00 00 11 [14:06:19]Write i2c OK [14:06:19]MH_I2C_Read... [14:06:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:19]Read from MH i2c: E2 [14:06:19]MH_I2C_Read... [14:06:19]Read from MH i2c: E2 17 00 [14:06:19]MH_I2C_Read... [14:06:19]Read from MH i2c: E2 17 00 97 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 64 [14:06:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:06:19]wFMCommunicate OK [14:06:19]requested_item fd.num is exist - process it [14:06:19]SAM_PROTO_GetFieldsCounters [14:06:19]wFMCommunicate request_size=4 [14:06:19]MH_SAM_APDU [14:06:19]CAPDU: 80 13 00 00 [14:06:19]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [14:06:19]Write i2c OK [14:06:19]MH_I2C_Read... [14:06:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:19]Read from MH i2c: E2 [14:06:19]MH_I2C_Read... [14:06:19]Read from MH i2c: E2 62 00 [14:06:19]MH_I2C_Read... [14:06:19]Read from MH i2c: E2 62 00 98 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A2 2A 01 00 0E 04 04 00 72 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 47 [14:06:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A2 2A 01 00 0E 04 04 00 72 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 [14:06:19]wFMCommunicate OK [14:06:19]SAM_PROTO_GetFieldsCounters done [14:06:19]requested_item shift.num is exist - process it [14:06:19]requested_item shift.opened is exist - process it [14:06:19]req_shift_opened [14:06:19]FM_GetShiftState [14:06:19]SAM_PROTO_GetShiftState [14:06:19]wFMCommunicate request_size=4 [14:06:19]MH_SAM_APDU [14:06:19]CAPDU: 80 13 01 00 [14:06:19]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [14:06:19]Write i2c OK [14:06:19]MH_I2C_Read... [14:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:19]Read from MH i2c: E2 [14:06:19]MH_I2C_Read... [14:06:19]Read from MH i2c: E2 0E 00 [14:06:19]MH_I2C_Read... [14:06:19]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 FB [14:06:19]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:06:19]wFMCommunicate OK [14:06:19]SAM_PROTO_GetShiftState done [14:06:19]FM_GetShiftState done [14:06:19]req_shift_opened done [14:06:19]requested_item shift.open_date is exist - process it [14:06:19]req_shift_open_date [14:06:19]req_shift_open_date done [14:06:19]produce_requested_data done [14:06:19]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76450,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [14:06:19]process_action_free close_receipt [14:06:19]json_value_free [14:06:19]json_value_free done [14:06:19]process_json_proto returns [14:06:19]Send response to host [14:06:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76450,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [14:06:19]free response buf [14:06:19]execute_script done [14:06:19]execute_script returns [14:06:19]free content buf [14:06:19]Sock 7.Close socket [14:06:19]Sock 7.Thread stoped [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:46]accept exits with 9 [14:07:46]New connection [14:07:46]New thread 3067080036 created [14:07:46]Thread 3066936676 joined [14:07:46]Waiting for new connection... [14:07:46] Sock 9.Parse request [14:07:46]Sock 9.Check first char [14:07:46]Sock 9.First char is OK [14:07:46]request: POST /json_proto HTTP/1.0 [14:07:46]Method: POST [14:07:46]URL: /json_proto [14:07:46]Method is POST - this is cgi request [14:07:46]url: /json_proto [14:07:46]query_string will be loaded in cgi processing [14:07:46]execute_cgi json_proto POST (null) [14:07:46]execute_cgi path=json_proto method=POST [14:07:46]POST find Content-Length [14:07:46]Host: 172.17.62.5:8080 [14:07:46]Content-Length: 822 [14:07:46]Content-Type: application/json [14:07:46] [14:07:46]POST finish read [14:07:46]Found Content-Length = 822 [14:07:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 54.130, "sum" : 1770.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1770.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:46]execute_script... [14:07: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)190919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 54.130, "sum" : 1770.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1770.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:46]POST & json_proto [14:07:46]process_json_proto [14:07:46]json parsed OK: [14:07:46]protocol is kg_v1.0 [14:07:46]action value=close_receipt [14:07:46]process_action close_receipt [14:07:46]cmd_close_receipt [14:07:46]MH_GetDate [14:07:46]Write to MH i2c: F0 00 00 9A 00 89 [14:07:46]Write i2c OK [14:07:46]MH_I2C_Read... [14:07:46]Read from MH i2c: F0 [14:07:46]MH_I2C_Read... [14:07:46]Read from MH i2c: F0 09 00 [14:07:46]MH_I2C_Read... [14:07:46]Read from MH i2c: F0 09 00 9A 00 00 B3 7A 22 66 F4 E9 65 64 ED [14:07:46]GetLastDocTimeStamp 1713535576 [14:07:46]current date 1713535667 [14:07:46]FM_GetShiftState [14:07:46]SAM_PROTO_GetShiftState [14:07:46]wFMCommunicate request_size=4 [14:07:46]MH_SAM_APDU [14:07:46]CAPDU: 80 13 01 00 [14:07:46]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [14:07:46]Write i2c OK [14:07:46]MH_I2C_Read... [14:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:46]Read from MH i2c: E2 [14:07:46]MH_I2C_Read... [14:07:46]Read from MH i2c: E2 0E 00 [14:07:46]MH_I2C_Read... [14:07:46]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 FD [14:07:46]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:07:46]wFMCommunicate OK [14:07:46]SAM_PROTO_GetShiftState done [14:07:46]FM_GetShiftState done [14:07:46]opened in 1713486233 [14:07:46]opened+sec_in_day 1713572633 [14:07:46]quantity*price = 177005 [14:07:46]sum+1 = 177006 [14:07:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1770.05 НСП 1% : 15.66 НДС 12% : 187.97 Наличными: 0.00 Безнал.: 1770.05 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 71 19.04.2024 14:07 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76451 ФПД: 209456990389564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T140747&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76451&fm=209456990389564&tin=02508201610067®Number=0000000000091573&sum=177005 [14:07:47]StoreToDocumentArchive [14:07:47]shift 370 fd 76451 [14:07:47]save to /storage/0370/doc_00076451 [14:07:47]save last doc name /storage/0370/doc_00076451 to /storage/kkm_last_doc_name [14:07:47]save OK [14:07:47]Clear old archive folders... [14:07:47]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:07:47]tlvbuf is 009AD8D0 [14:07:47]SAM_PROTO_ClearQueue [14:07:47]wFMCommunicate request_size=4 [14:07:47]MH_SAM_APDU [14:07:47]CAPDU: 80 09 00 00 [14:07:47]Write to MH i2c: E2 08 00 A8 00 80 09 00 00 00 00 00 00 1A [14:07:47]Write i2c OK [14:07:47]MH_I2C_Read... [14:07:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:47]Read from MH i2c: E2 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 03 00 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [14:07:47]RAPDU: 90 00 [14:07:47]wFMCommunicate OK [14:07:47]SAM_PROTO_ClearQueue done [14:07:47]KKMCreateOFDPacket [14:07:47]OFDProtocolAddRootSTLVToBuf [14:07:47]FM_MakeSignedData [14:07:47]FM_MakeSignedData [14:07:47]SAM_PROTO_SignData [14:07:47]wFMCommunicate request_size=4 [14:07:47]MH_SAM_APDU [14:07:47]CAPDU: 80 0D 01 02 [14:07:47]Write to MH i2c: E2 08 00 A9 00 80 0D 01 02 00 00 00 00 22 [14:07:47]Write i2c OK [14:07:47]MH_I2C_Read... [14:07:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:47]Read from MH i2c: E2 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 03 00 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [14:07:47]RAPDU: 90 00 [14:07:47]wFMCommunicate OK [14:07:47]wFMCommunicate request_size=255 [14:07:47]MH_SAM_APDU [14:07:47]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 72 D3 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6D B3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D B3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6D B3 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 B3 7A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A3 2A 01 00 35 04 06 00 BE 80 [14:07:47]Write to MH i2c: E2 02 01 AA 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 72 D3 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6D B3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D B3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6D B3 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 B3 7A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A3 2A 01 00 35 04 06 00 BE 80 00 00 A5 [14:07:47]Write i2c OK [14:07:47]MH_I2C_Read... [14:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:47]Read from MH i2c: E2 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 03 00 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [14:07:47]RAPDU: 90 00 [14:07:47]wFMCommunicate OK [14:07:47]wFMCommunicate request_size=9 [14:07:47]MH_SAM_APDU [14:07:47]CAPDU: 80 0D 02 02 04 01 82 05 3C [14:07:47]Write to MH i2c: E2 0C 00 AB 00 80 0D 02 02 04 00 01 82 05 3C 00 00 F1 [14:07:47]Write i2c OK [14:07:47]MH_I2C_Read... [14:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:47]Read from MH i2c: E2 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 03 00 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [14:07:47]RAPDU: 90 00 [14:07:47]wFMCommunicate OK [14:07:47]wFMCommunicate request_size=4 [14:07:47]MH_SAM_APDU [14:07:47]CAPDU: 80 0D 03 02 [14:07:47]Write to MH i2c: E2 08 00 AC 00 80 0D 03 02 00 00 00 00 27 [14:07:47]Write i2c OK [14:07:47]MH_I2C_Read... [14:07:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:47]Read from MH i2c: E2 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 0B 00 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 0B 00 AC 00 00 5D F2 24 C2 79 52 4B E9 90 00 5C [14:07:47]RAPDU: 5D F2 24 C2 79 52 4B E9 90 00 [14:07:47]wFMCommunicate OK [14:07:47]SAM_PROTO_SignData done [14:07:47]FM_MakeSignedData done [14:07:47]CreateOFDProtocolMessage [14:07:47]wFMCommunicate request_size=4 [14:07:47]MH_SAM_APDU [14:07:47]CAPDU: 80 11 00 00 [14:07:47]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [14:07:47]Write i2c OK [14:07:47]MH_I2C_Read... [14:07:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:48]Read from MH i2c: E2 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: E2 17 00 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7A [14:07:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:07:48]wFMCommunicate OK [14:07:48]CreateOFDProtocolMessage done [14:07:48]OFDSenderStorePacket 76451 [14:07:48]StoreOFDPacket docnum=76451 [14:07:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 21 13 06 01 41 27 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 72 D3 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6D B3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D B3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6D B3 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 B3 7A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A3 2A 01 00 35 04 06 00 BE 80 01 82 05 3C 5D F2 24 C2 79 52 4B E9 [14:07:48]CheckFolder [14:07:48]dirname=/storage/ofd_packets [14:07:48]CheckFolder done [14:07:48]ProducePacketName [14:07:48]name=ofd_packets/00076451 [14:07:48]NVStorageSaveData ofd_packets/00076451 [14:07:48]File name is /storage/ofd_packets/00076451 [14:07:48]Write 300 bytes [14:07:48]NVStorageSaveData done [14:07:48]OFDSenderStorePacket done [14:07:48]KKMCreateOFDPacket done [14:07:48]NVStorageSaveData kkm_last_timestamp [14:07:48]File name is /storage/kkm_last_timestamp [14:07:48]Write 4 bytes [14:07:48]NVStorageSaveData done [14:07:48]ExternCall_PrintAddStr [14:07:48]wPrintStart [14:07:48]Write to MH i2c: 01 00 00 AE 00 AE [14:07:48]Write i2c OK [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: 01 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: 01 07 00 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [14:07:48]RasterBufferAndPrint [14:07:48]line Счет N : (1)190919 [14:07:48]line ИНН: 02508201610067 [14:07:48]line Контрольно-Кассовый Чек [14:07:48]line ПРОДАЖА [14:07:48]line ТРК (МРК, ГНК) : 71 [14:07:48]line Товар: 2711190000 [14:07:48]line ГАЗ-К-5 [14:07:48]line 54.130 * 32.70 [14:07:48]line = 1770.05 [14:07:48]line НДС 12% НСП 1% [14:07:48]line > о реализуемом товаре [14:07:48]line ИТОГО: 1770.05 [14:07:48]line НСП 1% : 15.66 [14:07:48]line НДС 12% : 187.97 [14:07:48]line Наличными: 0.00 [14:07:48]line Безнал.: 1770.05 [14:07:48]line Место: АЗС № 106 "Партнер Нефть" [14:07:48]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:07:48]line СНО: Общий режим [14:07:48]line Чек 71 19.04.2024 14:07 [14:07:48]line Смена: 370 ФФД: 1.0 [14:07:48]line ЗНМ: 0300000141 [14:07:48]line РНМ: 0000000000091573 [14:07:48]line Версия ККМ: 001 [14:07:48]line Платежная система: Бакай Банк [14:07:48]line ФМ: 0000000000874652 [14:07:48]line ФД: 76451 [14:07:48]line ФПД: 209456990389564 [14:07:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T140747&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76451&fm=209456990389564&tin=02508201610067®Number=0000000000091573&sum=177005 [14:07:48]written 0, free lines is 4095 [14:07:48]OFD Sender: Processing packet 76451 [packets to send 128, broken 127] [14:07:48]ProducePacketName [14:07:48]name=ofd_packets/00076451 [14:07:48]OFD Sender: To server: pG, [14:07:48]CommunicateWithHost lk.salyk.kg:30040 [14:07:48]ConnectInit lk.salyk.kg [14:07:48]Connected sock=10 [14:07:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 21 13 06 01 41 27 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 72 D3 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6D B3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D B3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6D B3 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 B3 7A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A3 2A 01 00 35 04 06 00 BE 80 01 82 05 3C 5D F2 24 C2 79 52 4B E9 [14:07:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 3C 56 47 00 7D 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 34 36 35 32 10 04 04 00 A3 2A 01 00 F4 03 04 00 3E 22 22 66 B6 04 01 00 00 81 4B 9A 5A 14 E1 29 17 [14:07:48]CommunicateWithHost err = 0 [14:07:48]CheckOFDResponse [14:07:48]1017 (14) - 77093643461234 [14:07:48]1041 (16) - 0000000000874652 [14:07:48]1040 (4) - 76451 [14:07:48]1012 (4) - 19.04.2024 07:50 [14:07:48]1206 (1) - 0 [14:07:48]OFD Sender: Remove packet 76451 [14:07:48]ProducePacketName [14:07:48]name=ofd_packets/00076451 [14:07:48]NVStorageDeleteData [14:07:48]Write to MH i2c: 01 00 00 D7 00 D7 [14:07:48]Write i2c OK [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: 01 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: 01 07 00 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: 01 07 00 D7 00 00 00 00 00 00 0C 0D F7 [14:07:48]RasterBufferAndPrint [14:07:48]line [14:07:48]line [14:07:48]line [14:07:48]line [14:07:48]line [14:07:48]written 0, free lines is 3347 [14:07:48]MH_Cut [14:07:48]Write to MH i2c: D1 01 00 DE 00 01 B0 [14:07:48]Write i2c OK [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: D1 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: D1 01 00 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: D1 01 00 DE 00 00 AF [14:07:48]Write to MH i2c: 01 00 00 DF 00 DF [14:07:48]Write i2c OK [14:07:48]MH_I2C_Read... [14:07:48]OFD Sender: No OFD packet to send [14:07:49]*** Cut start [14:07:49]*** Partial cut [14:07:49]*** CUTSNS_PIN = 1 [14:07:49]*** CUTSNS_PIN = 0 [14:07:49]*** Brake cut motor [14:07:49]Read from MH i2c: 01 [14:07:49]MH_I2C_Read... [14:07:49]*** Stop cut motor [14:07:49]*** Cut end [14:07:49]Read from MH i2c: 01 07 00 [14:07:49]MH_I2C_Read... [14:07:49]Read from MH i2c: 01 07 00 DF 00 00 00 00 00 00 FF 0F F4 [14:07:49]process_action close_receipt done [14:07:49]requested_data is exist [14:07:49]produce_requested_data [14:07:49]requested_item fm.sn is exist - process it [14:07:49]wFMCommunicate request_size=4 [14:07:49]MH_SAM_APDU [14:07:49]CAPDU: 80 11 00 00 [14:07:49]Write to MH i2c: E2 08 00 E0 00 80 11 00 00 00 00 00 00 5A [14:07:49]Write i2c OK [14:07:49]MH_I2C_Read... [14:07:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:49]Read from MH i2c: E2 [14:07:49]MH_I2C_Read... [14:07:49]Read from MH i2c: E2 17 00 [14:07:49]MH_I2C_Read... [14:07:49]Read from MH i2c: E2 17 00 E0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AD [14:07:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:07:49]wFMCommunicate OK [14:07:49]requested_item fd.num is exist - process it [14:07:49]SAM_PROTO_GetFieldsCounters [14:07:49]wFMCommunicate request_size=4 [14:07:49]MH_SAM_APDU [14:07:49]CAPDU: 80 13 00 00 [14:07:49]Write to MH i2c: E2 08 00 E1 00 80 13 00 00 00 00 00 00 5D [14:07:49]Write i2c OK [14:07:49]MH_I2C_Read... [14:07:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:50]Read from MH i2c: E2 [14:07:50]MH_I2C_Read... [14:07:50]Read from MH i2c: E2 62 00 [14:07:50]MH_I2C_Read... [14:07:50]Read from MH i2c: E2 62 00 E1 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A3 2A 01 00 0E 04 04 00 72 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 94 [14:07: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A3 2A 01 00 0E 04 04 00 72 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 [14:07:50]wFMCommunicate OK [14:07:50]SAM_PROTO_GetFieldsCounters done [14:07:50]requested_item shift.num is exist - process it [14:07:50]requested_item shift.opened is exist - process it [14:07:50]req_shift_opened [14:07:50]FM_GetShiftState [14:07:50]SAM_PROTO_GetShiftState [14:07:50]wFMCommunicate request_size=4 [14:07:50]MH_SAM_APDU [14:07:50]CAPDU: 80 13 01 00 [14:07:50]Write to MH i2c: E2 08 00 E2 00 80 13 01 00 00 00 00 00 5F [14:07:50]Write i2c OK [14:07:50]MH_I2C_Read... [14:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:50]Read from MH i2c: E2 [14:07:50]MH_I2C_Read... [14:07:50]Read from MH i2c: E2 0E 00 [14:07:50]MH_I2C_Read... [14:07:50]Read from MH i2c: E2 0E 00 E2 00 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 44 [14:07:50]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:07:50]wFMCommunicate OK [14:07:50]SAM_PROTO_GetShiftState done [14:07:50]FM_GetShiftState done [14:07:50]req_shift_opened done [14:07:50]requested_item shift.open_date is exist - process it [14:07:50]req_shift_open_date [14:07:50]req_shift_open_date done [14:07:50]produce_requested_data done [14:07:50]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76451,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [14:07:50]process_action_free close_receipt [14:07:50]json_value_free [14:07:50]json_value_free done [14:07:50]process_json_proto returns [14:07:50]Send response to host [14:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76451,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [14:07:50]free response buf [14:07:50]execute_script done [14:07:50]execute_script returns [14:07:50]free content buf [14:07:50]Sock 9.Close socket [14:07:50]Sock 9.Thread stoped [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:33]accept exits with 7 [14:08:33]New connection [14:08:33]New thread 3066936676 created [14:08:33]Thread 3067080036 joined [14:08:33]Waiting for new connection... [14:08:33] Sock 7.Parse request [14:08:33]Sock 7.Check first char [14:08:33]Sock 7.First char is OK [14:08:33]request: POST /json_proto HTTP/1.0 [14:08:33]Method: POST [14:08:33]URL: /json_proto [14:08:33]Method is POST - this is cgi request [14:08:33]url: /json_proto [14:08:33]query_string will be loaded in cgi processing [14:08:33]execute_cgi json_proto POST (null) [14:08:33]execute_cgi path=json_proto method=POST [14:08:33]POST find Content-Length [14:08:33]Host: 172.17.62.5:8080 [14:08:33]Content-Length: 978 [14:08:33]Content-Type: application/json [14:08:33] [14:08:33]POST finish read [14:08:33]Found Content-Length = 978 [14:08:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 48.680, "sum" : 3500.09, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 48.68 \u0441\u043E\u043C", "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:33]execute_script... [14:08: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)190923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 48.680, "sum" : 3500.09, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 48.68 \u0441\u043E\u043C", "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:33]POST & json_proto [14:08:33]process_json_proto [14:08:33]json parsed OK: [14:08:33]protocol is kg_v1.0 [14:08:33]action value=close_receipt [14:08:33]process_action close_receipt [14:08:33]cmd_close_receipt [14:08:33]MH_GetDate [14:08:33]Write to MH i2c: F0 00 00 E3 00 D2 [14:08:33]Write i2c OK [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: F0 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: F0 09 00 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: F0 09 00 E3 00 00 E2 7A 22 66 F4 E9 65 64 65 [14:08:33]GetLastDocTimeStamp 1713535667 [14:08:33]current date 1713535714 [14:08:33]FM_GetShiftState [14:08:33]SAM_PROTO_GetShiftState [14:08:33]wFMCommunicate request_size=4 [14:08:33]MH_SAM_APDU [14:08:33]CAPDU: 80 13 01 00 [14:08:33]Write to MH i2c: E2 08 00 E4 00 80 13 01 00 00 00 00 00 61 [14:08:33]Write i2c OK [14:08:33]MH_I2C_Read... [14:08:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:33]Read from MH i2c: E2 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: E2 0E 00 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: E2 0E 00 E4 00 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 46 [14:08:33]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:08:33]wFMCommunicate OK [14:08:33]SAM_PROTO_GetShiftState done [14:08:33]FM_GetShiftState done [14:08:33]opened in 1713486233 [14:08:33]opened+sec_in_day 1713572633 [14:08:33]quantity*price = 350009 [14:08:33]sum+1 = 350010 [14:08:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.97 НДС 12% : 371.69 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 72 19.04.2024 14:08 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 48.68 сом ФМ: 0000000000874652 ФД: 76452 ФПД: 208386171379125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T140834&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76452&fm=208386171379125&tin=02508201610067®Number=0000000000091573&sum=350000 [14:08:34]StoreToDocumentArchive [14:08:34]shift 370 fd 76452 [14:08:34]save to /storage/0370/doc_00076452 [14:08:34]save last doc name /storage/0370/doc_00076452 to /storage/kkm_last_doc_name [14:08:34]save OK [14:08:34]Clear old archive folders... [14:08:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:08:34]tlvbuf is 009AF520 [14:08:34]SAM_PROTO_ClearQueue [14:08:34]wFMCommunicate request_size=4 [14:08:34]MH_SAM_APDU [14:08:34]CAPDU: 80 09 00 00 [14:08:34]Write to MH i2c: E2 08 00 F1 00 80 09 00 00 00 00 00 00 63 [14:08:34]Write i2c OK [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: E2 [14:08:34]MH_I2C_Read... [14:08:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:34]Read from MH i2c: E2 03 00 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: E2 03 00 F1 00 00 90 00 65 [14:08:34]RAPDU: 90 00 [14:08:34]wFMCommunicate OK [14:08:34]SAM_PROTO_ClearQueue done [14:08:34]KKMCreateOFDPacket [14:08:34]OFDProtocolAddRootSTLVToBuf [14:08:34]FM_MakeSignedData [14:08:34]FM_MakeSignedData [14:08:34]SAM_PROTO_SignData [14:08:34]wFMCommunicate request_size=4 [14:08:34]MH_SAM_APDU [14:08:34]CAPDU: 80 0D 01 02 [14:08:34]Write to MH i2c: E2 08 00 F2 00 80 0D 01 02 00 00 00 00 6B [14:08:34]Write i2c OK [14:08:34]MH_I2C_Read... [14:08:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:35]Read from MH i2c: E2 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 03 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 03 00 F2 00 00 90 00 66 [14:08:35]RAPDU: 90 00 [14:08:35]wFMCommunicate OK [14:08:35]wFMCommunicate request_size=255 [14:08:35]MH_SAM_APDU [14:08: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 28 BE 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 39 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 E2 7A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A4 2A 01 00 35 04 06 00 BD 86 AF B8 [14:08:35]Write to MH i2c: E2 02 01 F3 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 28 BE 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 39 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 E2 7A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A4 2A 01 00 35 04 06 00 BD 86 AF B8 00 00 8C [14:08:35]Write i2c OK [14:08:35]MH_I2C_Read... [14:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:35]Read from MH i2c: E2 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 03 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 03 00 F3 00 00 90 00 67 [14:08:35]RAPDU: 90 00 [14:08:35]wFMCommunicate OK [14:08:35]wFMCommunicate request_size=7 [14:08:35]MH_SAM_APDU [14:08:35]CAPDU: 80 0D 02 02 02 9D B5 [14:08:35]Write to MH i2c: E2 0A 00 F4 00 80 0D 02 02 02 00 9D B5 00 00 C4 [14:08:35]Write i2c OK [14:08:35]MH_I2C_Read... [14:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:35]Read from MH i2c: E2 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 03 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [14:08:35]RAPDU: 90 00 [14:08:35]wFMCommunicate OK [14:08:35]wFMCommunicate request_size=4 [14:08:35]MH_SAM_APDU [14:08:35]CAPDU: 80 0D 03 02 [14:08:35]Write to MH i2c: E2 08 00 F5 00 80 0D 03 02 00 00 00 00 70 [14:08:35]Write i2c OK [14:08:35]MH_I2C_Read... [14:08:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:35]Read from MH i2c: E2 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 0B 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 0B 00 F5 00 00 3A CB 62 EE B4 2C 8F F8 90 00 2D [14:08:35]RAPDU: 3A CB 62 EE B4 2C 8F F8 90 00 [14:08:35]wFMCommunicate OK [14:08:35]SAM_PROTO_SignData done [14:08:35]FM_MakeSignedData done [14:08:35]CreateOFDProtocolMessage [14:08:35]wFMCommunicate request_size=4 [14:08:35]MH_SAM_APDU [14:08:35]CAPDU: 80 11 00 00 [14:08:35]Write to MH i2c: E2 08 00 F6 00 80 11 00 00 00 00 00 00 70 [14:08:35]Write i2c OK [14:08:35]MH_I2C_Read... [14:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:35]Read from MH i2c: E2 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 17 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 17 00 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C3 [14:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:08:35]wFMCommunicate OK [14:08:35]CreateOFDProtocolMessage done [14:08:35]OFDSenderStorePacket 76452 [14:08:35]StoreOFDPacket docnum=76452 [14:08:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 03 E8 04 01 C4 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 BE 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 39 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 E2 7A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A4 2A 01 00 35 04 06 00 BD 86 AF B8 9D B5 3A CB 62 EE B4 2C 8F F8 [14:08:35]CheckFolder [14:08:35]dirname=/storage/ofd_packets [14:08:35]CheckFolder done [14:08:35]ProducePacketName [14:08:35]name=ofd_packets/00076452 [14:08:35]NVStorageSaveData ofd_packets/00076452 [14:08:35]File name is /storage/ofd_packets/00076452 [14:08:35]Write 298 bytes [14:08:35]NVStorageSaveData done [14:08:35]OFDSenderStorePacket done [14:08:35]KKMCreateOFDPacket done [14:08:35]NVStorageSaveData kkm_last_timestamp [14:08:35]File name is /storage/kkm_last_timestamp [14:08:35]Write 4 bytes [14:08:35]NVStorageSaveData done [14:08:35]ExternCall_PrintAddStr [14:08:35]wPrintStart [14:08:35]Write to MH i2c: 01 00 00 F7 00 F7 [14:08:35]Write i2c OK [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: 01 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: 01 07 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [14:08:35]RasterBufferAndPrint [14:08:35]line Счет N : (1)190923 [14:08:35]line ИНН: 02508201610067 [14:08:35]line Контрольно-Кассовый Чек [14:08:35]line ПРОДАЖА [14:08:35]line ТРК (МРК, ГНК) : 61 [14:08:35]line Товар: 2710194210 [14:08:35]line ДТ-К-5 [14:08:35]line 48.680 * 71.90 [14:08:35]line = 3500.09 [14:08:35]line НДС 12% НСП 1% [14:08:35]line > о реализуемом товаре [14:08:35]line ОКРУГЛЕНИЕ: -0.09 [14:08:35]line ИТОГО: 3500.00 [14:08:35]line Внесено: 3500.00 [14:08:35]line СДАЧА: 0.00 [14:08:35]line НСП 1% : 30.97 [14:08:35]line НДС 12% : 371.69 [14:08:35]line Наличными: 3500.00 [14:08:35]line Безнал.: 0.00 [14:08:35]line Место: АЗС № 106 "Партнер Нефть" [14:08:35]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:08:35]line СНО: Общий режим [14:08:35]line Чек 72 19.04.2024 14:08 [14:08:35]line Смена: 370 ФФД: 1.0 [14:08:35]line ЗНМ: 0300000141 [14:08:35]line РНМ: 0000000000091573 [14:08:35]line Версия ККМ: 001 [14:08:35]line [14:08:35]line Дисконтная программа [14:08:35]line ДТ [14:08:35]line номер 106 [14:08:35]line сэкономлено 48.68 сом [14:08:35]line ФМ: 0000000000874652 [14:08:35]line ФД: 76452 [14:08:35]line ФПД: 208386171379125 [14:08:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T140834&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76452&fm=208386171379125&tin=02508201610067®Number=0000000000091573&sum=350000 [14:08:35]OFD Sender: Processing packet 76452 [packets to send 128, broken 127] [14:08:35]ProducePacketName [14:08:35]name=ofd_packets/00076452 [14:08:35]OFD Sender: To server: pG, [14:08:35]CommunicateWithHost lk.salyk.kg:30040 [14:08:35]ConnectInit lk.salyk.kg [14:08:35]written 0, free lines is 4095 [14:08:35]Connected sock=10 [14:08:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 03 E8 04 01 C4 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 BE 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 39 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 E2 7A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A4 2A 01 00 35 04 06 00 BD 86 AF B8 9D B5 3A CB 62 EE B4 2C 8F F8 [14:08:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 80 4C 47 00 0A 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A4 2A 01 00 F4 03 04 00 6E 22 22 66 B6 04 01 00 00 68 64 01 E4 7D F8 9E 92 [14:08:36]CommunicateWithHost err = 0 [14:08:36]CheckOFDResponse [14:08:36]1017 (14) - 77093643461234 [14:08:36]1041 (16) - 0000000000874652 [14:08:36]1040 (4) - 76452 [14:08:36]1012 (4) - 19.04.2024 07:51 [14:08:36]1206 (1) - 0 [14:08:36]OFD Sender: Remove packet 76452 [14:08:36]ProducePacketName [14:08:36]name=ofd_packets/00076452 [14:08:36]NVStorageDeleteData [14:08:36]Write to MH i2c: 01 00 00 26 01 27 [14:08:36]Write i2c OK [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: 01 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: 01 07 00 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 A4 0C DE [14:08:36]RasterBufferAndPrint [14:08:36]line [14:08:36]line [14:08:36]line [14:08:36]line [14:08:36]line [14:08:36]written 0, free lines is 3242 [14:08:36]MH_Cut [14:08:36]Write to MH i2c: D1 01 00 2D 01 01 00 [14:08:36]Write i2c OK [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: D1 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: D1 01 00 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: D1 01 00 2D 01 00 FF [14:08:36]Write to MH i2c: 01 00 00 2E 01 2F [14:08:36]Write i2c OK [14:08:36]MH_I2C_Read... [14:08:36]OFD Sender: No OFD packet to send [14:08:37]*** Cut start [14:08:37]*** Partial cut [14:08:37]*** CUTSNS_PIN = 1 [14:08:37]*** CUTSNS_PIN = 0 [14:08:37]*** Brake cut motor [14:08:37]Read from MH i2c: 01 [14:08:37]MH_I2C_Read... [14:08:37]*** Stop cut motor [14:08:37]*** Cut end [14:08:37]Read from MH i2c: 01 07 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 FF 0F 44 [14:08:37]process_action close_receipt done [14:08:37]requested_data is exist [14:08:37]produce_requested_data [14:08:37]requested_item fm.sn is exist - process it [14:08:37]wFMCommunicate request_size=4 [14:08:37]MH_SAM_APDU [14:08:37]CAPDU: 80 11 00 00 [14:08:37]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [14:08:37]Write i2c OK [14:08:37]MH_I2C_Read... [14:08:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:37]Read from MH i2c: E2 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 17 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FD [14:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:08:37]wFMCommunicate OK [14:08:37]requested_item fd.num is exist - process it [14:08:37]SAM_PROTO_GetFieldsCounters [14:08:37]wFMCommunicate request_size=4 [14:08:37]MH_SAM_APDU [14:08:37]CAPDU: 80 13 00 00 [14:08:37]Write to MH i2c: E2 08 00 30 01 80 13 00 00 00 00 00 00 AD [14:08:37]Write i2c OK [14:08:37]MH_I2C_Read... [14:08:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:37]Read from MH i2c: E2 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 62 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 62 00 30 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A4 2A 01 00 0E 04 04 00 72 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 E8 [14:08:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A4 2A 01 00 0E 04 04 00 72 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 [14:08:37]wFMCommunicate OK [14:08:37]SAM_PROTO_GetFieldsCounters done [14:08:37]requested_item shift.num is exist - process it [14:08:37]requested_item shift.opened is exist - process it [14:08:37]req_shift_opened [14:08:37]FM_GetShiftState [14:08:37]SAM_PROTO_GetShiftState [14:08:37]wFMCommunicate request_size=4 [14:08:37]MH_SAM_APDU [14:08:37]CAPDU: 80 13 01 00 [14:08:37]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [14:08:37]Write i2c OK [14:08:37]MH_I2C_Read... [14:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:37]Read from MH i2c: E2 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 0E 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 94 [14:08:37]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:08:37]wFMCommunicate OK [14:08:37]SAM_PROTO_GetShiftState done [14:08:37]FM_GetShiftState done [14:08:37]req_shift_opened done [14:08:37]requested_item shift.open_date is exist - process it [14:08:37]req_shift_open_date [14:08:37]req_shift_open_date done [14:08:37]produce_requested_data done [14:08:37]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76452,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [14:08:37]process_action_free close_receipt [14:08:37]json_value_free [14:08:37]json_value_free done [14:08:37]process_json_proto returns [14:08:37]Send response to host [14:08:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76452,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [14:08:37]free response buf [14:08:37]execute_script done [14:08:37]execute_script returns [14:08:37]free content buf [14:08:37]Sock 7.Close socket [14:08:37]Sock 7.Thread stoped [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:37]OFD Sender: No OFD packet to send [14:14:42]OFD Sender: No OFD packet to send [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:57]OFD Sender: No OFD packet to send [14:15:02]OFD Sender: No OFD packet to send [14:15:07]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:42]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [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:50]accept exits with 9 [14:18:50]New connection [14:18:50]New thread 3067080036 created [14:18:50]Thread 3066936676 joined [14:18:50]Waiting for new connection... [14:18:50] Sock 9.Parse request [14:18:50]Sock 9.Check first char [14:18:50]Sock 9.First char is OK [14:18:50]request: POST /json_proto HTTP/1.0 [14:18:50]Method: POST [14:18:50]URL: /json_proto [14:18:50]Method is POST - this is cgi request [14:18:50]url: /json_proto [14:18:50]query_string will be loaded in cgi processing [14:18:50]execute_cgi json_proto POST (null) [14:18:50]execute_cgi path=json_proto method=POST [14:18:50]POST find Content-Length [14:18:50]Host: 172.17.62.5:8080 [14:18:50]Content-Length: 990 [14:18:50]Content-Type: application/json [14:18:50] [14:18:50]POST finish read [14:18:50]Found Content-Length = 990 [14:18:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 53.630, "sum" : 1700.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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.63 \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" ] } } [14:18:50]execute_script... [14: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)190924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 53.630, "sum" : 1700.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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.63 \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" ] } } [14:18:50]POST & json_proto [14:18:50]process_json_proto [14:18:50]json parsed OK: [14:18:50]protocol is kg_v1.0 [14:18:50]action value=close_receipt [14:18:50]process_action close_receipt [14:18:50]cmd_close_receipt [14:18:50]MH_GetDate [14:18:50]Write to MH i2c: F0 00 00 32 01 22 [14:18:50]Write i2c OK [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: F0 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: F0 09 00 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: F0 09 00 32 01 00 4B 7D 22 66 F4 E9 65 64 21 [14:18:50]GetLastDocTimeStamp 1713535714 [14:18:50]current date 1713536331 [14:18:50]FM_GetShiftState [14:18:50]SAM_PROTO_GetShiftState [14:18:50]wFMCommunicate request_size=4 [14:18:50]MH_SAM_APDU [14:18:50]CAPDU: 80 13 01 00 [14:18:50]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [14:18:50]Write i2c OK [14:18:50]MH_I2C_Read... [14:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:50]Read from MH i2c: E2 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 0E 00 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 0E 00 33 01 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 96 [14:18:50]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:18:50]wFMCommunicate OK [14:18:50]SAM_PROTO_GetShiftState done [14:18:50]FM_GetShiftState done [14:18:50]opened in 1713486233 [14:18:50]opened+sec_in_day 1713572633 [14:18:50]quantity*price = 170007 [14:18:50]sum+1 = 170008 [14:18:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.04 НДС 12% : 180.54 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 73 19.04.2024 14:18 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 53.63 сом ФМ: 0000000000874652 ФД: 76453 ФПД: 56865377707554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T141851&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76453&fm=56865377707554&tin=02508201610067®Number=0000000000091573&sum=170000 [14:18:51]StoreToDocumentArchive [14:18:51]shift 370 fd 76453 [14:18:51]save to /storage/0370/doc_00076453 [14:18:51]save last doc name /storage/0370/doc_00076453 to /storage/kkm_last_doc_name [14:18:51]save OK [14:18:51]Clear old archive folders... [14:18:51]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:18:51]tlvbuf is 00A16F80 [14:18:51]SAM_PROTO_ClearQueue [14:18:51]wFMCommunicate request_size=4 [14:18:51]MH_SAM_APDU [14:18:51]CAPDU: 80 09 00 00 [14:18:51]Write to MH i2c: E2 08 00 40 01 80 09 00 00 00 00 00 00 B3 [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 [14:18:51]MH_I2C_Read... [14:18:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:51]Read from MH i2c: E2 03 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [14:18:51]RAPDU: 90 00 [14:18:51]wFMCommunicate OK [14:18:51]SAM_PROTO_ClearQueue done [14:18:51]KKMCreateOFDPacket [14:18:51]OFDProtocolAddRootSTLVToBuf [14:18:51]FM_MakeSignedData [14:18:51]FM_MakeSignedData [14:18:51]SAM_PROTO_SignData [14:18:51]wFMCommunicate request_size=4 [14:18:51]MH_SAM_APDU [14:18:51]CAPDU: 80 0D 01 02 [14:18:51]Write to MH i2c: E2 08 00 41 01 80 0D 01 02 00 00 00 00 BB [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:51]Read from MH i2c: E2 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [14:18:51]RAPDU: 90 00 [14:18:51]wFMCommunicate OK [14:18:51]wFMCommunicate request_size=255 [14:18:51]MH_SAM_APDU [14:18:51]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E D1 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 17 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 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 49 00 00 00 F4 03 04 00 4B 7D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A5 2A 01 00 35 04 06 00 33 B8 [14:18:51]Write to MH i2c: E2 02 01 42 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E D1 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 17 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 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 49 00 00 00 F4 03 04 00 4B 7D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A5 2A 01 00 35 04 06 00 33 B8 00 00 A6 [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:51]Read from MH i2c: E2 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [14:18:51]RAPDU: 90 00 [14:18:51]wFMCommunicate OK [14:18:51]wFMCommunicate request_size=9 [14:18:51]MH_SAM_APDU [14:18:51]CAPDU: 80 0D 02 02 04 00 A3 66 22 [14:18:51]Write to MH i2c: E2 0C 00 43 01 80 0D 02 02 04 00 00 A3 66 22 00 00 F1 [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:51]Read from MH i2c: E2 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [14:18:51]RAPDU: 90 00 [14:18:51]wFMCommunicate OK [14:18:51]wFMCommunicate request_size=4 [14:18:51]MH_SAM_APDU [14:18:51]CAPDU: 80 0D 03 02 [14:18:51]Write to MH i2c: E2 08 00 44 01 80 0D 03 02 00 00 00 00 C0 [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:51]Read from MH i2c: E2 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 0B 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 0B 00 44 01 00 2C 6E A5 98 26 FC 41 62 90 00 5D [14:18:51]RAPDU: 2C 6E A5 98 26 FC 41 62 90 00 [14:18:51]wFMCommunicate OK [14:18:51]SAM_PROTO_SignData done [14:18:51]FM_MakeSignedData done [14:18:51]CreateOFDProtocolMessage [14:18:51]wFMCommunicate request_size=4 [14:18:51]MH_SAM_APDU [14:18:51]CAPDU: 80 11 00 00 [14:18:51]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:51]Read from MH i2c: E2 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 17 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 13 [14:18:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:18:51]wFMCommunicate OK [14:18:51]CreateOFDProtocolMessage done [14:18:51]OFDSenderStorePacket 76453 [14:18:51]StoreOFDPacket docnum=76453 [14:18:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 50 9E 06 01 C7 40 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E D1 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 17 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 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 49 00 00 00 F4 03 04 00 4B 7D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A5 2A 01 00 35 04 06 00 33 B8 00 A3 66 22 2C 6E A5 98 26 FC 41 62 [14:18:51]CheckFolder [14:18:51]dirname=/storage/ofd_packets [14:18:51]CheckFolder done [14:18:51]ProducePacketName [14:18:51]name=ofd_packets/00076453 [14:18:51]NVStorageSaveData ofd_packets/00076453 [14:18:51]File name is /storage/ofd_packets/00076453 [14:18:51]Write 300 bytes [14:18:51]NVStorageSaveData done [14:18:51]OFDSenderStorePacket done [14:18:51]KKMCreateOFDPacket done [14:18:51]NVStorageSaveData kkm_last_timestamp [14:18:51]File name is /storage/kkm_last_timestamp [14:18:51]Write 4 bytes [14:18:51]NVStorageSaveData done [14:18:51]ExternCall_PrintAddStr [14:18:51]wPrintStart [14:18:51]Write to MH i2c: 01 00 00 46 01 47 [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: 01 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: 01 07 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [14:18:51]RasterBufferAndPrint [14:18:51]line Счет N : (1)190924 [14:18:51]line ИНН: 02508201610067 [14:18:51]line Контрольно-Кассовый Чек [14:18:51]line ПРОДАЖА [14:18:51]line ТРК (МРК, ГНК) : 71 [14:18:51]line Товар: 2711190000 [14:18:51]line ГАЗ-К-5 [14:18:51]line 53.630 * 31.70 [14:18:51]line = 1700.07 [14:18:51]line НДС 12% НСП 1% [14:18:51]line > о реализуемом товаре [14:18:51]line ОКРУГЛЕНИЕ: -0.07 [14:18:51]line ИТОГО: 1700.00 [14:18:51]line Внесено: 1700.00 [14:18:51]line СДАЧА: 0.00 [14:18:51]line НСП 1% : 15.04 [14:18:51]line НДС 12% : 180.54 [14:18:51]line Наличными: 1700.00 [14:18:51]line Безнал.: 0.00 [14:18:51]line Место: АЗС № 106 "Партнер Нефть" [14:18:51]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:18:51]line СНО: Общий режим [14:18:51]line Чек 73 19.04.2024 14:18 [14:18:51]line Смена: 370 ФФД: 1.0 [14:18:51]line ЗНМ: 0300000141 [14:18:51]line РНМ: 0000000000091573 [14:18:51]line Версия ККМ: 001 [14:18:51]line [14:18:51]line Дисконтная программа [14:18:51]line СУГ [14:18:51]line номер 106 [14:18:51]line сэкономлено 53.63 сом [14:18:51]line ФМ: 0000000000874652 [14:18:51]line ФД: 76453 [14:18:51]line ФПД: 56865377707554 [14:18:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T141851&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76453&fm=56865377707554&tin=02508201610067®Number=0000000000091573&sum=170000 [14:18:52]OFD Sender: Processing packet 76453 [packets to send 128, broken 127] [14:18:52]ProducePacketName [14:18:52]name=ofd_packets/00076453 [14:18:52]OFD Sender: To server: pG, [14:18:52]CommunicateWithHost lk.salyk.kg:30040 [14:18:52]ConnectInit lk.salyk.kg [14:18:52]written 0, free lines is 4095 [14:18:52]Connected sock=10 [14:18:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 50 9E 06 01 C7 40 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E D1 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 17 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 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 49 00 00 00 F4 03 04 00 4B 7D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A5 2A 01 00 35 04 06 00 33 B8 00 A3 66 22 2C 6E A5 98 26 FC 41 62 [14:18:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 F3 03 47 00 DD 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 34 36 35 32 10 04 04 00 A5 2A 01 00 F4 03 04 00 D6 24 22 66 B6 04 01 00 00 42 7E 9E 4E C5 99 09 67 [14:18:52]CommunicateWithHost err = 0 [14:18:52]CheckOFDResponse [14:18:52]1017 (14) - 77093643461234 [14:18:52]1041 (16) - 0000000000874652 [14:18:52]1040 (4) - 76453 [14:18:52]1012 (4) - 19.04.2024 08:01 [14:18:52]1206 (1) - 0 [14:18:52]OFD Sender: Remove packet 76453 [14:18:52]ProducePacketName [14:18:52]name=ofd_packets/00076453 [14:18:52]NVStorageDeleteData [14:18:52]Write to MH i2c: 01 00 00 75 01 76 [14:18:52]Write i2c OK [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: 01 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: 01 07 00 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: 01 07 00 75 01 00 00 00 00 00 A1 0C 2A [14:18:52]RasterBufferAndPrint [14:18:52]line [14:18:52]line [14:18:52]line [14:18:52]line [14:18:52]line [14:18:52]written 0, free lines is 3239 [14:18:52]MH_Cut [14:18:52]Write to MH i2c: D1 01 00 7C 01 01 4F [14:18:52]Write i2c OK [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: D1 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: D1 01 00 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: D1 01 00 7C 01 00 4E [14:18:52]Write to MH i2c: 01 00 00 7D 01 7E [14:18:52]Write i2c OK [14:18:52]MH_I2C_Read... [14:18:52]OFD Sender: No OFD packet to send [14:18:53]*** Cut start [14:18:53]*** Partial cut [14:18:53]*** CUTSNS_PIN = 1 [14:18:53]*** CUTSNS_PIN = 0 [14:18:53]*** Brake cut motor [14:18:53]Read from MH i2c: 01 [14:18:53]MH_I2C_Read... [14:18:53]*** Stop cut motor [14:18:53]*** Cut end [14:18:53]Read from MH i2c: 01 07 00 [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: 01 07 00 7D 01 00 00 00 00 00 FF 0F 93 [14:18:53]process_action close_receipt done [14:18:53]requested_data is exist [14:18:53]produce_requested_data [14:18:53]requested_item fm.sn is exist - process it [14:18:53]wFMCommunicate request_size=4 [14:18:53]MH_SAM_APDU [14:18:53]CAPDU: 80 11 00 00 [14:18:53]Write to MH i2c: E2 08 00 7E 01 80 11 00 00 00 00 00 00 F9 [14:18:53]Write i2c OK [14:18:53]MH_I2C_Read... [14:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:54]Read from MH i2c: E2 [14:18:54]MH_I2C_Read... [14:18:54]Read from MH i2c: E2 17 00 [14:18:54]MH_I2C_Read... [14:18:54]Read from MH i2c: E2 17 00 7E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4C [14:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:18:54]wFMCommunicate OK [14:18:54]requested_item fd.num is exist - process it [14:18:54]SAM_PROTO_GetFieldsCounters [14:18:54]wFMCommunicate request_size=4 [14:18:54]MH_SAM_APDU [14:18:54]CAPDU: 80 13 00 00 [14:18:54]Write to MH i2c: E2 08 00 7F 01 80 13 00 00 00 00 00 00 FC [14:18:54]Write i2c OK [14:18:54]MH_I2C_Read... [14:18:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:54]Read from MH i2c: E2 [14:18:54]MH_I2C_Read... [14:18:54]Read from MH i2c: E2 62 00 [14:18:54]MH_I2C_Read... [14:18:54]Read from MH i2c: E2 62 00 7F 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A5 2A 01 00 0E 04 04 00 72 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 3B [14: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A5 2A 01 00 0E 04 04 00 72 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 [14:18:54]wFMCommunicate OK [14:18:54]SAM_PROTO_GetFieldsCounters done [14:18:54]requested_item shift.num is exist - process it [14:18:54]requested_item shift.opened is exist - process it [14:18:54]req_shift_opened [14:18:54]FM_GetShiftState [14:18:54]SAM_PROTO_GetShiftState [14:18:54]wFMCommunicate request_size=4 [14:18:54]MH_SAM_APDU [14:18:54]CAPDU: 80 13 01 00 [14:18:54]Write to MH i2c: E2 08 00 80 01 80 13 01 00 00 00 00 00 FE [14:18:54]Write i2c OK [14:18:54]MH_I2C_Read... [14:18:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:54]Read from MH i2c: E2 [14:18:54]MH_I2C_Read... [14:18:54]Read from MH i2c: E2 0E 00 [14:18:54]MH_I2C_Read... [14:18:54]Read from MH i2c: E2 0E 00 80 01 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E3 [14:18:54]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:18:54]wFMCommunicate OK [14:18:54]SAM_PROTO_GetShiftState done [14:18:54]FM_GetShiftState done [14:18:54]req_shift_opened done [14:18:54]requested_item shift.open_date is exist - process it [14:18:54]req_shift_open_date [14:18:54]req_shift_open_date done [14:18:54]produce_requested_data done [14:18:54]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76453,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [14:18:54]process_action_free close_receipt [14:18:54]json_value_free [14:18:54]json_value_free done [14:18:54]process_json_proto returns [14:18:54]Send response to host [14:18:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76453,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [14:18:54]free response buf [14:18:54]execute_script done [14:18:54]execute_script returns [14:18:54]free content buf [14:18:54]Sock 9.Close socket [14:18:54]Sock 9.Thread stoped [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:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:08]accept exits with 7 [14:21:08]New connection [14:21:08]New thread 3066936676 created [14:21:08]Thread 3067080036 joined [14:21:08]Waiting for new connection... [14:21:08] Sock 7.Parse request [14:21:08]Sock 7.Check first char [14:21:08]Sock 7.First char is OK [14:21:08]request: POST /json_proto HTTP/1.0 [14:21:08]Method: POST [14:21:08]URL: /json_proto [14:21:08]Method is POST - this is cgi request [14:21:08]url: /json_proto [14:21:08]query_string will be loaded in cgi processing [14:21:08]execute_cgi json_proto POST (null) [14:21:08]execute_cgi path=json_proto method=POST [14:21:08]POST find Content-Length [14:21:08]Host: 172.17.62.5:8080 [14:21:08]Content-Length: 681 [14:21:08]Content-Type: application/json [14:21:08] [14:21:08]POST finish read [14:21:08]Found Content-Length = 681 [14:21:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 16.520, "sum" : 540.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:08]execute_script... [14:21: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)190925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 16.520, "sum" : 540.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:08]POST & json_proto [14:21:08]process_json_proto [14:21:08]json parsed OK: [14:21:08]protocol is kg_v1.0 [14:21:08]action value=close_receipt [14:21:08]process_action close_receipt [14:21:08]cmd_close_receipt [14:21:08]MH_GetDate [14:21:08]Write to MH i2c: F0 00 00 81 01 71 [14:21:08]Write i2c OK [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: F0 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: F0 09 00 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: F0 09 00 81 01 00 D5 7D 22 66 F4 E9 65 64 FA [14:21:08]GetLastDocTimeStamp 1713536331 [14:21:08]current date 1713536469 [14:21:08]FM_GetShiftState [14:21:08]SAM_PROTO_GetShiftState [14:21:08]wFMCommunicate request_size=4 [14:21:08]MH_SAM_APDU [14:21:08]CAPDU: 80 13 01 00 [14:21:08]Write to MH i2c: E2 08 00 82 01 80 13 01 00 00 00 00 00 00 [14:21:08]Write i2c OK [14:21:08]MH_I2C_Read... [14:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:08]Read from MH i2c: E2 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 0E 00 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 0E 00 82 01 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E5 [14:21:08]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:21:08]wFMCommunicate OK [14:21:08]SAM_PROTO_GetShiftState done [14:21:08]FM_GetShiftState done [14:21:08]opened in 1713486233 [14:21:08]opened+sec_in_day 1713572633 [14:21:08]quantity*price = 54020 [14:21:08]sum+1 = 54021 [14:21:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.37 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 74 19.04.2024 14:21 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76454 ФПД: 199320270497038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T142109&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76454&fm=199320270497038&tin=02508201610067®Number=0000000000091573&sum=54000 [14:21:09]StoreToDocumentArchive [14:21:09]shift 370 fd 76454 [14:21:09]save to /storage/0370/doc_00076454 [14:21:09]save last doc name /storage/0370/doc_00076454 to /storage/kkm_last_doc_name [14:21:09]save OK [14:21:09]Clear old archive folders... [14:21:09]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:21:09]tlvbuf is 009FEEF0 [14:21:09]SAM_PROTO_ClearQueue [14:21:09]wFMCommunicate request_size=4 [14:21:09]MH_SAM_APDU [14:21:09]CAPDU: 80 09 00 00 [14:21:09]Write to MH i2c: E2 08 00 8F 01 80 09 00 00 00 00 00 00 02 [14:21:09]Write i2c OK [14:21:09]MH_I2C_Read... [14:21:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:09]Read from MH i2c: E2 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: E2 03 00 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: E2 03 00 8F 01 00 90 00 04 [14:21:09]RAPDU: 90 00 [14:21:09]wFMCommunicate OK [14:21:09]SAM_PROTO_ClearQueue done [14:21:09]KKMCreateOFDPacket [14:21:09]OFDProtocolAddRootSTLVToBuf [14:21:09]FM_MakeSignedData [14:21:09]FM_MakeSignedData [14:21:09]SAM_PROTO_SignData [14:21:09]wFMCommunicate request_size=4 [14:21:09]MH_SAM_APDU [14:21:09]CAPDU: 80 0D 01 02 [14:21:09]Write to MH i2c: E2 08 00 90 01 80 0D 01 02 00 00 00 00 0A [14:21:09]Write i2c OK [14:21:09]MH_I2C_Read... [14:21:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:09]Read from MH i2c: E2 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: E2 03 00 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: E2 03 00 90 01 00 90 00 05 [14:21:09]RAPDU: 90 00 [14:21:09]wFMCommunicate OK [14:21:09]wFMCommunicate request_size=255 [14:21:09]MH_SAM_APDU [14:21:09]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 88 40 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 04 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D5 7D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A6 2A 01 00 35 04 06 00 B5 47 [14:21:09]Write to MH i2c: E2 02 01 91 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 88 40 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 04 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D5 7D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A6 2A 01 00 35 04 06 00 B5 47 00 00 72 [14:21:09]Write i2c OK [14:21:09]MH_I2C_Read... [14:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:09]Read from MH i2c: E2 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: E2 03 00 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: E2 03 00 91 01 00 90 00 06 [14:21:09]RAPDU: 90 00 [14:21:09]wFMCommunicate OK [14:21:09]wFMCommunicate request_size=9 [14:21:09]MH_SAM_APDU [14:21:09]CAPDU: 80 0D 02 02 04 DD EB 65 0E [14:21:09]Write to MH i2c: E2 0C 00 92 01 80 0D 02 02 04 00 DD EB 65 0E 00 00 50 [14:21:09]Write i2c OK [14:21:09]MH_I2C_Read... [14:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:09]Read from MH i2c: E2 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: E2 03 00 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: E2 03 00 92 01 00 90 00 07 [14:21:09]RAPDU: 90 00 [14:21:09]wFMCommunicate OK [14:21:09]wFMCommunicate request_size=4 [14:21:09]MH_SAM_APDU [14:21:09]CAPDU: 80 0D 03 02 [14:21:09]Write to MH i2c: E2 08 00 93 01 80 0D 03 02 00 00 00 00 0F [14:21:09]Write i2c OK [14:21:09]MH_I2C_Read... [14:21:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:09]Read from MH i2c: E2 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: E2 0B 00 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: E2 0B 00 93 01 00 17 89 38 4C 2D A9 50 55 90 00 AF [14:21:09]RAPDU: 17 89 38 4C 2D A9 50 55 90 00 [14:21:09]wFMCommunicate OK [14:21:09]SAM_PROTO_SignData done [14:21:09]FM_MakeSignedData done [14:21:09]CreateOFDProtocolMessage [14:21:09]wFMCommunicate request_size=4 [14:21:09]MH_SAM_APDU [14:21:09]CAPDU: 80 11 00 00 [14:21:09]Write to MH i2c: E2 08 00 94 01 80 11 00 00 00 00 00 00 0F [14:21:09]Write i2c OK [14:21:09]MH_I2C_Read... [14:21:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:09]Read from MH i2c: E2 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: E2 17 00 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: E2 17 00 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 62 [14:21:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:21:09]wFMCommunicate OK [14:21:09]CreateOFDProtocolMessage done [14:21:09]OFDSenderStorePacket 76454 [14:21:09]StoreOFDPacket docnum=76454 [14:21:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 73 53 06 01 BF 32 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 88 40 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 04 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D5 7D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A6 2A 01 00 35 04 06 00 B5 47 DD EB 65 0E 17 89 38 4C 2D A9 50 55 [14:21:09]CheckFolder [14:21:09]dirname=/storage/ofd_packets [14:21:09]CheckFolder done [14:21:09]ProducePacketName [14:21:09]name=ofd_packets/00076454 [14:21:09]NVStorageSaveData ofd_packets/00076454 [14:21:09]File name is /storage/ofd_packets/00076454 [14:21:09]Write 300 bytes [14:21:09]NVStorageSaveData done [14:21:09]OFDSenderStorePacket done [14:21:09]KKMCreateOFDPacket done [14:21:09]NVStorageSaveData kkm_last_timestamp [14:21:09]File name is /storage/kkm_last_timestamp [14:21:09]Write 4 bytes [14:21:09]NVStorageSaveData done [14:21:09]ExternCall_PrintAddStr [14:21:09]wPrintStart [14:21:09]Write to MH i2c: 01 00 00 95 01 96 [14:21:09]Write i2c OK [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: 01 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: 01 07 00 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: 01 07 00 95 01 00 00 00 00 00 FF 0F AB [14:21:09]RasterBufferAndPrint [14:21:09]line Счет N : (1)190925 [14:21:09]line ИНН: 02508201610067 [14:21:09]line Контрольно-Кассовый Чек [14:21:09]line ПРОДАЖА [14:21:09]line ТРК (МРК, ГНК) : 71 [14:21:09]line Товар: 2711190000 [14:21:09]line ГАЗ-К-5 [14:21:09]line 16.520 * 32.70 [14:21:09]line = 540.20 [14:21:09]line НДС 12% НСП 1% [14:21:09]line > о реализуемом товаре [14:21:09]line ОКРУГЛЕНИЕ: -0.20 [14:21:09]line ИТОГО: 540.00 [14:21:09]line Внесено: 540.00 [14:21:09]line СДАЧА: 0.00 [14:21:09]line НСП 1% : 4.78 [14:21:09]line НДС 12% : 57.37 [14:21:09]line Наличными: 540.00 [14:21:09]line Безнал.: 0.00 [14:21:09]line Место: АЗС № 106 "Партнер Нефть" [14:21:09]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:21:09]line СНО: Общий режим [14:21:09]line Чек 74 19.04.2024 14:21 [14:21:09]line Смена: 370 ФФД: 1.0 [14:21:09]line ЗНМ: 0300000141 [14:21:09]line РНМ: 0000000000091573 [14:21:09]line Версия ККМ: 001 [14:21:09]line ФМ: 0000000000874652 [14:21:09]line ФД: 76454 [14:21:09]line ФПД: 199320270497038 [14:21:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T142109&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76454&fm=199320270497038&tin=02508201610067®Number=0000000000091573&sum=54000 [14:21:09]written 0, free lines is 4095 [14:21:09]OFD Sender: Processing packet 76454 [packets to send 128, broken 127] [14:21:09]ProducePacketName [14:21:09]name=ofd_packets/00076454 [14:21:10]OFD Sender: To server: pG, [14:21:10]CommunicateWithHost lk.salyk.kg:30040 [14:21:10]ConnectInit lk.salyk.kg [14:21:10]Write to MH i2c: 01 00 00 BF 01 C0 [14:21:10]Write i2c OK [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: 01 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: 01 07 00 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: 01 07 00 BF 01 00 00 00 00 00 DC 0C AF [14:21:10]RasterBufferAndPrint [14:21:10]line [14:21:10]line [14:21:10]line [14:21:10]line [14:21:10]line [14:21:10]written 0, free lines is 3297 [14:21:10]MH_Cut [14:21:10]Write to MH i2c: D1 01 00 C6 01 01 99 [14:21:10]Connected sock=10 [14:21:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 73 53 06 01 BF 32 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 88 40 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 04 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D5 7D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A6 2A 01 00 35 04 06 00 B5 47 DD EB 65 0E 17 89 38 4C 2D A9 50 55 [14:21:10]Write i2c OK [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: D1 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: D1 01 00 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: D1 01 00 C6 01 00 98 [14:21:10]Write to MH i2c: 01 00 00 C7 01 C8 [14:21:10]Write i2c OK [14:21:10]MH_I2C_Read... [14:21:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 97 6E 47 00 5C 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 34 36 35 32 10 04 04 00 A6 2A 01 00 F4 03 04 00 60 25 22 66 B6 04 01 00 00 6B 68 85 3D 0A 42 25 53 [14:21:10]CommunicateWithHost err = 0 [14:21:10]CheckOFDResponse [14:21:10]1017 (14) - 77093643461234 [14:21:10]1041 (16) - 0000000000874652 [14:21:10]1040 (4) - 76454 [14:21:10]1012 (4) - 19.04.2024 08:03 [14:21:10]1206 (1) - 0 [14:21:10]OFD Sender: Remove packet 76454 [14:21:10]ProducePacketName [14:21:10]name=ofd_packets/00076454 [14:21:10]NVStorageDeleteData [14:21:11]OFD Sender: No OFD packet to send [14:21:11]*** Cut start [14:21:11]*** Partial cut [14:21:11]*** CUTSNS_PIN = 1 [14:21:11]*** CUTSNS_PIN = 0 [14:21:11]*** Brake cut motor [14:21:11]Read from MH i2c: 01 [14:21:11]MH_I2C_Read... [14:21:11]*** Stop cut motor [14:21:11]*** Cut end [14:21:11]Read from MH i2c: 01 07 00 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: 01 07 00 C7 01 00 00 00 00 00 FF 0F DD [14:21:11]process_action close_receipt done [14:21:11]requested_data is exist [14:21:11]produce_requested_data [14:21:11]requested_item fm.sn is exist - process it [14:21:11]wFMCommunicate request_size=4 [14:21:11]MH_SAM_APDU [14:21:11]CAPDU: 80 11 00 00 [14:21:11]Write to MH i2c: E2 08 00 C8 01 80 11 00 00 00 00 00 00 43 [14:21:11]Write i2c OK [14:21:11]MH_I2C_Read... [14:21:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:11]Read from MH i2c: E2 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: E2 17 00 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: E2 17 00 C8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 96 [14:21:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:21:11]wFMCommunicate OK [14:21:11]requested_item fd.num is exist - process it [14:21:11]SAM_PROTO_GetFieldsCounters [14:21:11]wFMCommunicate request_size=4 [14:21:11]MH_SAM_APDU [14:21:11]CAPDU: 80 13 00 00 [14:21:11]Write to MH i2c: E2 08 00 C9 01 80 13 00 00 00 00 00 00 46 [14:21:11]Write i2c OK [14:21:11]MH_I2C_Read... [14:21:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:11]Read from MH i2c: E2 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: E2 62 00 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: E2 62 00 C9 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A6 2A 01 00 0E 04 04 00 72 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 89 [14:21: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A6 2A 01 00 0E 04 04 00 72 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 [14:21:11]wFMCommunicate OK [14:21:11]SAM_PROTO_GetFieldsCounters done [14:21:11]requested_item shift.num is exist - process it [14:21:11]requested_item shift.opened is exist - process it [14:21:11]req_shift_opened [14:21:11]FM_GetShiftState [14:21:11]SAM_PROTO_GetShiftState [14:21:11]wFMCommunicate request_size=4 [14:21:11]MH_SAM_APDU [14:21:11]CAPDU: 80 13 01 00 [14:21:11]Write to MH i2c: E2 08 00 CA 01 80 13 01 00 00 00 00 00 48 [14:21:11]Write i2c OK [14:21:11]MH_I2C_Read... [14:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:12]Read from MH i2c: E2 [14:21:12]MH_I2C_Read... [14:21:12]Read from MH i2c: E2 0E 00 [14:21:12]MH_I2C_Read... [14:21:12]Read from MH i2c: E2 0E 00 CA 01 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 2D [14:21:12]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:21:12]wFMCommunicate OK [14:21:12]SAM_PROTO_GetShiftState done [14:21:12]FM_GetShiftState done [14:21:12]req_shift_opened done [14:21:12]requested_item shift.open_date is exist - process it [14:21:12]req_shift_open_date [14:21:12]req_shift_open_date done [14:21:12]produce_requested_data done [14:21:12]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76454,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [14:21:12]process_action_free close_receipt [14:21:12]json_value_free [14:21:12]json_value_free done [14:21:12]process_json_proto returns [14:21:12]Send response to host [14:21:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76454,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [14:21:12]free response buf [14:21:12]execute_script done [14:21:12]execute_script returns [14:21:12]free content buf [14:21:12]Sock 7.Close socket [14:21:12]Sock 7.Thread stoped [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:09]accept exits with 9 [14:24:09]New connection [14:24:09]New thread 3067080036 created [14:24:09]Thread 3066936676 joined [14:24:09]Waiting for new connection... [14:24:09] Sock 9.Parse request [14:24:09]Sock 9.Check first char [14:24:09]Sock 9.First char is OK [14:24:09]request: POST /json_proto HTTP/1.0 [14:24:09]Method: POST [14:24:09]URL: /json_proto [14:24:09]Method is POST - this is cgi request [14:24:09]url: /json_proto [14:24:09]query_string will be loaded in cgi processing [14:24:09]execute_cgi json_proto POST (null) [14:24:09]execute_cgi path=json_proto method=POST [14:24:09]POST find Content-Length [14:24:09]Host: 172.17.62.5:8080 [14:24:09]Content-Length: 674 [14:24:09]Content-Type: application/json [14:24:09] [14:24:09]POST finish read [14:24:09]Found Content-Length = 674 [14:24:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.880, "sum" : 720.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:09]execute_script... [14: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)190927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.880, "sum" : 720.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:09]POST & json_proto [14:24:09]process_json_proto [14:24:09]json parsed OK: [14:24:09]protocol is kg_v1.0 [14:24:09]action value=close_receipt [14:24:09]process_action close_receipt [14:24:09]cmd_close_receipt [14:24:09]MH_GetDate [14:24:09]Write to MH i2c: F0 00 00 CB 01 BB [14:24:09]Write i2c OK [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: F0 [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: F0 09 00 [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: F0 09 00 CB 01 00 8A 7E 22 66 F4 E9 65 64 FA [14:24:09]GetLastDocTimeStamp 1713536469 [14:24:09]current date 1713536650 [14:24:09]FM_GetShiftState [14:24:09]SAM_PROTO_GetShiftState [14:24:09]wFMCommunicate request_size=4 [14:24:09]MH_SAM_APDU [14:24:09]CAPDU: 80 13 01 00 [14:24:09]Write to MH i2c: E2 08 00 CC 01 80 13 01 00 00 00 00 00 4A [14:24:09]Write i2c OK [14:24:09]MH_I2C_Read... [14:24:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:09]Read from MH i2c: E2 [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: E2 0E 00 [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: E2 0E 00 CC 01 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 2F [14:24:09]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:24:09]wFMCommunicate OK [14:24:09]SAM_PROTO_GetShiftState done [14:24:09]FM_GetShiftState done [14:24:09]opened in 1713486233 [14:24:09]opened+sec_in_day 1713572633 [14:24:09]quantity*price = 72025 [14:24:09]sum+1 = 72026 [14:24:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.37 НДС 12% : 76.49 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 75 19.04.2024 14:24 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76455 ФПД: 203606769202458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T142410&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76455&fm=203606769202458&tin=02508201610067®Number=0000000000091573&sum=72000 [14:24:10]StoreToDocumentArchive [14:24:10]shift 370 fd 76455 [14:24:10]save to /storage/0370/doc_00076455 [14:24:10]save last doc name /storage/0370/doc_00076455 to /storage/kkm_last_doc_name [14:24:10]save OK [14:24:10]Clear old archive folders... [14:24:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:24:10]tlvbuf is 00A027A0 [14:24:10]SAM_PROTO_ClearQueue [14:24:10]wFMCommunicate request_size=4 [14:24:10]MH_SAM_APDU [14:24:10]CAPDU: 80 09 00 00 [14:24:10]Write to MH i2c: E2 08 00 D9 01 80 09 00 00 00 00 00 00 4C [14:24:10]Write i2c OK [14:24:10]MH_I2C_Read... [14:24:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:10]Read from MH i2c: E2 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 03 00 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 03 00 D9 01 00 90 00 4E [14:24:10]RAPDU: 90 00 [14:24:10]wFMCommunicate OK [14:24:10]SAM_PROTO_ClearQueue done [14:24:10]KKMCreateOFDPacket [14:24:10]OFDProtocolAddRootSTLVToBuf [14:24:10]FM_MakeSignedData [14:24:10]FM_MakeSignedData [14:24:10]SAM_PROTO_SignData [14:24:10]wFMCommunicate request_size=4 [14:24:10]MH_SAM_APDU [14:24:10]CAPDU: 80 0D 01 02 [14:24:10]Write to MH i2c: E2 08 00 DA 01 80 0D 01 02 00 00 00 00 54 [14:24:10]Write i2c OK [14:24:10]MH_I2C_Read... [14:24:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:10]Read from MH i2c: E2 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 03 00 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 03 00 DA 01 00 90 00 4F [14:24:10]RAPDU: 90 00 [14:24:10]wFMCommunicate OK [14:24:10]wFMCommunicate request_size=255 [14:24:10]MH_SAM_APDU [14:24: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 26 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 8A 7E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A7 2A 01 00 35 04 06 00 B9 2D E5 26 [14:24:10]Write to MH i2c: E2 02 01 DB 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 98 26 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 8A 7E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A7 2A 01 00 35 04 06 00 B9 2D E5 26 00 00 BA [14:24:10]Write i2c OK [14:24:10]MH_I2C_Read... [14:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:10]Read from MH i2c: E2 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 03 00 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 03 00 DB 01 00 90 00 50 [14:24:10]RAPDU: 90 00 [14:24:10]wFMCommunicate OK [14:24:10]wFMCommunicate request_size=7 [14:24:10]MH_SAM_APDU [14:24:10]CAPDU: 80 0D 02 02 02 F5 1A [14:24:10]Write to MH i2c: E2 0A 00 DC 01 80 0D 02 02 02 00 F5 1A 00 00 6A [14:24:10]Write i2c OK [14:24:10]MH_I2C_Read... [14:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:10]Read from MH i2c: E2 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 03 00 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 03 00 DC 01 00 90 00 51 [14:24:10]RAPDU: 90 00 [14:24:10]wFMCommunicate OK [14:24:10]wFMCommunicate request_size=4 [14:24:10]MH_SAM_APDU [14:24:10]CAPDU: 80 0D 03 02 [14:24:10]Write to MH i2c: E2 08 00 DD 01 80 0D 03 02 00 00 00 00 59 [14:24:10]Write i2c OK [14:24:10]MH_I2C_Read... [14:24:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:10]Read from MH i2c: E2 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 0B 00 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 0B 00 DD 01 00 0C 7D AF 4D CF AB CD 1B 90 00 41 [14:24:10]RAPDU: 0C 7D AF 4D CF AB CD 1B 90 00 [14:24:10]wFMCommunicate OK [14:24:10]SAM_PROTO_SignData done [14:24:10]FM_MakeSignedData done [14:24:10]CreateOFDProtocolMessage [14:24:10]wFMCommunicate request_size=4 [14:24:10]MH_SAM_APDU [14:24:10]CAPDU: 80 11 00 00 [14:24:10]Write to MH i2c: E2 08 00 DE 01 80 11 00 00 00 00 00 00 59 [14:24:10]Write i2c OK [14:24:10]MH_I2C_Read... [14:24:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:10]Read from MH i2c: E2 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 17 00 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 17 00 DE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AC [14:24:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:24:10]wFMCommunicate OK [14:24:10]CreateOFDProtocolMessage done [14:24:10]OFDSenderStorePacket 76455 [14:24:10]StoreOFDPacket docnum=76455 [14:24:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 63 22 04 01 A1 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 98 26 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 8A 7E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A7 2A 01 00 35 04 06 00 B9 2D E5 26 F5 1A 0C 7D AF 4D CF AB CD 1B [14:24:10]CheckFolder [14:24:10]dirname=/storage/ofd_packets [14:24:10]CheckFolder done [14:24:10]ProducePacketName [14:24:10]name=ofd_packets/00076455 [14:24:10]NVStorageSaveData ofd_packets/00076455 [14:24:10]File name is /storage/ofd_packets/00076455 [14:24:10]Write 298 bytes [14:24:10]NVStorageSaveData done [14:24:10]OFDSenderStorePacket done [14:24:10]KKMCreateOFDPacket done [14:24:10]NVStorageSaveData kkm_last_timestamp [14:24:10]File name is /storage/kkm_last_timestamp [14:24:10]Write 4 bytes [14:24:10]NVStorageSaveData done [14:24:10]ExternCall_PrintAddStr [14:24:10]wPrintStart [14:24:10]Write to MH i2c: 01 00 00 DF 01 E0 [14:24:10]Write i2c OK [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: 01 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: 01 07 00 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: 01 07 00 DF 01 00 00 00 00 00 FF 0F F5 [14:24:10]RasterBufferAndPrint [14:24:10]line Счет N : (1)190927 [14:24:10]line ИНН: 02508201610067 [14:24:10]line Контрольно-Кассовый Чек [14:24:10]line ПРОДАЖА [14:24:10]line ТРК (МРК, ГНК) : 61 [14:24:10]line Товар: 2710194210 [14:24:10]line ДТ-К-5 [14:24:10]line 9.880 * 72.90 [14:24:10]line = 720.25 [14:24:10]line НДС 12% НСП 1% [14:24:10]line > о реализуемом товаре [14:24:10]line ОКРУГЛЕНИЕ: -0.25 [14:24:10]line ИТОГО: 720.00 [14:24:10]line Внесено: 720.00 [14:24:10]line СДАЧА: 0.00 [14:24:10]line НСП 1% : 6.37 [14:24:10]line НДС 12% : 76.49 [14:24:10]line Наличными: 720.00 [14:24:10]line Безнал.: 0.00 [14:24:10]line Место: АЗС № 106 "Партнер Нефть" [14:24:10]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:24:10]line СНО: Общий режим [14:24:10]line Чек 75 19.04.2024 14:24 [14:24:10]line Смена: 370 ФФД: 1.0 [14:24:10]line ЗНМ: 0300000141 [14:24:10]line РНМ: 0000000000091573 [14:24:10]line Версия ККМ: 001 [14:24:10]line ФМ: 0000000000874652 [14:24:10]line ФД: 76455 [14:24:10]line ФПД: 203606769202458 [14:24:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T142410&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76455&fm=203606769202458&tin=02508201610067®Number=0000000000091573&sum=72000 [14:24:11]OFD Sender: Processing packet 76455 [packets to send 128, broken 127] [14:24:11]ProducePacketName [14:24:11]name=ofd_packets/00076455 [14:24:11]OFD Sender: To server: pG, [14:24:11]CommunicateWithHost lk.salyk.kg:30040 [14:24:11]ConnectInit lk.salyk.kg [14:24:11]written 0, free lines is 4095 [14:24:11]Connected sock=10 [14: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 34 36 35 32 0C 01 00 00 63 22 04 01 A1 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 98 26 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 8A 7E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A7 2A 01 00 35 04 06 00 B9 2D E5 26 F5 1A 0C 7D AF 4D CF AB CD 1B [14:24:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 13 E6 47 00 8E 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A7 2A 01 00 F4 03 04 00 15 26 22 66 B6 04 01 00 00 1A F5 86 F9 80 B7 13 B0 [14:24:11]CommunicateWithHost err = 0 [14:24:11]CheckOFDResponse [14:24:11]1017 (14) - 77093643461234 [14:24:11]1041 (16) - 0000000000874652 [14:24:11]1040 (4) - 76455 [14:24:11]1012 (4) - 19.04.2024 08:06 [14:24:11]1206 (1) - 0 [14:24:11]OFD Sender: Remove packet 76455 [14:24:11]ProducePacketName [14:24:11]name=ofd_packets/00076455 [14:24:11]NVStorageDeleteData [14:24:11]Write to MH i2c: 01 00 00 09 02 0B [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: 01 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: 01 07 00 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: 01 07 00 09 02 00 00 00 00 00 DD 0C FB [14:24:11]RasterBufferAndPrint [14:24:11]line [14:24:11]line [14:24:11]line [14:24:11]line [14:24:11]line [14:24:11]written 0, free lines is 3300 [14:24:11]MH_Cut [14:24:11]Write to MH i2c: D1 01 00 10 02 01 E4 [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: D1 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: D1 01 00 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: D1 01 00 10 02 00 E3 [14:24:11]Write to MH i2c: 01 00 00 11 02 13 [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:11]OFD Sender: No OFD packet to send [14:24:12]*** Cut start [14:24:12]*** Partial cut [14:24:12]*** CUTSNS_PIN = 1 [14:24:12]*** CUTSNS_PIN = 0 [14:24:12]*** Brake cut motor [14:24:12]Read from MH i2c: 01 [14:24:12]MH_I2C_Read... [14:24:12]*** Stop cut motor [14:24:12]*** Cut end [14:24:12]Read from MH i2c: 01 07 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: 01 07 00 11 02 00 00 00 00 00 FF 0F 28 [14:24:12]process_action close_receipt done [14:24:12]requested_data is exist [14:24:12]produce_requested_data [14:24:12]requested_item fm.sn is exist - process it [14:24:12]wFMCommunicate request_size=4 [14:24:12]MH_SAM_APDU [14:24:12]CAPDU: 80 11 00 00 [14:24:12]Write to MH i2c: E2 08 00 12 02 80 11 00 00 00 00 00 00 8E [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:12]Read from MH i2c: E2 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 17 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 17 00 12 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E1 [14:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:24:12]wFMCommunicate OK [14:24:12]requested_item fd.num is exist - process it [14:24:12]SAM_PROTO_GetFieldsCounters [14:24:12]wFMCommunicate request_size=4 [14:24:12]MH_SAM_APDU [14:24:12]CAPDU: 80 13 00 00 [14:24:12]Write to MH i2c: E2 08 00 13 02 80 13 00 00 00 00 00 00 91 [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:13]Read from MH i2c: E2 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 62 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 62 00 13 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A7 2A 01 00 0E 04 04 00 72 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 D8 [14:24:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A7 2A 01 00 0E 04 04 00 72 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 [14:24:13]wFMCommunicate OK [14:24:13]SAM_PROTO_GetFieldsCounters done [14:24:13]requested_item shift.num is exist - process it [14:24:13]requested_item shift.opened is exist - process it [14:24:13]req_shift_opened [14:24:13]FM_GetShiftState [14:24:13]SAM_PROTO_GetShiftState [14:24:13]wFMCommunicate request_size=4 [14:24:13]MH_SAM_APDU [14:24:13]CAPDU: 80 13 01 00 [14:24:13]Write to MH i2c: E2 08 00 14 02 80 13 01 00 00 00 00 00 93 [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:13]Read from MH i2c: E2 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 0E 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 0E 00 14 02 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 78 [14:24:13]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:24:13]wFMCommunicate OK [14:24:13]SAM_PROTO_GetShiftState done [14:24:13]FM_GetShiftState done [14:24:13]req_shift_opened done [14:24:13]requested_item shift.open_date is exist - process it [14:24:13]req_shift_open_date [14:24:13]req_shift_open_date done [14:24:13]produce_requested_data done [14:24:13]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76455,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [14:24:13]process_action_free close_receipt [14:24:13]json_value_free [14:24:13]json_value_free done [14:24:13]process_json_proto returns [14:24:13]Send response to host [14:24:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76455,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [14:24:13]free response buf [14:24:13]execute_script done [14:24:13]execute_script returns [14:24:13]free content buf [14:24:13]Sock 9.Close socket [14:24:13]Sock 9.Thread stoped [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:28]accept exits with 7 [14:25:28]New connection [14:25:28]New thread 3066936676 created [14:25:28]Thread 3067080036 joined [14:25:28]Waiting for new connection... [14:25:28] Sock 7.Parse request [14:25:28]Sock 7.Check first char [14:25:28]Sock 7.First char is OK [14:25:28]request: POST /json_proto HTTP/1.0 [14:25:28]Method: POST [14:25:28]URL: /json_proto [14:25:28]Method is POST - this is cgi request [14:25:28]url: /json_proto [14:25:28]query_string will be loaded in cgi processing [14:25:28]execute_cgi json_proto POST (null) [14:25:28]execute_cgi path=json_proto method=POST [14:25:28]POST find Content-Length [14:25:28]Host: 172.17.62.5:8080 [14:25:28]Content-Length: 811 [14:25:28]Content-Type: application/json [14:25:28] [14:25:28]POST finish read [14:25:28]Found Content-Length = 811 [14:25:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:28]execute_script... [14: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)190926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:28]POST & json_proto [14:25:28]process_json_proto [14:25:28]json parsed OK: [14:25:28]protocol is kg_v1.0 [14:25:28]action value=close_receipt [14:25:28]process_action close_receipt [14:25:28]cmd_close_receipt [14:25:28]MH_GetDate [14:25:28]Write to MH i2c: F0 00 00 15 02 06 [14:25:28]Write i2c OK [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: F0 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: F0 09 00 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: F0 09 00 15 02 00 D9 7E 22 66 F4 E9 65 64 94 [14:25:28]GetLastDocTimeStamp 1713536650 [14:25:28]current date 1713536729 [14:25:28]FM_GetShiftState [14:25:28]SAM_PROTO_GetShiftState [14:25:28]wFMCommunicate request_size=4 [14:25:28]MH_SAM_APDU [14:25:28]CAPDU: 80 13 01 00 [14:25:28]Write to MH i2c: E2 08 00 16 02 80 13 01 00 00 00 00 00 95 [14:25:28]Write i2c OK [14:25:28]MH_I2C_Read... [14:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:28]Read from MH i2c: E2 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: E2 0E 00 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: E2 0E 00 16 02 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 7A [14:25:28]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:25:28]wFMCommunicate OK [14:25:28]SAM_PROTO_GetShiftState done [14:25:28]FM_GetShiftState done [14:25:28]opened in 1713486233 [14:25:28]opened+sec_in_day 1713572633 [14:25:28]quantity*price = 100029 [14:25:28]sum+1 = 100030 [14:25:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.29 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.29 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 76 19.04.2024 14:25 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76456 ФПД: 232831873415408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T142529&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76456&fm=232831873415408&tin=02508201610067®Number=0000000000091573&sum=100029 [14:25:29]StoreToDocumentArchive [14:25:29]shift 370 fd 76456 [14:25:29]save to /storage/0370/doc_00076456 [14:25:29]save last doc name /storage/0370/doc_00076456 to /storage/kkm_last_doc_name [14:25:29]save OK [14:25:29]Clear old archive folders... [14:25:29]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:25:29]tlvbuf is 00A13560 [14:25:29]SAM_PROTO_ClearQueue [14:25:29]wFMCommunicate request_size=4 [14:25:29]MH_SAM_APDU [14:25:29]CAPDU: 80 09 00 00 [14:25:29]Write to MH i2c: E2 08 00 23 02 80 09 00 00 00 00 00 00 97 [14:25:29]Write i2c OK [14:25:29]MH_I2C_Read... [14:25:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:30]Read from MH i2c: E2 [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: E2 03 00 [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [14:25:30]RAPDU: 90 00 [14:25:30]wFMCommunicate OK [14:25:30]SAM_PROTO_ClearQueue done [14:25:30]KKMCreateOFDPacket [14:25:30]OFDProtocolAddRootSTLVToBuf [14:25:30]FM_MakeSignedData [14:25:30]FM_MakeSignedData [14:25:30]SAM_PROTO_SignData [14:25:30]wFMCommunicate request_size=4 [14:25:30]MH_SAM_APDU [14:25:30]CAPDU: 80 0D 01 02 [14:25:30]Write to MH i2c: E2 08 00 24 02 80 0D 01 02 00 00 00 00 9F [14:25:30]Write i2c OK [14:25:30]MH_I2C_Read... [14:25:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:30]Read from MH i2c: E2 [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: E2 03 00 [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [14:25:30]RAPDU: 90 00 [14:25:30]wFMCommunicate OK [14:25:30]wFMCommunicate request_size=255 [14:25:30]MH_SAM_APDU [14:25:30]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 D9 7E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A8 2A 01 00 35 04 06 00 D3 C2 [14:25:30]Write to MH i2c: E2 02 01 25 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 D9 7E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A8 2A 01 00 35 04 06 00 D3 C2 00 00 08 [14:25:30]Write i2c OK [14:25:30]MH_I2C_Read... [14:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:30]Read from MH i2c: E2 [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: E2 03 00 [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: E2 03 00 25 02 00 90 00 9B [14:25:30]RAPDU: 90 00 [14:25:30]wFMCommunicate OK [14:25:30]wFMCommunicate request_size=9 [14:25:30]MH_SAM_APDU [14:25:30]CAPDU: 80 0D 02 02 04 65 1B 78 F0 [14:25:30]Write to MH i2c: E2 0C 00 26 02 80 0D 02 02 04 00 65 1B 78 F0 00 00 92 [14:25:30]Write i2c OK [14:25:30]MH_I2C_Read... [14:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:30]Read from MH i2c: E2 [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: E2 03 00 [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: E2 03 00 26 02 00 90 00 9C [14:25:30]RAPDU: 90 00 [14:25:30]wFMCommunicate OK [14:25:30]wFMCommunicate request_size=4 [14:25:30]MH_SAM_APDU [14:25:30]CAPDU: 80 0D 03 02 [14:25:30]Write to MH i2c: E2 08 00 27 02 80 0D 03 02 00 00 00 00 A4 [14:25:30]Write i2c OK [14:25:30]MH_I2C_Read... [14:25:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:30]Read from MH i2c: E2 [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: E2 0B 00 [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: E2 0B 00 27 02 00 33 FE B9 F8 CB 75 2D C7 90 00 BB [14:25:30]RAPDU: 33 FE B9 F8 CB 75 2D C7 90 00 [14:25:30]wFMCommunicate OK [14:25:30]SAM_PROTO_SignData done [14:25:30]FM_MakeSignedData done [14:25:30]CreateOFDProtocolMessage [14:25:30]wFMCommunicate request_size=4 [14:25:30]MH_SAM_APDU [14:25:30]CAPDU: 80 11 00 00 [14:25:30]Write to MH i2c: E2 08 00 28 02 80 11 00 00 00 00 00 00 A4 [14:25:30]Write i2c OK [14:25:30]MH_I2C_Read... [14:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:30]Read from MH i2c: E2 [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: E2 17 00 [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: E2 17 00 28 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F7 [14:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:25:30]wFMCommunicate OK [14:25:30]CreateOFDProtocolMessage done [14:25:30]OFDSenderStorePacket 76456 [14:25:30]StoreOFDPacket docnum=76456 [14:25:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 1A 28 06 01 83 59 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 D9 7E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A8 2A 01 00 35 04 06 00 D3 C2 65 1B 78 F0 33 FE B9 F8 CB 75 2D C7 [14:25:30]CheckFolder [14:25:30]dirname=/storage/ofd_packets [14:25:30]CheckFolder done [14:25:30]ProducePacketName [14:25:30]name=ofd_packets/00076456 [14:25:30]NVStorageSaveData ofd_packets/00076456 [14:25:30]File name is /storage/ofd_packets/00076456 [14:25:30]Write 300 bytes [14:25:30]NVStorageSaveData done [14:25:30]OFDSenderStorePacket done [14:25:30]KKMCreateOFDPacket done [14:25:30]NVStorageSaveData kkm_last_timestamp [14:25:30]File name is /storage/kkm_last_timestamp [14:25:30]Write 4 bytes [14:25:30]NVStorageSaveData done [14:25:30]ExternCall_PrintAddStr [14:25:30]wPrintStart [14:25:30]Write to MH i2c: 01 00 00 29 02 2B [14:25:30]Write i2c OK [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: 01 [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: 01 07 00 [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: 01 07 00 29 02 00 00 00 00 00 FF 0F 40 [14:25:30]RasterBufferAndPrint [14:25:30]line Счет N : (1)190926 [14:25:30]line ИНН: 02508201610067 [14:25:30]line Контрольно-Кассовый Чек [14:25:30]line ПРОДАЖА [14:25:30]line ТРК (МРК, ГНК) : 71 [14:25:30]line Товар: 2711190000 [14:25:30]line ГАЗ-К-5 [14:25:30]line 30.590 * 32.70 [14:25:30]line = 1000.29 [14:25:30]line НДС 12% НСП 1% [14:25:30]line > о реализуемом товаре [14:25:30]line ИТОГО: 1000.29 [14:25:30]line НСП 1% : 8.85 [14:25:30]line НДС 12% : 106.22 [14:25:30]line Наличными: 0.00 [14:25:30]line Безнал.: 1000.29 [14:25:30]line Место: АЗС № 106 "Партнер Нефть" [14:25:30]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:25:30]line СНО: Общий режим [14:25:30]line Чек 76 19.04.2024 14:25 [14:25:30]line Смена: 370 ФФД: 1.0 [14:25:30]line ЗНМ: 0300000141 [14:25:30]line РНМ: 0000000000091573 [14:25:30]line Версия ККМ: 001 [14:25:30]line Платежная система: О! деньги [14:25:30]line ФМ: 0000000000874652 [14:25:30]line ФД: 76456 [14:25:30]line ФПД: 232831873415408 [14:25:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T142529&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76456&fm=232831873415408&tin=02508201610067®Number=0000000000091573&sum=100029 [14:25:30]written 0, free lines is 4095 [14:25:30]OFD Sender: Processing packet 76456 [packets to send 128, broken 127] [14:25:30]ProducePacketName [14:25:30]name=ofd_packets/00076456 [14:25:30]OFD Sender: To server: pG, [14:25:30]CommunicateWithHost lk.salyk.kg:30040 [14:25:30]ConnectInit lk.salyk.kg [14:25:30]Connected sock=10 [14:25:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 1A 28 06 01 83 59 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 D9 7E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A8 2A 01 00 35 04 06 00 D3 C2 65 1B 78 F0 33 FE B9 F8 CB 75 2D C7 [14:25:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 73 7A 47 00 6A 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A8 2A 01 00 F4 03 04 00 64 26 22 66 B6 04 01 00 00 B9 59 57 E6 94 20 B8 01 [14:25:30]CommunicateWithHost err = 0 [14:25:30]CheckOFDResponse [14:25:30]1017 (14) - 77093643461234 [14:25:30]1041 (16) - 0000000000874652 [14:25:30]1040 (4) - 76456 [14:25:30]1012 (4) - 19.04.2024 08:08 [14:25:30]1206 (1) - 0 [14:25:30]OFD Sender: Remove packet 76456 [14:25:30]ProducePacketName [14:25:30]name=ofd_packets/00076456 [14:25:30]NVStorageDeleteData [14:25:30]Write to MH i2c: 01 00 00 52 02 54 [14:25:30]Write i2c OK [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: 01 [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: 01 07 00 [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: 01 07 00 52 02 00 00 00 00 00 01 0D 69 [14:25:30]RasterBufferAndPrint [14:25:30]line [14:25:30]line [14:25:30]line [14:25:30]line [14:25:30]line [14:25:30]written 0, free lines is 3336 [14:25:30]MH_Cut [14:25:30]Write to MH i2c: D1 01 00 59 02 01 2D [14:25:30]Write i2c OK [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: D1 [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: D1 01 00 [14:25:30]MH_I2C_Read... [14:25:30]Read from MH i2c: D1 01 00 59 02 00 2C [14:25:30]Write to MH i2c: 01 00 00 5A 02 5C [14:25:30]Write i2c OK [14:25:30]MH_I2C_Read... [14:25:31]OFD Sender: No OFD packet to send [14:25:31]*** Cut start [14:25:31]*** Partial cut [14:25:31]*** CUTSNS_PIN = 1 [14:25:31]*** CUTSNS_PIN = 0 [14:25:31]*** Brake cut motor [14:25:32]Read from MH i2c: 01 [14:25:32]MH_I2C_Read... [14:25:32]*** Stop cut motor [14:25:32]*** Cut end [14:25:32]Read from MH i2c: 01 07 00 [14:25:32]MH_I2C_Read... [14:25:32]Read from MH i2c: 01 07 00 5A 02 00 00 00 00 00 FF 0F 71 [14:25:32]process_action close_receipt done [14:25:32]requested_data is exist [14:25:32]produce_requested_data [14:25:32]requested_item fm.sn is exist - process it [14:25:32]wFMCommunicate request_size=4 [14:25:32]MH_SAM_APDU [14:25:32]CAPDU: 80 11 00 00 [14:25:32]Write to MH i2c: E2 08 00 5B 02 80 11 00 00 00 00 00 00 D7 [14:25:32]Write i2c OK [14:25:32]MH_I2C_Read... [14:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:32]Read from MH i2c: E2 [14:25:32]MH_I2C_Read... [14:25:32]Read from MH i2c: E2 17 00 [14:25:32]MH_I2C_Read... [14:25:32]Read from MH i2c: E2 17 00 5B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2A [14:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:25:32]wFMCommunicate OK [14:25:32]requested_item fd.num is exist - process it [14:25:32]SAM_PROTO_GetFieldsCounters [14:25:32]wFMCommunicate request_size=4 [14:25:32]MH_SAM_APDU [14:25:32]CAPDU: 80 13 00 00 [14:25:32]Write to MH i2c: E2 08 00 5C 02 80 13 00 00 00 00 00 00 DA [14:25:32]Write i2c OK [14:25:32]MH_I2C_Read... [14:25:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:32]Read from MH i2c: E2 [14:25:32]MH_I2C_Read... [14:25:32]Read from MH i2c: E2 62 00 [14:25:32]MH_I2C_Read... [14:25:32]Read from MH i2c: E2 62 00 5C 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A8 2A 01 00 0E 04 04 00 72 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 25 [14:25: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A8 2A 01 00 0E 04 04 00 72 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 [14:25:32]wFMCommunicate OK [14:25:32]SAM_PROTO_GetFieldsCounters done [14:25:32]requested_item shift.num is exist - process it [14:25:32]requested_item shift.opened is exist - process it [14:25:32]req_shift_opened [14:25:32]FM_GetShiftState [14:25:32]SAM_PROTO_GetShiftState [14:25:32]wFMCommunicate request_size=4 [14:25:32]MH_SAM_APDU [14:25:32]CAPDU: 80 13 01 00 [14:25:32]Write to MH i2c: E2 08 00 5D 02 80 13 01 00 00 00 00 00 DC [14:25:32]Write i2c OK [14:25:32]MH_I2C_Read... [14:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:32]Read from MH i2c: E2 [14:25:32]MH_I2C_Read... [14:25:32]Read from MH i2c: E2 0E 00 [14:25:32]MH_I2C_Read... [14:25:32]Read from MH i2c: E2 0E 00 5D 02 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 C1 [14:25:32]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:25:32]wFMCommunicate OK [14:25:32]SAM_PROTO_GetShiftState done [14:25:32]FM_GetShiftState done [14:25:32]req_shift_opened done [14:25:32]requested_item shift.open_date is exist - process it [14:25:32]req_shift_open_date [14:25:32]req_shift_open_date done [14:25:32]produce_requested_data done [14:25:32]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76456,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [14:25:32]process_action_free close_receipt [14:25:32]json_value_free [14:25:32]json_value_free done [14:25:32]process_json_proto returns [14:25:32]Send response to host [14:25:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76456,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [14:25:32]free response buf [14:25:32]execute_script done [14:25:32]execute_script returns [14:25:32]free content buf [14:25:32]Sock 7.Close socket [14:25:32]Sock 7.Thread stoped [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:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:10]accept exits with 9 [14:32:10]New connection [14:32:10]New thread 3067080036 created [14:32:10]Thread 3066936676 joined [14:32:10]Waiting for new connection... [14:32:10] Sock 9.Parse request [14:32:10]Sock 9.Check first char [14:32:10]Sock 9.First char is OK [14:32:10]request: POST /json_proto HTTP/1.0 [14:32:10]Method: POST [14:32:10]URL: /json_proto [14:32:10]Method is POST - this is cgi request [14:32:10]url: /json_proto [14:32:10]query_string will be loaded in cgi processing [14:32:10]execute_cgi json_proto POST (null) [14:32:10]execute_cgi path=json_proto method=POST [14:32:10]POST find Content-Length [14:32:10]Host: 172.17.62.5:8080 [14:32:10]Content-Length: 1169 [14:32:10]Content-Type: application/json [14:32:10] [14:32:10]POST finish read [14:32:10]Found Content-Length = 1169 [14:32:10]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190928\u000A19.04.2024 14:13\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 35.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 2254.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30026415\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:10]execute_script... [14:32:10]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190928\u000A19.04.2024 14:13\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 35.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 2254.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30026415\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:10]POST & json_proto [14:32:10]process_json_proto [14:32:10]json parsed OK: [14:32:10]protocol is kg_v1.0 [14:32:10]action value=print_text [14:32:10]process_action print_text [14:32:10]cmd_print_text [14:32:10]ExternCall_PrintAddStr [14:32:10]wPrintStart [14:32:10]Write to MH i2c: 01 00 00 5E 02 60 [14:32:10]Write i2c OK [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: 01 [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: 01 07 00 [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: 01 07 00 5E 02 00 00 00 00 00 FF 0F 75 [14:32:10]RasterBufferAndPrint [14:32:10]line *****ТОВАРНЫЙ ЧЕК***** [14:32:10]line АЗС 106 [14:32:10]line Партнер нефть [14:32:10]line 02508201610067 [14:32:10]line Кассир : Табалдиева М. [14:32:10]line Счет N : (1)190928 [14:32:10]line 19.04.2024 14:13 [14:32:10]line ПРОДАЖА [14:32:10]line ТРК (МРК, ГНК): 12 [14:32:10]line Вид ГСМ : 2710124130 [14:32:10]line Аи-92-К-5 [14:32:10]line 35.000 x 64.40 [14:32:10]line ИТОГ: 2254.00 [14:32:10]line Тип оплаты: Талоны: ТК ГПНА Online [14:32:10]line 30026415 [14:32:10]line ______________________ [14:32:10]line (подпись) [14:32:10]written 0, free lines is 4095 [14:32:10]Write to MH i2c: 01 00 00 72 02 74 [14:32:10]Write i2c OK [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: 01 [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: 01 07 00 [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: 01 07 00 72 02 00 00 00 00 00 11 0E 9A [14:32:10]RasterBufferAndPrint [14:32:10]line [14:32:10]line [14:32:10]line [14:32:10]line [14:32:10]line [14:32:10]written 0, free lines is 3603 [14:32:10]MH_Cut [14:32:10]Write to MH i2c: D1 01 00 79 02 01 4D [14:32:10]Write i2c OK [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: D1 [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: D1 01 00 [14:32:10]MH_I2C_Read... [14:32:10]Read from MH i2c: D1 01 00 79 02 00 4C [14:32:10]Write to MH i2c: 01 00 00 7A 02 7C [14:32:10]Write i2c OK [14:32:10]MH_I2C_Read... [14:32:11]*** Cut start [14:32:11]*** Partial cut [14:32:11]*** CUTSNS_PIN = 1 [14:32:11]*** CUTSNS_PIN = 0 [14:32:11]*** Brake cut motor [14:32:11]Read from MH i2c: 01 [14:32:11]MH_I2C_Read... [14:32:11]*** Stop cut motor [14:32:11]*** Cut end [14:32:11]Read from MH i2c: 01 07 00 [14:32:11]MH_I2C_Read... [14:32:11]Read from MH i2c: 01 07 00 7A 02 00 00 00 00 00 FF 0F 91 [14:32:11]process_action print_text done [14:32:11]requested_data is exist [14:32:11]produce_requested_data [14:32:11]requested_item fm.sn is exist - process it [14:32:11]wFMCommunicate request_size=4 [14:32:11]MH_SAM_APDU [14:32:11]CAPDU: 80 11 00 00 [14:32:11]Write to MH i2c: E2 08 00 7B 02 80 11 00 00 00 00 00 00 F7 [14:32:11]Write i2c OK [14:32:11]MH_I2C_Read... [14:32:11]OFD Sender: No OFD packet to send [14:32:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:11]Read from MH i2c: E2 [14:32:11]MH_I2C_Read... [14:32:11]Read from MH i2c: E2 17 00 [14:32:11]MH_I2C_Read... [14:32:11]Read from MH i2c: E2 17 00 7B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4A [14:32:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:32:11]wFMCommunicate OK [14:32:11]requested_item fd.num is exist - process it [14:32:11]SAM_PROTO_GetFieldsCounters [14:32:11]wFMCommunicate request_size=4 [14:32:11]MH_SAM_APDU [14:32:11]CAPDU: 80 13 00 00 [14:32:11]Write to MH i2c: E2 08 00 7C 02 80 13 00 00 00 00 00 00 FA [14:32:11]Write i2c OK [14:32:11]MH_I2C_Read... [14:32:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:12]Read from MH i2c: E2 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: E2 62 00 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: E2 62 00 7C 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A8 2A 01 00 0E 04 04 00 72 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 45 [14:32: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A8 2A 01 00 0E 04 04 00 72 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 [14:32:12]wFMCommunicate OK [14:32:12]SAM_PROTO_GetFieldsCounters done [14:32:12]requested_item shift.num is exist - process it [14:32:12]requested_item shift.opened is exist - process it [14:32:12]req_shift_opened [14:32:12]FM_GetShiftState [14:32:12]SAM_PROTO_GetShiftState [14:32:12]wFMCommunicate request_size=4 [14:32:12]MH_SAM_APDU [14:32:12]CAPDU: 80 13 01 00 [14:32:12]Write to MH i2c: E2 08 00 7D 02 80 13 01 00 00 00 00 00 FC [14:32:12]Write i2c OK [14:32:12]MH_I2C_Read... [14:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:12]Read from MH i2c: E2 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: E2 0E 00 [14:32:12]MH_I2C_Read... [14:32:12]Read from MH i2c: E2 0E 00 7D 02 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E1 [14:32:12]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:32:12]wFMCommunicate OK [14:32:12]SAM_PROTO_GetShiftState done [14:32:12]FM_GetShiftState done [14:32:12]req_shift_opened done [14:32:12]requested_item shift.open_date is exist - process it [14:32:12]req_shift_open_date [14:32:12]req_shift_open_date done [14:32:12]produce_requested_data done [14:32:12]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76456,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [14:32:12]process_action_free print_text [14:32:12]json_value_free [14:32:12]json_value_free done [14:32:12]process_json_proto returns [14:32:12]Send response to host [14:32:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76456,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [14:32:12]free response buf [14:32:12]execute_script done [14:32:12]execute_script returns [14:32:12]free content buf [14:32:12]Sock 9.Close socket [14:32:12]Sock 9.Thread stoped [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]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:32]accept exits with 7 [14:36:32]New connection [14:36:32]New thread 3066936676 created [14:36:32]Thread 3067080036 joined [14:36:32]Waiting for new connection... [14:36:32] Sock 7.Parse request [14:36:32]Sock 7.Check first char [14:36:32]Sock 7.First char is OK [14:36:32]request: POST /json_proto HTTP/1.0 [14:36:32]Method: POST [14:36:32]URL: /json_proto [14:36:32]Method is POST - this is cgi request [14:36:32]url: /json_proto [14:36:32]query_string will be loaded in cgi processing [14:36:32]execute_cgi json_proto POST (null) [14:36:32]execute_cgi path=json_proto method=POST [14:36:32]POST find Content-Length [14:36:32]Host: 172.17.62.5:8080 [14:36:32]Content-Length: 677 [14:36:32]Content-Type: application/json [14:36:32] [14:36:32]POST finish read [14:36:32]Found Content-Length = 677 [14:36:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 5.600, "sum" : 360.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:32]execute_script... [14:36: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)190929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 5.600, "sum" : 360.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:32]POST & json_proto [14:36:32]process_json_proto [14:36:32]json parsed OK: [14:36:32]protocol is kg_v1.0 [14:36:32]action value=close_receipt [14:36:32]process_action close_receipt [14:36:32]cmd_close_receipt [14:36:32]MH_GetDate [14:36:32]Write to MH i2c: F0 00 00 7E 02 6F [14:36:32]Write i2c OK [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: F0 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: F0 09 00 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: F0 09 00 7E 02 00 71 81 22 66 F4 E9 65 64 98 [14:36:32]GetLastDocTimeStamp 1713536729 [14:36:32]current date 1713537393 [14:36:32]FM_GetShiftState [14:36:32]SAM_PROTO_GetShiftState [14:36:32]wFMCommunicate request_size=4 [14:36:32]MH_SAM_APDU [14:36:32]CAPDU: 80 13 01 00 [14:36:32]Write to MH i2c: E2 08 00 7F 02 80 13 01 00 00 00 00 00 FE [14:36:32]Write i2c OK [14:36:32]MH_I2C_Read... [14:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:32]Read from MH i2c: E2 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: E2 0E 00 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: E2 0E 00 7F 02 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E3 [14:36:32]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:36:32]wFMCommunicate OK [14:36:32]SAM_PROTO_GetShiftState done [14:36:32]FM_GetShiftState done [14:36:32]opened in 1713486233 [14:36:32]opened+sec_in_day 1713572633 [14:36:32]quantity*price = 36064 [14:36:32]sum+1 = 36065 [14:36:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.30 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 77 19.04.2024 14:36 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76457 ФПД: 267412264166813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T143633&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76457&fm=267412264166813&tin=02508201610067®Number=0000000000091573&sum=36000 [14:36:33]StoreToDocumentArchive [14:36:33]shift 370 fd 76457 [14:36:33]save to /storage/0370/doc_00076457 [14:36:33]save last doc name /storage/0370/doc_00076457 to /storage/kkm_last_doc_name [14:36:33]save OK [14:36:33]Clear old archive folders... [14:36:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:33]tlvbuf is 00A14D20 [14:36:33]SAM_PROTO_ClearQueue [14:36:33]wFMCommunicate request_size=4 [14:36:33]MH_SAM_APDU [14:36:33]CAPDU: 80 09 00 00 [14:36:33]Write to MH i2c: E2 08 00 8C 02 80 09 00 00 00 00 00 00 00 [14:36:33]Write i2c OK [14:36:33]MH_I2C_Read... [14:36:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:33]Read from MH i2c: E2 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: E2 03 00 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: E2 03 00 8C 02 00 90 00 02 [14:36:33]RAPDU: 90 00 [14:36:33]wFMCommunicate OK [14:36:33]SAM_PROTO_ClearQueue done [14:36:33]KKMCreateOFDPacket [14:36:33]OFDProtocolAddRootSTLVToBuf [14:36:33]FM_MakeSignedData [14:36:33]FM_MakeSignedData [14:36:33]SAM_PROTO_SignData [14:36:33]wFMCommunicate request_size=4 [14:36:33]MH_SAM_APDU [14:36:33]CAPDU: 80 0D 01 02 [14:36:33]Write to MH i2c: E2 08 00 8D 02 80 0D 01 02 00 00 00 00 08 [14:36:33]Write i2c OK [14:36:33]MH_I2C_Read... [14:36:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:33]Read from MH i2c: E2 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: E2 03 00 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: E2 03 00 8D 02 00 90 00 03 [14:36:33]RAPDU: 90 00 [14:36:33]wFMCommunicate OK [14:36:33]wFMCommunicate request_size=255 [14:36:33]MH_SAM_APDU [14: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 E0 15 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 E0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 71 81 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A9 2A 01 00 35 04 06 00 F3 [14:36:33]Write to MH i2c: E2 02 01 8E 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 E0 15 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 E0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 71 81 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A9 2A 01 00 35 04 06 00 F3 00 00 51 [14:36:33]Write i2c OK [14:36:33]MH_I2C_Read... [14:36:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:34]Read from MH i2c: E2 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: E2 03 00 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: E2 03 00 8E 02 00 90 00 04 [14:36:34]RAPDU: 90 00 [14:36:34]wFMCommunicate OK [14:36:34]wFMCommunicate request_size=10 [14:36:34]MH_SAM_APDU [14:36:34]CAPDU: 80 0D 02 02 05 35 C5 03 A5 9D [14:36:34]Write to MH i2c: E2 0D 00 8F 02 80 0D 02 02 05 00 35 C5 03 A5 9D 00 00 54 [14:36:34]Write i2c OK [14:36:34]MH_I2C_Read... [14:36:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:34]Read from MH i2c: E2 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: E2 03 00 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: E2 03 00 8F 02 00 90 00 05 [14:36:34]RAPDU: 90 00 [14:36:34]wFMCommunicate OK [14:36:34]wFMCommunicate request_size=4 [14:36:34]MH_SAM_APDU [14:36:34]CAPDU: 80 0D 03 02 [14:36:34]Write to MH i2c: E2 08 00 90 02 80 0D 03 02 00 00 00 00 0D [14:36:34]Write i2c OK [14:36:34]MH_I2C_Read... [14:36:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:34]Read from MH i2c: E2 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: E2 0B 00 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: E2 0B 00 90 02 00 99 6A 6B E6 02 8B 95 76 90 00 FA [14:36:34]RAPDU: 99 6A 6B E6 02 8B 95 76 90 00 [14:36:34]wFMCommunicate OK [14:36:34]SAM_PROTO_SignData done [14:36:34]FM_MakeSignedData done [14:36:34]CreateOFDProtocolMessage [14:36:34]wFMCommunicate request_size=4 [14:36:34]MH_SAM_APDU [14:36:34]CAPDU: 80 11 00 00 [14:36:34]Write to MH i2c: E2 08 00 91 02 80 11 00 00 00 00 00 00 0D [14:36:34]Write i2c OK [14:36:34]MH_I2C_Read... [14:36:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:34]Read from MH i2c: E2 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: E2 17 00 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: E2 17 00 91 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 60 [14:36:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:36:34]wFMCommunicate OK [14:36:34]CreateOFDProtocolMessage done [14:36:34]OFDSenderStorePacket 76457 [14:36:34]StoreOFDPacket docnum=76457 [14:36:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 F4 AD 07 01 54 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 15 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 E0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 71 81 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A9 2A 01 00 35 04 06 00 F3 35 C5 03 A5 9D 99 6A 6B E6 02 8B 95 76 [14:36:34]CheckFolder [14:36:34]dirname=/storage/ofd_packets [14:36:34]CheckFolder done [14:36:34]ProducePacketName [14:36:34]name=ofd_packets/00076457 [14:36:34]NVStorageSaveData ofd_packets/00076457 [14:36:34]File name is /storage/ofd_packets/00076457 [14:36:34]Write 301 bytes [14:36:34]NVStorageSaveData done [14:36:34]OFDSenderStorePacket done [14:36:34]KKMCreateOFDPacket done [14:36:34]NVStorageSaveData kkm_last_timestamp [14:36:34]File name is /storage/kkm_last_timestamp [14:36:34]Write 4 bytes [14:36:34]NVStorageSaveData done [14:36:34]OFD Sender: Processing packet 76457 [packets to send 128, broken 127] [14:36:34]ProducePacketName [14:36:34]name=ofd_packets/00076457 [14:36:34]OFD Sender: To server: pG, [14:36:34]CommunicateWithHost lk.salyk.kg:30040 [14:36:34]ConnectInit lk.salyk.kg [14:36:34]ExternCall_PrintAddStr [14:36:34]wPrintStart [14:36:34]Write to MH i2c: 01 00 00 92 02 94 [14:36:34]Write i2c OK [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: 01 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: 01 07 00 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: 01 07 00 92 02 00 00 00 00 00 FF 0F A9 [14:36:34]RasterBufferAndPrint [14:36:34]line Счет N : (1)190929 [14:36:34]line ИНН: 02508201610067 [14:36:34]line Контрольно-Кассовый Чек [14:36:34]line ПРОДАЖА [14:36:34]line ТРК (МРК, ГНК) : 43 [14:36:34]line Товар: 2710124130 [14:36:34]line Аи-92-К-5 [14:36:34]line 5.600 * 64.40 [14:36:34]line = 360.64 [14:36:34]line НДС 12% НСП 1% [14:36:34]line > о реализуемом товаре [14:36:34]line ОКРУГЛЕНИЕ: -0.64 [14:36:34]line ИТОГО: 360.00 [14:36:34]line Внесено: 360.00 [14:36:34]line СДАЧА: 0.00 [14:36:34]line НСП 1% : 3.19 [14:36:34]line НДС 12% : 38.30 [14:36:34]line Наличными: 360.00 [14:36:34]line Безнал.: 0.00 [14:36:34]line Место: АЗС № 106 "Партнер Нефть" [14:36:34]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:36:34]line СНО: Общий режим [14:36:34]line Чек 77 19.04.2024 14:36 [14:36:34]line Смена: 370 ФФД: 1.0 [14:36:34]line ЗНМ: 0300000141 [14:36:34]line РНМ: 0000000000091573 [14:36:34]line Версия ККМ: 001 [14:36:34]line ФМ: 0000000000874652 [14:36:34]line ФД: 76457 [14:36:34]line ФПД: 267412264166813 [14:36:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T143633&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76457&fm=267412264166813&tin=02508201610067®Number=0000000000091573&sum=36000 [14:36:34]written 0, free lines is 4095 [14:36:35]Write to MH i2c: 01 00 00 BC 02 BE [14:36:35]Write i2c OK [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: 01 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: 01 07 00 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 E0 0C B1 [14:36:35]RasterBufferAndPrint [14:36:35]line [14:36:35]line [14:36:35]line [14:36:35]line [14:36:35]line [14:36:35]written 0, free lines is 3302 [14:36:35]MH_Cut [14:36:35]Write to MH i2c: D1 01 00 C3 02 01 97 [14:36:35]Write i2c OK [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: D1 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: D1 01 00 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: D1 01 00 C3 02 00 96 [14:36:35]Write to MH i2c: 01 00 00 C4 02 C6 [14:36:35]Write i2c OK [14:36:35]MH_I2C_Read... [14:36:35]Connected sock=12 [14:36:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 F4 AD 07 01 54 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 15 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 E0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 71 81 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 A9 2A 01 00 35 04 06 00 F3 35 C5 03 A5 9D 99 6A 6B E6 02 8B 95 76 [14:36:35]*** Cut start [14:36:35]*** Partial cut [14:36:35]*** CUTSNS_PIN = 1 [14:36:35]*** CUTSNS_PIN = 0 [14:36:36]*** Brake cut motor [14:36:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 BC 3B 47 00 A1 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 34 36 35 32 10 04 04 00 A9 2A 01 00 F4 03 04 00 FE 28 22 66 B6 04 01 00 00 30 AD 31 45 29 75 F7 5A [14:36:36]CommunicateWithHost err = 0 [14:36:36]CheckOFDResponse [14:36:36]1017 (14) - 77093643461234 [14:36:36]1041 (16) - 0000000000874652 [14:36:36]1040 (4) - 76457 [14:36:36]1012 (4) - 19.04.2024 08:19 [14:36:36]1206 (1) - 0 [14:36:36]OFD Sender: Remove packet 76457 [14:36:36]ProducePacketName [14:36:36]name=ofd_packets/00076457 [14:36:36]NVStorageDeleteData [14:36:36]Read from MH i2c: 01 [14:36:36]MH_I2C_Read... [14:36:36]*** Stop cut motor [14:36:36]*** Cut end [14:36:36]Read from MH i2c: 01 07 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: 01 07 00 C4 02 00 00 00 00 00 FF 0F DB [14:36:36]process_action close_receipt done [14:36:36]requested_data is exist [14:36:36]produce_requested_data [14:36:36]requested_item fm.sn is exist - process it [14:36:36]wFMCommunicate request_size=4 [14:36:36]MH_SAM_APDU [14:36:36]CAPDU: 80 11 00 00 [14:36:36]Write to MH i2c: E2 08 00 C5 02 80 11 00 00 00 00 00 00 41 [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 17 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 17 00 C5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 94 [14:36:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:36:36]wFMCommunicate OK [14:36:36]requested_item fd.num is exist - process it [14:36:36]SAM_PROTO_GetFieldsCounters [14:36:36]wFMCommunicate request_size=4 [14:36:36]MH_SAM_APDU [14:36:36]CAPDU: 80 13 00 00 [14:36:36]Write to MH i2c: E2 08 00 C6 02 80 13 00 00 00 00 00 00 44 [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 62 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 62 00 C6 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A9 2A 01 00 0E 04 04 00 72 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 93 [14: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 A9 2A 01 00 0E 04 04 00 72 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 [14:36:36]wFMCommunicate OK [14:36:36]SAM_PROTO_GetFieldsCounters done [14:36:36]requested_item shift.num is exist - process it [14:36:36]requested_item shift.opened is exist - process it [14:36:36]req_shift_opened [14:36:36]FM_GetShiftState [14:36:36]SAM_PROTO_GetShiftState [14:36:36]wFMCommunicate request_size=4 [14:36:36]MH_SAM_APDU [14:36:36]CAPDU: 80 13 01 00 [14:36:36]Write to MH i2c: E2 08 00 C7 02 80 13 01 00 00 00 00 00 46 [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]OFD Sender: No OFD packet to send [14:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 0E 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 0E 00 C7 02 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 2B [14:36:36]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:36:36]wFMCommunicate OK [14:36:36]SAM_PROTO_GetShiftState done [14:36:36]FM_GetShiftState done [14:36:36]req_shift_opened done [14:36:36]requested_item shift.open_date is exist - process it [14:36:36]req_shift_open_date [14:36:36]req_shift_open_date done [14:36:36]produce_requested_data done [14:36:36]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76457,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [14:36:36]process_action_free close_receipt [14:36:36]json_value_free [14:36:36]json_value_free done [14:36:36]process_json_proto returns [14:36:36]Send response to host [14:36:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76457,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [14:36:36]free response buf [14:36:36]execute_script done [14:36:36]execute_script returns [14:36:36]free content buf [14:36:36]Sock 7.Close socket [14:36:36]Sock 7.Thread stoped [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]accept exits with 10 [14:38:01]New connection [14:38:01]New thread 3067080036 created [14:38:01]Thread 3066936676 joined [14:38:01]Waiting for new connection... [14:38:01] Sock 10.Parse request [14:38:01]Sock 10.Check first char [14:38:01]Sock 10.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.62.5:8080 [14:38:01]Content-Length: 679 [14:38:01]Content-Type: application/json [14:38:01] [14:38:01]POST finish read [14:38:01]Found Content-Length = 679 [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)190930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [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)190930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [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 C8 02 B9 [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 C8 02 00 CA 81 22 66 F4 E9 65 64 3B [14:38:01]GetLastDocTimeStamp 1713537393 [14:38:01]current date 1713537482 [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 C9 02 80 13 01 00 00 00 00 00 48 [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 C9 02 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 2D [14:38:01]RAPDU: 09 00 01 99 B9 21 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 1713486233 [14:38:01]opened+sec_in_day 1713572633 [14:38:01]quantity*price = 300056 [14:38:01]sum+1 = 300057 [14:38:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 78 19.04.2024 14:38 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76458 ФПД: 211725453576784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T143802&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76458&fm=211725453576784&tin=02508201610067®Number=0000000000091573&sum=300000 [14:38:02]StoreToDocumentArchive [14:38:02]shift 370 fd 76458 [14:38:02]save to /storage/0370/doc_00076458 [14:38:02]save last doc name /storage/0370/doc_00076458 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=248 [14:38:02]tlvbuf is B6EE08B0 [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 D6 02 80 09 00 00 00 00 00 00 4A [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 D6 02 00 90 00 4C [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 D7 02 80 0D 01 02 00 00 00 00 52 [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 D7 02 00 90 00 4D [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 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 4E 00 00 00 F4 03 04 00 CA 81 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AA 2A 01 00 35 04 06 00 C0 90 2C 73 [14:38:02]Write to MH i2c: E2 02 01 D8 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 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 4E 00 00 00 F4 03 04 00 CA 81 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AA 2A 01 00 35 04 06 00 C0 90 2C 73 00 00 00 [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 D8 02 00 90 00 4E [14:38:02]RAPDU: 90 00 [14:38:02]wFMCommunicate OK [14:38:02]wFMCommunicate request_size=7 [14:38:02]MH_SAM_APDU [14:38:02]CAPDU: 80 0D 02 02 02 4A 50 [14:38:02]Write to MH i2c: E2 0A 00 D9 02 80 0D 02 02 02 00 4A 50 00 00 F3 [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 D9 02 00 90 00 4F [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 DA 02 80 0D 03 02 00 00 00 00 57 [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 DA 02 00 E8 CD 30 6D 63 EA 9A E7 90 00 78 [14:38:02]RAPDU: E8 CD 30 6D 63 EA 9A E7 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 DB 02 80 11 00 00 00 00 00 00 57 [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 DB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AA [14:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:38:02]wFMCommunicate OK [14:38:02]CreateOFDProtocolMessage done [14:38:02]OFDSenderStorePacket 76458 [14:38:02]StoreOFDPacket docnum=76458 [14:38:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 7B D7 04 01 86 D4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 4E 00 00 00 F4 03 04 00 CA 81 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AA 2A 01 00 35 04 06 00 C0 90 2C 73 4A 50 E8 CD 30 6D 63 EA 9A E7 [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/00076458 [14:38:02]NVStorageSaveData ofd_packets/00076458 [14:38:02]File name is /storage/ofd_packets/00076458 [14:38:02]Write 298 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 DC 02 DE [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 DC 02 00 00 00 00 00 FF 0F F3 [14:38:02]RasterBufferAndPrint [14:38:02]line Счет N : (1)190930 [14:38:02]line ИНН: 02508201610067 [14:38:02]line Контрольно-Кассовый Чек [14:38:02]line ПРОДАЖА [14:38:02]line ТРК (МРК, ГНК) : 13 [14:38:02]line Товар: 2710194210 [14:38:02]line ДТ-К-5 [14:38:02]line 41.160 * 72.90 [14:38:02]line = 3000.56 [14:38:02]line НДС 12% НСП 1% [14:38:02]line > о реализуемом товаре [14:38:02]line ОКРУГЛЕНИЕ: -0.56 [14:38:02]line ИТОГО: 3000.00 [14:38:02]line Внесено: 3000.00 [14:38:02]line СДАЧА: 0.00 [14:38:02]line НСП 1% : 26.55 [14:38:02]line НДС 12% : 318.64 [14:38:02]line Наличными: 3000.00 [14:38:02]line Безнал.: 0.00 [14:38:02]line Место: АЗС № 106 "Партнер Нефть" [14:38:02]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:38:02]line СНО: Общий режим [14:38:02]line Чек 78 19.04.2024 14:38 [14:38:02]line Смена: 370 ФФД: 1.0 [14:38:02]line ЗНМ: 0300000141 [14:38:02]line РНМ: 0000000000091573 [14:38:02]line Версия ККМ: 001 [14:38:03]line ФМ: 0000000000874652 [14:38:03]line ФД: 76458 [14:38:03]line ФПД: 211725453576784 [14:38:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T143802&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76458&fm=211725453576784&tin=02508201610067®Number=0000000000091573&sum=300000 [14:38:03]OFD Sender: Processing packet 76458 [packets to send 128, broken 127] [14:38:03]ProducePacketName [14:38:03]name=ofd_packets/00076458 [14:38:03]OFD Sender: To server: pG, [14:38:03]CommunicateWithHost lk.salyk.kg:30040 [14:38:03]ConnectInit lk.salyk.kg [14:38:03]written 0, free lines is 4095 [14:38:03]Connected sock=11 [14:38:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 7B D7 04 01 86 D4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 4E 00 00 00 F4 03 04 00 CA 81 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AA 2A 01 00 35 04 06 00 C0 90 2C 73 4A 50 E8 CD 30 6D 63 EA 9A E7 [14:38:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 0A BB 47 00 F8 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 34 36 35 32 10 04 04 00 AA 2A 01 00 F4 03 04 00 55 29 22 66 B6 04 01 00 00 49 94 07 EB 69 A9 39 50 [14:38:03]CommunicateWithHost err = 0 [14:38:03]CheckOFDResponse [14:38:03]1017 (14) - 77093643461234 [14:38:03]1041 (16) - 0000000000874652 [14:38:03]1040 (4) - 76458 [14:38:03]1012 (4) - 19.04.2024 08:20 [14:38:03]1206 (1) - 0 [14:38:03]OFD Sender: Remove packet 76458 [14:38:03]ProducePacketName [14:38:03]name=ofd_packets/00076458 [14:38:03]NVStorageDeleteData [14:38:03]Write to MH i2c: 01 00 00 06 03 09 [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 06 03 00 00 00 00 00 EB 0C 07 [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 3310 [14:38:03]MH_Cut [14:38:03]Write to MH i2c: D1 01 00 0D 03 01 E2 [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 0D 03 00 E1 [14:38:03]Write to MH i2c: 01 00 00 0E 03 11 [14:38:03]Write i2c OK [14:38:03]MH_I2C_Read... [14:38:04]OFD Sender: No OFD packet to send [14:38:04]*** Cut start [14:38:04]*** Partial cut [14:38:04]*** CUTSNS_PIN = 1 [14:38:04]*** CUTSNS_PIN = 0 [14:38:04]*** Brake cut motor [14:38:04]Read from MH i2c: 01 [14:38:04]MH_I2C_Read... [14:38:04]*** Stop cut motor [14:38:04]*** Cut end [14:38:04]Read from MH i2c: 01 07 00 [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: 01 07 00 0E 03 00 00 00 00 00 FF 0F 26 [14:38:04]process_action close_receipt done [14:38:04]requested_data is exist [14:38:04]produce_requested_data [14:38:04]requested_item fm.sn is exist - process it [14:38:04]wFMCommunicate request_size=4 [14:38:04]MH_SAM_APDU [14:38:04]CAPDU: 80 11 00 00 [14:38:04]Write to MH i2c: E2 08 00 0F 03 80 11 00 00 00 00 00 00 8C [14:38:04]Write i2c OK [14:38:04]MH_I2C_Read... [14:38:04]*** 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 0F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DF [14:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 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 10 03 80 13 00 00 00 00 00 00 8F [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 10 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AA 2A 01 00 0E 04 04 00 72 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 E2 [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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AA 2A 01 00 0E 04 04 00 72 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 [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 11 03 80 13 01 00 00 00 00 00 91 [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 11 03 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 76 [14:38:05]RAPDU: 09 00 01 99 B9 21 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":"0000000000874652","fd.num":76458,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [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":"0000000000874652","fd.num":76458,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [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 10.Close socket [14:38:05]Sock 10.Thread stoped [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:04]OFD Sender: No OFD packet to send [14:41:09]OFD Sender: No OFD packet to send [14:41:14]OFD Sender: No OFD packet to send [14:41:19]OFD Sender: No OFD packet to send [14:41:24]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:41:59]OFD Sender: No OFD packet to send [14:42:04]OFD Sender: No OFD packet to send [14:42:09]OFD Sender: No OFD packet to send [14:42:13]accept exits with 7 [14:42:13]New connection [14:42:13]New thread 3066936676 created [14:42:13]Thread 3067080036 joined [14:42:13]Waiting for new connection... [14:42:13] Sock 7.Parse request [14:42:13]Sock 7.Check first char [14:42:13]Sock 7.First char is OK [14:42:13]request: POST /json_proto HTTP/1.0 [14:42:13]Method: POST [14:42:13]URL: /json_proto [14:42:13]Method is POST - this is cgi request [14:42:13]url: /json_proto [14:42:13]query_string will be loaded in cgi processing [14:42:13]execute_cgi json_proto POST (null) [14:42:13]execute_cgi path=json_proto method=POST [14:42:13]POST find Content-Length [14:42:13]Host: 172.17.62.5:8080 [14:42:13]Content-Length: 677 [14:42:13]Content-Type: application/json [14:42:13] [14:42:13]POST finish read [14:42:13]Found Content-Length = 677 [14:42:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190932", "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" : 64.40, "quantity" : 6.220, "sum" : 400.57, "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:42:13]execute_script... [14:42: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)190932", "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" : 64.40, "quantity" : 6.220, "sum" : 400.57, "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:42:13]POST & json_proto [14:42:13]process_json_proto [14:42:13]json parsed OK: [14:42:13]protocol is kg_v1.0 [14:42:13]action value=close_receipt [14:42:13]process_action close_receipt [14:42:13]cmd_close_receipt [14:42:13]MH_GetDate [14:42:13]Write to MH i2c: F0 00 00 12 03 04 [14:42:13]Write i2c OK [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: F0 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: F0 09 00 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: F0 09 00 12 03 00 C6 82 22 66 F4 E9 65 64 83 [14:42:13]GetLastDocTimeStamp 1713537482 [14:42:13]current date 1713537734 [14:42:13]FM_GetShiftState [14:42:13]SAM_PROTO_GetShiftState [14:42:13]wFMCommunicate request_size=4 [14:42:13]MH_SAM_APDU [14:42:13]CAPDU: 80 13 01 00 [14:42:13]Write to MH i2c: E2 08 00 13 03 80 13 01 00 00 00 00 00 93 [14:42:13]Write i2c OK [14:42:13]MH_I2C_Read... [14:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:13]Read from MH i2c: E2 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 0E 00 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 0E 00 13 03 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 78 [14:42:13]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:42:13]wFMCommunicate OK [14:42:13]SAM_PROTO_GetShiftState done [14:42:13]FM_GetShiftState done [14:42:13]opened in 1713486233 [14:42:13]opened+sec_in_day 1713572633 [14:42:13]quantity*price = 40056 [14:42:13]sum+1 = 40058 [14:42:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 79 19.04.2024 14:42 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76459 ФПД: 190140284312253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T144214&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76459&fm=190140284312253&tin=02508201610067®Number=0000000000091573&sum=40000 [14:42:14]StoreToDocumentArchive [14:42:14]shift 370 fd 76459 [14:42:14]save to /storage/0370/doc_00076459 [14:42:14]save last doc name /storage/0370/doc_00076459 to /storage/kkm_last_doc_name [14:42:14]save OK [14:42:14]Clear old archive folders... [14:42:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:14]tlvbuf is 00A0F190 [14:42:14]SAM_PROTO_ClearQueue [14:42:14]wFMCommunicate request_size=4 [14:42:14]MH_SAM_APDU [14:42:14]CAPDU: 80 09 00 00 [14:42:14]Write to MH i2c: E2 08 00 20 03 80 09 00 00 00 00 00 00 95 [14:42:14]Write i2c OK [14:42:14]MH_I2C_Read... [14:42:14]Read from MH i2c: E2 [14:42:14]MH_I2C_Read... [14:42:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:14]Read from MH i2c: E2 03 00 [14:42:14]MH_I2C_Read... [14:42:14]Read from MH i2c: E2 03 00 20 03 00 90 00 97 [14:42:14]RAPDU: 90 00 [14:42:14]wFMCommunicate OK [14:42:14]SAM_PROTO_ClearQueue done [14:42:14]KKMCreateOFDPacket [14:42:14]OFDProtocolAddRootSTLVToBuf [14:42:14]FM_MakeSignedData [14:42:14]FM_MakeSignedData [14:42:14]SAM_PROTO_SignData [14:42:14]wFMCommunicate request_size=4 [14:42:14]MH_SAM_APDU [14:42:14]CAPDU: 80 0D 01 02 [14:42:14]Write to MH i2c: E2 08 00 21 03 80 0D 01 02 00 00 00 00 9D [14:42:14]Write i2c OK [14:42:14]MH_I2C_Read... [14:42:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:15]Read from MH i2c: E2 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 03 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 03 00 21 03 00 90 00 98 [14:42:15]RAPDU: 90 00 [14:42:15]wFMCommunicate OK [14:42:15]wFMCommunicate request_size=255 [14:42:15]MH_SAM_APDU [14:42: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 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 4F 00 00 00 F4 03 04 00 C6 82 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AB 2A 01 00 35 04 06 00 AC [14:42:15]Write to MH i2c: E2 02 01 22 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 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 4F 00 00 00 F4 03 04 00 C6 82 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AB 2A 01 00 35 04 06 00 AC 00 00 3E [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:15]Read from MH i2c: E2 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 03 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 03 00 22 03 00 90 00 99 [14:42:15]RAPDU: 90 00 [14:42:15]wFMCommunicate OK [14:42:15]wFMCommunicate request_size=10 [14:42:15]MH_SAM_APDU [14:42:15]CAPDU: 80 0D 02 02 05 EE 7C 1A 9A BD [14:42:15]Write to MH i2c: E2 0D 00 23 03 80 0D 02 02 05 00 EE 7C 1A 9A BD 00 00 85 [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:15]Read from MH i2c: E2 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 03 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 03 00 23 03 00 90 00 9A [14:42:15]RAPDU: 90 00 [14:42:15]wFMCommunicate OK [14:42:15]wFMCommunicate request_size=4 [14:42:15]MH_SAM_APDU [14:42:15]CAPDU: 80 0D 03 02 [14:42:15]Write to MH i2c: E2 08 00 24 03 80 0D 03 02 00 00 00 00 A2 [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:15]Read from MH i2c: E2 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 0B 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 0B 00 24 03 00 79 76 1D 11 3C 7C E0 F5 90 00 4D [14:42:15]RAPDU: 79 76 1D 11 3C 7C E0 F5 90 00 [14:42:15]wFMCommunicate OK [14:42:15]SAM_PROTO_SignData done [14:42:15]FM_MakeSignedData done [14:42:15]CreateOFDProtocolMessage [14:42:15]wFMCommunicate request_size=4 [14:42:15]MH_SAM_APDU [14:42:15]CAPDU: 80 11 00 00 [14:42:15]Write to MH i2c: E2 08 00 25 03 80 11 00 00 00 00 00 00 A2 [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:15]Read from MH i2c: E2 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 17 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 17 00 25 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F5 [14:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:42:15]wFMCommunicate OK [14:42:15]CreateOFDProtocolMessage done [14:42:15]OFDSenderStorePacket 76459 [14:42:15]StoreOFDPacket docnum=76459 [14:42:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 C5 35 07 01 51 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 4F 00 00 00 F4 03 04 00 C6 82 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AB 2A 01 00 35 04 06 00 AC EE 7C 1A 9A BD 79 76 1D 11 3C 7C E0 F5 [14:42:15]CheckFolder [14:42:15]dirname=/storage/ofd_packets [14:42:15]CheckFolder done [14:42:15]ProducePacketName [14:42:15]name=ofd_packets/00076459 [14:42:15]NVStorageSaveData ofd_packets/00076459 [14:42:15]File name is /storage/ofd_packets/00076459 [14:42:15]Write 301 bytes [14:42:15]NVStorageSaveData done [14:42:15]OFDSenderStorePacket done [14:42:15]KKMCreateOFDPacket done [14:42:15]NVStorageSaveData kkm_last_timestamp [14:42:15]File name is /storage/kkm_last_timestamp [14:42:15]Write 4 bytes [14:42:15]NVStorageSaveData done [14:42:15]ExternCall_PrintAddStr [14:42:15]wPrintStart [14:42:15]Write to MH i2c: 01 00 00 26 03 29 [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: 01 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: 01 07 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: 01 07 00 26 03 00 00 00 00 00 FF 0F 3E [14:42:15]RasterBufferAndPrint [14:42:15]line Счет N : (1)190932 [14:42:15]line ИНН: 02508201610067 [14:42:15]line Контрольно-Кассовый Чек [14:42:15]line ПРОДАЖА [14:42:15]line ТРК (МРК, ГНК) : 22 [14:42:15]line Товар: 2710124130 [14:42:15]line Аи-92-К-5 [14:42:15]line 6.220 * 64.40 [14:42:15]line = 400.57 [14:42:15]line НДС 12% НСП 1% [14:42:15]line > о реализуемом товаре [14:42:15]line ОКРУГЛЕНИЕ: -0.57 [14:42:15]line ИТОГО: 400.00 [14:42:15]line Внесено: 400.00 [14:42:15]line СДАЧА: 0.00 [14:42:15]line НСП 1% : 3.54 [14:42:15]line НДС 12% : 42.54 [14:42:15]line Наличными: 400.00 [14:42:15]line Безнал.: 0.00 [14:42:15]line Место: АЗС № 106 "Партнер Нефть" [14:42:15]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:42:15]line СНО: Общий режим [14:42:15]line Чек 79 19.04.2024 14:42 [14:42:15]line Смена: 370 ФФД: 1.0 [14:42:15]line ЗНМ: 0300000141 [14:42:15]line РНМ: 0000000000091573 [14:42:15]line Версия ККМ: 001 [14:42:15]line ФМ: 0000000000874652 [14:42:15]line ФД: 76459 [14:42:15]line ФПД: 190140284312253 [14:42:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T144214&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76459&fm=190140284312253&tin=02508201610067®Number=0000000000091573&sum=40000 [14:42:15]written 0, free lines is 4095 [14:42:15]OFD Sender: Processing packet 76459 [packets to send 128, broken 127] [14:42:15]ProducePacketName [14:42:15]name=ofd_packets/00076459 [14:42:15]OFD Sender: To server: pG, [14:42:15]CommunicateWithHost lk.salyk.kg:30040 [14:42:15]ConnectInit lk.salyk.kg [14:42:15]Connected sock=10 [14:42:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 C5 35 07 01 51 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 4F 00 00 00 F4 03 04 00 C6 82 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AB 2A 01 00 35 04 06 00 AC EE 7C 1A 9A BD 79 76 1D 11 3C 7C E0 F5 [14:42:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 BE E8 47 00 25 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 34 36 35 32 10 04 04 00 AB 2A 01 00 F4 03 04 00 51 2A 22 66 B6 04 01 00 00 CA 14 94 9C 4B F0 62 B5 [14:42:15]CommunicateWithHost err = 0 [14:42:15]CheckOFDResponse [14:42:15]1017 (14) - 77093643461234 [14:42:15]1041 (16) - 0000000000874652 [14:42:15]1040 (4) - 76459 [14:42:15]1012 (4) - 19.04.2024 08:24 [14:42:15]1206 (1) - 0 [14:42:15]OFD Sender: Remove packet 76459 [14:42:15]ProducePacketName [14:42:15]name=ofd_packets/00076459 [14:42:15]NVStorageDeleteData [14:42:15]Write to MH i2c: 01 00 00 50 03 53 [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: 01 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: 01 07 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: 01 07 00 50 03 00 00 00 00 00 FC 0C 62 [14:42:15]RasterBufferAndPrint [14:42:15]line [14:42:15]line [14:42:15]line [14:42:15]line [14:42:15]line [14:42:15]written 0, free lines is 3330 [14:42:15]MH_Cut [14:42:15]Write to MH i2c: D1 01 00 57 03 01 2C [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: D1 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: D1 01 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: D1 01 00 57 03 00 2B [14:42:15]Write to MH i2c: 01 00 00 58 03 5B [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:16]OFD Sender: No OFD packet to send [14:42:16]*** Cut start [14:42:16]*** Partial cut [14:42:16]*** CUTSNS_PIN = 1 [14:42:16]*** CUTSNS_PIN = 0 [14:42:16]*** Brake cut motor [14:42:17]Read from MH i2c: 01 [14:42:17]MH_I2C_Read... [14:42:17]*** Stop cut motor [14:42:17]*** Cut end [14:42:17]Read from MH i2c: 01 07 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: 01 07 00 58 03 00 00 00 00 00 FF 0F 70 [14:42:17]process_action close_receipt done [14:42:17]requested_data is exist [14:42:17]produce_requested_data [14:42:17]requested_item fm.sn is exist - process it [14:42:17]wFMCommunicate request_size=4 [14:42:17]MH_SAM_APDU [14:42:17]CAPDU: 80 11 00 00 [14:42:17]Write to MH i2c: E2 08 00 59 03 80 11 00 00 00 00 00 00 D6 [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:17]Read from MH i2c: E2 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 17 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 17 00 59 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 29 [14:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:42:17]wFMCommunicate OK [14:42:17]requested_item fd.num is exist - process it [14:42:17]SAM_PROTO_GetFieldsCounters [14:42:17]wFMCommunicate request_size=4 [14:42:17]MH_SAM_APDU [14:42:17]CAPDU: 80 13 00 00 [14:42:17]Write to MH i2c: E2 08 00 5A 03 80 13 00 00 00 00 00 00 D9 [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:17]Read from MH i2c: E2 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 62 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 62 00 5A 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AB 2A 01 00 0E 04 04 00 72 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 30 [14: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AB 2A 01 00 0E 04 04 00 72 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 [14:42:17]wFMCommunicate OK [14:42:17]SAM_PROTO_GetFieldsCounters done [14:42:17]requested_item shift.num is exist - process it [14:42:17]requested_item shift.opened is exist - process it [14:42:17]req_shift_opened [14:42:17]FM_GetShiftState [14:42:17]SAM_PROTO_GetShiftState [14:42:17]wFMCommunicate request_size=4 [14:42:17]MH_SAM_APDU [14:42:17]CAPDU: 80 13 01 00 [14:42:17]Write to MH i2c: E2 08 00 5B 03 80 13 01 00 00 00 00 00 DB [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:17]Read from MH i2c: E2 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 0E 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 0E 00 5B 03 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 C0 [14:42:17]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:42:17]wFMCommunicate OK [14:42:17]SAM_PROTO_GetShiftState done [14:42:17]FM_GetShiftState done [14:42:17]req_shift_opened done [14:42:17]requested_item shift.open_date is exist - process it [14:42:17]req_shift_open_date [14:42:17]req_shift_open_date done [14:42:17]produce_requested_data done [14:42:17]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76459,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [14:42:17]process_action_free close_receipt [14:42:17]json_value_free [14:42:17]json_value_free done [14:42:17]process_json_proto returns [14:42:17]Send response to host [14:42:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76459,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [14:42:17]free response buf [14:42:17]execute_script done [14:42:17]execute_script returns [14:42:17]free content buf [14:42:17]Sock 7.Close socket [14:42:17]Sock 7.Thread stoped [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:06]OFD Sender: No OFD packet to send [14:43:06]accept exits with 9 [14:43:06]New connection [14:43:06]New thread 3067080036 created [14:43:06]Thread 3066936676 joined [14:43:06]Waiting for new connection... [14:43:06] Sock 9.Parse request [14:43:06]Sock 9.Check first char [14:43:06]Sock 9.First char is OK [14:43:06]request: POST /json_proto HTTP/1.0 [14:43:06]Method: POST [14:43:06]URL: /json_proto [14:43:06]Method is POST - this is cgi request [14:43:06]url: /json_proto [14:43:06]query_string will be loaded in cgi processing [14:43:06]execute_cgi json_proto POST (null) [14:43:06]execute_cgi path=json_proto method=POST [14:43:06]POST find Content-Length [14:43:06]Host: 172.17.62.5:8080 [14:43:06]Content-Length: 990 [14:43:06]Content-Type: application/json [14:43:06] [14:43:06]POST finish read [14:43:06]Found Content-Length = 990 [14:43:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 48.580, "sum" : 1539.99, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 48.58 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1539.00, "payments": [ { "type": 0, "sum" : 1539.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:06]execute_script... [14:43: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)190931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 48.580, "sum" : 1539.99, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 48.58 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1539.00, "payments": [ { "type": 0, "sum" : 1539.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:06]POST & json_proto [14:43:06]process_json_proto [14:43:06]json parsed OK: [14:43:06]protocol is kg_v1.0 [14:43:06]action value=close_receipt [14:43:06]process_action close_receipt [14:43:06]cmd_close_receipt [14:43:06]MH_GetDate [14:43:06]Write to MH i2c: F0 00 00 5C 03 4E [14:43:06]Write i2c OK [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: F0 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: F0 09 00 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: F0 09 00 5C 03 00 FB 82 22 66 F4 E9 65 64 02 [14:43:06]GetLastDocTimeStamp 1713537734 [14:43:06]current date 1713537787 [14:43:06]FM_GetShiftState [14:43:06]SAM_PROTO_GetShiftState [14:43:06]wFMCommunicate request_size=4 [14:43:06]MH_SAM_APDU [14:43:06]CAPDU: 80 13 01 00 [14:43:06]Write to MH i2c: E2 08 00 5D 03 80 13 01 00 00 00 00 00 DD [14:43:06]Write i2c OK [14:43:06]MH_I2C_Read... [14:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:06]Read from MH i2c: E2 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: E2 0E 00 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: E2 0E 00 5D 03 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 C2 [14:43:06]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:43:06]wFMCommunicate OK [14:43:06]SAM_PROTO_GetShiftState done [14:43:06]FM_GetShiftState done [14:43:06]opened in 1713486233 [14:43:06]opened+sec_in_day 1713572633 [14:43:06]quantity*price = 153998 [14:43:06]sum+1 = 154000 [14:43:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.99 ИТОГО: 1539.00 Внесено: 2000.00 СДАЧА: 461.00 НСП 1% : 13.63 НДС 12% : 163.54 Наличными: 1539.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 80 19.04.2024 14:43 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 48.58 сом ФМ: 0000000000874652 ФД: 76460 ФПД: 42979983672760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T144307&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76460&fm=42979983672760&tin=02508201610067®Number=0000000000091573&sum=153900 [14:43:07]StoreToDocumentArchive [14:43:07]shift 370 fd 76460 [14:43:07]save to /storage/0370/doc_00076460 [14:43:07]save last doc name /storage/0370/doc_00076460 to /storage/kkm_last_doc_name [14:43:07]save OK [14:43:07]Clear old archive folders... [14:43:07]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:43:07]tlvbuf is 009AEE50 [14:43:07]SAM_PROTO_ClearQueue [14:43:07]wFMCommunicate request_size=4 [14:43:07]MH_SAM_APDU [14:43:07]CAPDU: 80 09 00 00 [14:43:07]Write to MH i2c: E2 08 00 6A 03 80 09 00 00 00 00 00 00 DF [14:43:07]Write i2c OK [14:43:07]MH_I2C_Read... [14:43:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:07]Read from MH i2c: E2 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: E2 03 00 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: E2 03 00 6A 03 00 90 00 E1 [14:43:07]RAPDU: 90 00 [14:43:07]wFMCommunicate OK [14:43:07]SAM_PROTO_ClearQueue done [14:43:07]KKMCreateOFDPacket [14:43:07]OFDProtocolAddRootSTLVToBuf [14:43:07]FM_MakeSignedData [14:43:07]FM_MakeSignedData [14:43:07]SAM_PROTO_SignData [14:43:07]wFMCommunicate request_size=4 [14:43:07]MH_SAM_APDU [14:43:07]CAPDU: 80 0D 01 02 [14:43:07]Write to MH i2c: E2 08 00 6B 03 80 0D 01 02 00 00 00 00 E7 [14:43:07]Write i2c OK [14:43:07]MH_I2C_Read... [14:43:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:07]Read from MH i2c: E2 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: E2 03 00 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: E2 03 00 6B 03 00 90 00 E2 [14:43:07]RAPDU: 90 00 [14:43:07]wFMCommunicate OK [14:43:07]wFMCommunicate request_size=255 [14:43:07]MH_SAM_APDU [14:43:07]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 BD 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 8F 59 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 59 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 3F 00 00 00 00 07 04 06 00 2C 59 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 00 00 00 F4 03 04 00 FB 82 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AC 2A 01 00 35 04 06 00 27 17 [14:43:07]Write to MH i2c: E2 02 01 6C 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 BD 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 8F 59 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 59 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 3F 00 00 00 00 07 04 06 00 2C 59 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 00 00 00 F4 03 04 00 FB 82 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AC 2A 01 00 35 04 06 00 27 17 00 00 D5 [14:43:07]Write i2c OK [14:43:07]MH_I2C_Read... [14:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:08]Read from MH i2c: E2 [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: E2 03 00 [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: E2 03 00 6C 03 00 90 00 E3 [14:43:08]RAPDU: 90 00 [14:43:08]wFMCommunicate OK [14:43:08]wFMCommunicate request_size=9 [14:43:08]MH_SAM_APDU [14:43:08]CAPDU: 80 0D 02 02 04 0E A8 C5 B8 [14:43:08]Write to MH i2c: E2 0C 00 6D 03 80 0D 02 02 04 00 0E A8 C5 B8 00 00 25 [14:43:08]Write i2c OK [14:43:08]MH_I2C_Read... [14:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:08]Read from MH i2c: E2 [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: E2 03 00 [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: E2 03 00 6D 03 00 90 00 E4 [14:43:08]RAPDU: 90 00 [14:43:08]wFMCommunicate OK [14:43:08]wFMCommunicate request_size=4 [14:43:08]MH_SAM_APDU [14:43:08]CAPDU: 80 0D 03 02 [14:43:08]Write to MH i2c: E2 08 00 6E 03 80 0D 03 02 00 00 00 00 EC [14:43:08]Write i2c OK [14:43:08]MH_I2C_Read... [14:43:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:08]Read from MH i2c: E2 [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: E2 0B 00 [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: E2 0B 00 6E 03 00 AE 08 56 D6 41 17 B1 BB 90 00 93 [14:43:08]RAPDU: AE 08 56 D6 41 17 B1 BB 90 00 [14:43:08]wFMCommunicate OK [14:43:08]SAM_PROTO_SignData done [14:43:08]FM_MakeSignedData done [14:43:08]CreateOFDProtocolMessage [14:43:08]wFMCommunicate request_size=4 [14:43:08]MH_SAM_APDU [14:43:08]CAPDU: 80 11 00 00 [14:43:08]Write to MH i2c: E2 08 00 6F 03 80 11 00 00 00 00 00 00 EC [14:43:08]Write i2c OK [14:43:08]MH_I2C_Read... [14:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:08]Read from MH i2c: E2 [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: E2 17 00 [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: E2 17 00 6F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3F [14:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:43:08]wFMCommunicate OK [14:43:08]CreateOFDProtocolMessage done [14:43:08]OFDSenderStorePacket 76460 [14:43:08]StoreOFDPacket docnum=76460 [14:43:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 83 2D 06 01 3E 9D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 BD 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 8F 59 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 59 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 3F 00 00 00 00 07 04 06 00 2C 59 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 00 00 00 F4 03 04 00 FB 82 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AC 2A 01 00 35 04 06 00 27 17 0E A8 C5 B8 AE 08 56 D6 41 17 B1 BB [14:43:08]CheckFolder [14:43:08]dirname=/storage/ofd_packets [14:43:08]CheckFolder done [14:43:08]ProducePacketName [14:43:08]name=ofd_packets/00076460 [14:43:08]NVStorageSaveData ofd_packets/00076460 [14:43:08]File name is /storage/ofd_packets/00076460 [14:43:08]Write 300 bytes [14:43:08]NVStorageSaveData done [14:43:08]OFDSenderStorePacket done [14:43:08]KKMCreateOFDPacket done [14:43:08]NVStorageSaveData kkm_last_timestamp [14:43:08]File name is /storage/kkm_last_timestamp [14:43:08]Write 4 bytes [14:43:08]NVStorageSaveData done [14:43:08]ExternCall_PrintAddStr [14:43:08]wPrintStart [14:43:08]Write to MH i2c: 01 00 00 70 03 73 [14:43:08]Write i2c OK [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: 01 [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: 01 07 00 [14:43:08]MH_I2C_Read... [14:43:08]Read from MH i2c: 01 07 00 70 03 00 00 00 00 00 FF 0F 88 [14:43:08]RasterBufferAndPrint [14:43:08]line Счет N : (1)190931 [14:43:08]line ИНН: 02508201610067 [14:43:08]line Контрольно-Кассовый Чек [14:43:08]line ПРОДАЖА [14:43:08]line ТРК (МРК, ГНК) : 71 [14:43:08]line Товар: 2711190000 [14:43:08]line ГАЗ-К-5 [14:43:08]line 48.580 * 31.70 [14:43:08]line = 1539.99 [14:43:08]line НДС 12% НСП 1% [14:43:08]line > о реализуемом товаре [14:43:08]line ОКРУГЛЕНИЕ: -0.99 [14:43:08]line ИТОГО: 1539.00 [14:43:08]line Внесено: 2000.00 [14:43:08]line СДАЧА: 461.00 [14:43:08]line НСП 1% : 13.63 [14:43:08]line НДС 12% : 163.54 [14:43:08]line Наличными: 1539.00 [14:43:08]line Безнал.: 0.00 [14:43:08]line Место: АЗС № 106 "Партнер Нефть" [14:43:08]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:43:08]line СНО: Общий режим [14:43:08]line Чек 80 19.04.2024 14:43 [14:43:08]line Смена: 370 ФФД: 1.0 [14:43:08]line ЗНМ: 0300000141 [14:43:08]line РНМ: 0000000000091573 [14:43:08]line Версия ККМ: 001 [14:43:08]line [14:43:08]line Дисконтная программа [14:43:08]line СУГ [14:43:08]line номер 106 [14:43:08]line сэкономлено 48.58 сом [14:43:08]line ФМ: 0000000000874652 [14:43:08]line ФД: 76460 [14:43:08]line ФПД: 42979983672760 [14:43:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T144307&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76460&fm=42979983672760&tin=02508201610067®Number=0000000000091573&sum=153900 [14:43:08]OFD Sender: Processing packet 76460 [packets to send 128, broken 127] [14:43:08]ProducePacketName [14:43:08]name=ofd_packets/00076460 [14:43:08]OFD Sender: To server: pG, [14:43:08]CommunicateWithHost lk.salyk.kg:30040 [14:43:08]ConnectInit lk.salyk.kg [14:43:08]written 0, free lines is 4095 [14:43:08]Connected sock=10 [14:43:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 83 2D 06 01 3E 9D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 BD 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 8F 59 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 59 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 3F 00 00 00 00 07 04 06 00 2C 59 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 00 00 00 F4 03 04 00 FB 82 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AC 2A 01 00 35 04 06 00 27 17 0E A8 C5 B8 AE 08 56 D6 41 17 B1 BB [14:43:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C4 32 47 00 D1 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AC 2A 01 00 F4 03 04 00 87 2A 22 66 B6 04 01 00 00 18 B2 C4 F7 6F 17 E7 29 [14:43:09]CommunicateWithHost err = 0 [14:43:09]CheckOFDResponse [14:43:09]1017 (14) - 77093643461234 [14:43:09]1041 (16) - 0000000000874652 [14:43:09]1040 (4) - 76460 [14:43:09]1012 (4) - 19.04.2024 08:25 [14:43:09]1206 (1) - 0 [14:43:09]OFD Sender: Remove packet 76460 [14:43:09]ProducePacketName [14:43:09]name=ofd_packets/00076460 [14:43:09]NVStorageDeleteData [14:43:09]Write to MH i2c: 01 00 00 9F 03 A2 [14:43:09]Write i2c OK [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: 01 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: 01 07 00 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: 01 07 00 9F 03 00 00 00 00 00 93 0C 48 [14:43:09]RasterBufferAndPrint [14:43:09]line [14:43:09]line [14:43:09]line [14:43:09]line [14:43:09]line [14:43:09]written 0, free lines is 3225 [14:43:09]MH_Cut [14:43:09]Write to MH i2c: D1 01 00 A6 03 01 7B [14:43:09]Write i2c OK [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: D1 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: D1 01 00 [14:43:09]MH_I2C_Read... [14:43:09]Read from MH i2c: D1 01 00 A6 03 00 7A [14:43:09]Write to MH i2c: 01 00 00 A7 03 AA [14:43:09]Write i2c OK [14:43:09]MH_I2C_Read... [14:43:09]OFD Sender: No OFD packet to send [14:43:09]*** Cut start [14:43:09]*** Partial cut [14:43:09]*** CUTSNS_PIN = 1 [14:43:10]*** CUTSNS_PIN = 0 [14:43:10]*** Brake cut motor [14:43:10]Read from MH i2c: 01 [14:43:10]MH_I2C_Read... [14:43:10]*** Stop cut motor [14:43:10]*** Cut end [14:43:10]Read from MH i2c: 01 07 00 [14:43:10]MH_I2C_Read... [14:43:10]Read from MH i2c: 01 07 00 A7 03 00 00 00 00 00 FF 0F BF [14:43:10]process_action close_receipt done [14:43:10]requested_data is exist [14:43:10]produce_requested_data [14:43:10]requested_item fm.sn is exist - process it [14:43:10]wFMCommunicate request_size=4 [14:43:10]MH_SAM_APDU [14:43:10]CAPDU: 80 11 00 00 [14:43:10]Write to MH i2c: E2 08 00 A8 03 80 11 00 00 00 00 00 00 25 [14:43:10]Write i2c OK [14:43:10]MH_I2C_Read... [14:43:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:10]Read from MH i2c: E2 [14:43:10]MH_I2C_Read... [14:43:10]Read from MH i2c: E2 17 00 [14:43:10]MH_I2C_Read... [14:43:10]Read from MH i2c: E2 17 00 A8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 78 [14:43:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:43:10]wFMCommunicate OK [14:43:10]requested_item fd.num is exist - process it [14:43:10]SAM_PROTO_GetFieldsCounters [14:43:10]wFMCommunicate request_size=4 [14:43:10]MH_SAM_APDU [14:43:10]CAPDU: 80 13 00 00 [14:43:10]Write to MH i2c: E2 08 00 A9 03 80 13 00 00 00 00 00 00 28 [14:43:10]Write i2c OK [14:43:10]MH_I2C_Read... [14:43:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:10]Read from MH i2c: E2 [14:43:10]MH_I2C_Read... [14:43:10]Read from MH i2c: E2 62 00 [14:43:10]MH_I2C_Read... [14:43:10]Read from MH i2c: E2 62 00 A9 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AC 2A 01 00 0E 04 04 00 72 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 83 [14:43: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AC 2A 01 00 0E 04 04 00 72 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 [14:43:10]wFMCommunicate OK [14:43:10]SAM_PROTO_GetFieldsCounters done [14:43:10]requested_item shift.num is exist - process it [14:43:10]requested_item shift.opened is exist - process it [14:43:10]req_shift_opened [14:43:10]FM_GetShiftState [14:43:10]SAM_PROTO_GetShiftState [14:43:10]wFMCommunicate request_size=4 [14:43:10]MH_SAM_APDU [14:43:10]CAPDU: 80 13 01 00 [14:43:10]Write to MH i2c: E2 08 00 AA 03 80 13 01 00 00 00 00 00 2A [14:43:10]Write i2c OK [14:43:10]MH_I2C_Read... [14:43:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:10]Read from MH i2c: E2 [14:43:10]MH_I2C_Read... [14:43:10]Read from MH i2c: E2 0E 00 [14:43:10]MH_I2C_Read... [14:43:10]Read from MH i2c: E2 0E 00 AA 03 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 0F [14:43:10]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:43:10]wFMCommunicate OK [14:43:10]SAM_PROTO_GetShiftState done [14:43:10]FM_GetShiftState done [14:43:10]req_shift_opened done [14:43:10]requested_item shift.open_date is exist - process it [14:43:10]req_shift_open_date [14:43:10]req_shift_open_date done [14:43:10]produce_requested_data done [14:43:10]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76460,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [14:43:10]process_action_free close_receipt [14:43:10]json_value_free [14:43:10]json_value_free done [14:43:10]process_json_proto returns [14:43:10]Send response to host [14:43:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76460,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [14:43:10]free response buf [14:43:10]execute_script done [14:43:10]execute_script returns [14:43:10]free content buf [14:43:10]Sock 9.Close socket [14:43:10]Sock 9.Thread stoped [14:43:14]OFD Sender: No OFD packet to send [14:43:19]OFD Sender: No OFD packet to send [14:43:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:34]OFD Sender: No OFD packet to send [14:43:39]OFD Sender: No OFD packet to send [14:43:44]OFD Sender: No OFD packet to send [14:43:49]OFD Sender: No OFD packet to send [14:43:54]OFD Sender: No OFD packet to send [14:43:59]OFD Sender: No OFD packet to send [14:44:04]OFD Sender: No OFD packet to send [14:44:09]OFD Sender: No OFD packet to send [14:44:14]OFD Sender: No OFD packet to send [14:44:19]OFD Sender: No OFD packet to send [14:44:24]OFD Sender: No OFD packet to send [14:44:29]OFD Sender: No OFD packet to send [14:44:34]OFD Sender: No OFD packet to send [14:44:39]OFD Sender: No OFD packet to send [14:44:44]OFD Sender: No OFD packet to send [14:44:49]OFD Sender: No OFD packet to send [14:44:54]OFD Sender: No OFD packet to send [14:44:59]OFD Sender: No OFD packet to send [14:45:04]OFD Sender: No OFD packet to send [14:45:09]OFD Sender: No OFD packet to send [14:45:14]OFD Sender: No OFD packet to send [14:45:19]OFD Sender: No OFD packet to send [14:45:24]OFD Sender: No OFD packet to send [14:45:29]OFD Sender: No OFD packet to send [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]OFD Sender: No OFD packet to send [14:45:49]OFD Sender: No OFD packet to send [14:45:54]OFD Sender: No OFD packet to send [14:45:59]OFD Sender: No OFD packet to send [14:46:04]OFD Sender: No OFD packet to send [14:46:09]OFD Sender: No OFD packet to send [14:46:14]OFD Sender: No OFD packet to send [14:46:19]OFD Sender: No OFD packet to send [14:46:24]OFD Sender: No OFD packet to send [14:46:29]OFD Sender: No OFD packet to send [14:46:34]OFD Sender: No OFD packet to send [14:46:39]OFD Sender: No OFD packet to send [14:46:44]OFD Sender: No OFD packet to send [14:46:49]OFD Sender: No OFD packet to send [14:46:54]OFD Sender: No OFD packet to send [14:46:59]OFD Sender: No OFD packet to send [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:51]accept exits with 7 [14:53:51]New connection [14:53:51]New thread 3066936676 created [14:53:51]Thread 3067080036 joined [14:53:51]Waiting for new connection... [14:53:51] Sock 7.Parse request [14:53:51]Sock 7.Check first char [14:53:51]Sock 7.First char is OK [14:53:51]request: POST /json_proto HTTP/1.0 [14:53:51]Method: POST [14:53:51]URL: /json_proto [14:53:51]Method is POST - this is cgi request [14:53:51]url: /json_proto [14:53:51]query_string will be loaded in cgi processing [14:53:51]execute_cgi json_proto POST (null) [14:53:51]execute_cgi path=json_proto method=POST [14:53:51]POST find Content-Length [14:53:51]Host: 172.17.62.5:8080 [14:53:51]Content-Length: 677 [14:53:51]Content-Type: application/json [14:53:51] [14:53:51]POST finish read [14:53:51]Found Content-Length = 677 [14:53:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.300, "sum" : 470.12, "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:51]execute_script... [14:53: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)190933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.300, "sum" : 470.12, "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:51]POST & json_proto [14:53:51]process_json_proto [14:53:51]json parsed OK: [14:53:51]protocol is kg_v1.0 [14:53:51]action value=close_receipt [14:53:51]process_action close_receipt [14:53:51]cmd_close_receipt [14:53:51]MH_GetDate [14:53:51]Write to MH i2c: F0 00 00 AB 03 9D [14:53:51]Write i2c OK [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: F0 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: F0 09 00 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: F0 09 00 AB 03 00 80 85 22 66 F4 E9 65 64 D9 [14:53:51]GetLastDocTimeStamp 1713537787 [14:53:51]current date 1713538432 [14:53:51]FM_GetShiftState [14:53:51]SAM_PROTO_GetShiftState [14:53:51]wFMCommunicate request_size=4 [14:53:51]MH_SAM_APDU [14:53:51]CAPDU: 80 13 01 00 [14:53:51]Write to MH i2c: E2 08 00 AC 03 80 13 01 00 00 00 00 00 2C [14:53:51]Write i2c OK [14:53:51]MH_I2C_Read... [14:53:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:51]Read from MH i2c: E2 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 0E 00 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 0E 00 AC 03 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 11 [14:53:51]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:53:51]wFMCommunicate OK [14:53:51]SAM_PROTO_GetShiftState done [14:53:51]FM_GetShiftState done [14:53:51]opened in 1713486233 [14:53:51]opened+sec_in_day 1713572633 [14:53:51]quantity*price = 47012 [14:53:51]sum+1 = 47013 [14:53:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 470.00 Внесено: 470.00 СДАЧА: 0.00 НСП 1% : 4.16 НДС 12% : 49.92 Наличными: 470.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 81 19.04.2024 14:53 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76461 ФПД: 252455244737975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T145352&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76461&fm=252455244737975&tin=02508201610067®Number=0000000000091573&sum=47000 [14:53:52]StoreToDocumentArchive [14:53:52]shift 370 fd 76461 [14:53:52]save to /storage/0370/doc_00076461 [14:53:52]save last doc name /storage/0370/doc_00076461 to /storage/kkm_last_doc_name [14:53:52]save OK [14:53:52]Clear old archive folders... [14:53:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:52]tlvbuf is 009F7E50 [14:53:52]SAM_PROTO_ClearQueue [14:53:52]wFMCommunicate request_size=4 [14:53:52]MH_SAM_APDU [14:53:52]CAPDU: 80 09 00 00 [14:53:52]Write to MH i2c: E2 08 00 B9 03 80 09 00 00 00 00 00 00 2E [14:53:52]Write i2c OK [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 [14:53:52]MH_I2C_Read... [14:53:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:52]Read from MH i2c: E2 03 00 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 03 00 B9 03 00 90 00 30 [14:53:52]RAPDU: 90 00 [14:53:52]wFMCommunicate OK [14:53:52]SAM_PROTO_ClearQueue done [14:53:52]KKMCreateOFDPacket [14:53:52]OFDProtocolAddRootSTLVToBuf [14:53:52]FM_MakeSignedData [14:53:52]FM_MakeSignedData [14:53:52]SAM_PROTO_SignData [14:53:52]wFMCommunicate request_size=4 [14:53:52]MH_SAM_APDU [14:53:52]CAPDU: 80 0D 01 02 [14:53:52]Write to MH i2c: E2 08 00 BA 03 80 0D 01 02 00 00 00 00 36 [14:53:52]Write i2c OK [14:53:52]MH_I2C_Read... [14:53:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:52]Read from MH i2c: E2 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 03 00 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 03 00 BA 03 00 90 00 31 [14:53:52]RAPDU: 90 00 [14:53:52]wFMCommunicate OK [14:53:52]wFMCommunicate request_size=255 [14:53:52]MH_SAM_APDU [14:53: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 84 1C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A4 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 80 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 51 00 00 00 F4 03 04 00 80 85 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AD 2A 01 00 35 04 06 00 E5 [14:53:52]Write to MH i2c: E2 02 01 BB 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 84 1C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A4 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 80 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 51 00 00 00 F4 03 04 00 80 85 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AD 2A 01 00 35 04 06 00 E5 00 00 5C [14:53:52]Write i2c OK [14:53:52]MH_I2C_Read... [14:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:53]Read from MH i2c: E2 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 03 00 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 03 00 BB 03 00 90 00 32 [14:53:53]RAPDU: 90 00 [14:53:53]wFMCommunicate OK [14:53:53]wFMCommunicate request_size=10 [14:53:53]MH_SAM_APDU [14:53:53]CAPDU: 80 0D 02 02 05 9B 51 2F 2D B7 [14:53:53]Write to MH i2c: E2 0D 00 BC 03 80 0D 02 02 05 00 9B 51 2F 2D B7 00 00 42 [14:53:53]Write i2c OK [14:53:53]MH_I2C_Read... [14:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:53]Read from MH i2c: E2 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 03 00 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 03 00 BC 03 00 90 00 33 [14:53:53]RAPDU: 90 00 [14:53:53]wFMCommunicate OK [14:53:53]wFMCommunicate request_size=4 [14:53:53]MH_SAM_APDU [14:53:53]CAPDU: 80 0D 03 02 [14:53:53]Write to MH i2c: E2 08 00 BD 03 80 0D 03 02 00 00 00 00 3B [14:53:53]Write i2c OK [14:53:53]MH_I2C_Read... [14:53:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:53]Read from MH i2c: E2 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 0B 00 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 0B 00 BD 03 00 42 57 9C 3C 4E B6 44 9C 90 00 91 [14:53:53]RAPDU: 42 57 9C 3C 4E B6 44 9C 90 00 [14:53:53]wFMCommunicate OK [14:53:53]SAM_PROTO_SignData done [14:53:53]FM_MakeSignedData done [14:53:53]CreateOFDProtocolMessage [14:53:53]wFMCommunicate request_size=4 [14:53:53]MH_SAM_APDU [14:53:53]CAPDU: 80 11 00 00 [14:53:53]Write to MH i2c: E2 08 00 BE 03 80 11 00 00 00 00 00 00 3B [14:53:53]Write i2c OK [14:53:53]MH_I2C_Read... [14:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:53]Read from MH i2c: E2 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 17 00 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 17 00 BE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8E [14:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:53:53]wFMCommunicate OK [14:53:53]CreateOFDProtocolMessage done [14:53:53]OFDSenderStorePacket 76461 [14:53:53]StoreOFDPacket docnum=76461 [14:53:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 F1 5E 07 01 0E EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 1C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A4 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 80 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 51 00 00 00 F4 03 04 00 80 85 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AD 2A 01 00 35 04 06 00 E5 9B 51 2F 2D B7 42 57 9C 3C 4E B6 44 9C [14:53:53]CheckFolder [14:53:53]dirname=/storage/ofd_packets [14:53:53]CheckFolder done [14:53:53]ProducePacketName [14:53:53]name=ofd_packets/00076461 [14:53:53]NVStorageSaveData ofd_packets/00076461 [14:53:53]File name is /storage/ofd_packets/00076461 [14:53:53]Write 301 bytes [14:53:53]NVStorageSaveData done [14:53:53]OFDSenderStorePacket done [14:53:53]KKMCreateOFDPacket done [14:53:53]NVStorageSaveData kkm_last_timestamp [14:53:53]File name is /storage/kkm_last_timestamp [14:53:53]Write 4 bytes [14:53:53]NVStorageSaveData done [14:53:53]ExternCall_PrintAddStr [14:53:53]wPrintStart [14:53:53]Write to MH i2c: 01 00 00 BF 03 C2 [14:53:53]Write i2c OK [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: 01 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: 01 07 00 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: 01 07 00 BF 03 00 00 00 00 00 FF 0F D7 [14:53:53]RasterBufferAndPrint [14:53:53]line Счет N : (1)190933 [14:53:53]line ИНН: 02508201610067 [14:53:53]line Контрольно-Кассовый Чек [14:53:53]line ПРОДАЖА [14:53:53]line ТРК (МРК, ГНК) : 33 [14:53:53]line Товар: 2710124130 [14:53:53]line Аи-92-К-5 [14:53:53]line 7.300 * 64.40 [14:53:53]line = 470.12 [14:53:53]line НДС 12% НСП 1% [14:53:53]line > о реализуемом товаре [14:53:53]line ОКРУГЛЕНИЕ: -0.12 [14:53:53]line ИТОГО: 470.00 [14:53:53]line Внесено: 470.00 [14:53:53]line СДАЧА: 0.00 [14:53:53]line НСП 1% : 4.16 [14:53:53]line НДС 12% : 49.92 [14:53:53]line Наличными: 470.00 [14:53:53]line Безнал.: 0.00 [14:53:53]line Место: АЗС № 106 "Партнер Нефть" [14:53:53]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:53:53]line СНО: Общий режим [14:53:53]line Чек 81 19.04.2024 14:53 [14:53:53]line Смена: 370 ФФД: 1.0 [14:53:53]line ЗНМ: 0300000141 [14:53:53]line РНМ: 0000000000091573 [14:53:53]line Версия ККМ: 001 [14:53:53]line ФМ: 0000000000874652 [14:53:53]line ФД: 76461 [14:53:53]line ФПД: 252455244737975 [14:53:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T145352&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76461&fm=252455244737975&tin=02508201610067®Number=0000000000091573&sum=47000 [14:53:53]OFD Sender: Processing packet 76461 [packets to send 128, broken 127] [14:53:53]ProducePacketName [14:53:53]name=ofd_packets/00076461 [14:53:53]OFD Sender: To server: pG, [14:53:53]CommunicateWithHost lk.salyk.kg:30040 [14:53:53]ConnectInit lk.salyk.kg [14:53:53]written 0, free lines is 4095 [14:53:53]Connected sock=10 [14:53:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 F1 5E 07 01 0E EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 1C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A4 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 80 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 51 00 00 00 F4 03 04 00 80 85 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AD 2A 01 00 35 04 06 00 E5 9B 51 2F 2D B7 42 57 9C 3C 4E B6 44 9C [14:53:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 B1 8D 47 00 D4 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 34 36 35 32 10 04 04 00 AD 2A 01 00 F4 03 04 00 0B 2D 22 66 B6 04 01 00 00 79 2C 0B 0E E0 4D 15 16 [14:53:53]CommunicateWithHost err = 0 [14:53:53]CheckOFDResponse [14:53:53]1017 (14) - 77093643461234 [14:53:53]1041 (16) - 0000000000874652 [14:53:53]1040 (4) - 76461 [14:53:53]1012 (4) - 19.04.2024 08:36 [14:53:53]1206 (1) - 0 [14:53:53]OFD Sender: Remove packet 76461 [14:53:53]ProducePacketName [14:53:53]name=ofd_packets/00076461 [14:53:53]NVStorageDeleteData [14:53:53]Write to MH i2c: 01 00 00 E9 03 EC [14:53:53]Write i2c OK [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: 01 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: 01 07 00 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: 01 07 00 E9 03 00 00 00 00 00 EB 0C EA [14:53:53]RasterBufferAndPrint [14:53:53]line [14:53:53]line [14:53:53]line [14:53:53]line [14:53:53]line [14:53:53]written 0, free lines is 3314 [14:53:53]MH_Cut [14:53:53]Write to MH i2c: D1 01 00 F0 03 01 C5 [14:53:53]Write i2c OK [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: D1 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: D1 01 00 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: D1 01 00 F0 03 00 C4 [14:53:53]Write to MH i2c: 01 00 00 F1 03 F4 [14:53:53]Write i2c OK [14:53:53]MH_I2C_Read... [14:53:54]OFD Sender: No OFD packet to send [14:53:54]*** Cut start [14:53:54]*** Partial cut [14:53:54]*** CUTSNS_PIN = 1 [14:53:54]*** CUTSNS_PIN = 0 [14:53:54]*** Brake cut motor [14:53:55]Read from MH i2c: 01 [14:53:55]MH_I2C_Read... [14:53:55]*** Stop cut motor [14:53:55]*** Cut end [14:53:55]Read from MH i2c: 01 07 00 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: 01 07 00 F1 03 00 00 00 00 00 FF 0F 09 [14:53:55]process_action close_receipt done [14:53:55]requested_data is exist [14:53:55]produce_requested_data [14:53:55]requested_item fm.sn is exist - process it [14:53:55]wFMCommunicate request_size=4 [14:53:55]MH_SAM_APDU [14:53:55]CAPDU: 80 11 00 00 [14:53:55]Write to MH i2c: E2 08 00 F2 03 80 11 00 00 00 00 00 00 6F [14:53:55]Write i2c OK [14:53:55]MH_I2C_Read... [14:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:55]Read from MH i2c: E2 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: E2 17 00 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: E2 17 00 F2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C2 [14:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:53:55]wFMCommunicate OK [14:53:55]requested_item fd.num is exist - process it [14:53:55]SAM_PROTO_GetFieldsCounters [14:53:55]wFMCommunicate request_size=4 [14:53:55]MH_SAM_APDU [14:53:55]CAPDU: 80 13 00 00 [14:53:55]Write to MH i2c: E2 08 00 F3 03 80 13 00 00 00 00 00 00 72 [14:53:55]Write i2c OK [14:53:55]MH_I2C_Read... [14:53:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:55]Read from MH i2c: E2 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: E2 62 00 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: E2 62 00 F3 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AD 2A 01 00 0E 04 04 00 72 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 D1 [14:53:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AD 2A 01 00 0E 04 04 00 72 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 [14:53:55]wFMCommunicate OK [14:53:55]SAM_PROTO_GetFieldsCounters done [14:53:55]requested_item shift.num is exist - process it [14:53:55]requested_item shift.opened is exist - process it [14:53:55]req_shift_opened [14:53:55]FM_GetShiftState [14:53:55]SAM_PROTO_GetShiftState [14:53:55]wFMCommunicate request_size=4 [14:53:55]MH_SAM_APDU [14:53:55]CAPDU: 80 13 01 00 [14:53:55]Write to MH i2c: E2 08 00 F4 03 80 13 01 00 00 00 00 00 74 [14:53:55]Write i2c OK [14:53:55]MH_I2C_Read... [14:53:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:55]Read from MH i2c: E2 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: E2 0E 00 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: E2 0E 00 F4 03 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 59 [14:53:55]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:53:55]wFMCommunicate OK [14:53:55]SAM_PROTO_GetShiftState done [14:53:55]FM_GetShiftState done [14:53:55]req_shift_opened done [14:53:55]requested_item shift.open_date is exist - process it [14:53:55]req_shift_open_date [14:53:55]req_shift_open_date done [14:53:55]produce_requested_data done [14:53:55]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76461,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [14:53:55]process_action_free close_receipt [14:53:55]json_value_free [14:53:55]json_value_free done [14:53:55]process_json_proto returns [14:53:55]Send response to host [14:53:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76461,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [14:53:55]free response buf [14:53:55]execute_script done [14:53:55]execute_script returns [14:53:55]free content buf [14:53:55]Sock 7.Close socket [14:53:55]Sock 7.Thread stoped [14:53:59]OFD Sender: No OFD packet to send [14:54:04]OFD Sender: No OFD packet to send [14:54:09]OFD Sender: No OFD packet to send [14:54:14]OFD Sender: No OFD packet to send [14:54:19]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:44]OFD Sender: No OFD packet to send [14:54:49]OFD Sender: No OFD packet to send [14:54:54]OFD Sender: No OFD packet to send [14:54:59]OFD Sender: No OFD packet to send [14:55:04]OFD Sender: No OFD packet to send [14:55:09]OFD Sender: No OFD packet to send [14:55:14]OFD Sender: No OFD packet to send [14:55:19]OFD Sender: No OFD packet to send [14:55:24]OFD Sender: No OFD packet to send [14:55:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:29]OFD Sender: No OFD packet to send [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:49]OFD Sender: No OFD packet to send [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:02]accept exits with 9 [14:58:02]New connection [14:58:02]New thread 3067080036 created [14:58:02]Thread 3066936676 joined [14:58:02]Waiting for new connection... [14:58:02] Sock 9.Parse request [14:58:02]Sock 9.Check first char [14:58:02]Sock 9.First char is OK [14:58:02]request: POST /json_proto HTTP/1.0 [14:58:02]Method: POST [14:58:02]URL: /json_proto [14:58:02]Method is POST - this is cgi request [14:58:02]url: /json_proto [14:58:02]query_string will be loaded in cgi processing [14:58:02]execute_cgi json_proto POST (null) [14:58:02]execute_cgi path=json_proto method=POST [14:58:02]POST find Content-Length [14:58:02]Host: 172.17.62.5:8080 [14:58:02]Content-Length: 677 [14:58:02]Content-Type: application/json [14:58:02] [14:58:02]POST finish read [14:58:02]Found Content-Length = 677 [14:58:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:58:02]execute_script... [14:58:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:58:02]POST & json_proto [14:58:02]process_json_proto [14:58:02]json parsed OK: [14:58:02]protocol is kg_v1.0 [14:58:02]action value=close_receipt [14:58:02]process_action close_receipt [14:58:02]cmd_close_receipt [14:58:02]MH_GetDate [14:58:02]Write to MH i2c: F0 00 00 F5 03 E7 [14:58:02]Write i2c OK [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: F0 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: F0 09 00 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: F0 09 00 F5 03 00 7C 86 22 66 F4 E9 65 64 20 [14:58:02]GetLastDocTimeStamp 1713538432 [14:58:02]current date 1713538684 [14:58:02]FM_GetShiftState [14:58:02]SAM_PROTO_GetShiftState [14:58:02]wFMCommunicate request_size=4 [14:58:02]MH_SAM_APDU [14:58:02]CAPDU: 80 13 01 00 [14:58:02]Write to MH i2c: E2 08 00 F6 03 80 13 01 00 00 00 00 00 76 [14:58:02]Write i2c OK [14:58:02]MH_I2C_Read... [14:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:02]Read from MH i2c: E2 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: E2 0E 00 [14:58:02]MH_I2C_Read... [14:58:02]Read from MH i2c: E2 0E 00 F6 03 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 5B [14:58:02]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:58:02]wFMCommunicate OK [14:58:02]SAM_PROTO_GetShiftState done [14:58:02]FM_GetShiftState done [14:58:02]opened in 1713486233 [14:58:02]opened+sec_in_day 1713572633 [14:58:02]quantity*price = 50038 [14:58:02]sum+1 = 50040 [14:58:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 82 19.04.2024 14:58 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76462 ФПД: 158320343096766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T145804&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76462&fm=158320343096766&tin=02508201610067®Number=0000000000091573&sum=50000 [14:58:04]StoreToDocumentArchive [14:58:04]shift 370 fd 76462 [14:58:04]save to /storage/0370/doc_00076462 [14:58:04]save last doc name /storage/0370/doc_00076462 to /storage/kkm_last_doc_name [14:58:04]save OK [14:58:04]Clear old archive folders... [14:58:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:04]tlvbuf is 009F7980 [14:58:04]SAM_PROTO_ClearQueue [14:58:04]wFMCommunicate request_size=4 [14:58:04]MH_SAM_APDU [14:58:04]CAPDU: 80 09 00 00 [14:58:04]Write to MH i2c: E2 08 00 03 04 80 09 00 00 00 00 00 00 79 [14:58:04]Write i2c OK [14:58:04]MH_I2C_Read... [14:58:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:04]Read from MH i2c: E2 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 03 00 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 03 00 03 04 00 90 00 7B [14:58:04]RAPDU: 90 00 [14:58:04]wFMCommunicate OK [14:58:04]SAM_PROTO_ClearQueue done [14:58:04]KKMCreateOFDPacket [14:58:04]OFDProtocolAddRootSTLVToBuf [14:58:04]FM_MakeSignedData [14:58:04]FM_MakeSignedData [14:58:04]SAM_PROTO_SignData [14:58:04]wFMCommunicate request_size=4 [14:58:04]MH_SAM_APDU [14:58:04]CAPDU: 80 0D 01 02 [14:58:04]Write to MH i2c: E2 08 00 04 04 80 0D 01 02 00 00 00 00 81 [14:58:04]Write i2c OK [14:58:04]MH_I2C_Read... [14:58:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:04]Read from MH i2c: E2 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 03 00 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 03 00 04 04 00 90 00 7C [14:58:04]RAPDU: 90 00 [14:58:04]wFMCommunicate OK [14:58:04]wFMCommunicate request_size=255 [14:58:04]MH_SAM_APDU [14:58: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 7C 86 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AE 2A 01 00 35 04 06 00 8F [14:58:04]Write to MH i2c: E2 02 01 05 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 7C 86 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AE 2A 01 00 35 04 06 00 8F 00 00 ED [14:58:04]Write i2c OK [14:58:04]MH_I2C_Read... [14:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:04]Read from MH i2c: E2 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 03 00 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 03 00 05 04 00 90 00 7D [14:58:04]RAPDU: 90 00 [14:58:04]wFMCommunicate OK [14:58:04]wFMCommunicate request_size=10 [14:58:04]MH_SAM_APDU [14:58:04]CAPDU: 80 0D 02 02 05 FD D3 CF 9D BE [14:58:04]Write to MH i2c: E2 0D 00 06 04 80 0D 02 02 05 00 FD D3 CF 9D BE 00 00 88 [14:58:04]Write i2c OK [14:58:04]MH_I2C_Read... [14:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:04]Read from MH i2c: E2 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 03 00 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 03 00 06 04 00 90 00 7E [14:58:04]RAPDU: 90 00 [14:58:04]wFMCommunicate OK [14:58:04]wFMCommunicate request_size=4 [14:58:04]MH_SAM_APDU [14:58:04]CAPDU: 80 0D 03 02 [14:58:04]Write to MH i2c: E2 08 00 07 04 80 0D 03 02 00 00 00 00 86 [14:58:04]Write i2c OK [14:58:04]MH_I2C_Read... [14:58:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:04]Read from MH i2c: E2 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 0B 00 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 0B 00 07 04 00 2E 2F C8 FF 82 B0 47 59 90 00 7D [14:58:04]RAPDU: 2E 2F C8 FF 82 B0 47 59 90 00 [14:58:04]wFMCommunicate OK [14:58:04]SAM_PROTO_SignData done [14:58:04]FM_MakeSignedData done [14:58:04]CreateOFDProtocolMessage [14:58:04]wFMCommunicate request_size=4 [14:58:04]MH_SAM_APDU [14:58:04]CAPDU: 80 11 00 00 [14:58:04]Write to MH i2c: E2 08 00 08 04 80 11 00 00 00 00 00 00 86 [14:58:04]Write i2c OK [14:58:04]MH_I2C_Read... [14:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:04]Read from MH i2c: E2 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 17 00 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 17 00 08 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D9 [14:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:58:04]wFMCommunicate OK [14:58:04]CreateOFDProtocolMessage done [14:58:04]OFDSenderStorePacket 76462 [14:58:04]StoreOFDPacket docnum=76462 [14:58:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E1 BB 07 01 80 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 7C 86 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AE 2A 01 00 35 04 06 00 8F FD D3 CF 9D BE 2E 2F C8 FF 82 B0 47 59 [14:58:04]CheckFolder [14:58:04]dirname=/storage/ofd_packets [14:58:04]CheckFolder done [14:58:04]ProducePacketName [14:58:04]name=ofd_packets/00076462 [14:58:04]NVStorageSaveData ofd_packets/00076462 [14:58:04]File name is /storage/ofd_packets/00076462 [14:58:04]Write 301 bytes [14:58:04]NVStorageSaveData done [14:58:04]OFDSenderStorePacket done [14:58:04]KKMCreateOFDPacket done [14:58:04]NVStorageSaveData kkm_last_timestamp [14:58:04]File name is /storage/kkm_last_timestamp [14:58:04]Write 4 bytes [14:58:04]NVStorageSaveData done [14:58:04]ExternCall_PrintAddStr [14:58:04]wPrintStart [14:58:04]Write to MH i2c: 01 00 00 09 04 0D [14:58:04]Write i2c OK [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: 01 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: 01 07 00 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: 01 07 00 09 04 00 00 00 00 00 FF 0F 22 [14:58:04]RasterBufferAndPrint [14:58:04]line Счет N : (1)190934 [14:58:04]line ИНН: 02508201610067 [14:58:04]line Контрольно-Кассовый Чек [14:58:04]line ПРОДАЖА [14:58:04]line ТРК (МРК, ГНК) : 33 [14:58:04]line Товар: 2710124130 [14:58:04]line Аи-92-К-5 [14:58:04]line 7.770 * 64.40 [14:58:04]line = 500.39 [14:58:04]line НДС 12% НСП 1% [14:58:04]line > о реализуемом товаре [14:58:04]line ОКРУГЛЕНИЕ: -0.39 [14:58:04]line ИТОГО: 500.00 [14:58:04]line Внесено: 500.00 [14:58:04]line СДАЧА: 0.00 [14:58:04]line НСП 1% : 4.43 [14:58:04]line НДС 12% : 53.14 [14:58:04]line Наличными: 500.00 [14:58:04]line Безнал.: 0.00 [14:58:04]line Место: АЗС № 106 "Партнер Нефть" [14:58:04]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:58:04]line СНО: Общий режим [14:58:04]line Чек 82 19.04.2024 14:58 [14:58:04]line Смена: 370 ФФД: 1.0 [14:58:04]line ЗНМ: 0300000141 [14:58:04]line РНМ: 0000000000091573 [14:58:04]line Версия ККМ: 001 [14:58:04]line ФМ: 0000000000874652 [14:58:04]line ФД: 76462 [14:58:04]line ФПД: 158320343096766 [14:58:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T145804&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76462&fm=158320343096766&tin=02508201610067®Number=0000000000091573&sum=50000 [14:58:04]OFD Sender: Processing packet 76462 [packets to send 128, broken 127] [14:58:04]ProducePacketName [14:58:04]name=ofd_packets/00076462 [14:58:04]OFD Sender: To server: pG, [14:58:04]CommunicateWithHost lk.salyk.kg:30040 [14:58:04]ConnectInit lk.salyk.kg [14:58:04]written 0, free lines is 4095 [14:58:05]Connected sock=10 [14:58:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E1 BB 07 01 80 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 7C 86 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AE 2A 01 00 35 04 06 00 8F FD D3 CF 9D BE 2E 2F C8 FF 82 B0 47 59 [14:58:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 8A 58 47 00 DD 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AE 2A 01 00 F4 03 04 00 07 2E 22 66 B6 04 01 00 00 B9 0C E4 DF 31 6B BA 6F [14:58:05]CommunicateWithHost err = 0 [14:58:05]CheckOFDResponse [14:58:05]1017 (14) - 77093643461234 [14:58:05]1041 (16) - 0000000000874652 [14:58:05]1040 (4) - 76462 [14:58:05]1012 (4) - 19.04.2024 08:40 [14:58:05]1206 (1) - 0 [14:58:05]OFD Sender: Remove packet 76462 [14:58:05]ProducePacketName [14:58:05]name=ofd_packets/00076462 [14:58:05]NVStorageDeleteData [14:58:05]Write to MH i2c: 01 00 00 33 04 37 [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: 01 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: 01 07 00 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: 01 07 00 33 04 00 00 00 00 00 02 0D 4D [14:58:05]RasterBufferAndPrint [14:58:05]line [14:58:05]line [14:58:05]line [14:58:05]line [14:58:05]line [14:58:05]written 0, free lines is 3336 [14:58:05]MH_Cut [14:58:05]Write to MH i2c: D1 01 00 3A 04 01 10 [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: D1 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: D1 01 00 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: D1 01 00 3A 04 00 0F [14:58:05]Write to MH i2c: 01 00 00 3B 04 3F [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]OFD Sender: No OFD packet to send [14:58:06]*** Cut start [14:58:06]*** Partial cut [14:58:06]*** CUTSNS_PIN = 1 [14:58:06]*** CUTSNS_PIN = 0 [14:58:06]*** Brake cut motor [14:58:06]Read from MH i2c: 01 [14:58:06]MH_I2C_Read... [14:58:06]*** Stop cut motor [14:58:06]*** Cut end [14:58:06]Read from MH i2c: 01 07 00 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: 01 07 00 3B 04 00 00 00 00 00 FF 0F 54 [14:58:06]process_action close_receipt done [14:58:06]requested_data is exist [14:58:06]produce_requested_data [14:58:06]requested_item fm.sn is exist - process it [14:58:06]wFMCommunicate request_size=4 [14:58:06]MH_SAM_APDU [14:58:06]CAPDU: 80 11 00 00 [14:58:06]Write to MH i2c: E2 08 00 3C 04 80 11 00 00 00 00 00 00 BA [14:58:06]Write i2c OK [14:58:06]MH_I2C_Read... [14:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:06]Read from MH i2c: E2 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: E2 17 00 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: E2 17 00 3C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0D [14:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:58:06]wFMCommunicate OK [14:58:06]requested_item fd.num is exist - process it [14:58:06]SAM_PROTO_GetFieldsCounters [14:58:06]wFMCommunicate request_size=4 [14:58:06]MH_SAM_APDU [14:58:06]CAPDU: 80 13 00 00 [14:58:06]Write to MH i2c: E2 08 00 3D 04 80 13 00 00 00 00 00 00 BD [14:58:06]Write i2c OK [14:58:06]MH_I2C_Read... [14:58:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:06]Read from MH i2c: E2 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: E2 62 00 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: E2 62 00 3D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AE 2A 01 00 0E 04 04 00 72 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 20 [14:58:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AE 2A 01 00 0E 04 04 00 72 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 [14:58:06]wFMCommunicate OK [14:58:06]SAM_PROTO_GetFieldsCounters done [14:58:06]requested_item shift.num is exist - process it [14:58:06]requested_item shift.opened is exist - process it [14:58:06]req_shift_opened [14:58:06]FM_GetShiftState [14:58:06]SAM_PROTO_GetShiftState [14:58:06]wFMCommunicate request_size=4 [14:58:06]MH_SAM_APDU [14:58:06]CAPDU: 80 13 01 00 [14:58:06]Write to MH i2c: E2 08 00 3E 04 80 13 01 00 00 00 00 00 BF [14:58:06]Write i2c OK [14:58:06]MH_I2C_Read... [14:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:06]Read from MH i2c: E2 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: E2 0E 00 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: E2 0E 00 3E 04 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 A4 [14:58:06]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [14:58:06]wFMCommunicate OK [14:58:06]SAM_PROTO_GetShiftState done [14:58:06]FM_GetShiftState done [14:58:06]req_shift_opened done [14:58:06]requested_item shift.open_date is exist - process it [14:58:06]req_shift_open_date [14:58:06]req_shift_open_date done [14:58:06]produce_requested_data done [14:58:06]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76462,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [14:58:06]process_action_free close_receipt [14:58:06]json_value_free [14:58:06]json_value_free done [14:58:06]process_json_proto returns [14:58:06]Send response to host [14:58:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76462,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [14:58:06]free response buf [14:58:06]execute_script done [14:58:06]execute_script returns [14:58:06]free content buf [14:58:06]Sock 9.Close socket [14:58:06]Sock 9.Thread stoped [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:31]OFD Sender: No OFD packet to send [15:04:36]OFD Sender: No OFD packet to send [15:04:41]OFD Sender: No OFD packet to send [15:04:46]OFD Sender: No OFD packet to send [15:04:51]OFD Sender: No OFD packet to send [15:04:56]OFD Sender: No OFD packet to send [15:05:01]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:16]OFD Sender: No OFD packet to send [15:05:21]OFD Sender: No OFD packet to send [15:05:26]OFD Sender: No OFD packet to send [15:05:31]OFD Sender: No OFD packet to send [15:05:36]OFD Sender: No OFD packet to send [15:05:41]OFD Sender: No OFD packet to send [15:05:46]OFD Sender: No OFD packet to send [15:05:51]OFD Sender: No OFD packet to send [15:05:56]OFD Sender: No OFD packet to send [15:06:01]OFD Sender: No OFD packet to send [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:16]OFD Sender: No OFD packet to send [15:06:21]OFD Sender: No OFD packet to send [15:06:26]OFD Sender: No OFD packet to send [15:06:31]OFD Sender: No OFD packet to send [15:06:36]OFD Sender: No OFD packet to send [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:50]accept exits with 7 [15:08:50]New connection [15:08:50]New thread 3066936676 created [15:08:50]Thread 3067080036 joined [15:08:50]Waiting for new connection... [15:08:50] Sock 7.Parse request [15:08:50]Sock 7.Check first char [15:08:50]Sock 7.First char is OK [15:08:50]request: POST /json_proto HTTP/1.0 [15:08:50]Method: POST [15:08:50]URL: /json_proto [15:08:50]Method is POST - this is cgi request [15:08:50]url: /json_proto [15:08:50]query_string will be loaded in cgi processing [15:08:50]execute_cgi json_proto POST (null) [15:08:50]execute_cgi path=json_proto method=POST [15:08:50]POST find Content-Length [15:08:50]Host: 172.17.62.5:8080 [15:08:50]Content-Length: 670 [15:08:50]Content-Type: application/json [15:08:50] [15:08:50]POST finish read [15:08:50]Found Content-Length = 670 [15:08:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 7.800, "sum" : 510.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 510.00, "total" : 510.00, "payments": [ { "type": 0, "sum" : 510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:50]execute_script... [15: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)190935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 7.800, "sum" : 510.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 510.00, "total" : 510.00, "payments": [ { "type": 0, "sum" : 510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:50]POST & json_proto [15:08:50]process_json_proto [15:08:50]json parsed OK: [15:08:50]protocol is kg_v1.0 [15:08:50]action value=close_receipt [15:08:50]process_action close_receipt [15:08:50]cmd_close_receipt [15:08:50]MH_GetDate [15:08:50]Write to MH i2c: F0 00 00 3F 04 32 [15:08:50]Write i2c OK [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: F0 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: F0 09 00 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: F0 09 00 3F 04 00 03 89 22 66 F4 E9 65 64 F5 [15:08:50]GetLastDocTimeStamp 1713538684 [15:08:50]current date 1713539331 [15:08:50]FM_GetShiftState [15:08:50]SAM_PROTO_GetShiftState [15:08:50]wFMCommunicate request_size=4 [15:08:50]MH_SAM_APDU [15:08:50]CAPDU: 80 13 01 00 [15:08:50]Write to MH i2c: E2 08 00 40 04 80 13 01 00 00 00 00 00 C1 [15:08:50]Write i2c OK [15:08:50]MH_I2C_Read... [15:08:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:50]Read from MH i2c: E2 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 0E 00 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 0E 00 40 04 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 A6 [15:08:50]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:08:50]wFMCommunicate OK [15:08:50]SAM_PROTO_GetShiftState done [15:08:50]FM_GetShiftState done [15:08:50]opened in 1713486233 [15:08:50]opened+sec_in_day 1713572633 [15:08:50]quantity*price = 51012 [15:08:50]sum+1 = 51013 [15:08:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 510.00 Внесено: 510.00 СДАЧА: 0.00 НСП 1% : 4.51 НДС 12% : 54.17 Наличными: 510.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 83 19.04.2024 15:08 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76463 ФПД: 85128373787410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T150851&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76463&fm=85128373787410&tin=02508201610067®Number=0000000000091573&sum=51000 [15:08:51]StoreToDocumentArchive [15:08:51]shift 370 fd 76463 [15:08:51]save to /storage/0370/doc_00076463 [15:08:51]save last doc name /storage/0370/doc_00076463 to /storage/kkm_last_doc_name [15:08:51]save OK [15:08:51]Clear old archive folders... [15:08:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:08:51]tlvbuf is 009F84D0 [15:08:51]SAM_PROTO_ClearQueue [15:08:51]wFMCommunicate request_size=4 [15:08:51]MH_SAM_APDU [15:08:51]CAPDU: 80 09 00 00 [15:08:51]Write to MH i2c: E2 08 00 4D 04 80 09 00 00 00 00 00 00 C3 [15:08:51]Write i2c OK [15:08:51]MH_I2C_Read... [15:08:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:51]Read from MH i2c: E2 [15:08:51]MH_I2C_Read... [15:08:51]Read from MH i2c: E2 03 00 [15:08:51]MH_I2C_Read... [15:08:51]Read from MH i2c: E2 03 00 4D 04 00 90 00 C5 [15:08:51]RAPDU: 90 00 [15:08:51]wFMCommunicate OK [15:08:51]SAM_PROTO_ClearQueue done [15:08:51]KKMCreateOFDPacket [15:08:51]OFDProtocolAddRootSTLVToBuf [15:08:51]FM_MakeSignedData [15:08:51]FM_MakeSignedData [15:08:51]SAM_PROTO_SignData [15:08:51]wFMCommunicate request_size=4 [15:08:51]MH_SAM_APDU [15:08:51]CAPDU: 80 0D 01 02 [15:08:51]Write to MH i2c: E2 08 00 4E 04 80 0D 01 02 00 00 00 00 CB [15:08:51]Write i2c OK [15:08:51]MH_I2C_Read... [15:08:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:51]Read from MH i2c: E2 [15:08:51]MH_I2C_Read... [15:08:51]Read from MH i2c: E2 03 00 [15:08:51]MH_I2C_Read... [15:08:51]Read from MH i2c: E2 03 00 4E 04 00 90 00 C6 [15:08:51]RAPDU: 90 00 [15:08:51]wFMCommunicate OK [15:08:51]wFMCommunicate request_size=255 [15:08:51]MH_SAM_APDU [15:08:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 1E 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 44 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 03 89 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AF 2A 01 00 35 04 06 00 [15:08:51]Write to MH i2c: E2 02 01 4F 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 1E 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 44 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 03 89 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AF 2A 01 00 35 04 06 00 00 00 6C [15:08:51]Write i2c OK [15:08:51]MH_I2C_Read... [15:08:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:52]Read from MH i2c: E2 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: E2 03 00 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: E2 03 00 4F 04 00 90 00 C7 [15:08:52]RAPDU: 90 00 [15:08:52]wFMCommunicate OK [15:08:52]wFMCommunicate request_size=11 [15:08:52]MH_SAM_APDU [15:08:52]CAPDU: 80 0D 02 02 06 4D 6C 7E 7A DB 12 [15:08:52]Write to MH i2c: E2 0E 00 50 04 80 0D 02 02 06 00 4D 6C 7E 7A DB 12 00 00 78 [15:08:52]Write i2c OK [15:08:52]MH_I2C_Read... [15:08:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:52]Read from MH i2c: E2 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: E2 03 00 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: E2 03 00 50 04 00 90 00 C8 [15:08:52]RAPDU: 90 00 [15:08:52]wFMCommunicate OK [15:08:52]wFMCommunicate request_size=4 [15:08:52]MH_SAM_APDU [15:08:52]CAPDU: 80 0D 03 02 [15:08:52]Write to MH i2c: E2 08 00 51 04 80 0D 03 02 00 00 00 00 D0 [15:08:52]Write i2c OK [15:08:52]MH_I2C_Read... [15:08:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:52]Read from MH i2c: E2 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: E2 0B 00 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: E2 0B 00 51 04 00 FE B8 9E EA 28 58 E0 DF 90 00 4E [15:08:52]RAPDU: FE B8 9E EA 28 58 E0 DF 90 00 [15:08:52]wFMCommunicate OK [15:08:52]SAM_PROTO_SignData done [15:08:52]FM_MakeSignedData done [15:08:52]CreateOFDProtocolMessage [15:08:52]wFMCommunicate request_size=4 [15:08:52]MH_SAM_APDU [15:08:52]CAPDU: 80 11 00 00 [15:08:52]Write to MH i2c: E2 08 00 52 04 80 11 00 00 00 00 00 00 D0 [15:08:52]Write i2c OK [15:08:52]MH_I2C_Read... [15:08:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:52]Read from MH i2c: E2 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: E2 17 00 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: E2 17 00 52 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 23 [15:08:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:08:52]wFMCommunicate OK [15:08:52]CreateOFDProtocolMessage done [15:08:52]OFDSenderStorePacket 76463 [15:08:52]StoreOFDPacket docnum=76463 [15:08:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 56 8F 08 01 DF D6 5A 03 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 78 1E 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 44 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 03 89 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AF 2A 01 00 35 04 06 00 4D 6C 7E 7A DB 12 FE B8 9E EA 28 58 E0 DF [15:08:52]CheckFolder [15:08:52]dirname=/storage/ofd_packets [15:08:52]CheckFolder done [15:08:52]ProducePacketName [15:08:52]name=ofd_packets/00076463 [15:08:52]NVStorageSaveData ofd_packets/00076463 [15:08:52]File name is /storage/ofd_packets/00076463 [15:08:52]Write 302 bytes [15:08:52]NVStorageSaveData done [15:08:52]OFDSenderStorePacket done [15:08:52]KKMCreateOFDPacket done [15:08:52]NVStorageSaveData kkm_last_timestamp [15:08:52]File name is /storage/kkm_last_timestamp [15:08:52]Write 4 bytes [15:08:52]NVStorageSaveData done [15:08:52]OFD Sender: Processing packet 76463 [packets to send 128, broken 127] [15:08:52]ProducePacketName [15:08:52]name=ofd_packets/00076463 [15:08:52]OFD Sender: To server: pG, [15:08:52]CommunicateWithHost lk.salyk.kg:30040 [15:08:52]ConnectInit lk.salyk.kg [15:08:52]ExternCall_PrintAddStr [15:08:52]wPrintStart [15:08:52]Write to MH i2c: 01 00 00 53 04 57 [15:08:52]Write i2c OK [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: 01 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: 01 07 00 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: 01 07 00 53 04 00 00 00 00 00 FF 0F 6C [15:08:52]RasterBufferAndPrint [15:08:52]line Счет N : (1)190935 [15:08:52]line ИНН: 02508201610067 [15:08:52]line Контрольно-Кассовый Чек [15:08:52]line ПРОДАЖА [15:08:52]line ТРК (МРК, ГНК) : 41 [15:08:52]line Товар: 2710124130 [15:08:52]line SUPER 92-К-5 [15:08:52]line 7.800 * 65.40 [15:08:52]line = 510.12 [15:08:52]line НДС 12% НСП 1% [15:08:52]line > о реализуемом товаре [15:08:52]line ОКРУГЛЕНИЕ: -0.12 [15:08:52]line ИТОГО: 510.00 [15:08:52]line Внесено: 510.00 [15:08:52]line СДАЧА: 0.00 [15:08:52]line НСП 1% : 4.51 [15:08:52]line НДС 12% : 54.17 [15:08:52]line Наличными: 510.00 [15:08:52]line Безнал.: 0.00 [15:08:52]line Место: АЗС № 106 "Партнер Нефть" [15:08:52]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [15:08:52]line СНО: Общий режим [15:08:52]line Чек 83 19.04.2024 15:08 [15:08:52]line Смена: 370 ФФД: 1.0 [15:08:52]line ЗНМ: 0300000141 [15:08:52]line РНМ: 0000000000091573 [15:08:52]line Версия ККМ: 001 [15:08:52]line ФМ: 0000000000874652 [15:08:52]line ФД: 76463 [15:08:52]line ФПД: 85128373787410 [15:08:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T150851&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76463&fm=85128373787410&tin=02508201610067®Number=0000000000091573&sum=51000 [15:08:52]Connected sock=11 [15: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 34 36 35 32 10 01 00 00 56 8F 08 01 DF D6 5A 03 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 78 1E 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 44 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 03 89 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AF 2A 01 00 35 04 06 00 4D 6C 7E 7A DB 12 FE B8 9E EA 28 58 E0 DF [15:08:52]written 0, free lines is 4095 [15:08:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 E8 8E 47 00 DB 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 AF 2A 01 00 F4 03 04 00 8E 30 22 66 B6 04 01 00 00 A2 ED 96 94 B9 8E DB 06 [15:08:52]CommunicateWithHost err = 0 [15:08:52]CheckOFDResponse [15:08:52]1017 (14) - 77093643461234 [15:08:52]1041 (16) - 0000000000874652 [15:08:52]1040 (4) - 76463 [15:08:52]1012 (4) - 19.04.2024 08:51 [15:08:52]1206 (1) - 0 [15:08:52]OFD Sender: Remove packet 76463 [15:08:52]ProducePacketName [15:08:52]name=ofd_packets/00076463 [15:08:52]NVStorageDeleteData [15:08:53]Write to MH i2c: 01 00 00 7D 04 81 [15:08:53]Write i2c OK [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: 01 [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: 01 07 00 [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: 01 07 00 7D 04 00 00 00 00 00 D9 0C 6D [15:08:53]RasterBufferAndPrint [15:08:53]line [15:08:53]line [15:08:53]line [15:08:53]line [15:08:53]line [15:08:53]written 0, free lines is 3294 [15:08:53]MH_Cut [15:08:53]Write to MH i2c: D1 01 00 84 04 01 5A [15:08:53]Write i2c OK [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: D1 [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: D1 01 00 [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: D1 01 00 84 04 00 59 [15:08:53]Write to MH i2c: 01 00 00 85 04 89 [15:08:53]Write i2c OK [15:08:53]MH_I2C_Read... [15:08:53]OFD Sender: No OFD packet to send [15:08:53]*** Cut start [15:08:53]*** Partial cut [15:08:53]*** CUTSNS_PIN = 1 [15:08:53]*** CUTSNS_PIN = 0 [15:08:54]*** Brake cut motor [15:08:54]Read from MH i2c: 01 [15:08:54]MH_I2C_Read... [15:08:54]*** Stop cut motor [15:08:54]*** Cut end [15:08:54]Read from MH i2c: 01 07 00 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: 01 07 00 85 04 00 00 00 00 00 FF 0F 9E [15:08:54]process_action close_receipt done [15:08:54]requested_data is exist [15:08:54]produce_requested_data [15:08:54]requested_item fm.sn is exist - process it [15:08:54]wFMCommunicate request_size=4 [15:08:54]MH_SAM_APDU [15:08:54]CAPDU: 80 11 00 00 [15:08:54]Write to MH i2c: E2 08 00 86 04 80 11 00 00 00 00 00 00 04 [15:08:54]Write i2c OK [15:08:54]MH_I2C_Read... [15:08:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:54]Read from MH i2c: E2 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: E2 17 00 [15:08:54]MH_I2C_Read... [15:08:54]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 34 36 35 32 90 00 57 [15:08:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:08:54]wFMCommunicate OK [15:08:54]requested_item fd.num is exist - process it [15:08:54]SAM_PROTO_GetFieldsCounters [15:08:54]wFMCommunicate request_size=4 [15:08:54]MH_SAM_APDU [15:08:54]CAPDU: 80 13 00 00 [15:08:54]Write to MH i2c: E2 08 00 87 04 80 13 00 00 00 00 00 00 07 [15:08:54]Write i2c OK [15:08:54]MH_I2C_Read... [15:08:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:54]Read from MH i2c: E2 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: E2 62 00 [15:08:54]MH_I2C_Read... [15:08:54]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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AF 2A 01 00 0E 04 04 00 72 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 6E [15:08:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 AF 2A 01 00 0E 04 04 00 72 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 [15:08:54]wFMCommunicate OK [15:08:54]SAM_PROTO_GetFieldsCounters done [15:08:54]requested_item shift.num is exist - process it [15:08:54]requested_item shift.opened is exist - process it [15:08:54]req_shift_opened [15:08:54]FM_GetShiftState [15:08:54]SAM_PROTO_GetShiftState [15:08:54]wFMCommunicate request_size=4 [15:08:54]MH_SAM_APDU [15:08:54]CAPDU: 80 13 01 00 [15:08:54]Write to MH i2c: E2 08 00 88 04 80 13 01 00 00 00 00 00 09 [15:08:54]Write i2c OK [15:08:54]MH_I2C_Read... [15:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:54]Read from MH i2c: E2 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: E2 0E 00 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: E2 0E 00 88 04 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 EE [15:08:54]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:08:54]wFMCommunicate OK [15:08:54]SAM_PROTO_GetShiftState done [15:08:54]FM_GetShiftState done [15:08:54]req_shift_opened done [15:08:54]requested_item shift.open_date is exist - process it [15:08:54]req_shift_open_date [15:08:54]req_shift_open_date done [15:08:54]produce_requested_data done [15:08:54]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76463,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [15:08:54]process_action_free close_receipt [15:08:54]json_value_free [15:08:54]json_value_free done [15:08:54]process_json_proto returns [15:08:54]Send response to host [15:08:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76463,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [15:08:54]free response buf [15:08:54]execute_script done [15:08:54]execute_script returns [15:08:54]free content buf [15:08:54]Sock 7.Close socket [15:08:54]Sock 7.Thread stoped [15:08:58]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:50]accept exits with 9 [15:13:50]New connection [15:13:50]New thread 3067080036 created [15:13:50]Thread 3066936676 joined [15:13:50]Waiting for new connection... [15:13:50] Sock 9.Parse request [15:13:50]Sock 9.Check first char [15:13:50]Sock 9.First char is OK [15:13:50]request: POST /json_proto HTTP/1.0 [15:13:50]Method: POST [15:13:50]URL: /json_proto [15:13:50]Method is POST - this is cgi request [15:13:50]url: /json_proto [15:13:50]query_string will be loaded in cgi processing [15:13:50]execute_cgi json_proto POST (null) [15:13:50]execute_cgi path=json_proto method=POST [15:13:50]POST find Content-Length [15:13:50]Host: 172.17.62.5:8080 [15:13:50]Content-Length: 978 [15:13:50]Content-Type: application/json [15:13:50] [15:13:50]POST finish read [15:13:50]Found Content-Length = 978 [15:13:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 41.73 \u0441\u043E\u043C", "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:50]execute_script... [15:13: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)190937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 41.73 \u0441\u043E\u043C", "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:50]POST & json_proto [15:13:50]process_json_proto [15:13:50]json parsed OK: [15:13:50]protocol is kg_v1.0 [15:13:50]action value=close_receipt [15:13:50]process_action close_receipt [15:13:50]cmd_close_receipt [15:13:50]MH_GetDate [15:13:50]Write to MH i2c: F0 00 00 89 04 7C [15:13:50]Write i2c OK [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: F0 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: F0 09 00 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: F0 09 00 89 04 00 2F 8A 22 66 F4 E9 65 64 6C [15:13:50]GetLastDocTimeStamp 1713539331 [15:13:50]current date 1713539631 [15:13:50]FM_GetShiftState [15:13:50]SAM_PROTO_GetShiftState [15:13:50]wFMCommunicate request_size=4 [15:13:50]MH_SAM_APDU [15:13:50]CAPDU: 80 13 01 00 [15:13:50]Write to MH i2c: E2 08 00 8A 04 80 13 01 00 00 00 00 00 0B [15:13:50]Write i2c OK [15:13:50]MH_I2C_Read... [15:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:50]Read from MH i2c: E2 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 0E 00 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 0E 00 8A 04 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 F0 [15:13:50]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:13:50]wFMCommunicate OK [15:13:50]SAM_PROTO_GetShiftState done [15:13:50]FM_GetShiftState done [15:13:50]opened in 1713486233 [15:13:50]opened+sec_in_day 1713572633 [15:13:50]quantity*price = 300038 [15:13:50]sum+1 = 300040 [15:13:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 84 19.04.2024 15:13 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 41.73 сом ФМ: 0000000000874652 ФД: 76464 ФПД: 50914939800436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T151351&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76464&fm=50914939800436&tin=02508201610067®Number=0000000000091573&sum=300000 [15:13:51]StoreToDocumentArchive [15:13:51]shift 370 fd 76464 [15:13:51]save to /storage/0370/doc_00076464 [15:13:51]save last doc name /storage/0370/doc_00076464 to /storage/kkm_last_doc_name [15:13:51]save OK [15:13:51]Clear old archive folders... [15:13:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:13:51]tlvbuf is B6F746F0 [15:13:51]SAM_PROTO_ClearQueue [15:13:51]wFMCommunicate request_size=4 [15:13:51]MH_SAM_APDU [15:13:51]CAPDU: 80 09 00 00 [15:13:51]Write to MH i2c: E2 08 00 97 04 80 09 00 00 00 00 00 00 0D [15:13:51]Write i2c OK [15:13:51]MH_I2C_Read... [15:13:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:51]Read from MH i2c: E2 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 03 00 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 03 00 97 04 00 90 00 0F [15:13:51]RAPDU: 90 00 [15:13:51]wFMCommunicate OK [15:13:51]SAM_PROTO_ClearQueue done [15:13:51]KKMCreateOFDPacket [15:13:51]OFDProtocolAddRootSTLVToBuf [15:13:51]FM_MakeSignedData [15:13:51]FM_MakeSignedData [15:13:51]SAM_PROTO_SignData [15:13:51]wFMCommunicate request_size=4 [15:13:51]MH_SAM_APDU [15:13:51]CAPDU: 80 0D 01 02 [15:13:51]Write to MH i2c: E2 08 00 98 04 80 0D 01 02 00 00 00 00 15 [15:13:51]Write i2c OK [15:13:51]MH_I2C_Read... [15:13:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:51]Read from MH i2c: E2 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 03 00 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 03 00 98 04 00 90 00 10 [15:13:51]RAPDU: 90 00 [15:13:51]wFMCommunicate OK [15:13:51]wFMCommunicate request_size=255 [15:13:51]MH_SAM_APDU [15:13: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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 2F 8A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B0 2A 01 00 35 04 06 00 2E 4E 8E E6 [15:13:51]Write to MH i2c: E2 02 01 99 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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 2F 8A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B0 2A 01 00 35 04 06 00 2E 4E 8E E6 00 00 04 [15:13:51]Write i2c OK [15:13:51]MH_I2C_Read... [15:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:51]Read from MH i2c: E2 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 03 00 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 03 00 99 04 00 90 00 11 [15:13:51]RAPDU: 90 00 [15:13:51]wFMCommunicate OK [15:13:51]wFMCommunicate request_size=7 [15:13:51]MH_SAM_APDU [15:13:51]CAPDU: 80 0D 02 02 02 8B 74 [15:13:51]Write to MH i2c: E2 0A 00 9A 04 80 0D 02 02 02 00 8B 74 00 00 1B [15:13:51]Write i2c OK [15:13:51]MH_I2C_Read... [15:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:51]Read from MH i2c: E2 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 03 00 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 03 00 9A 04 00 90 00 12 [15:13:51]RAPDU: 90 00 [15:13:51]wFMCommunicate OK [15:13:51]wFMCommunicate request_size=4 [15:13:51]MH_SAM_APDU [15:13:51]CAPDU: 80 0D 03 02 [15:13:51]Write to MH i2c: E2 08 00 9B 04 80 0D 03 02 00 00 00 00 1A [15:13:51]Write i2c OK [15:13:51]MH_I2C_Read... [15:13:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:51]Read from MH i2c: E2 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 0B 00 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 0B 00 9B 04 00 C4 CA F7 55 41 26 4A EB 90 00 91 [15:13:51]RAPDU: C4 CA F7 55 41 26 4A EB 90 00 [15:13:51]wFMCommunicate OK [15:13:51]SAM_PROTO_SignData done [15:13:51]FM_MakeSignedData done [15:13:51]CreateOFDProtocolMessage [15:13:51]wFMCommunicate request_size=4 [15:13:51]MH_SAM_APDU [15:13:51]CAPDU: 80 11 00 00 [15:13:51]Write to MH i2c: E2 08 00 9C 04 80 11 00 00 00 00 00 00 1A [15:13:51]Write i2c OK [15:13:51]MH_I2C_Read... [15:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:51]Read from MH i2c: E2 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 17 00 [15:13:51]MH_I2C_Read... [15:13:51]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 34 36 35 32 90 00 6D [15:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:13:51]wFMCommunicate OK [15:13:51]CreateOFDProtocolMessage done [15:13:51]OFDSenderStorePacket 76464 [15:13:51]StoreOFDPacket docnum=76464 [15:13:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 48 00 04 01 BC 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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 2F 8A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B0 2A 01 00 35 04 06 00 2E 4E 8E E6 8B 74 C4 CA F7 55 41 26 4A EB [15:13:51]CheckFolder [15:13:51]dirname=/storage/ofd_packets [15:13:51]CheckFolder done [15:13:51]ProducePacketName [15:13:51]name=ofd_packets/00076464 [15:13:51]NVStorageSaveData ofd_packets/00076464 [15:13:51]File name is /storage/ofd_packets/00076464 [15:13:51]Write 298 bytes [15:13:51]NVStorageSaveData done [15:13:51]OFDSenderStorePacket done [15:13:51]KKMCreateOFDPacket done [15:13:51]NVStorageSaveData kkm_last_timestamp [15:13:51]File name is /storage/kkm_last_timestamp [15:13:51]Write 4 bytes [15:13:51]NVStorageSaveData done [15:13:51]ExternCall_PrintAddStr [15:13:51]wPrintStart [15:13:51]Write to MH i2c: 01 00 00 9D 04 A1 [15:13:51]Write i2c OK [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: 01 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: 01 07 00 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: 01 07 00 9D 04 00 00 00 00 00 FF 0F B6 [15:13:51]RasterBufferAndPrint [15:13:51]line Счет N : (1)190937 [15:13:51]line ИНН: 02508201610067 [15:13:51]line Контрольно-Кассовый Чек [15:13:51]line ПРОДАЖА [15:13:51]line ТРК (МРК, ГНК) : 61 [15:13:51]line Товар: 2710194210 [15:13:51]line ДТ-К-5 [15:13:51]line 41.730 * 71.90 [15:13:51]line = 3000.39 [15:13:51]line НДС 12% НСП 1% [15:13:51]line > о реализуемом товаре [15:13:51]line ОКРУГЛЕНИЕ: -0.39 [15:13:51]line ИТОГО: 3000.00 [15:13:51]line Внесено: 3000.00 [15:13:51]line СДАЧА: 0.00 [15:13:51]line НСП 1% : 26.55 [15:13:51]line НДС 12% : 318.62 [15:13:51]line Наличными: 3000.00 [15:13:51]line Безнал.: 0.00 [15:13:51]line Место: АЗС № 106 "Партнер Нефть" [15:13:51]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [15:13:51]line СНО: Общий режим [15:13:51]line Чек 84 19.04.2024 15:13 [15:13:51]line Смена: 370 ФФД: 1.0 [15:13:51]line ЗНМ: 0300000141 [15:13:51]line РНМ: 0000000000091573 [15:13:52]line Версия ККМ: 001 [15:13:52]line [15:13:52]line Дисконтная программа [15:13:52]line ДТ [15:13:52]line номер 106 [15:13:52]line сэкономлено 41.73 сом [15:13:52]line ФМ: 0000000000874652 [15:13:52]line ФД: 76464 [15:13:52]line ФПД: 50914939800436 [15:13:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T151351&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76464&fm=50914939800436&tin=02508201610067®Number=0000000000091573&sum=300000 [15:13:52]OFD Sender: Processing packet 76464 [packets to send 128, broken 127] [15:13:52]ProducePacketName [15:13:52]name=ofd_packets/00076464 [15:13:52]OFD Sender: To server: pG, [15:13:52]CommunicateWithHost lk.salyk.kg:30040 [15:13:52]ConnectInit lk.salyk.kg [15:13:52]written 0, free lines is 4095 [15:13:52]Connected sock=10 [15:13:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 48 00 04 01 BC 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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 2F 8A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B0 2A 01 00 35 04 06 00 2E 4E 8E E6 8B 74 C4 CA F7 55 41 26 4A EB [15:13:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 20 3E 47 00 97 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B0 2A 01 00 F4 03 04 00 BA 31 22 66 B6 04 01 00 00 9B F0 3D 6E F0 67 3B 23 [15:13:52]CommunicateWithHost err = 0 [15:13:52]CheckOFDResponse [15:13:52]1017 (14) - 77093643461234 [15:13:52]1041 (16) - 0000000000874652 [15:13:52]1040 (4) - 76464 [15:13:52]1012 (4) - 19.04.2024 08:56 [15:13:52]1206 (1) - 0 [15:13:52]OFD Sender: Remove packet 76464 [15:13:52]ProducePacketName [15:13:52]name=ofd_packets/00076464 [15:13:52]NVStorageDeleteData [15:13:52]Write to MH i2c: 01 00 00 CC 04 D0 [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: 01 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: 01 07 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: 01 07 00 CC 04 00 00 00 00 00 9B 0C 7E [15:13:52]RasterBufferAndPrint [15:13:52]line [15:13:52]line [15:13:52]line [15:13:52]line [15:13:52]line [15:13:52]written 0, free lines is 3234 [15:13:52]MH_Cut [15:13:52]Write to MH i2c: D1 01 00 D3 04 01 A9 [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: D1 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: D1 01 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: D1 01 00 D3 04 00 A8 [15:13:52]Write to MH i2c: 01 00 00 D4 04 D8 [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:53]OFD Sender: No OFD packet to send [15:13:53]*** Cut start [15:13:53]*** Partial cut [15:13:53]*** CUTSNS_PIN = 1 [15:13:53]*** CUTSNS_PIN = 0 [15:13:53]*** Brake cut motor [15:13:54]Read from MH i2c: 01 [15:13:54]MH_I2C_Read... [15:13:54]*** Stop cut motor [15:13:54]*** Cut end [15:13:54]Read from MH i2c: 01 07 00 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: 01 07 00 D4 04 00 00 00 00 00 FF 0F ED [15:13:54]process_action close_receipt done [15:13:54]requested_data is exist [15:13:54]produce_requested_data [15:13:54]requested_item fm.sn is exist - process it [15:13:54]wFMCommunicate request_size=4 [15:13:54]MH_SAM_APDU [15:13:54]CAPDU: 80 11 00 00 [15:13:54]Write to MH i2c: E2 08 00 D5 04 80 11 00 00 00 00 00 00 53 [15:13:54]Write i2c OK [15:13:54]MH_I2C_Read... [15:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:54]Read from MH i2c: E2 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: E2 17 00 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: E2 17 00 D5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A6 [15:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:13:54]wFMCommunicate OK [15:13:54]requested_item fd.num is exist - process it [15:13:54]SAM_PROTO_GetFieldsCounters [15:13:54]wFMCommunicate request_size=4 [15:13:54]MH_SAM_APDU [15:13:54]CAPDU: 80 13 00 00 [15:13:54]Write to MH i2c: E2 08 00 D6 04 80 13 00 00 00 00 00 00 56 [15:13:54]Write i2c OK [15:13:54]MH_I2C_Read... [15:13:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:54]Read from MH i2c: E2 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: E2 62 00 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: E2 62 00 D6 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B0 2A 01 00 0E 04 04 00 72 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 C1 [15:13:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B0 2A 01 00 0E 04 04 00 72 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 [15:13:54]wFMCommunicate OK [15:13:54]SAM_PROTO_GetFieldsCounters done [15:13:54]requested_item shift.num is exist - process it [15:13:54]requested_item shift.opened is exist - process it [15:13:54]req_shift_opened [15:13:54]FM_GetShiftState [15:13:54]SAM_PROTO_GetShiftState [15:13:54]wFMCommunicate request_size=4 [15:13:54]MH_SAM_APDU [15:13:54]CAPDU: 80 13 01 00 [15:13:54]Write to MH i2c: E2 08 00 D7 04 80 13 01 00 00 00 00 00 58 [15:13:54]Write i2c OK [15:13:54]MH_I2C_Read... [15:13:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:54]Read from MH i2c: E2 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: E2 0E 00 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: E2 0E 00 D7 04 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 3D [15:13:54]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:13:54]wFMCommunicate OK [15:13:54]SAM_PROTO_GetShiftState done [15:13:54]FM_GetShiftState done [15:13:54]req_shift_opened done [15:13:54]requested_item shift.open_date is exist - process it [15:13:54]req_shift_open_date [15:13:54]req_shift_open_date done [15:13:54]produce_requested_data done [15:13:54]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76464,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [15:13:54]process_action_free close_receipt [15:13:54]json_value_free [15:13:54]json_value_free done [15:13:54]process_json_proto returns [15:13:54]Send response to host [15:13:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76464,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [15:13:54]free response buf [15:13:54]execute_script done [15:13:54]execute_script returns [15:13:54]free content buf [15:13:54]Sock 9.Close socket [15:13:54]Sock 9.Thread stoped [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:28]OFD Sender: No OFD packet to send [15:15:33]OFD Sender: No OFD packet to send [15:15:35]accept exits with 7 [15:15:35]New connection [15:15:35]New thread 3066936676 created [15:15:35]Thread 3067080036 joined [15:15:35]Waiting for new connection... [15:15:35] Sock 7.Parse request [15:15:35]Sock 7.Check first char [15:15:35]Sock 7.First char is OK [15:15:35]request: POST /json_proto HTTP/1.0 [15:15:35]Method: POST [15:15:35]URL: /json_proto [15:15:35]Method is POST - this is cgi request [15:15:35]url: /json_proto [15:15:35]query_string will be loaded in cgi processing [15:15:35]execute_cgi json_proto POST (null) [15:15:35]execute_cgi path=json_proto method=POST [15:15:35]POST find Content-Length [15:15:35]Host: 172.17.62.5:8080 [15:15:35]Content-Length: 677 [15:15:35]Content-Type: application/json [15:15:35] [15:15:35]POST finish read [15:15:35]Found Content-Length = 677 [15:15:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:35]execute_script... [15:15: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)190938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:35]POST & json_proto [15:15:35]process_json_proto [15:15:35]json parsed OK: [15:15:35]protocol is kg_v1.0 [15:15:35]action value=close_receipt [15:15:35]process_action close_receipt [15:15:35]cmd_close_receipt [15:15:35]MH_GetDate [15:15:35]Write to MH i2c: F0 00 00 D8 04 CB [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: F0 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: F0 09 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: F0 09 00 D8 04 00 98 8A 22 66 F4 E9 65 64 24 [15:15:35]GetLastDocTimeStamp 1713539631 [15:15:35]current date 1713539736 [15:15:35]FM_GetShiftState [15:15:35]SAM_PROTO_GetShiftState [15:15:35]wFMCommunicate request_size=4 [15:15:35]MH_SAM_APDU [15:15:35]CAPDU: 80 13 01 00 [15:15:35]Write to MH i2c: E2 08 00 D9 04 80 13 01 00 00 00 00 00 5A [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:35]Read from MH i2c: E2 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 0E 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 0E 00 D9 04 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 3F [15:15:35]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:15:35]wFMCommunicate OK [15:15:35]SAM_PROTO_GetShiftState done [15:15:35]FM_GetShiftState done [15:15:35]opened in 1713486233 [15:15:35]opened+sec_in_day 1713572633 [15:15:35]quantity*price = 50038 [15:15:35]sum+1 = 50040 [15:15:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 85 19.04.2024 15:15 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76465 ФПД: 118086885712365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T151536&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76465&fm=118086885712365&tin=02508201610067®Number=0000000000091573&sum=50000 [15:15:36]StoreToDocumentArchive [15:15:36]shift 370 fd 76465 [15:15:36]save to /storage/0370/doc_00076465 [15:15:36]save last doc name /storage/0370/doc_00076465 to /storage/kkm_last_doc_name [15:15:36]save OK [15:15:36]Clear old archive folders... [15:15:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:36]tlvbuf is 009946A0 [15:15:36]SAM_PROTO_ClearQueue [15:15:36]wFMCommunicate request_size=4 [15:15:36]MH_SAM_APDU [15:15:36]CAPDU: 80 09 00 00 [15:15:36]Write to MH i2c: E2 08 00 E6 04 80 09 00 00 00 00 00 00 5C [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:36]Read from MH i2c: E2 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 03 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 03 00 E6 04 00 90 00 5E [15:15:36]RAPDU: 90 00 [15:15:36]wFMCommunicate OK [15:15:36]SAM_PROTO_ClearQueue done [15:15:36]KKMCreateOFDPacket [15:15:36]OFDProtocolAddRootSTLVToBuf [15:15:36]FM_MakeSignedData [15:15:36]FM_MakeSignedData [15:15:36]SAM_PROTO_SignData [15:15:36]wFMCommunicate request_size=4 [15:15:36]MH_SAM_APDU [15:15:36]CAPDU: 80 0D 01 02 [15:15:36]Write to MH i2c: E2 08 00 E7 04 80 0D 01 02 00 00 00 00 64 [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:36]Read from MH i2c: E2 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 03 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 03 00 E7 04 00 90 00 5F [15:15:36]RAPDU: 90 00 [15:15:36]wFMCommunicate OK [15:15:36]wFMCommunicate request_size=255 [15:15:36]MH_SAM_APDU [15:15: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 98 8A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B1 2A 01 00 35 04 06 00 6B [15:15:36]Write to MH i2c: E2 02 01 E8 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 98 8A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B1 2A 01 00 35 04 06 00 6B 00 00 D2 [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:36]Read from MH i2c: E2 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 03 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 03 00 E8 04 00 90 00 60 [15:15:36]RAPDU: 90 00 [15:15:36]wFMCommunicate OK [15:15:36]wFMCommunicate request_size=10 [15:15:36]MH_SAM_APDU [15:15:36]CAPDU: 80 0D 02 02 05 66 3E E0 21 ED [15:15:36]Write to MH i2c: E2 0D 00 E9 04 80 0D 02 02 05 00 66 3E E0 21 ED 00 00 03 [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:36]Read from MH i2c: E2 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 03 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 03 00 E9 04 00 90 00 61 [15:15:36]RAPDU: 90 00 [15:15:36]wFMCommunicate OK [15:15:36]wFMCommunicate request_size=4 [15:15:36]MH_SAM_APDU [15:15:36]CAPDU: 80 0D 03 02 [15:15:36]Write to MH i2c: E2 08 00 EA 04 80 0D 03 02 00 00 00 00 69 [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:36]Read from MH i2c: E2 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 0B 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 0B 00 EA 04 00 CA 77 29 C6 68 95 8D 3B 90 00 5F [15:15:36]RAPDU: CA 77 29 C6 68 95 8D 3B 90 00 [15:15:36]wFMCommunicate OK [15:15:36]SAM_PROTO_SignData done [15:15:36]FM_MakeSignedData done [15:15:36]CreateOFDProtocolMessage [15:15:36]wFMCommunicate request_size=4 [15:15:36]MH_SAM_APDU [15:15:36]CAPDU: 80 11 00 00 [15:15:36]Write to MH i2c: E2 08 00 EB 04 80 11 00 00 00 00 00 00 69 [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:36]Read from MH i2c: E2 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 17 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 17 00 EB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BC [15:15:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:15:36]wFMCommunicate OK [15:15:36]CreateOFDProtocolMessage done [15:15:36]OFDSenderStorePacket 76465 [15:15:36]StoreOFDPacket docnum=76465 [15:15:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 F6 EB 07 01 CD D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 98 8A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B1 2A 01 00 35 04 06 00 6B 66 3E E0 21 ED CA 77 29 C6 68 95 8D 3B [15:15:36]CheckFolder [15:15:36]dirname=/storage/ofd_packets [15:15:36]CheckFolder done [15:15:36]ProducePacketName [15:15:36]name=ofd_packets/00076465 [15:15:36]NVStorageSaveData ofd_packets/00076465 [15:15:36]File name is /storage/ofd_packets/00076465 [15:15:36]Write 301 bytes [15:15:36]NVStorageSaveData done [15:15:36]OFDSenderStorePacket done [15:15:36]KKMCreateOFDPacket done [15:15:36]NVStorageSaveData kkm_last_timestamp [15:15:36]File name is /storage/kkm_last_timestamp [15:15:36]Write 4 bytes [15:15:36]NVStorageSaveData done [15:15:36]ExternCall_PrintAddStr [15:15:36]wPrintStart [15:15:36]Write to MH i2c: 01 00 00 EC 04 F0 [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: 01 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: 01 07 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: 01 07 00 EC 04 00 00 00 00 00 FF 0F 05 [15:15:36]RasterBufferAndPrint [15:15:36]line Счет N : (1)190938 [15:15:36]line ИНН: 02508201610067 [15:15:36]line Контрольно-Кассовый Чек [15:15:36]line ПРОДАЖА [15:15:36]line ТРК (МРК, ГНК) : 33 [15:15:36]line Товар: 2710124130 [15:15:36]line Аи-92-К-5 [15:15:36]line 7.770 * 64.40 [15:15:36]line = 500.39 [15:15:36]line НДС 12% НСП 1% [15:15:36]line > о реализуемом товаре [15:15:36]line ОКРУГЛЕНИЕ: -0.39 [15:15:36]line ИТОГО: 500.00 [15:15:36]line Внесено: 500.00 [15:15:36]line СДАЧА: 0.00 [15:15:36]line НСП 1% : 4.43 [15:15:36]line НДС 12% : 53.14 [15:15:36]line Наличными: 500.00 [15:15:36]line Безнал.: 0.00 [15:15:36]line Место: АЗС № 106 "Партнер Нефть" [15:15:36]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [15:15:36]line СНО: Общий режим [15:15:36]line Чек 85 19.04.2024 15:15 [15:15:36]line Смена: 370 ФФД: 1.0 [15:15:36]line ЗНМ: 0300000141 [15:15:36]line РНМ: 0000000000091573 [15:15:36]line Версия ККМ: 001 [15:15:36]line ФМ: 0000000000874652 [15:15:36]line ФД: 76465 [15:15:37]line ФПД: 118086885712365 [15:15:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T151536&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76465&fm=118086885712365&tin=02508201610067®Number=0000000000091573&sum=50000 [15:15:37]OFD Sender: Processing packet 76465 [packets to send 128, broken 127] [15:15:37]ProducePacketName [15:15:37]name=ofd_packets/00076465 [15:15:37]OFD Sender: To server: pG, [15:15:37]CommunicateWithHost lk.salyk.kg:30040 [15:15:37]ConnectInit lk.salyk.kg [15:15:37]written 0, free lines is 4095 [15:15:37]Connected sock=10 [15:15:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 F6 EB 07 01 CD D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 98 8A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B1 2A 01 00 35 04 06 00 6B 66 3E E0 21 ED CA 77 29 C6 68 95 8D 3B [15:15:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 7D 36 47 00 B7 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 34 36 35 32 10 04 04 00 B1 2A 01 00 F4 03 04 00 23 32 22 66 B6 04 01 00 00 64 DF 53 4F 8C 88 8F CF [15:15:37]CommunicateWithHost err = 0 [15:15:37]CheckOFDResponse [15:15:37]1017 (14) - 77093643461234 [15:15:37]1041 (16) - 0000000000874652 [15:15:37]1040 (4) - 76465 [15:15:37]1012 (4) - 19.04.2024 08:58 [15:15:37]1206 (1) - 0 [15:15:37]OFD Sender: Remove packet 76465 [15:15:37]ProducePacketName [15:15:37]name=ofd_packets/00076465 [15:15:37]NVStorageDeleteData [15:15:37]Write to MH i2c: 01 00 00 16 05 1B [15:15:37]Write i2c OK [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: 01 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: 01 07 00 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: 01 07 00 16 05 00 00 00 00 00 E3 0C 11 [15:15:37]RasterBufferAndPrint [15:15:37]line [15:15:37]line [15:15:37]line [15:15:37]line [15:15:37]line [15:15:37]written 0, free lines is 3305 [15:15:37]MH_Cut [15:15:37]Write to MH i2c: D1 01 00 1D 05 01 F4 [15:15:37]Write i2c OK [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: D1 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: D1 01 00 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: D1 01 00 1D 05 00 F3 [15:15:37]Write to MH i2c: 01 00 00 1E 05 23 [15:15:37]Write i2c OK [15:15:37]MH_I2C_Read... [15:15:38]OFD Sender: No OFD packet to send [15:15:38]*** Cut start [15:15:38]*** Partial cut [15:15:38]*** CUTSNS_PIN = 1 [15:15:38]*** CUTSNS_PIN = 0 [15:15:38]*** Brake cut motor [15:15:39]Read from MH i2c: 01 [15:15:39]MH_I2C_Read... [15:15:39]*** Stop cut motor [15:15:39]*** Cut end [15:15:39]Read from MH i2c: 01 07 00 [15:15:39]MH_I2C_Read... [15:15:39]Read from MH i2c: 01 07 00 1E 05 00 00 00 00 00 FF 0F 38 [15:15:39]process_action close_receipt done [15:15:39]requested_data is exist [15:15:39]produce_requested_data [15:15:39]requested_item fm.sn is exist - process it [15:15:39]wFMCommunicate request_size=4 [15:15:39]MH_SAM_APDU [15:15:39]CAPDU: 80 11 00 00 [15:15:39]Write to MH i2c: E2 08 00 1F 05 80 11 00 00 00 00 00 00 9E [15:15:39]Write i2c OK [15:15:39]MH_I2C_Read... [15:15:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:39]Read from MH i2c: E2 [15:15:39]MH_I2C_Read... [15:15:39]Read from MH i2c: E2 17 00 [15:15:39]MH_I2C_Read... [15:15:39]Read from MH i2c: E2 17 00 1F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F1 [15:15:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:15:39]wFMCommunicate OK [15:15:39]requested_item fd.num is exist - process it [15:15:39]SAM_PROTO_GetFieldsCounters [15:15:39]wFMCommunicate request_size=4 [15:15:39]MH_SAM_APDU [15:15:39]CAPDU: 80 13 00 00 [15:15:39]Write to MH i2c: E2 08 00 20 05 80 13 00 00 00 00 00 00 A1 [15:15:39]Write i2c OK [15:15:39]MH_I2C_Read... [15:15:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:39]Read from MH i2c: E2 [15:15:39]MH_I2C_Read... [15:15:39]Read from MH i2c: E2 62 00 [15:15:39]MH_I2C_Read... [15:15:39]Read from MH i2c: E2 62 00 20 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B1 2A 01 00 0E 04 04 00 72 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 [15:15:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B1 2A 01 00 0E 04 04 00 72 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 [15:15:39]wFMCommunicate OK [15:15:39]SAM_PROTO_GetFieldsCounters done [15:15:39]requested_item shift.num is exist - process it [15:15:39]requested_item shift.opened is exist - process it [15:15:39]req_shift_opened [15:15:39]FM_GetShiftState [15:15:39]SAM_PROTO_GetShiftState [15:15:39]wFMCommunicate request_size=4 [15:15:39]MH_SAM_APDU [15:15:39]CAPDU: 80 13 01 00 [15:15:39]Write to MH i2c: E2 08 00 21 05 80 13 01 00 00 00 00 00 A3 [15:15:39]Write i2c OK [15:15:39]MH_I2C_Read... [15:15:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:39]Read from MH i2c: E2 [15:15:39]MH_I2C_Read... [15:15:39]Read from MH i2c: E2 0E 00 [15:15:39]MH_I2C_Read... [15:15:39]Read from MH i2c: E2 0E 00 21 05 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 88 [15:15:39]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:15:39]wFMCommunicate OK [15:15:39]SAM_PROTO_GetShiftState done [15:15:39]FM_GetShiftState done [15:15:39]req_shift_opened done [15:15:39]requested_item shift.open_date is exist - process it [15:15:39]req_shift_open_date [15:15:39]req_shift_open_date done [15:15:39]produce_requested_data done [15:15:39]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76465,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [15:15:39]process_action_free close_receipt [15:15:39]json_value_free [15:15:39]json_value_free done [15:15:39]process_json_proto returns [15:15:39]Send response to host [15:15:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76465,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [15:15:39]free response buf [15:15:39]execute_script done [15:15:39]execute_script returns [15:15:39]free content buf [15:15:39]Sock 7.Close socket [15:15:39]Sock 7.Thread stoped [15:15:43]OFD Sender: No OFD packet to send [15:15:48]OFD Sender: No OFD packet to send [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:03]OFD Sender: No OFD packet to send [15:16:08]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:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:28]OFD Sender: No OFD packet to send [15:19:33]OFD Sender: No OFD packet to send [15:19:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:58]OFD Sender: No OFD packet to send [15:20:03]OFD Sender: No OFD packet to send [15:20:08]OFD Sender: No OFD packet to send [15:20:13]OFD Sender: No OFD packet to send [15:20:18]OFD Sender: No OFD packet to send [15:20:20]accept exits with 9 [15:20:20]New connection [15:20:20]New thread 3067080036 created [15:20:20]Thread 3066936676 joined [15:20:20]Waiting for new connection... [15:20:20] Sock 9.Parse request [15:20:20]Sock 9.Check first char [15:20:20]Sock 9.First char is OK [15:20:20]request: POST /json_proto HTTP/1.0 [15:20:20]Method: POST [15:20:20]URL: /json_proto [15:20:20]Method is POST - this is cgi request [15:20:20]url: /json_proto [15:20:20]query_string will be loaded in cgi processing [15:20:20]execute_cgi json_proto POST (null) [15:20:20]execute_cgi path=json_proto method=POST [15:20:20]POST find Content-Length [15:20:20]Host: 172.17.62.5:8080 [15:20:20]Content-Length: 677 [15:20:20]Content-Type: application/json [15:20:20] [15:20:20]POST finish read [15:20:20]Found Content-Length = 677 [15:20:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190940", "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" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:20:20]execute_script... [15:20: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)190940", "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" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:20:20]POST & json_proto [15:20:20]process_json_proto [15:20:20]json parsed OK: [15:20:20]protocol is kg_v1.0 [15:20:20]action value=close_receipt [15:20:20]process_action close_receipt [15:20:20]cmd_close_receipt [15:20:20]MH_GetDate [15:20:20]Write to MH i2c: F0 00 00 22 05 16 [15:20:20]Write i2c OK [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: F0 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: F0 09 00 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: F0 09 00 22 05 00 B5 8B 22 66 F4 E9 65 64 8D [15:20:20]GetLastDocTimeStamp 1713539736 [15:20:20]current date 1713540021 [15:20:20]FM_GetShiftState [15:20:20]SAM_PROTO_GetShiftState [15:20:20]wFMCommunicate request_size=4 [15:20:20]MH_SAM_APDU [15:20:20]CAPDU: 80 13 01 00 [15:20:20]Write to MH i2c: E2 08 00 23 05 80 13 01 00 00 00 00 00 A5 [15:20:20]Write i2c OK [15:20:20]MH_I2C_Read... [15:20:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:20]Read from MH i2c: E2 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: E2 0E 00 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: E2 0E 00 23 05 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 8A [15:20:20]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:20:20]wFMCommunicate OK [15:20:20]SAM_PROTO_GetShiftState done [15:20:20]FM_GetShiftState done [15:20:20]opened in 1713486233 [15:20:20]opened+sec_in_day 1713572633 [15:20:20]quantity*price = 50038 [15:20:20]sum+1 = 50040 [15:20:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 86 19.04.2024 15:20 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76466 ФПД: 75462643947976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T152021&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76466&fm=75462643947976&tin=02508201610067®Number=0000000000091573&sum=50000 [15:20:21]StoreToDocumentArchive [15:20:21]shift 370 fd 76466 [15:20:21]save to /storage/0370/doc_00076466 [15:20:21]save last doc name /storage/0370/doc_00076466 to /storage/kkm_last_doc_name [15:20:21]save OK [15:20:21]Clear old archive folders... [15:20:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:20:21]tlvbuf is 00A13B60 [15:20:21]SAM_PROTO_ClearQueue [15:20:21]wFMCommunicate request_size=4 [15:20:21]MH_SAM_APDU [15:20:21]CAPDU: 80 09 00 00 [15:20:21]Write to MH i2c: E2 08 00 30 05 80 09 00 00 00 00 00 00 A7 [15:20:21]Write i2c OK [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 [15:20:21]MH_I2C_Read... [15:20:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:21]Read from MH i2c: E2 03 00 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 03 00 30 05 00 90 00 A9 [15:20:21]RAPDU: 90 00 [15:20:21]wFMCommunicate OK [15:20:21]SAM_PROTO_ClearQueue done [15:20:21]KKMCreateOFDPacket [15:20:21]OFDProtocolAddRootSTLVToBuf [15:20:21]FM_MakeSignedData [15:20:21]FM_MakeSignedData [15:20:21]SAM_PROTO_SignData [15:20:21]wFMCommunicate request_size=4 [15:20:21]MH_SAM_APDU [15:20:21]CAPDU: 80 0D 01 02 [15:20:21]Write to MH i2c: E2 08 00 31 05 80 0D 01 02 00 00 00 00 AF [15:20:21]Write i2c OK [15:20:21]MH_I2C_Read... [15:20:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:21]Read from MH i2c: E2 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 03 00 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 03 00 31 05 00 90 00 AA [15:20:21]RAPDU: 90 00 [15:20:21]wFMCommunicate OK [15:20:21]wFMCommunicate request_size=255 [15:20:21]MH_SAM_APDU [15:20: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 B5 8B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B2 2A 01 00 35 04 06 00 44 [15:20:21]Write to MH i2c: E2 02 01 32 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 B5 8B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B2 2A 01 00 35 04 06 00 44 00 00 16 [15:20:21]Write i2c OK [15:20:21]MH_I2C_Read... [15:20:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:21]Read from MH i2c: E2 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 03 00 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 03 00 32 05 00 90 00 AB [15:20:21]RAPDU: 90 00 [15:20:21]wFMCommunicate OK [15:20:21]wFMCommunicate request_size=10 [15:20:21]MH_SAM_APDU [15:20:21]CAPDU: 80 0D 02 02 05 A2 04 16 19 C8 [15:20:21]Write to MH i2c: E2 0D 00 33 05 80 0D 02 02 05 00 A2 04 16 19 C8 00 00 59 [15:20:21]Write i2c OK [15:20:21]MH_I2C_Read... [15:20:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:21]Read from MH i2c: E2 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 03 00 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 03 00 33 05 00 90 00 AC [15:20:21]RAPDU: 90 00 [15:20:21]wFMCommunicate OK [15:20:21]wFMCommunicate request_size=4 [15:20:21]MH_SAM_APDU [15:20:21]CAPDU: 80 0D 03 02 [15:20:21]Write to MH i2c: E2 08 00 34 05 80 0D 03 02 00 00 00 00 B4 [15:20:21]Write i2c OK [15:20:21]MH_I2C_Read... [15:20:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:21]Read from MH i2c: E2 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 0B 00 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 0B 00 34 05 00 08 DE 41 5E 3B B9 71 1A 90 00 B9 [15:20:21]RAPDU: 08 DE 41 5E 3B B9 71 1A 90 00 [15:20:21]wFMCommunicate OK [15:20:21]SAM_PROTO_SignData done [15:20:21]FM_MakeSignedData done [15:20:21]CreateOFDProtocolMessage [15:20:21]wFMCommunicate request_size=4 [15:20:21]MH_SAM_APDU [15:20:21]CAPDU: 80 11 00 00 [15:20:21]Write to MH i2c: E2 08 00 35 05 80 11 00 00 00 00 00 00 B4 [15:20:21]Write i2c OK [15:20:21]MH_I2C_Read... [15:20:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:21]Read from MH i2c: E2 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 17 00 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 17 00 35 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 07 [15:20:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:20:21]wFMCommunicate OK [15:20:21]CreateOFDProtocolMessage done [15:20:21]OFDSenderStorePacket 76466 [15:20:21]StoreOFDPacket docnum=76466 [15:20:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 EA BC 07 01 80 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 B5 8B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B2 2A 01 00 35 04 06 00 44 A2 04 16 19 C8 08 DE 41 5E 3B B9 71 1A [15:20:21]CheckFolder [15:20:21]dirname=/storage/ofd_packets [15:20:21]CheckFolder done [15:20:21]ProducePacketName [15:20:21]name=ofd_packets/00076466 [15:20:21]NVStorageSaveData ofd_packets/00076466 [15:20:21]File name is /storage/ofd_packets/00076466 [15:20:21]Write 301 bytes [15:20:21]NVStorageSaveData done [15:20:21]OFDSenderStorePacket done [15:20:21]KKMCreateOFDPacket done [15:20:21]NVStorageSaveData kkm_last_timestamp [15:20:21]File name is /storage/kkm_last_timestamp [15:20:21]Write 4 bytes [15:20:21]NVStorageSaveData done [15:20:21]ExternCall_PrintAddStr [15:20:21]wPrintStart [15:20:21]Write to MH i2c: 01 00 00 36 05 3B [15:20:21]Write i2c OK [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: 01 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: 01 07 00 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: 01 07 00 36 05 00 00 00 00 00 FF 0F 50 [15:20:21]RasterBufferAndPrint [15:20:21]line Счет N : (1)190940 [15:20:21]line ИНН: 02508201610067 [15:20:21]line Контрольно-Кассовый Чек [15:20:21]line ПРОДАЖА [15:20:21]line ТРК (МРК, ГНК) : 22 [15:20:21]line Товар: 2710124130 [15:20:21]line Аи-92-К-5 [15:20:21]line 7.770 * 64.40 [15:20:21]line = 500.39 [15:20:21]line НДС 12% НСП 1% [15:20:21]line > о реализуемом товаре [15:20:21]line ОКРУГЛЕНИЕ: -0.39 [15:20:21]line ИТОГО: 500.00 [15:20:21]line Внесено: 500.00 [15:20:21]line СДАЧА: 0.00 [15:20:21]line НСП 1% : 4.43 [15:20:21]line НДС 12% : 53.14 [15:20:21]line Наличными: 500.00 [15:20:21]line Безнал.: 0.00 [15:20:21]line Место: АЗС № 106 "Партнер Нефть" [15:20:21]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [15:20:21]line СНО: Общий режим [15:20:21]line Чек 86 19.04.2024 15:20 [15:20:21]line Смена: 370 ФФД: 1.0 [15:20:21]line ЗНМ: 0300000141 [15:20:21]line РНМ: 0000000000091573 [15:20:21]line Версия ККМ: 001 [15:20:21]line ФМ: 0000000000874652 [15:20:21]line ФД: 76466 [15:20:21]line ФПД: 75462643947976 [15:20:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T152021&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76466&fm=75462643947976&tin=02508201610067®Number=0000000000091573&sum=50000 [15:20:22]OFD Sender: Processing packet 76466 [packets to send 128, broken 127] [15:20:22]ProducePacketName [15:20:22]name=ofd_packets/00076466 [15:20:22]OFD Sender: To server: pG, [15:20:22]CommunicateWithHost lk.salyk.kg:30040 [15:20:22]ConnectInit lk.salyk.kg [15:20:22]written 0, free lines is 4095 [15:20:22]Connected sock=10 [15:20:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 EA BC 07 01 80 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 B5 8B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B2 2A 01 00 35 04 06 00 44 A2 04 16 19 C8 08 DE 41 5E 3B B9 71 1A [15:20:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 74 D8 47 00 EB 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 34 36 35 32 10 04 04 00 B2 2A 01 00 F4 03 04 00 40 33 22 66 B6 04 01 00 00 50 24 A5 24 81 3A CF C6 [15:20:22]CommunicateWithHost err = 0 [15:20:22]CheckOFDResponse [15:20:22]1017 (14) - 77093643461234 [15:20:22]1041 (16) - 0000000000874652 [15:20:22]1040 (4) - 76466 [15:20:22]1012 (4) - 19.04.2024 09:02 [15:20:22]1206 (1) - 0 [15:20:22]OFD Sender: Remove packet 76466 [15:20:22]ProducePacketName [15:20:22]name=ofd_packets/00076466 [15:20:22]NVStorageDeleteData [15:20:22]Write to MH i2c: 01 00 00 60 05 65 [15:20:22]Write i2c OK [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: 01 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: 01 07 00 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: 01 07 00 60 05 00 00 00 00 00 EA 0C 62 [15:20:22]RasterBufferAndPrint [15:20:22]line [15:20:22]line [15:20:22]line [15:20:22]line [15:20:22]line [15:20:22]written 0, free lines is 3312 [15:20:22]MH_Cut [15:20:22]Write to MH i2c: D1 01 00 67 05 01 3E [15:20:22]Write i2c OK [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: D1 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: D1 01 00 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: D1 01 00 67 05 00 3D [15:20:22]Write to MH i2c: 01 00 00 68 05 6D [15:20:22]Write i2c OK [15:20:22]MH_I2C_Read... [15:20:22]OFD Sender: No OFD packet to send [15:20:23]*** Cut start [15:20:23]*** Partial cut [15:20:23]*** CUTSNS_PIN = 1 [15:20:23]*** CUTSNS_PIN = 0 [15:20:23]*** Brake cut motor [15:20:23]Read from MH i2c: 01 [15:20:23]MH_I2C_Read... [15:20:23]*** Stop cut motor [15:20:23]*** Cut end [15:20:23]Read from MH i2c: 01 07 00 [15:20:23]MH_I2C_Read... [15:20:23]Read from MH i2c: 01 07 00 68 05 00 00 00 00 00 FF 0F 82 [15:20:23]process_action close_receipt done [15:20:23]requested_data is exist [15:20:23]produce_requested_data [15:20:23]requested_item fm.sn is exist - process it [15:20:23]wFMCommunicate request_size=4 [15:20:23]MH_SAM_APDU [15:20:23]CAPDU: 80 11 00 00 [15:20:23]Write to MH i2c: E2 08 00 69 05 80 11 00 00 00 00 00 00 E8 [15:20:23]Write i2c OK [15:20:23]MH_I2C_Read... [15:20:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:23]Read from MH i2c: E2 [15:20:23]MH_I2C_Read... [15:20:23]Read from MH i2c: E2 17 00 [15:20:23]MH_I2C_Read... [15:20:23]Read from MH i2c: E2 17 00 69 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3B [15:20:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:20:23]wFMCommunicate OK [15:20:23]requested_item fd.num is exist - process it [15:20:23]SAM_PROTO_GetFieldsCounters [15:20:23]wFMCommunicate request_size=4 [15:20:23]MH_SAM_APDU [15:20:23]CAPDU: 80 13 00 00 [15:20:23]Write to MH i2c: E2 08 00 6A 05 80 13 00 00 00 00 00 00 EB [15:20:23]Write i2c OK [15:20:23]MH_I2C_Read... [15:20:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:24]Read from MH i2c: E2 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 62 00 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 62 00 6A 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B2 2A 01 00 0E 04 04 00 72 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 5E [15:20: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B2 2A 01 00 0E 04 04 00 72 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 [15:20:24]wFMCommunicate OK [15:20:24]SAM_PROTO_GetFieldsCounters done [15:20:24]requested_item shift.num is exist - process it [15:20:24]requested_item shift.opened is exist - process it [15:20:24]req_shift_opened [15:20:24]FM_GetShiftState [15:20:24]SAM_PROTO_GetShiftState [15:20:24]wFMCommunicate request_size=4 [15:20:24]MH_SAM_APDU [15:20:24]CAPDU: 80 13 01 00 [15:20:24]Write to MH i2c: E2 08 00 6B 05 80 13 01 00 00 00 00 00 ED [15:20:24]Write i2c OK [15:20:24]MH_I2C_Read... [15:20:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:24]Read from MH i2c: E2 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 0E 00 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 0E 00 6B 05 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 D2 [15:20:24]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:20:24]wFMCommunicate OK [15:20:24]SAM_PROTO_GetShiftState done [15:20:24]FM_GetShiftState done [15:20:24]req_shift_opened done [15:20:24]requested_item shift.open_date is exist - process it [15:20:24]req_shift_open_date [15:20:24]req_shift_open_date done [15:20:24]produce_requested_data done [15:20:24]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76466,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [15:20:24]process_action_free close_receipt [15:20:24]json_value_free [15:20:24]json_value_free done [15:20:24]process_json_proto returns [15:20:24]Send response to host [15:20:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76466,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [15:20:24]free response buf [15:20:24]execute_script done [15:20:24]execute_script returns [15:20:24]free content buf [15:20:24]Sock 9.Close socket [15:20:24]Sock 9.Thread stoped [15:20:27]OFD Sender: No OFD packet to send [15:20:32]OFD Sender: No OFD packet to send [15:20:37]OFD Sender: No OFD packet to send [15:20:42]OFD Sender: No OFD packet to send [15:20:47]OFD Sender: No OFD packet to send [15:20:52]OFD Sender: No OFD packet to send [15:20:57]OFD Sender: No OFD packet to send [15:21:02]OFD Sender: No OFD packet to send [15:21:07]OFD Sender: No OFD packet to send [15:21:12]OFD Sender: No OFD packet to send [15:21:17]OFD Sender: No OFD packet to send [15:21:22]OFD Sender: No OFD packet to send [15:21:27]OFD Sender: No OFD packet to send [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:53]accept exits with 7 [15:21:53]New connection [15:21:53]New thread 3066936676 created [15:21:53]Thread 3067080036 joined [15:21:53]Waiting for new connection... [15:21:53] Sock 7.Parse request [15:21:53]Sock 7.Check first char [15:21:53]Sock 7.First char is OK [15:21:53]request: POST /json_proto HTTP/1.0 [15:21:53]Method: POST [15:21:53]URL: /json_proto [15:21:53]Method is POST - this is cgi request [15:21:53]url: /json_proto [15:21:53]query_string will be loaded in cgi processing [15:21:53]execute_cgi json_proto POST (null) [15:21:53]execute_cgi path=json_proto method=POST [15:21:53]POST find Content-Length [15:21:53]Host: 172.17.62.5:8080 [15:21:53]Content-Length: 670 [15:21:53]Content-Type: application/json [15:21:53] [15:21:53]POST finish read [15:21:53]Found Content-Length = 670 [15:21:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 7.960, "sum" : 520.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:53]execute_script... [15:21: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)190941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 7.960, "sum" : 520.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:53]POST & json_proto [15:21:53]process_json_proto [15:21:53]json parsed OK: [15:21:53]protocol is kg_v1.0 [15:21:53]action value=close_receipt [15:21:53]process_action close_receipt [15:21:53]cmd_close_receipt [15:21:53]MH_GetDate [15:21:53]Write to MH i2c: F0 00 00 6C 05 60 [15:21:53]Write i2c OK [15:21:53]MH_I2C_Read... [15:21:53]Read from MH i2c: F0 [15:21:53]MH_I2C_Read... [15:21:53]Read from MH i2c: F0 09 00 [15:21:53]MH_I2C_Read... [15:21:53]Read from MH i2c: F0 09 00 6C 05 00 13 8C 22 66 F4 E9 65 64 36 [15:21:53]GetLastDocTimeStamp 1713540021 [15:21:53]current date 1713540115 [15:21:53]FM_GetShiftState [15:21:53]SAM_PROTO_GetShiftState [15:21:53]wFMCommunicate request_size=4 [15:21:53]MH_SAM_APDU [15:21:53]CAPDU: 80 13 01 00 [15:21:53]Write to MH i2c: E2 08 00 6D 05 80 13 01 00 00 00 00 00 EF [15:21:53]Write i2c OK [15:21:53]MH_I2C_Read... [15:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:53]Read from MH i2c: E2 [15:21:53]MH_I2C_Read... [15:21:53]Read from MH i2c: E2 0E 00 [15:21:53]MH_I2C_Read... [15:21:53]Read from MH i2c: E2 0E 00 6D 05 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 D4 [15:21:53]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:21:53]wFMCommunicate OK [15:21:53]SAM_PROTO_GetShiftState done [15:21:53]FM_GetShiftState done [15:21:53]opened in 1713486233 [15:21:53]opened+sec_in_day 1713572633 [15:21:53]quantity*price = 52058 [15:21:53]sum+1 = 52059 [15:21:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.61 НДС 12% : 55.28 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 87 19.04.2024 15:21 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76467 ФПД: 269650743791871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T152155&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76467&fm=269650743791871&tin=02508201610067®Number=0000000000091573&sum=52000 [15:21:55]StoreToDocumentArchive [15:21:55]shift 370 fd 76467 [15:21:55]save to /storage/0370/doc_00076467 [15:21:55]save last doc name /storage/0370/doc_00076467 to /storage/kkm_last_doc_name [15:21:55]save OK [15:21:55]Clear old archive folders... [15:21:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:21:55]tlvbuf is 009F8730 [15:21:55]SAM_PROTO_ClearQueue [15:21:55]wFMCommunicate request_size=4 [15:21:55]MH_SAM_APDU [15:21:55]CAPDU: 80 09 00 00 [15:21:55]Write to MH i2c: E2 08 00 7A 05 80 09 00 00 00 00 00 00 F1 [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:55]Read from MH i2c: E2 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 03 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 03 00 7A 05 00 90 00 F3 [15:21:55]RAPDU: 90 00 [15:21:55]wFMCommunicate OK [15:21:55]SAM_PROTO_ClearQueue done [15:21:55]KKMCreateOFDPacket [15:21:55]OFDProtocolAddRootSTLVToBuf [15:21:55]FM_MakeSignedData [15:21:55]FM_MakeSignedData [15:21:55]SAM_PROTO_SignData [15:21:55]wFMCommunicate request_size=4 [15:21:55]MH_SAM_APDU [15:21:55]CAPDU: 80 0D 01 02 [15:21:55]Write to MH i2c: E2 08 00 7B 05 80 0D 01 02 00 00 00 00 F9 [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:55]Read from MH i2c: E2 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 03 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 03 00 7B 05 00 90 00 F4 [15:21:55]RAPDU: 90 00 [15:21:55]wFMCommunicate OK [15:21:55]wFMCommunicate request_size=255 [15:21:55]MH_SAM_APDU [15:21:55]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 18 1F 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 5A CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 13 8C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B3 2A 01 00 35 04 06 00 [15:21:55]Write to MH i2c: E2 02 01 7C 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 18 1F 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 5A CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 13 8C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B3 2A 01 00 35 04 06 00 00 00 C1 [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:55]Read from MH i2c: E2 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 03 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 03 00 7C 05 00 90 00 F5 [15:21:55]RAPDU: 90 00 [15:21:55]wFMCommunicate OK [15:21:55]wFMCommunicate request_size=11 [15:21:55]MH_SAM_APDU [15:21:55]CAPDU: 80 0D 02 02 06 F5 3E F4 CC 10 FF [15:21:55]Write to MH i2c: E2 0E 00 7D 05 80 0D 02 02 06 00 F5 3E F4 CC 10 FF 00 00 0A [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:55]Read from MH i2c: E2 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 03 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 03 00 7D 05 00 90 00 F6 [15:21:55]RAPDU: 90 00 [15:21:55]wFMCommunicate OK [15:21:55]wFMCommunicate request_size=4 [15:21:55]MH_SAM_APDU [15:21:55]CAPDU: 80 0D 03 02 [15:21:55]Write to MH i2c: E2 08 00 7E 05 80 0D 03 02 00 00 00 00 FE [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:55]Read from MH i2c: E2 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 0B 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 0B 00 7E 05 00 1D 9F FF C0 AF 7D BB 31 90 00 92 [15:21:55]RAPDU: 1D 9F FF C0 AF 7D BB 31 90 00 [15:21:55]wFMCommunicate OK [15:21:55]SAM_PROTO_SignData done [15:21:55]FM_MakeSignedData done [15:21:55]CreateOFDProtocolMessage [15:21:55]wFMCommunicate request_size=4 [15:21:55]MH_SAM_APDU [15:21:55]CAPDU: 80 11 00 00 [15:21:55]Write to MH i2c: E2 08 00 7F 05 80 11 00 00 00 00 00 00 FE [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:55]Read from MH i2c: E2 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 17 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 17 00 7F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 51 [15:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:21:55]wFMCommunicate OK [15:21:55]CreateOFDProtocolMessage done [15:21:55]OFDSenderStorePacket 76467 [15:21:55]StoreOFDPacket docnum=76467 [15:21:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 50 6E 08 01 49 52 5A 03 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 18 1F 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 5A CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 13 8C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B3 2A 01 00 35 04 06 00 F5 3E F4 CC 10 FF 1D 9F FF C0 AF 7D BB 31 [15:21:55]CheckFolder [15:21:55]dirname=/storage/ofd_packets [15:21:55]CheckFolder done [15:21:55]ProducePacketName [15:21:55]name=ofd_packets/00076467 [15:21:55]NVStorageSaveData ofd_packets/00076467 [15:21:55]File name is /storage/ofd_packets/00076467 [15:21:55]Write 302 bytes [15:21:55]NVStorageSaveData done [15:21:55]OFDSenderStorePacket done [15:21:55]KKMCreateOFDPacket done [15:21:55]NVStorageSaveData kkm_last_timestamp [15:21:55]File name is /storage/kkm_last_timestamp [15:21:55]Write 4 bytes [15:21:55]NVStorageSaveData done [15:21:55]ExternCall_PrintAddStr [15:21:55]wPrintStart [15:21:55]Write to MH i2c: 01 00 00 80 05 85 [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: 01 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: 01 07 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: 01 07 00 80 05 00 00 00 00 00 FF 0F 9A [15:21:55]RasterBufferAndPrint [15:21:55]line Счет N : (1)190941 [15:21:55]line ИНН: 02508201610067 [15:21:55]line Контрольно-Кассовый Чек [15:21:55]line ПРОДАЖА [15:21:55]line ТРК (МРК, ГНК) : 31 [15:21:55]line Товар: 2710124130 [15:21:55]line SUPER 92-К-5 [15:21:55]line 7.960 * 65.40 [15:21:55]line = 520.58 [15:21:55]line НДС 12% НСП 1% [15:21:55]line > о реализуемом товаре [15:21:55]line ОКРУГЛЕНИЕ: -0.58 [15:21:55]line ИТОГО: 520.00 [15:21:55]line Внесено: 520.00 [15:21:55]line СДАЧА: 0.00 [15:21:55]line НСП 1% : 4.61 [15:21:55]line НДС 12% : 55.28 [15:21:55]line Наличными: 520.00 [15:21:55]line Безнал.: 0.00 [15:21:55]line Место: АЗС № 106 "Партнер Нефть" [15:21:55]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [15:21:55]line СНО: Общий режим [15:21:55]line Чек 87 19.04.2024 15:21 [15:21:55]line Смена: 370 ФФД: 1.0 [15:21:55]line ЗНМ: 0300000141 [15:21:55]line РНМ: 0000000000091573 [15:21:55]line Версия ККМ: 001 [15:21:55]line ФМ: 0000000000874652 [15:21:55]line ФД: 76467 [15:21:55]line ФПД: 269650743791871 [15:21:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T152155&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76467&fm=269650743791871&tin=02508201610067®Number=0000000000091573&sum=52000 [15:21:55]OFD Sender: Processing packet 76467 [packets to send 128, broken 127] [15:21:55]ProducePacketName [15:21:55]name=ofd_packets/00076467 [15:21:55]OFD Sender: To server: pG, [15:21:55]CommunicateWithHost lk.salyk.kg:30040 [15:21:55]ConnectInit lk.salyk.kg [15:21:55]written 0, free lines is 4095 [15:21:56]Connected sock=10 [15:21:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 50 6E 08 01 49 52 5A 03 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 18 1F 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 5A CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 13 8C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B3 2A 01 00 35 04 06 00 F5 3E F4 CC 10 FF 1D 9F FF C0 AF 7D BB 31 [15:21:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 F4 0B 47 00 C7 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B3 2A 01 00 F4 03 04 00 9E 33 22 66 B6 04 01 00 00 49 1D BA B3 3B B7 9E B2 [15:21:56]CommunicateWithHost err = 0 [15:21:56]CheckOFDResponse [15:21:56]1017 (14) - 77093643461234 [15:21:56]1041 (16) - 0000000000874652 [15:21:56]1040 (4) - 76467 [15:21:56]1012 (4) - 19.04.2024 09:04 [15:21:56]1206 (1) - 0 [15:21:56]OFD Sender: Remove packet 76467 [15:21:56]ProducePacketName [15:21:56]name=ofd_packets/00076467 [15:21:56]NVStorageDeleteData [15:21:56]Write to MH i2c: 01 00 00 AA 05 AF [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: 01 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: 01 07 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: 01 07 00 AA 05 00 00 00 00 00 FC 0C BE [15:21:56]RasterBufferAndPrint [15:21:56]line [15:21:56]line [15:21:56]line [15:21:56]line [15:21:56]line [15:21:56]written 0, free lines is 3330 [15:21:56]MH_Cut [15:21:56]Write to MH i2c: D1 01 00 B1 05 01 88 [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: D1 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: D1 01 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: D1 01 00 B1 05 00 87 [15:21:56]Write to MH i2c: 01 00 00 B2 05 B7 [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]OFD Sender: No OFD packet to send [15:21:57]*** Cut start [15:21:57]*** Partial cut [15:21:57]*** CUTSNS_PIN = 1 [15:21:57]*** CUTSNS_PIN = 0 [15:21:57]*** Brake cut motor [15:21:57]Read from MH i2c: 01 [15:21:57]MH_I2C_Read... [15:21:57]*** Stop cut motor [15:21:57]*** Cut end [15:21:57]Read from MH i2c: 01 07 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: 01 07 00 B2 05 00 00 00 00 00 FF 0F CC [15:21:57]process_action close_receipt done [15:21:57]requested_data is exist [15:21:57]produce_requested_data [15:21:57]requested_item fm.sn is exist - process it [15:21:57]wFMCommunicate request_size=4 [15:21:57]MH_SAM_APDU [15:21:57]CAPDU: 80 11 00 00 [15:21:57]Write to MH i2c: E2 08 00 B3 05 80 11 00 00 00 00 00 00 32 [15:21:57]Write i2c OK [15:21:57]MH_I2C_Read... [15:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:57]Read from MH i2c: E2 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 17 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 17 00 B3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 85 [15:21:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:21:57]wFMCommunicate OK [15:21:57]requested_item fd.num is exist - process it [15:21:57]SAM_PROTO_GetFieldsCounters [15:21:57]wFMCommunicate request_size=4 [15:21:57]MH_SAM_APDU [15:21:57]CAPDU: 80 13 00 00 [15:21:57]Write to MH i2c: E2 08 00 B4 05 80 13 00 00 00 00 00 00 35 [15:21:57]Write i2c OK [15:21:57]MH_I2C_Read... [15:21:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:57]Read from MH i2c: E2 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 62 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 62 00 B4 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B3 2A 01 00 0E 04 04 00 72 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 AC [15:21:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B3 2A 01 00 0E 04 04 00 72 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 [15:21:57]wFMCommunicate OK [15:21:57]SAM_PROTO_GetFieldsCounters done [15:21:57]requested_item shift.num is exist - process it [15:21:57]requested_item shift.opened is exist - process it [15:21:57]req_shift_opened [15:21:57]FM_GetShiftState [15:21:57]SAM_PROTO_GetShiftState [15:21:57]wFMCommunicate request_size=4 [15:21:57]MH_SAM_APDU [15:21:57]CAPDU: 80 13 01 00 [15:21:57]Write to MH i2c: E2 08 00 B5 05 80 13 01 00 00 00 00 00 37 [15:21:57]Write i2c OK [15:21:57]MH_I2C_Read... [15:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:57]Read from MH i2c: E2 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 0E 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 0E 00 B5 05 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 1C [15:21:57]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:21:57]wFMCommunicate OK [15:21:57]SAM_PROTO_GetShiftState done [15:21:57]FM_GetShiftState done [15:21:57]req_shift_opened done [15:21:57]requested_item shift.open_date is exist - process it [15:21:57]req_shift_open_date [15:21:57]req_shift_open_date done [15:21:57]produce_requested_data done [15:21:57]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76467,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [15:21:57]process_action_free close_receipt [15:21:57]json_value_free [15:21:57]json_value_free done [15:21:57]process_json_proto returns [15:21:57]Send response to host [15:21:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76467,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [15:21:57]free response buf [15:21:57]execute_script done [15:21:57]execute_script returns [15:21:57]free content buf [15:21:57]Sock 7.Close socket [15:21:57]Sock 7.Thread stoped [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:53]accept exits with 9 [15:23:53]New connection [15:23:53]New thread 3067080036 created [15:23:53]Thread 3066936676 joined [15:23:53]Waiting for new connection... [15:23:53] Sock 9.Parse request [15:23:53]Sock 9.Check first char [15:23:53]Sock 9.First char is OK [15:23:53]request: POST /json_proto HTTP/1.0 [15:23:53]Method: POST [15:23:53]URL: /json_proto [15:23:53]Method is POST - this is cgi request [15:23:53]url: /json_proto [15:23:53]query_string will be loaded in cgi processing [15:23:53]execute_cgi json_proto POST (null) [15:23:53]execute_cgi path=json_proto method=POST [15:23:53]POST find Content-Length [15:23:53]Host: 172.17.62.5:8080 [15:23:53]Content-Length: 675 [15:23:53]Content-Type: application/json [15:23:53] [15:23:53]POST finish read [15:23:53]Found Content-Length = 675 [15:23:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.980, "sum" : 800.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:53]execute_script... [15:23: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)190942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.980, "sum" : 800.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:53]POST & json_proto [15:23:53]process_json_proto [15:23:53]json parsed OK: [15:23:53]protocol is kg_v1.0 [15:23:53]action value=close_receipt [15:23:53]process_action close_receipt [15:23:53]cmd_close_receipt [15:23:53]MH_GetDate [15:23:53]Write to MH i2c: F0 00 00 B6 05 AA [15:23:53]Write i2c OK [15:23:53]MH_I2C_Read... [15:23:53]Read from MH i2c: F0 [15:23:53]MH_I2C_Read... [15:23:53]Read from MH i2c: F0 09 00 [15:23:53]MH_I2C_Read... [15:23:53]Read from MH i2c: F0 09 00 B6 05 00 8A 8C 22 66 F4 E9 65 64 F7 [15:23:53]GetLastDocTimeStamp 1713540115 [15:23:53]current date 1713540234 [15:23:53]FM_GetShiftState [15:23:53]SAM_PROTO_GetShiftState [15:23:53]wFMCommunicate request_size=4 [15:23:53]MH_SAM_APDU [15:23:53]CAPDU: 80 13 01 00 [15:23:53]Write to MH i2c: E2 08 00 B7 05 80 13 01 00 00 00 00 00 39 [15:23:53]Write i2c OK [15:23:53]MH_I2C_Read... [15:23:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:53]Read from MH i2c: E2 [15:23:53]MH_I2C_Read... [15:23:53]Read from MH i2c: E2 0E 00 [15:23:53]MH_I2C_Read... [15:23:53]Read from MH i2c: E2 0E 00 B7 05 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 1E [15:23:53]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:23:53]wFMCommunicate OK [15:23:53]SAM_PROTO_GetShiftState done [15:23:53]FM_GetShiftState done [15:23:53]opened in 1713486233 [15:23:53]opened+sec_in_day 1713572633 [15:23:53]quantity*price = 80044 [15:23:53]sum+1 = 80045 [15:23:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.00 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 88 19.04.2024 15:23 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76468 ФПД: 50237738224139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T152354&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76468&fm=50237738224139&tin=02508201610067®Number=0000000000091573&sum=80000 [15:23:54]StoreToDocumentArchive [15:23:54]shift 370 fd 76468 [15:23:54]save to /storage/0370/doc_00076468 [15:23:54]save last doc name /storage/0370/doc_00076468 to /storage/kkm_last_doc_name [15:23:54]save OK [15:23:54]Clear old archive folders... [15:23:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:23:54]tlvbuf is 00A13550 [15:23:54]SAM_PROTO_ClearQueue [15:23:54]wFMCommunicate request_size=4 [15:23:54]MH_SAM_APDU [15:23:54]CAPDU: 80 09 00 00 [15:23:54]Write to MH i2c: E2 08 00 C4 05 80 09 00 00 00 00 00 00 3B [15:23:54]Write i2c OK [15:23:54]MH_I2C_Read... [15:23:54]Read from MH i2c: E2 [15:23:54]MH_I2C_Read... [15:23:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:54]Read from MH i2c: E2 03 00 [15:23:54]MH_I2C_Read... [15:23:54]Read from MH i2c: E2 03 00 C4 05 00 90 00 3D [15:23:54]RAPDU: 90 00 [15:23:54]wFMCommunicate OK [15:23:54]SAM_PROTO_ClearQueue done [15:23:54]KKMCreateOFDPacket [15:23:54]OFDProtocolAddRootSTLVToBuf [15:23:54]FM_MakeSignedData [15:23:54]FM_MakeSignedData [15:23:54]SAM_PROTO_SignData [15:23:54]wFMCommunicate request_size=4 [15:23:54]MH_SAM_APDU [15:23:54]CAPDU: 80 0D 01 02 [15:23:54]Write to MH i2c: E2 08 00 C5 05 80 0D 01 02 00 00 00 00 43 [15:23:54]Write i2c OK [15:23:54]MH_I2C_Read... [15:23:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:54]Read from MH i2c: E2 [15:23:54]MH_I2C_Read... [15:23:54]Read from MH i2c: E2 03 00 [15:23:54]MH_I2C_Read... [15:23:54]Read from MH i2c: E2 03 00 C5 05 00 90 00 3E [15:23:54]RAPDU: 90 00 [15:23:54]wFMCommunicate OK [15:23:54]wFMCommunicate request_size=255 [15:23:54]MH_SAM_APDU [15:23:54]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 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 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 34 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 58 00 00 00 F4 03 04 00 8A 8C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B4 2A 01 00 35 04 06 00 2D B0 E2 8A [15:23:54]Write to MH i2c: E2 02 01 C6 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 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 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 34 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 58 00 00 00 F4 03 04 00 8A 8C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B4 2A 01 00 35 04 06 00 2D B0 E2 8A 00 00 47 [15:23:54]Write i2c OK [15:23:54]MH_I2C_Read... [15:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:54]Read from MH i2c: E2 [15:23:54]MH_I2C_Read... [15:23:54]Read from MH i2c: E2 03 00 [15:23:54]MH_I2C_Read... [15:23:54]Read from MH i2c: E2 03 00 C6 05 00 90 00 3F [15:23:54]RAPDU: 90 00 [15:23:54]wFMCommunicate OK [15:23:54]wFMCommunicate request_size=7 [15:23:54]MH_SAM_APDU [15:23:54]CAPDU: 80 0D 02 02 02 8A 0B [15:23:54]Write to MH i2c: E2 0A 00 C7 05 80 0D 02 02 02 00 8A 0B 00 00 DF [15:23:54]Write i2c OK [15:23:54]MH_I2C_Read... [15:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:55]Read from MH i2c: E2 [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: E2 03 00 [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: E2 03 00 C7 05 00 90 00 40 [15:23:55]RAPDU: 90 00 [15:23:55]wFMCommunicate OK [15:23:55]wFMCommunicate request_size=4 [15:23:55]MH_SAM_APDU [15:23:55]CAPDU: 80 0D 03 02 [15:23:55]Write to MH i2c: E2 08 00 C8 05 80 0D 03 02 00 00 00 00 48 [15:23:55]Write i2c OK [15:23:55]MH_I2C_Read... [15:23:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:55]Read from MH i2c: E2 [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: E2 0B 00 [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: E2 0B 00 C8 05 00 D8 8D 28 00 94 E8 75 29 90 00 F0 [15:23:55]RAPDU: D8 8D 28 00 94 E8 75 29 90 00 [15:23:55]wFMCommunicate OK [15:23:55]SAM_PROTO_SignData done [15:23:55]FM_MakeSignedData done [15:23:55]CreateOFDProtocolMessage [15:23:55]wFMCommunicate request_size=4 [15:23:55]MH_SAM_APDU [15:23:55]CAPDU: 80 11 00 00 [15:23:55]Write to MH i2c: E2 08 00 C9 05 80 11 00 00 00 00 00 00 48 [15:23:55]Write i2c OK [15:23:55]MH_I2C_Read... [15:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:55]Read from MH i2c: E2 [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: E2 17 00 [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: E2 17 00 C9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9B [15:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:23:55]wFMCommunicate OK [15:23:55]CreateOFDProtocolMessage done [15:23:55]OFDSenderStorePacket 76468 [15:23:55]StoreOFDPacket docnum=76468 [15:23:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 CC B7 04 01 A7 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 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 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 34 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 58 00 00 00 F4 03 04 00 8A 8C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B4 2A 01 00 35 04 06 00 2D B0 E2 8A 8A 0B D8 8D 28 00 94 E8 75 29 [15:23:55]CheckFolder [15:23:55]dirname=/storage/ofd_packets [15:23:55]CheckFolder done [15:23:55]ProducePacketName [15:23:55]name=ofd_packets/00076468 [15:23:55]NVStorageSaveData ofd_packets/00076468 [15:23:55]File name is /storage/ofd_packets/00076468 [15:23:55]Write 298 bytes [15:23:55]NVStorageSaveData done [15:23:55]OFDSenderStorePacket done [15:23:55]KKMCreateOFDPacket done [15:23:55]NVStorageSaveData kkm_last_timestamp [15:23:55]File name is /storage/kkm_last_timestamp [15:23:55]Write 4 bytes [15:23:55]NVStorageSaveData done [15:23:55]ExternCall_PrintAddStr [15:23:55]wPrintStart [15:23:55]Write to MH i2c: 01 00 00 CA 05 CF [15:23:55]Write i2c OK [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: 01 [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: 01 07 00 [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: 01 07 00 CA 05 00 00 00 00 00 FF 0F E4 [15:23:55]RasterBufferAndPrint [15:23:55]line Счет N : (1)190942 [15:23:55]line ИНН: 02508201610067 [15:23:55]line Контрольно-Кассовый Чек [15:23:55]line ПРОДАЖА [15:23:55]line ТРК (МРК, ГНК) : 23 [15:23:55]line Товар: 2710194210 [15:23:55]line ДТ-К-5 [15:23:55]line 10.980 * 72.90 [15:23:55]line = 800.44 [15:23:55]line НДС 12% НСП 1% [15:23:55]line > о реализуемом товаре [15:23:55]line ОКРУГЛЕНИЕ: -0.44 [15:23:55]line ИТОГО: 800.00 [15:23:55]line Внесено: 800.00 [15:23:55]line СДАЧА: 0.00 [15:23:55]line НСП 1% : 7.08 [15:23:55]line НДС 12% : 85.00 [15:23:55]line Наличными: 800.00 [15:23:55]line Безнал.: 0.00 [15:23:55]line Место: АЗС № 106 "Партнер Нефть" [15:23:55]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [15:23:55]line СНО: Общий режим [15:23:55]line Чек 88 19.04.2024 15:23 [15:23:55]line Смена: 370 ФФД: 1.0 [15:23:55]line ЗНМ: 0300000141 [15:23:55]line РНМ: 0000000000091573 [15:23:55]line Версия ККМ: 001 [15:23:55]line ФМ: 0000000000874652 [15:23:55]line ФД: 76468 [15:23:55]line ФПД: 50237738224139 [15:23:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T152354&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76468&fm=50237738224139&tin=02508201610067®Number=0000000000091573&sum=80000 [15:23:55]OFD Sender: Processing packet 76468 [packets to send 128, broken 127] [15:23:55]ProducePacketName [15:23:55]name=ofd_packets/00076468 [15:23:55]OFD Sender: To server: pG, [15:23:55]CommunicateWithHost lk.salyk.kg:30040 [15:23:55]ConnectInit lk.salyk.kg [15:23:55]written 0, free lines is 4095 [15:23:55]Connected sock=10 [15:23:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 CC B7 04 01 A7 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 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 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 34 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 58 00 00 00 F4 03 04 00 8A 8C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B4 2A 01 00 35 04 06 00 2D B0 E2 8A 8A 0B D8 8D 28 00 94 E8 75 29 [15:23:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 40 23 47 00 46 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B4 2A 01 00 F4 03 04 00 15 34 22 66 B6 04 01 00 00 A7 23 84 78 00 05 21 E5 [15:23:55]CommunicateWithHost err = 0 [15:23:55]CheckOFDResponse [15:23:55]1017 (14) - 77093643461234 [15:23:55]1041 (16) - 0000000000874652 [15:23:55]1040 (4) - 76468 [15:23:55]1012 (4) - 19.04.2024 09:06 [15:23:55]1206 (1) - 0 [15:23:55]OFD Sender: Remove packet 76468 [15:23:55]ProducePacketName [15:23:55]name=ofd_packets/00076468 [15:23:55]NVStorageDeleteData [15:23:55]Write to MH i2c: 01 00 00 F4 05 F9 [15:23:55]Write i2c OK [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: 01 [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: 01 07 00 [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: 01 07 00 F4 05 00 00 00 00 00 FE 0C 0A [15:23:55]RasterBufferAndPrint [15:23:55]line [15:23:55]line [15:23:55]line [15:23:55]line [15:23:55]line [15:23:55]written 0, free lines is 3332 [15:23:55]MH_Cut [15:23:55]Write to MH i2c: D1 01 00 FB 05 01 D2 [15:23:55]Write i2c OK [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: D1 [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: D1 01 00 [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: D1 01 00 FB 05 00 D1 [15:23:55]Write to MH i2c: 01 00 00 FC 05 01 [15:23:55]Write i2c OK [15:23:55]MH_I2C_Read... [15:23:56]OFD Sender: No OFD packet to send [15:23:56]*** Cut start [15:23:56]*** Partial cut [15:23:56]*** CUTSNS_PIN = 1 [15:23:56]*** CUTSNS_PIN = 0 [15:23:56]*** Brake cut motor [15:23:57]Read from MH i2c: 01 [15:23:57]MH_I2C_Read... [15:23:57]*** Stop cut motor [15:23:57]*** Cut end [15:23:57]Read from MH i2c: 01 07 00 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: 01 07 00 FC 05 00 00 00 00 00 FF 0F 16 [15:23:57]process_action close_receipt done [15:23:57]requested_data is exist [15:23:57]produce_requested_data [15:23:57]requested_item fm.sn is exist - process it [15:23:57]wFMCommunicate request_size=4 [15:23:57]MH_SAM_APDU [15:23:57]CAPDU: 80 11 00 00 [15:23:57]Write to MH i2c: E2 08 00 FD 05 80 11 00 00 00 00 00 00 7C [15:23:57]Write i2c OK [15:23:57]MH_I2C_Read... [15:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:57]Read from MH i2c: E2 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: E2 17 00 [15:23:57]MH_I2C_Read... [15:23:57]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 34 36 35 32 90 00 CF [15:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:23:57]wFMCommunicate OK [15:23:57]requested_item fd.num is exist - process it [15:23:57]SAM_PROTO_GetFieldsCounters [15:23:57]wFMCommunicate request_size=4 [15:23:57]MH_SAM_APDU [15:23:57]CAPDU: 80 13 00 00 [15:23:57]Write to MH i2c: E2 08 00 FE 05 80 13 00 00 00 00 00 00 7F [15:23:57]Write i2c OK [15:23:57]MH_I2C_Read... [15:23:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:57]Read from MH i2c: E2 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: E2 62 00 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: E2 62 00 FE 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B4 2A 01 00 0E 04 04 00 72 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 FA [15:23:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B4 2A 01 00 0E 04 04 00 72 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 [15:23:57]wFMCommunicate OK [15:23:57]SAM_PROTO_GetFieldsCounters done [15:23:57]requested_item shift.num is exist - process it [15:23:57]requested_item shift.opened is exist - process it [15:23:57]req_shift_opened [15:23:57]FM_GetShiftState [15:23:57]SAM_PROTO_GetShiftState [15:23:57]wFMCommunicate request_size=4 [15:23:57]MH_SAM_APDU [15:23:57]CAPDU: 80 13 01 00 [15:23:57]Write to MH i2c: E2 08 00 FF 05 80 13 01 00 00 00 00 00 81 [15:23:57]Write i2c OK [15:23:57]MH_I2C_Read... [15:23:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:57]Read from MH i2c: E2 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: E2 0E 00 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: E2 0E 00 FF 05 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 66 [15:23:57]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:23:57]wFMCommunicate OK [15:23:57]SAM_PROTO_GetShiftState done [15:23:57]FM_GetShiftState done [15:23:57]req_shift_opened done [15:23:57]requested_item shift.open_date is exist - process it [15:23:57]req_shift_open_date [15:23:57]req_shift_open_date done [15:23:57]produce_requested_data done [15:23:57]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76468,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [15:23:57]process_action_free close_receipt [15:23:57]json_value_free [15:23:57]json_value_free done [15:23:57]process_json_proto returns [15:23:57]Send response to host [15:23:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76468,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [15:23:57]free response buf [15:23:57]execute_script done [15:23:57]execute_script returns [15:23:57]free content buf [15:23:57]Sock 9.Close socket [15:23:57]Sock 9.Thread stoped [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:04]accept exits with 7 [15:25:04]New connection [15:25:04]New thread 3066936676 created [15:25:04]Thread 3067080036 joined [15:25:04]Waiting for new connection... [15:25:04] Sock 7.Parse request [15:25:04]Sock 7.Check first char [15:25:04]Sock 7.First char is OK [15:25:04]request: POST /json_proto HTTP/1.0 [15:25:04]Method: POST [15:25:04]URL: /json_proto [15:25:04]Method is POST - this is cgi request [15:25:04]url: /json_proto [15:25:04]query_string will be loaded in cgi processing [15:25:04]execute_cgi json_proto POST (null) [15:25:04]execute_cgi path=json_proto method=POST [15:25:04]POST find Content-Length [15:25:04]Host: 172.17.62.5:8080 [15:25:04]Content-Length: 1206 [15:25:04]Content-Type: application/json [15:25:04] [15:25:04]POST finish read [15:25:04]Found Content-Length = 1206 [15:25:04]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190939\u000A19.04.2024 15:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 200.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 14580.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\u000A43110\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:04]execute_script... [15:25:04]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190939\u000A19.04.2024 15:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 200.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 14580.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\u000A43110\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:04]POST & json_proto [15:25:04]process_json_proto [15:25:04]json parsed OK: [15:25:04]protocol is kg_v1.0 [15:25:04]action value=print_text [15:25:04]process_action print_text [15:25:04]cmd_print_text [15:25:04]ExternCall_PrintAddStr [15:25:04]wPrintStart [15:25:04]Write to MH i2c: 01 00 00 00 06 06 [15:25:04]Write i2c OK [15:25:04]MH_I2C_Read... [15:25:04]Read from MH i2c: 01 [15:25:04]MH_I2C_Read... [15:25:04]Read from MH i2c: 01 07 00 [15:25:04]MH_I2C_Read... [15:25:04]Read from MH i2c: 01 07 00 00 06 00 00 00 00 00 FF 0F 1B [15:25:04]RasterBufferAndPrint [15:25:04]line *****ТОВАРНЫЙ ЧЕК***** [15:25:04]line АЗС 106 [15:25:04]line Партнер нефть [15:25:04]line 02508201610067 [15:25:04]line Кассир : Табалдиева М. [15:25:04]line Счет N : (1)190939 [15:25:04]line 19.04.2024 15:06 [15:25:04]line ПРОДАЖА [15:25:04]line ТРК (МРК, ГНК): 61 [15:25:04]line Вид ГСМ : 2710194210 [15:25:04]line ДТ-К-5 [15:25:04]line 200.000 x 72.90 [15:25:04]line ИТОГ: 14580.00 [15:25:04]line Тип оплаты: Талоны: Топливная Карта [15:25:04]line 43110 [15:25:04]line ______________________ [15:25:04]line (подпись) [15:25:04]written 0, free lines is 4095 [15:25:04]Write to MH i2c: 01 00 00 14 06 1A [15:25:04]Write i2c OK [15:25:04]MH_I2C_Read... [15:25:04]Read from MH i2c: 01 [15:25:04]MH_I2C_Read... [15:25:04]Read from MH i2c: 01 07 00 [15:25:04]MH_I2C_Read... [15:25:04]Read from MH i2c: 01 07 00 14 06 00 00 00 00 00 0F 0E 3E [15:25:04]RasterBufferAndPrint [15:25:04]line [15:25:04]line [15:25:04]line [15:25:04]line [15:25:04]line [15:25:04]written 0, free lines is 3600 [15:25:04]MH_Cut [15:25:04]Write to MH i2c: D1 01 00 1B 06 01 F3 [15:25:04]Write i2c OK [15:25:04]MH_I2C_Read... [15:25:04]Read from MH i2c: D1 [15:25:04]MH_I2C_Read... [15:25:04]Read from MH i2c: D1 01 00 [15:25:04]MH_I2C_Read... [15:25:04]Read from MH i2c: D1 01 00 1B 06 00 F2 [15:25:04]Write to MH i2c: 01 00 00 1C 06 22 [15:25:04]Write i2c OK [15:25:04]MH_I2C_Read... [15:25:04]*** Cut start [15:25:04]*** Partial cut [15:25:04]*** CUTSNS_PIN = 1 [15:25:04]*** CUTSNS_PIN = 0 [15:25:05]*** Brake cut motor [15:25:05]Read from MH i2c: 01 [15:25:05]MH_I2C_Read... [15:25:05]Read from MH i2c: 01 07 00 [15:25:05]MH_I2C_Read... [15:25:05]*** Stop cut motor [15:25:05]*** Cut end [15:25:05]Read from MH i2c: 01 07 00 1C 06 00 00 00 00 00 FF 0F 37 [15:25:05]process_action print_text done [15:25:05]requested_data is exist [15:25:05]produce_requested_data [15:25:05]requested_item fm.sn is exist - process it [15:25:05]wFMCommunicate request_size=4 [15:25:05]MH_SAM_APDU [15:25:05]CAPDU: 80 11 00 00 [15:25:05]Write to MH i2c: E2 08 00 1D 06 80 11 00 00 00 00 00 00 9D [15:25:05]Write i2c OK [15:25:05]MH_I2C_Read... [15:25:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:05]Read from MH i2c: E2 [15:25:05]MH_I2C_Read... [15:25:05]Read from MH i2c: E2 17 00 [15:25:05]MH_I2C_Read... [15:25:05]Read from MH i2c: E2 17 00 1D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F0 [15:25:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:25:05]wFMCommunicate OK [15:25:05]requested_item fd.num is exist - process it [15:25:05]SAM_PROTO_GetFieldsCounters [15:25:05]wFMCommunicate request_size=4 [15:25:05]MH_SAM_APDU [15:25:05]CAPDU: 80 13 00 00 [15:25:05]Write to MH i2c: E2 08 00 1E 06 80 13 00 00 00 00 00 00 A0 [15:25:05]Write i2c OK [15:25:05]MH_I2C_Read... [15:25:05]Read from MH i2c: E2 [15:25:05]MH_I2C_Read... [15:25:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:05]Read from MH i2c: E2 62 00 [15:25:05]MH_I2C_Read... [15:25:05]Read from MH i2c: E2 62 00 1E 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B4 2A 01 00 0E 04 04 00 72 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 1B [15:25: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B4 2A 01 00 0E 04 04 00 72 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 [15:25:05]wFMCommunicate OK [15:25:05]SAM_PROTO_GetFieldsCounters done [15:25:05]requested_item shift.num is exist - process it [15:25:05]requested_item shift.opened is exist - process it [15:25:05]req_shift_opened [15:25:05]FM_GetShiftState [15:25:05]SAM_PROTO_GetShiftState [15:25:05]wFMCommunicate request_size=4 [15:25:05]MH_SAM_APDU [15:25:05]CAPDU: 80 13 01 00 [15:25:05]Write to MH i2c: E2 08 00 1F 06 80 13 01 00 00 00 00 00 A2 [15:25:05]Write i2c OK [15:25:05]MH_I2C_Read... [15:25:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:05]Read from MH i2c: E2 [15:25:05]MH_I2C_Read... [15:25:05]Read from MH i2c: E2 0E 00 [15:25:05]MH_I2C_Read... [15:25:05]Read from MH i2c: E2 0E 00 1F 06 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 87 [15:25:05]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:25:05]wFMCommunicate OK [15:25:05]SAM_PROTO_GetShiftState done [15:25:05]FM_GetShiftState done [15:25:05]req_shift_opened done [15:25:05]requested_item shift.open_date is exist - process it [15:25:05]req_shift_open_date [15:25:05]req_shift_open_date done [15:25:05]produce_requested_data done [15:25:05]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76468,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [15:25:05]process_action_free print_text [15:25:05]json_value_free [15:25:05]json_value_free done [15:25:05]process_json_proto returns [15:25:05]Send response to host [15:25:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76468,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [15:25:05]free response buf [15:25:05]execute_script done [15:25:05]execute_script returns [15:25:05]free content buf [15:25:05]Sock 7.Close socket [15:25:05]Sock 7.Thread stoped [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]OFD Sender: No OFD packet to send [15:26:41]OFD Sender: No OFD packet to send [15:26:46]OFD Sender: No OFD packet to send [15:26:51]OFD Sender: No OFD packet to send [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:26]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:41]OFD Sender: No OFD packet to send [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:38]accept exits with 9 [15:36:38]New connection [15:36:38]New thread 3067080036 created [15:36:38]Thread 3066936676 joined [15:36:38]Waiting for new connection... [15:36:38] Sock 9.Parse request [15:36:38]Sock 9.Check first char [15:36:38]Sock 9.First char is OK [15:36:38]request: POST /json_proto HTTP/1.0 [15:36:38]Method: POST [15:36:38]URL: /json_proto [15:36:38]Method is POST - this is cgi request [15:36:38]url: /json_proto [15:36:38]query_string will be loaded in cgi processing [15:36:38]execute_cgi json_proto POST (null) [15:36:38]execute_cgi path=json_proto method=POST [15:36:38]POST find Content-Length [15:36:38]Host: 172.17.62.5:8080 [15:36:38]Content-Length: 671 [15:36:38]Content-Type: application/json [15:36:38] [15:36:38]POST finish read [15:36:38]Found Content-Length = 671 [15:36:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 10.710, "sum" : 700.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:38]execute_script... [15: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)190944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 10.710, "sum" : 700.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:38]POST & json_proto [15:36:38]process_json_proto [15:36:38]json parsed OK: [15:36:38]protocol is kg_v1.0 [15:36:38]action value=close_receipt [15:36:38]process_action close_receipt [15:36:38]cmd_close_receipt [15:36:38]MH_GetDate [15:36:38]Write to MH i2c: F0 00 00 20 06 15 [15:36:38]Write i2c OK [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: F0 [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: F0 09 00 [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: F0 09 00 20 06 00 88 8F 22 66 F4 E9 65 64 63 [15:36:38]GetLastDocTimeStamp 1713540234 [15:36:38]current date 1713541000 [15:36:38]FM_GetShiftState [15:36:38]SAM_PROTO_GetShiftState [15:36:38]wFMCommunicate request_size=4 [15:36:38]MH_SAM_APDU [15:36:38]CAPDU: 80 13 01 00 [15:36:38]Write to MH i2c: E2 08 00 21 06 80 13 01 00 00 00 00 00 A4 [15:36:38]Write i2c OK [15:36:38]MH_I2C_Read... [15:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:38]Read from MH i2c: E2 [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: E2 0E 00 [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: E2 0E 00 21 06 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 89 [15:36:38]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:36:38]wFMCommunicate OK [15:36:38]SAM_PROTO_GetShiftState done [15:36:38]FM_GetShiftState done [15:36:38]opened in 1713486233 [15:36:38]opened+sec_in_day 1713572633 [15:36:38]quantity*price = 70043 [15:36:38]sum+1 = 70044 [15:36:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 89 19.04.2024 15:36 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76469 ФПД: 141305322680810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T153640&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76469&fm=141305322680810&tin=02508201610067®Number=0000000000091573&sum=70000 [15:36:40]StoreToDocumentArchive [15:36:40]shift 370 fd 76469 [15:36:40]save to /storage/0370/doc_00076469 [15:36:40]save last doc name /storage/0370/doc_00076469 to /storage/kkm_last_doc_name [15:36:40]save OK [15:36:40]Clear old archive folders... [15:36:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:36:40]tlvbuf is 009FBF30 [15:36:40]SAM_PROTO_ClearQueue [15:36:40]wFMCommunicate request_size=4 [15:36:40]MH_SAM_APDU [15:36:40]CAPDU: 80 09 00 00 [15:36:40]Write to MH i2c: E2 08 00 2E 06 80 09 00 00 00 00 00 00 A6 [15:36:40]Write i2c OK [15:36:40]MH_I2C_Read... [15:36:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:40]Read from MH i2c: E2 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 03 00 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 03 00 2E 06 00 90 00 A8 [15:36:40]RAPDU: 90 00 [15:36:40]wFMCommunicate OK [15:36:40]SAM_PROTO_ClearQueue done [15:36:40]KKMCreateOFDPacket [15:36:40]OFDProtocolAddRootSTLVToBuf [15:36:40]FM_MakeSignedData [15:36:40]FM_MakeSignedData [15:36:40]SAM_PROTO_SignData [15:36:40]wFMCommunicate request_size=4 [15:36:40]MH_SAM_APDU [15:36:40]CAPDU: 80 0D 01 02 [15:36:40]Write to MH i2c: E2 08 00 2F 06 80 0D 01 02 00 00 00 00 AE [15:36:40]Write i2c OK [15:36:40]MH_I2C_Read... [15:36:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:40]Read from MH i2c: E2 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 03 00 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 03 00 2F 06 00 90 00 A9 [15:36:40]RAPDU: 90 00 [15:36:40]wFMCommunicate OK [15:36:40]wFMCommunicate request_size=255 [15:36:40]MH_SAM_APDU [15:36:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 D6 29 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 9B 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 59 00 00 00 F4 03 04 00 88 8F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B5 2A 01 00 35 04 06 00 [15:36:40]Write to MH i2c: E2 02 01 30 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 D6 29 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 9B 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 59 00 00 00 F4 03 04 00 88 8F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B5 2A 01 00 35 04 06 00 00 00 8E [15:36:40]Write i2c OK [15:36:40]MH_I2C_Read... [15:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:40]Read from MH i2c: E2 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 03 00 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 03 00 30 06 00 90 00 AA [15:36:40]RAPDU: 90 00 [15:36:40]wFMCommunicate OK [15:36:40]wFMCommunicate request_size=11 [15:36:40]MH_SAM_APDU [15:36:40]CAPDU: 80 0D 02 02 06 80 84 35 90 31 EA [15:36:40]Write to MH i2c: E2 0E 00 31 06 80 0D 02 02 06 00 80 84 35 90 31 EA 00 00 A1 [15:36:40]Write i2c OK [15:36:40]MH_I2C_Read... [15:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:40]Read from MH i2c: E2 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 03 00 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 03 00 31 06 00 90 00 AB [15:36:40]RAPDU: 90 00 [15:36:40]wFMCommunicate OK [15:36:40]wFMCommunicate request_size=4 [15:36:40]MH_SAM_APDU [15:36:40]CAPDU: 80 0D 03 02 [15:36:40]Write to MH i2c: E2 08 00 32 06 80 0D 03 02 00 00 00 00 B3 [15:36:40]Write i2c OK [15:36:40]MH_I2C_Read... [15:36:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:40]Read from MH i2c: E2 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 0B 00 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 0B 00 32 06 00 AC 21 05 2C E3 A1 62 19 90 00 B1 [15:36:40]RAPDU: AC 21 05 2C E3 A1 62 19 90 00 [15:36:40]wFMCommunicate OK [15:36:40]SAM_PROTO_SignData done [15:36:40]FM_MakeSignedData done [15:36:40]CreateOFDProtocolMessage [15:36:40]wFMCommunicate request_size=4 [15:36:40]MH_SAM_APDU [15:36:40]CAPDU: 80 11 00 00 [15:36:40]Write to MH i2c: E2 08 00 33 06 80 11 00 00 00 00 00 00 B3 [15:36:40]Write i2c OK [15:36:40]MH_I2C_Read... [15:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:40]Read from MH i2c: E2 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 17 00 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 17 00 33 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 06 [15:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:36:40]wFMCommunicate OK [15:36:40]CreateOFDProtocolMessage done [15:36:40]OFDSenderStorePacket 76469 [15:36:40]StoreOFDPacket docnum=76469 [15:36:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 65 46 08 01 D2 7E 5A 03 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 D6 29 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 9B 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 59 00 00 00 F4 03 04 00 88 8F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B5 2A 01 00 35 04 06 00 80 84 35 90 31 EA AC 21 05 2C E3 A1 62 19 [15:36:40]CheckFolder [15:36:40]dirname=/storage/ofd_packets [15:36:40]CheckFolder done [15:36:40]ProducePacketName [15:36:40]name=ofd_packets/00076469 [15:36:40]NVStorageSaveData ofd_packets/00076469 [15:36:40]File name is /storage/ofd_packets/00076469 [15:36:40]Write 302 bytes [15:36:40]NVStorageSaveData done [15:36:40]OFDSenderStorePacket done [15:36:40]KKMCreateOFDPacket done [15:36:40]NVStorageSaveData kkm_last_timestamp [15:36:40]File name is /storage/kkm_last_timestamp [15:36:40]Write 4 bytes [15:36:40]NVStorageSaveData done [15:36:40]ExternCall_PrintAddStr [15:36:40]wPrintStart [15:36:40]Write to MH i2c: 01 00 00 34 06 3A [15:36:40]Write i2c OK [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: 01 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: 01 07 00 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: 01 07 00 34 06 00 00 00 00 00 FF 0F 4F [15:36:40]RasterBufferAndPrint [15:36:40]line Счет N : (1)190944 [15:36:40]line ИНН: 02508201610067 [15:36:40]line Контрольно-Кассовый Чек [15:36:40]line ПРОДАЖА [15:36:40]line ТРК (МРК, ГНК) : 41 [15:36:40]line Товар: 2710124130 [15:36:40]line SUPER 92-К-5 [15:36:40]line 10.710 * 65.40 [15:36:40]line = 700.43 [15:36:40]line НДС 12% НСП 1% [15:36:40]line > о реализуемом товаре [15:36:40]line ОКРУГЛЕНИЕ: -0.43 [15:36:40]line ИТОГО: 700.00 [15:36:40]line Внесено: 700.00 [15:36:40]line СДАЧА: 0.00 [15:36:40]line НСП 1% : 6.20 [15:36:40]line НДС 12% : 74.38 [15:36:40]line Наличными: 700.00 [15:36:40]line Безнал.: 0.00 [15:36:40]line Место: АЗС № 106 "Партнер Нефть" [15:36:40]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [15:36:40]line СНО: Общий режим [15:36:40]line Чек 89 19.04.2024 15:36 [15:36:40]line Смена: 370 ФФД: 1.0 [15:36:40]line ЗНМ: 0300000141 [15:36:40]line РНМ: 0000000000091573 [15:36:40]line Версия ККМ: 001 [15:36:40]line ФМ: 0000000000874652 [15:36:40]line ФД: 76469 [15:36:40]line ФПД: 141305322680810 [15:36:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T153640&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76469&fm=141305322680810&tin=02508201610067®Number=0000000000091573&sum=70000 [15:36:40]written 0, free lines is 4095 [15:36:40]OFD Sender: Processing packet 76469 [packets to send 128, broken 127] [15:36:40]ProducePacketName [15:36:40]name=ofd_packets/00076469 [15:36:40]OFD Sender: To server: pG, [15:36:40]CommunicateWithHost lk.salyk.kg:30040 [15:36:40]ConnectInit lk.salyk.kg [15:36:41]Write to MH i2c: 01 00 00 5E 06 64 [15:36:41]Write i2c OK [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: 01 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: 01 07 00 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: 01 07 00 5E 06 00 00 00 00 00 EA 0C 61 [15:36:41]RasterBufferAndPrint [15:36:41]line [15:36:41]line [15:36:41]line [15:36:41]line [15:36:41]line [15:36:41]written 0, free lines is 3312 [15:36:41]MH_Cut [15:36:41]Write to MH i2c: D1 01 00 65 06 01 3D [15:36:41]Write i2c OK [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: D1 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: D1 01 00 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: D1 01 00 65 06 00 3C [15:36:41]Write to MH i2c: 01 00 00 66 06 6C [15:36:41]Write i2c OK [15:36:41]MH_I2C_Read... [15:36:42]*** Cut start [15:36:42]*** Partial cut [15:36:42]*** CUTSNS_PIN = 1 [15:36:42]*** CUTSNS_PIN = 0 [15:36:42]*** Brake cut motor [15:36:42]Read from MH i2c: 01 [15:36:42]MH_I2C_Read... [15:36:42]*** Stop cut motor [15:36:42]*** Cut end [15:36:42]Read from MH i2c: 01 07 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: 01 07 00 66 06 00 00 00 00 00 FF 0F 81 [15:36:42]process_action close_receipt done [15:36:42]requested_data is exist [15:36:42]produce_requested_data [15:36:42]requested_item fm.sn is exist - process it [15:36:42]wFMCommunicate request_size=4 [15:36:42]MH_SAM_APDU [15:36:42]CAPDU: 80 11 00 00 [15:36:42]Write to MH i2c: E2 08 00 67 06 80 11 00 00 00 00 00 00 E7 [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:42]Read from MH i2c: E2 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 17 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 17 00 67 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3A [15:36:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:36:42]wFMCommunicate OK [15:36:42]requested_item fd.num is exist - process it [15:36:42]SAM_PROTO_GetFieldsCounters [15:36:42]wFMCommunicate request_size=4 [15:36:42]MH_SAM_APDU [15:36:42]CAPDU: 80 13 00 00 [15:36:42]Write to MH i2c: E2 08 00 68 06 80 13 00 00 00 00 00 00 EA [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:42]Read from MH i2c: E2 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 62 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 62 00 68 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B5 2A 01 00 0E 04 04 00 72 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 69 [15:36: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B5 2A 01 00 0E 04 04 00 72 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 [15:36:42]wFMCommunicate OK [15:36:42]SAM_PROTO_GetFieldsCounters done [15:36:42]requested_item shift.num is exist - process it [15:36:42]requested_item shift.opened is exist - process it [15:36:42]req_shift_opened [15:36:42]FM_GetShiftState [15:36:42]SAM_PROTO_GetShiftState [15:36:42]wFMCommunicate request_size=4 [15:36:42]MH_SAM_APDU [15:36:42]CAPDU: 80 13 01 00 [15:36:42]Write to MH i2c: E2 08 00 69 06 80 13 01 00 00 00 00 00 EC [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:43]Read from MH i2c: E2 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 0E 00 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 0E 00 69 06 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 D1 [15:36:43]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:36:43]wFMCommunicate OK [15:36:43]SAM_PROTO_GetShiftState done [15:36:43]FM_GetShiftState done [15:36:43]req_shift_opened done [15:36:43]requested_item shift.open_date is exist - process it [15:36:43]req_shift_open_date [15:36:43]req_shift_open_date done [15:36:43]produce_requested_data done [15:36:43]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76469,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [15:36:43]process_action_free close_receipt [15:36:43]json_value_free [15:36:43]json_value_free done [15:36:43]process_json_proto returns [15:36:43]Send response to host [15:36:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76469,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [15:36:43]free response buf [15:36:43]execute_script done [15:36:43]execute_script returns [15:36:43]free content buf [15:36:43]Sock 9.Close socket [15:36:43]Sock 9.Thread stoped [15:38:51]ConnectInit Can't connect to host [15:38:51]CommunicateWithHost connect error [15:38:51]CommunicateWithHost err = -1 [15:38:51]OFD Sender: Server communicate error [15:38:56]OFD Sender: Processing packet 76469 [packets to send 128, broken 127] [15:38:56]ProducePacketName [15:38:56]name=ofd_packets/00076469 [15:38:56]OFD Sender: To server: pG, [15:38:56]CommunicateWithHost lk.salyk.kg:30040 [15:38:56]ConnectInit lk.salyk.kg [15:38:56]Connected sock=9 [15:38:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 65 46 08 01 D2 7E 5A 03 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 D6 29 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 9B 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 59 00 00 00 F4 03 04 00 88 8F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B5 2A 01 00 35 04 06 00 80 84 35 90 31 EA AC 21 05 2C E3 A1 62 19 [15:38:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 75 68 47 00 E7 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 34 36 35 32 10 04 04 00 B5 2A 01 00 F4 03 04 00 9A 37 22 66 B6 04 01 00 00 C4 2D 05 D6 D8 6A 4B F8 [15:38:56]CommunicateWithHost err = 0 [15:38:56]CheckOFDResponse [15:38:56]1017 (14) - 77093643461234 [15:38:56]1041 (16) - 0000000000874652 [15:38:56]1040 (4) - 76469 [15:38:56]1012 (4) - 19.04.2024 09:21 [15:38:56]1206 (1) - 0 [15:38:56]OFD Sender: Remove packet 76469 [15:38:56]ProducePacketName [15:38:56]name=ofd_packets/00076469 [15:38:56]NVStorageDeleteData [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:16]accept exits with 7 [15:40:16]New connection [15:40:16]New thread 3066936676 created [15:40:16]Thread 3067080036 joined [15:40:16]Waiting for new connection... [15:40:16] Sock 7.Parse request [15:40:16]Sock 7.Check first char [15:40:16]Sock 7.First char is OK [15:40:16]request: POST /json_proto HTTP/1.0 [15:40:16]Method: POST [15:40:16]URL: /json_proto [15:40:16]Method is POST - this is cgi request [15:40:16]url: /json_proto [15:40:16]query_string will be loaded in cgi processing [15:40:16]execute_cgi json_proto POST (null) [15:40:16]execute_cgi path=json_proto method=POST [15:40:16]POST find Content-Length [15:40:16]Host: 172.17.62.5:8080 [15:40:16]Content-Length: 990 [15:40:16]Content-Type: application/json [15:40:16] [15:40:16]POST finish read [15:40:16]Found Content-Length = 990 [15:40:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 36.600, "sum" : 1160.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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 36.60 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1160.00, "payments": [ { "type": 0, "sum" : 1160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:16]execute_script... [15:40: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)190943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 36.600, "sum" : 1160.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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 36.60 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1160.00, "payments": [ { "type": 0, "sum" : 1160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:16]POST & json_proto [15:40:16]process_json_proto [15:40:16]json parsed OK: [15:40:16]protocol is kg_v1.0 [15:40:16]action value=close_receipt [15:40:16]process_action close_receipt [15:40:16]cmd_close_receipt [15:40:16]MH_GetDate [15:40:16]Write to MH i2c: F0 00 00 6A 06 5F [15:40:16]Write i2c OK [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: F0 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: F0 09 00 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: F0 09 00 6A 06 00 61 90 22 66 F4 E9 65 64 87 [15:40:16]GetLastDocTimeStamp 1713541000 [15:40:16]current date 1713541217 [15:40:16]FM_GetShiftState [15:40:16]SAM_PROTO_GetShiftState [15:40:16]wFMCommunicate request_size=4 [15:40:16]MH_SAM_APDU [15:40:16]CAPDU: 80 13 01 00 [15:40:16]Write to MH i2c: E2 08 00 6B 06 80 13 01 00 00 00 00 00 EE [15:40:16]Write i2c OK [15:40:16]MH_I2C_Read... [15:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:16]Read from MH i2c: E2 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: E2 0E 00 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: E2 0E 00 6B 06 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 D3 [15:40:16]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:40:16]wFMCommunicate OK [15:40:16]SAM_PROTO_GetShiftState done [15:40:16]FM_GetShiftState done [15:40:16]opened in 1713486233 [15:40:16]opened+sec_in_day 1713572633 [15:40:16]quantity*price = 116022 [15:40:16]sum+1 = 116023 [15:40:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1160.00 Внесено: 2000.00 СДАЧА: 840.00 НСП 1% : 10.27 НДС 12% : 123.21 Наличными: 1160.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 90 19.04.2024 15:40 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 36.60 сом ФМ: 0000000000874652 ФД: 76470 ФПД: 167309035275054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T154017&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76470&fm=167309035275054&tin=02508201610067®Number=0000000000091573&sum=116000 [15:40:17]StoreToDocumentArchive [15:40:17]shift 370 fd 76470 [15:40:17]save to /storage/0370/doc_00076470 [15:40:17]save last doc name /storage/0370/doc_00076470 to /storage/kkm_last_doc_name [15:40:17]save OK [15:40:17]Clear old archive folders... [15:40:17]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:40:17]tlvbuf is 009E8690 [15:40:17]SAM_PROTO_ClearQueue [15:40:17]wFMCommunicate request_size=4 [15:40:17]MH_SAM_APDU [15:40:17]CAPDU: 80 09 00 00 [15:40:17]Write to MH i2c: E2 08 00 78 06 80 09 00 00 00 00 00 00 F0 [15:40:17]Write i2c OK [15:40:17]MH_I2C_Read... [15:40:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:17]Read from MH i2c: E2 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 03 00 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 03 00 78 06 00 90 00 F2 [15:40:17]RAPDU: 90 00 [15:40:17]wFMCommunicate OK [15:40:17]SAM_PROTO_ClearQueue done [15:40:17]KKMCreateOFDPacket [15:40:17]OFDProtocolAddRootSTLVToBuf [15:40:17]FM_MakeSignedData [15:40:17]FM_MakeSignedData [15:40:17]SAM_PROTO_SignData [15:40:17]wFMCommunicate request_size=4 [15:40:17]MH_SAM_APDU [15:40:17]CAPDU: 80 0D 01 02 [15:40:17]Write to MH i2c: E2 08 00 79 06 80 0D 01 02 00 00 00 00 F8 [15:40:17]Write i2c OK [15:40:17]MH_I2C_Read... [15:40:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:17]Read from MH i2c: E2 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 03 00 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 03 00 79 06 00 90 00 F3 [15:40:17]RAPDU: 90 00 [15:40:17]wFMCommunicate OK [15:40:17]wFMCommunicate request_size=255 [15:40:17]MH_SAM_APDU [15:40:17]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F8 8E 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 36 C5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 C5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 30 00 00 00 00 07 04 06 00 20 C5 01 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 61 90 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B6 2A 01 00 35 04 06 00 98 2A [15:40:17]Write to MH i2c: E2 02 01 7A 06 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F8 8E 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 36 C5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 C5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 30 00 00 00 00 07 04 06 00 20 C5 01 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 61 90 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B6 2A 01 00 35 04 06 00 98 2A 00 00 A6 [15:40:17]Write i2c OK [15:40:17]MH_I2C_Read... [15:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:17]Read from MH i2c: E2 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 03 00 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 03 00 7A 06 00 90 00 F4 [15:40:17]RAPDU: 90 00 [15:40:17]wFMCommunicate OK [15:40:17]wFMCommunicate request_size=9 [15:40:17]MH_SAM_APDU [15:40:17]CAPDU: 80 0D 02 02 04 AB 9D 83 2E [15:40:17]Write to MH i2c: E2 0C 00 7B 06 80 0D 02 02 04 00 AB 9D 83 2E 00 00 FC [15:40:17]Write i2c OK [15:40:17]MH_I2C_Read... [15:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:17]Read from MH i2c: E2 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 03 00 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 03 00 7B 06 00 90 00 F5 [15:40:17]RAPDU: 90 00 [15:40:17]wFMCommunicate OK [15:40:17]wFMCommunicate request_size=4 [15:40:17]MH_SAM_APDU [15:40:17]CAPDU: 80 0D 03 02 [15:40:17]Write to MH i2c: E2 08 00 7C 06 80 0D 03 02 00 00 00 00 FD [15:40:17]Write i2c OK [15:40:17]MH_I2C_Read... [15:40:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:17]Read from MH i2c: E2 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 0B 00 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 0B 00 7C 06 00 CB A7 17 80 F1 A4 9C F1 90 00 29 [15:40:17]RAPDU: CB A7 17 80 F1 A4 9C F1 90 00 [15:40:17]wFMCommunicate OK [15:40:17]SAM_PROTO_SignData done [15:40:17]FM_MakeSignedData done [15:40:17]CreateOFDProtocolMessage [15:40:17]wFMCommunicate request_size=4 [15:40:17]MH_SAM_APDU [15:40:17]CAPDU: 80 11 00 00 [15:40:17]Write to MH i2c: E2 08 00 7D 06 80 11 00 00 00 00 00 00 FD [15:40:17]Write i2c OK [15:40:17]MH_I2C_Read... [15:40:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:17]Read from MH i2c: E2 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 17 00 [15:40:17]MH_I2C_Read... [15:40:17]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 34 36 35 32 90 00 50 [15:40:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:40:17]wFMCommunicate OK [15:40:17]CreateOFDProtocolMessage done [15:40:17]OFDSenderStorePacket 76470 [15:40:17]StoreOFDPacket docnum=76470 [15:40:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 5B CA 06 01 41 62 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F8 8E 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 36 C5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 C5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 30 00 00 00 00 07 04 06 00 20 C5 01 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 61 90 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B6 2A 01 00 35 04 06 00 98 2A AB 9D 83 2E CB A7 17 80 F1 A4 9C F1 [15:40:17]CheckFolder [15:40:17]dirname=/storage/ofd_packets [15:40:17]CheckFolder done [15:40:17]ProducePacketName [15:40:17]name=ofd_packets/00076470 [15:40:17]NVStorageSaveData ofd_packets/00076470 [15:40:17]File name is /storage/ofd_packets/00076470 [15:40:17]Write 300 bytes [15:40:17]NVStorageSaveData done [15:40:17]OFDSenderStorePacket done [15:40:17]KKMCreateOFDPacket done [15:40:17]NVStorageSaveData kkm_last_timestamp [15:40:17]File name is /storage/kkm_last_timestamp [15:40:17]Write 4 bytes [15:40:17]NVStorageSaveData done [15:40:17]ExternCall_PrintAddStr [15:40:17]wPrintStart [15:40:17]Write to MH i2c: 01 00 00 7E 06 84 [15:40:17]Write i2c OK [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: 01 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: 01 07 00 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: 01 07 00 7E 06 00 00 00 00 00 FF 0F 99 [15:40:17]RasterBufferAndPrint [15:40:17]line Счет N : (1)190943 [15:40:17]line ИНН: 02508201610067 [15:40:17]line Контрольно-Кассовый Чек [15:40:17]line ПРОДАЖА [15:40:17]line ТРК (МРК, ГНК) : 71 [15:40:17]line Товар: 2711190000 [15:40:17]line ГАЗ-К-5 [15:40:17]line 36.600 * 31.70 [15:40:17]line = 1160.22 [15:40:17]line НДС 12% НСП 1% [15:40:17]line > о реализуемом товаре [15:40:17]line ОКРУГЛЕНИЕ: -0.22 [15:40:17]line ИТОГО: 1160.00 [15:40:17]line Внесено: 2000.00 [15:40:17]line СДАЧА: 840.00 [15:40:17]line НСП 1% : 10.27 [15:40:17]line НДС 12% : 123.21 [15:40:17]line Наличными: 1160.00 [15:40:17]line Безнал.: 0.00 [15:40:17]line Место: АЗС № 106 "Партнер Нефть" [15:40:17]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [15:40:17]line СНО: Общий режим [15:40:17]line Чек 90 19.04.2024 15:40 [15:40:17]line Смена: 370 ФФД: 1.0 [15:40:17]line ЗНМ: 0300000141 [15:40:17]line РНМ: 0000000000091573 [15:40:17]line Версия ККМ: 001 [15:40:17]line [15:40:17]line Дисконтная программа [15:40:17]line СУГ [15:40:17]line номер 106 [15:40:17]line сэкономлено 36.60 сом [15:40:17]line ФМ: 0000000000874652 [15:40:18]line ФД: 76470 [15:40:18]line ФПД: 167309035275054 [15:40:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T154017&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76470&fm=167309035275054&tin=02508201610067®Number=0000000000091573&sum=116000 [15:40:18]OFD Sender: Processing packet 76470 [packets to send 128, broken 127] [15:40:18]ProducePacketName [15:40:18]name=ofd_packets/00076470 [15:40:18]OFD Sender: To server: pG, [15:40:18]CommunicateWithHost lk.salyk.kg:30040 [15:40:18]ConnectInit lk.salyk.kg [15:40:18]written 0, free lines is 4095 [15:40:18]Connected sock=10 [15:40:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 5B CA 06 01 41 62 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F8 8E 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 36 C5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 C5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 30 00 00 00 00 07 04 06 00 20 C5 01 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 61 90 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B6 2A 01 00 35 04 06 00 98 2A AB 9D 83 2E CB A7 17 80 F1 A4 9C F1 [15:40:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 44 DD 47 00 EF 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 34 36 35 32 10 04 04 00 B6 2A 01 00 F4 03 04 00 EC 37 22 66 B6 04 01 00 00 34 D8 4C B0 1A D0 FA B4 [15:40:18]CommunicateWithHost err = 0 [15:40:18]CheckOFDResponse [15:40:18]1017 (14) - 77093643461234 [15:40:18]1041 (16) - 0000000000874652 [15:40:18]1040 (4) - 76470 [15:40:18]1012 (4) - 19.04.2024 09:22 [15:40:18]1206 (1) - 0 [15:40:18]OFD Sender: Remove packet 76470 [15:40:18]ProducePacketName [15:40:18]name=ofd_packets/00076470 [15:40:18]NVStorageDeleteData [15:40:18]Write to MH i2c: 01 00 00 AD 06 B3 [15:40:18]Write i2c OK [15:40:18]MH_I2C_Read... [15:40:18]Read from MH i2c: 01 [15:40:18]MH_I2C_Read... [15:40:18]Read from MH i2c: 01 07 00 [15:40:18]MH_I2C_Read... [15:40:18]Read from MH i2c: 01 07 00 AD 06 00 00 00 00 00 8C 0C 52 [15:40:18]RasterBufferAndPrint [15:40:18]line [15:40:18]line [15:40:18]line [15:40:18]line [15:40:18]line [15:40:18]written 0, free lines is 3219 [15:40:18]MH_Cut [15:40:18]Write to MH i2c: D1 01 00 B4 06 01 8C [15:40:18]Write i2c OK [15:40:18]MH_I2C_Read... [15:40:18]Read from MH i2c: D1 [15:40:18]MH_I2C_Read... [15:40:18]Read from MH i2c: D1 01 00 [15:40:18]MH_I2C_Read... [15:40:18]Read from MH i2c: D1 01 00 B4 06 00 8B [15:40:18]Write to MH i2c: 01 00 00 B5 06 BB [15:40:18]Write i2c OK [15:40:18]MH_I2C_Read... [15:40:19]OFD Sender: No OFD packet to send [15:40:19]*** Cut start [15:40:19]*** Partial cut [15:40:19]*** CUTSNS_PIN = 1 [15:40:19]*** CUTSNS_PIN = 0 [15:40:19]*** Brake cut motor [15:40:20]Read from MH i2c: 01 [15:40:20]MH_I2C_Read... [15:40:20]*** Stop cut motor [15:40:20]*** Cut end [15:40:20]Read from MH i2c: 01 07 00 [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: 01 07 00 B5 06 00 00 00 00 00 FF 0F D0 [15:40:20]process_action close_receipt done [15:40:20]requested_data is exist [15:40:20]produce_requested_data [15:40:20]requested_item fm.sn is exist - process it [15:40:20]wFMCommunicate request_size=4 [15:40:20]MH_SAM_APDU [15:40:20]CAPDU: 80 11 00 00 [15:40:20]Write to MH i2c: E2 08 00 B6 06 80 11 00 00 00 00 00 00 36 [15:40:20]Write i2c OK [15:40:20]MH_I2C_Read... [15:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:20]Read from MH i2c: E2 [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: E2 17 00 [15:40:20]MH_I2C_Read... [15:40:20]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 34 36 35 32 90 00 89 [15:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:40:20]wFMCommunicate OK [15:40:20]requested_item fd.num is exist - process it [15:40:20]SAM_PROTO_GetFieldsCounters [15:40:20]wFMCommunicate request_size=4 [15:40:20]MH_SAM_APDU [15:40:20]CAPDU: 80 13 00 00 [15:40:20]Write to MH i2c: E2 08 00 B7 06 80 13 00 00 00 00 00 00 39 [15:40:20]Write i2c OK [15:40:20]MH_I2C_Read... [15:40:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:20]Read from MH i2c: E2 [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: E2 62 00 [15:40:20]MH_I2C_Read... [15:40:20]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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B6 2A 01 00 0E 04 04 00 72 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 BC [15:40:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B6 2A 01 00 0E 04 04 00 72 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 [15:40:20]wFMCommunicate OK [15:40:20]SAM_PROTO_GetFieldsCounters done [15:40:20]requested_item shift.num is exist - process it [15:40:20]requested_item shift.opened is exist - process it [15:40:20]req_shift_opened [15:40:20]FM_GetShiftState [15:40:20]SAM_PROTO_GetShiftState [15:40:20]wFMCommunicate request_size=4 [15:40:20]MH_SAM_APDU [15:40:20]CAPDU: 80 13 01 00 [15:40:20]Write to MH i2c: E2 08 00 B8 06 80 13 01 00 00 00 00 00 3B [15:40:20]Write i2c OK [15:40:20]MH_I2C_Read... [15:40:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:20]Read from MH i2c: E2 [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: E2 0E 00 [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: E2 0E 00 B8 06 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 20 [15:40:20]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:40:20]wFMCommunicate OK [15:40:20]SAM_PROTO_GetShiftState done [15:40:20]FM_GetShiftState done [15:40:20]req_shift_opened done [15:40:20]requested_item shift.open_date is exist - process it [15:40:20]req_shift_open_date [15:40:20]req_shift_open_date done [15:40:20]produce_requested_data done [15:40:20]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76470,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [15:40:20]process_action_free close_receipt [15:40:20]json_value_free [15:40:20]json_value_free done [15:40:20]process_json_proto returns [15:40:20]Send response to host [15:40:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76470,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [15:40:20]free response buf [15:40:20]execute_script done [15:40:20]execute_script returns [15:40:20]free content buf [15:40:20]Sock 7.Close socket [15:40:20]Sock 7.Thread stoped [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:45]accept exits with 9 [15:41:45]New connection [15:41:45]New thread 3067080036 created [15:41:45]Thread 3066936676 joined [15:41:45]Waiting for new connection... [15:41:45] Sock 9.Parse request [15:41:45]Sock 9.Check first char [15:41:45]Sock 9.First char is OK [15:41:45]request: POST /json_proto HTTP/1.0 [15:41:45]Method: POST [15:41:45]URL: /json_proto [15:41:45]Method is POST - this is cgi request [15:41:45]url: /json_proto [15:41:45]query_string will be loaded in cgi processing [15:41:45]execute_cgi json_proto POST (null) [15:41:45]execute_cgi path=json_proto method=POST [15:41:45]POST find Content-Length [15:41:45]Host: 172.17.62.5:8080 [15:41:45]Content-Length: 682 [15:41:45]Content-Type: application/json [15:41:45] [15:41:45]POST finish read [15:41:45]Found Content-Length = 682 [15:41:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190947", "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" : 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" ] } } [15:41:45]execute_script... [15:41: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)190947", "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" : 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" ] } } [15:41:45]POST & json_proto [15:41:45]process_json_proto [15:41:45]json parsed OK: [15:41:45]protocol is kg_v1.0 [15:41:45]action value=close_receipt [15:41:45]process_action close_receipt [15:41:45]cmd_close_receipt [15:41:45]MH_GetDate [15:41:45]Write to MH i2c: F0 00 00 B9 06 AE [15:41:45]Write i2c OK [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: F0 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: F0 09 00 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: F0 09 00 B9 06 00 BA 90 22 66 F4 E9 65 64 2F [15:41:45]GetLastDocTimeStamp 1713541217 [15:41:45]current date 1713541306 [15:41:45]FM_GetShiftState [15:41:45]SAM_PROTO_GetShiftState [15:41:45]wFMCommunicate request_size=4 [15:41:45]MH_SAM_APDU [15:41:45]CAPDU: 80 13 01 00 [15:41:45]Write to MH i2c: E2 08 00 BA 06 80 13 01 00 00 00 00 00 3D [15:41:45]Write i2c OK [15:41:45]MH_I2C_Read... [15:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:45]Read from MH i2c: E2 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: E2 0E 00 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: E2 0E 00 BA 06 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 22 [15:41:45]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:41:45]wFMCommunicate OK [15:41:45]SAM_PROTO_GetShiftState done [15:41:45]FM_GetShiftState done [15:41:45]opened in 1713486233 [15:41:45]opened+sec_in_day 1713572633 [15:41:45]quantity*price = 100018 [15:41:45]sum+1 = 100020 [15:41:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 91 19.04.2024 15:41 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76471 ФПД: 247423138590172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T154146&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76471&fm=247423138590172&tin=02508201610067®Number=0000000000091573&sum=100000 [15:41:46]StoreToDocumentArchive [15:41:46]shift 370 fd 76471 [15:41:46]save to /storage/0370/doc_00076471 [15:41:46]save last doc name /storage/0370/doc_00076471 to /storage/kkm_last_doc_name [15:41:46]save OK [15:41:46]Clear old archive folders... [15:41:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:41:46]tlvbuf is 009F3CA0 [15:41:46]SAM_PROTO_ClearQueue [15:41:46]wFMCommunicate request_size=4 [15:41:46]MH_SAM_APDU [15:41:46]CAPDU: 80 09 00 00 [15:41:46]Write to MH i2c: E2 08 00 C7 06 80 09 00 00 00 00 00 00 3F [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 [15:41:46]MH_I2C_Read... [15:41:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:46]Read from MH i2c: E2 03 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 03 00 C7 06 00 90 00 41 [15:41:46]RAPDU: 90 00 [15:41:46]wFMCommunicate OK [15:41:46]SAM_PROTO_ClearQueue done [15:41:46]KKMCreateOFDPacket [15:41:46]OFDProtocolAddRootSTLVToBuf [15:41:46]FM_MakeSignedData [15:41:46]FM_MakeSignedData [15:41:46]SAM_PROTO_SignData [15:41:46]wFMCommunicate request_size=4 [15:41:46]MH_SAM_APDU [15:41:46]CAPDU: 80 0D 01 02 [15:41:46]Write to MH i2c: E2 08 00 C8 06 80 0D 01 02 00 00 00 00 47 [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 [15:41:46]MH_I2C_Read... [15:41:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:46]Read from MH i2c: E2 03 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 03 00 C8 06 00 90 00 42 [15:41:46]RAPDU: 90 00 [15:41:46]wFMCommunicate OK [15:41:46]wFMCommunicate request_size=255 [15:41:46]MH_SAM_APDU [15:41: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 5B 00 00 00 F4 03 04 00 BA 90 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B7 2A 01 00 35 04 06 00 E1 [15:41:46]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 5B 00 00 00 F4 03 04 00 BA 90 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B7 2A 01 00 35 04 06 00 E1 00 00 C1 [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 [15:41:46]MH_I2C_Read... [15:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:46]Read from MH i2c: E2 03 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 03 00 C9 06 00 90 00 43 [15:41:46]RAPDU: 90 00 [15:41:46]wFMCommunicate OK [15:41:46]wFMCommunicate request_size=10 [15:41:46]MH_SAM_APDU [15:41:46]CAPDU: 80 0D 02 02 05 07 B0 48 ED DC [15:41:46]Write to MH i2c: E2 0D 00 CA 06 80 0D 02 02 05 00 07 B0 48 ED DC 00 00 1C [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:46]Read from MH i2c: E2 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 03 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 03 00 CA 06 00 90 00 44 [15:41:46]RAPDU: 90 00 [15:41:46]wFMCommunicate OK [15:41:46]wFMCommunicate request_size=4 [15:41:46]MH_SAM_APDU [15:41:46]CAPDU: 80 0D 03 02 [15:41:46]Write to MH i2c: E2 08 00 CB 06 80 0D 03 02 00 00 00 00 4C [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:46]Read from MH i2c: E2 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 0B 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 0B 00 CB 06 00 1A FF F0 61 64 5E A9 41 90 00 63 [15:41:46]RAPDU: 1A FF F0 61 64 5E A9 41 90 00 [15:41:46]wFMCommunicate OK [15:41:46]SAM_PROTO_SignData done [15:41:46]FM_MakeSignedData done [15:41:46]CreateOFDProtocolMessage [15:41:46]wFMCommunicate request_size=4 [15:41:46]MH_SAM_APDU [15:41:46]CAPDU: 80 11 00 00 [15:41:46]Write to MH i2c: E2 08 00 CC 06 80 11 00 00 00 00 00 00 4C [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:46]Read from MH i2c: E2 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 17 00 [15:41:46]MH_I2C_Read... [15:41:46]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 34 36 35 32 90 00 9F [15:41:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:41:46]wFMCommunicate OK [15:41:46]CreateOFDProtocolMessage done [15:41:46]OFDSenderStorePacket 76471 [15:41:46]StoreOFDPacket docnum=76471 [15:41:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 62 20 07 01 93 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 5B 00 00 00 F4 03 04 00 BA 90 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B7 2A 01 00 35 04 06 00 E1 07 B0 48 ED DC 1A FF F0 61 64 5E A9 41 [15:41:46]CheckFolder [15:41:46]dirname=/storage/ofd_packets [15:41:46]CheckFolder done [15:41:46]ProducePacketName [15:41:46]name=ofd_packets/00076471 [15:41:46]NVStorageSaveData ofd_packets/00076471 [15:41:46]File name is /storage/ofd_packets/00076471 [15:41:46]Write 301 bytes [15:41:46]NVStorageSaveData done [15:41:46]OFDSenderStorePacket done [15:41:46]KKMCreateOFDPacket done [15:41:46]NVStorageSaveData kkm_last_timestamp [15:41:46]File name is /storage/kkm_last_timestamp [15:41:46]Write 4 bytes [15:41:46]NVStorageSaveData done [15:41:46]ExternCall_PrintAddStr [15:41:46]wPrintStart [15:41:46]Write to MH i2c: 01 00 00 CD 06 D3 [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: 01 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: 01 07 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: 01 07 00 CD 06 00 00 00 00 00 FF 0F E8 [15:41:46]RasterBufferAndPrint [15:41:46]line Счет N : (1)190947 [15:41:46]line ИНН: 02508201610067 [15:41:46]line Контрольно-Кассовый Чек [15:41:46]line ПРОДАЖА [15:41:46]line ТРК (МРК, ГНК) : 42 [15:41:46]line Товар: 2710124500 [15:41:46]line Аи-95-К-5 [15:41:46]line 13.720 * 72.90 [15:41:46]line = 1000.19 [15:41:46]line НДС 12% НСП 1% [15:41:46]line > о реализуемом товаре [15:41:46]line ОКРУГЛЕНИЕ: -0.19 [15:41:46]line ИТОГО: 1000.00 [15:41:46]line Внесено: 1000.00 [15:41:46]line СДАЧА: 0.00 [15:41:46]line НСП 1% : 8.85 [15:41:46]line НДС 12% : 106.21 [15:41:46]line Наличными: 1000.00 [15:41:46]line Безнал.: 0.00 [15:41:46]line Место: АЗС № 106 "Партнер Нефть" [15:41:46]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [15:41:46]line СНО: Общий режим [15:41:46]line Чек 91 19.04.2024 15:41 [15:41:46]line Смена: 370 ФФД: 1.0 [15:41:46]line ЗНМ: 0300000141 [15:41:46]line РНМ: 0000000000091573 [15:41:46]line Версия ККМ: 001 [15:41:46]line ФМ: 0000000000874652 [15:41:46]line ФД: 76471 [15:41:46]line ФПД: 247423138590172 [15:41:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T154146&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76471&fm=247423138590172&tin=02508201610067®Number=0000000000091573&sum=100000 [15:41:47]OFD Sender: Processing packet 76471 [packets to send 128, broken 127] [15:41:47]ProducePacketName [15:41:47]name=ofd_packets/00076471 [15:41:47]OFD Sender: To server: pG, [15:41:47]CommunicateWithHost lk.salyk.kg:30040 [15:41:47]ConnectInit lk.salyk.kg [15:41:47]written 0, free lines is 4095 [15:41:47]Connected sock=10 [15:41:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 62 20 07 01 93 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 5B 00 00 00 F4 03 04 00 BA 90 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B7 2A 01 00 35 04 06 00 E1 07 B0 48 ED DC 1A FF F0 61 64 5E A9 41 [15:41:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 7E 72 47 00 A9 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 34 36 35 32 10 04 04 00 B7 2A 01 00 F4 03 04 00 45 38 22 66 B6 04 01 00 00 72 DC AA 17 F2 CE 37 B3 [15:41:47]CommunicateWithHost err = 0 [15:41:47]CheckOFDResponse [15:41:47]1017 (14) - 77093643461234 [15:41:47]1041 (16) - 0000000000874652 [15:41:47]1040 (4) - 76471 [15:41:47]1012 (4) - 19.04.2024 09:24 [15:41:47]1206 (1) - 0 [15:41:47]OFD Sender: Remove packet 76471 [15:41:47]ProducePacketName [15:41:47]name=ofd_packets/00076471 [15:41:47]NVStorageDeleteData [15:41:47]Write to MH i2c: 01 00 00 F7 06 FD [15:41:47]Write i2c OK [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: 01 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: 01 07 00 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: 01 07 00 F7 06 00 00 00 00 00 DC 0C EC [15:41:47]RasterBufferAndPrint [15:41:47]line [15:41:47]line [15:41:47]line [15:41:47]line [15:41:47]line [15:41:47]written 0, free lines is 3298 [15:41:47]MH_Cut [15:41:47]Write to MH i2c: D1 01 00 FE 06 01 D6 [15:41:47]Write i2c OK [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: D1 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: D1 01 00 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: D1 01 00 FE 06 00 D5 [15:41:47]Write to MH i2c: 01 00 00 FF 06 05 [15:41:47]Write i2c OK [15:41:47]MH_I2C_Read... [15:41:48]OFD Sender: No OFD packet to send [15:41:48]*** Cut start [15:41:48]*** Partial cut [15:41:48]*** CUTSNS_PIN = 1 [15:41:48]*** CUTSNS_PIN = 0 [15:41:48]*** Brake cut motor [15:41:49]Read from MH i2c: 01 [15:41:49]MH_I2C_Read... [15:41:49]*** Stop cut motor [15:41:49]*** Cut end [15:41:49]Read from MH i2c: 01 07 00 [15:41:49]MH_I2C_Read... [15:41:49]Read from MH i2c: 01 07 00 FF 06 00 00 00 00 00 FF 0F 1A [15:41:49]process_action close_receipt done [15:41:49]requested_data is exist [15:41:49]produce_requested_data [15:41:49]requested_item fm.sn is exist - process it [15:41:49]wFMCommunicate request_size=4 [15:41:49]MH_SAM_APDU [15:41:49]CAPDU: 80 11 00 00 [15:41:49]Write to MH i2c: E2 08 00 00 07 80 11 00 00 00 00 00 00 81 [15:41:49]Write i2c OK [15:41:49]MH_I2C_Read... [15:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:49]Read from MH i2c: E2 [15:41:49]MH_I2C_Read... [15:41:49]Read from MH i2c: E2 17 00 [15:41:49]MH_I2C_Read... [15:41:49]Read from MH i2c: E2 17 00 00 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D4 [15:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:41:49]wFMCommunicate OK [15:41:49]requested_item fd.num is exist - process it [15:41:49]SAM_PROTO_GetFieldsCounters [15:41:49]wFMCommunicate request_size=4 [15:41:49]MH_SAM_APDU [15:41:49]CAPDU: 80 13 00 00 [15:41:49]Write to MH i2c: E2 08 00 01 07 80 13 00 00 00 00 00 00 84 [15:41:49]Write i2c OK [15:41:49]MH_I2C_Read... [15:41:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:49]Read from MH i2c: E2 [15:41:49]MH_I2C_Read... [15:41:49]Read from MH i2c: E2 62 00 [15:41:49]MH_I2C_Read... [15:41:49]Read from MH i2c: E2 62 00 01 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B7 2A 01 00 0E 04 04 00 72 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 0B [15:41:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B7 2A 01 00 0E 04 04 00 72 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 [15:41:49]wFMCommunicate OK [15:41:49]SAM_PROTO_GetFieldsCounters done [15:41:49]requested_item shift.num is exist - process it [15:41:49]requested_item shift.opened is exist - process it [15:41:49]req_shift_opened [15:41:49]FM_GetShiftState [15:41:49]SAM_PROTO_GetShiftState [15:41:49]wFMCommunicate request_size=4 [15:41:49]MH_SAM_APDU [15:41:49]CAPDU: 80 13 01 00 [15:41:49]Write to MH i2c: E2 08 00 02 07 80 13 01 00 00 00 00 00 86 [15:41:49]Write i2c OK [15:41:49]MH_I2C_Read... [15:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:49]Read from MH i2c: E2 [15:41:49]MH_I2C_Read... [15:41:49]Read from MH i2c: E2 0E 00 [15:41:49]MH_I2C_Read... [15:41:49]Read from MH i2c: E2 0E 00 02 07 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 6B [15:41:49]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:41:49]wFMCommunicate OK [15:41:49]SAM_PROTO_GetShiftState done [15:41:49]FM_GetShiftState done [15:41:49]req_shift_opened done [15:41:49]requested_item shift.open_date is exist - process it [15:41:49]req_shift_open_date [15:41:49]req_shift_open_date done [15:41:49]produce_requested_data done [15:41:49]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76471,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [15:41:49]process_action_free close_receipt [15:41:49]json_value_free [15:41:49]json_value_free done [15:41:49]process_json_proto returns [15:41:49]Send response to host [15:41:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76471,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [15:41:49]free response buf [15:41:49]execute_script done [15:41:49]execute_script returns [15:41:49]free content buf [15:41:49]Sock 9.Close socket [15:41:49]Sock 9.Thread stoped [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]OFD Sender: No OFD packet to send [15:42:23]OFD Sender: No OFD packet to send [15:42:28]OFD Sender: No OFD packet to send [15:42:33]OFD Sender: No OFD packet to send [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:13]OFD Sender: No OFD packet to send [15:43:18]OFD Sender: No OFD packet to send [15:43:23]OFD Sender: No OFD packet to send [15:43:28]OFD Sender: No OFD packet to send [15:43:33]OFD Sender: No OFD packet to send [15:43:38]OFD Sender: No OFD packet to send [15:43:43]OFD Sender: No OFD packet to send [15:43:48]OFD Sender: No OFD packet to send [15:43:53]OFD Sender: No OFD packet to send [15:43:58]OFD Sender: No OFD packet to send [15:44:03]OFD Sender: No OFD packet to send [15:44:08]OFD Sender: No OFD packet to send [15:44:13]OFD Sender: No OFD packet to send [15:44:18]OFD Sender: No OFD packet to send [15:44:23]OFD Sender: No OFD packet to send [15:44:28]OFD Sender: No OFD packet to send [15:44:33]OFD Sender: No OFD packet to send [15:44:38]OFD Sender: No OFD packet to send [15:44:43]OFD Sender: No OFD packet to send [15:44:48]OFD Sender: No OFD packet to send [15:44:53]OFD Sender: No OFD packet to send [15:44:58]OFD Sender: No OFD packet to send [15:45:03]OFD Sender: No OFD packet to send [15:45:08]OFD Sender: No OFD packet to send [15:45:13]OFD Sender: No OFD packet to send [15:45:18]OFD Sender: No OFD packet to send [15:45:23]OFD Sender: No OFD packet to send [15:45:28]OFD Sender: No OFD packet to send [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]accept exits with 7 [15:47:38]New connection [15:47:38]New thread 3066936676 created [15:47:38]Thread 3067080036 joined [15:47:38]Waiting for new connection... [15:47:38] Sock 7.Parse request [15:47:38]Sock 7.Check first char [15:47:38]Sock 7.First char is OK [15:47:38]request: POST /json_proto HTTP/1.0 [15:47:38]Method: POST [15:47:38]URL: /json_proto [15:47:38]Method is POST - this is cgi request [15:47:38]url: /json_proto [15:47:38]query_string will be loaded in cgi processing [15:47:38]execute_cgi json_proto POST (null) [15:47:38]execute_cgi path=json_proto method=POST [15:47:38]POST find Content-Length [15:47:38]Host: 172.17.62.5:8080 [15:47:38]Content-Length: 990 [15:47:38]Content-Type: application/json [15:47:38] [15:47:38]POST finish read [15:47:38]Found Content-Length = 990 [15:47:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 40.090, "sum" : 1270.85, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 40.09 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1270.00, "payments": [ { "type": 0, "sum" : 1270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:38]execute_script... [15:47: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)190946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 40.090, "sum" : 1270.85, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 40.09 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1270.00, "payments": [ { "type": 0, "sum" : 1270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:38]POST & json_proto [15:47:38]process_json_proto [15:47:38]json parsed OK: [15:47:38]protocol is kg_v1.0 [15:47:38]action value=close_receipt [15:47:38]process_action close_receipt [15:47:38]cmd_close_receipt [15:47:38]MH_GetDate [15:47:38]Write to MH i2c: F0 00 00 03 07 F9 [15:47:38]Write i2c OK [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: F0 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: F0 09 00 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: F0 09 00 03 07 00 1B 92 22 66 F4 E9 65 64 DD [15:47:38]GetLastDocTimeStamp 1713541306 [15:47:38]current date 1713541659 [15:47:38]FM_GetShiftState [15:47:38]SAM_PROTO_GetShiftState [15:47:38]wFMCommunicate request_size=4 [15:47:38]MH_SAM_APDU [15:47:38]CAPDU: 80 13 01 00 [15:47:38]Write to MH i2c: E2 08 00 04 07 80 13 01 00 00 00 00 00 88 [15:47:38]Write i2c OK [15:47:38]MH_I2C_Read... [15:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:38]Read from MH i2c: E2 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: E2 0E 00 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: E2 0E 00 04 07 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 6D [15:47:38]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:47:38]wFMCommunicate OK [15:47:38]SAM_PROTO_GetShiftState done [15:47:38]FM_GetShiftState done [15:47:38]opened in 1713486233 [15:47:38]opened+sec_in_day 1713572633 [15:47:38]quantity*price = 127085 [15:47:38]sum+1 = 127086 [15:47:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.85 ИТОГО: 1270.00 Внесено: 2000.00 СДАЧА: 730.00 НСП 1% : 11.25 НДС 12% : 134.96 Наличными: 1270.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 92 19.04.2024 15:47 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 40.09 сом ФМ: 0000000000874652 ФД: 76472 ФПД: 2280706716830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T154739&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76472&fm=2280706716830&tin=02508201610067®Number=0000000000091573&sum=127000 [15:47:39]StoreToDocumentArchive [15:47:39]shift 370 fd 76472 [15:47:39]save to /storage/0370/doc_00076472 [15:47:39]save last doc name /storage/0370/doc_00076472 to /storage/kkm_last_doc_name [15:47:39]save OK [15:47:39]Clear old archive folders... [15:47:39]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:47:39]tlvbuf is 009B2BC0 [15:47:39]SAM_PROTO_ClearQueue [15:47:39]wFMCommunicate request_size=4 [15:47:39]MH_SAM_APDU [15:47:39]CAPDU: 80 09 00 00 [15:47:39]Write to MH i2c: E2 08 00 11 07 80 09 00 00 00 00 00 00 8A [15:47:39]Write i2c OK [15:47:39]MH_I2C_Read... [15:47:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:39]Read from MH i2c: E2 [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: E2 03 00 [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: E2 03 00 11 07 00 90 00 8C [15:47:39]RAPDU: 90 00 [15:47:39]wFMCommunicate OK [15:47:39]SAM_PROTO_ClearQueue done [15:47:39]KKMCreateOFDPacket [15:47:39]OFDProtocolAddRootSTLVToBuf [15:47:39]FM_MakeSignedData [15:47:39]FM_MakeSignedData [15:47:39]SAM_PROTO_SignData [15:47:39]wFMCommunicate request_size=4 [15:47:39]MH_SAM_APDU [15:47:39]CAPDU: 80 0D 01 02 [15:47:39]Write to MH i2c: E2 08 00 12 07 80 0D 01 02 00 00 00 00 92 [15:47:39]Write i2c OK [15:47:39]MH_I2C_Read... [15:47:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:39]Read from MH i2c: E2 [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: E2 03 00 [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: E2 03 00 12 07 00 90 00 8D [15:47:39]RAPDU: 90 00 [15:47:39]wFMCommunicate OK [15:47:39]wFMCommunicate request_size=255 [15:47:39]MH_SAM_APDU [15:47:39]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 9A 9C 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 6D F0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 34 00 00 00 00 07 04 06 00 18 F0 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 1B 92 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B8 2A 01 00 35 04 06 00 02 13 [15:47:39]Write to MH i2c: E2 02 01 13 07 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 9A 9C 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 6D F0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 34 00 00 00 00 07 04 06 00 18 F0 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 1B 92 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B8 2A 01 00 35 04 06 00 02 13 00 00 A8 [15:47:39]Write i2c OK [15:47:39]MH_I2C_Read... [15:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:40]Read from MH i2c: E2 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: E2 03 00 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: E2 03 00 13 07 00 90 00 8E [15:47:40]RAPDU: 90 00 [15:47:40]wFMCommunicate OK [15:47:40]wFMCommunicate request_size=9 [15:47:40]MH_SAM_APDU [15:47:40]CAPDU: 80 0D 02 02 04 04 B6 B4 9E [15:47:40]Write to MH i2c: E2 0C 00 14 07 80 0D 02 02 04 00 04 B6 B4 9E 00 00 A9 [15:47:40]Write i2c OK [15:47:40]MH_I2C_Read... [15:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:40]Read from MH i2c: E2 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: E2 03 00 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: E2 03 00 14 07 00 90 00 8F [15:47:40]RAPDU: 90 00 [15:47:40]wFMCommunicate OK [15:47:40]wFMCommunicate request_size=4 [15:47:40]MH_SAM_APDU [15:47:40]CAPDU: 80 0D 03 02 [15:47:40]Write to MH i2c: E2 08 00 15 07 80 0D 03 02 00 00 00 00 97 [15:47:40]Write i2c OK [15:47:40]MH_I2C_Read... [15:47:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:40]Read from MH i2c: E2 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: E2 0B 00 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: E2 0B 00 15 07 00 3A 7C FD 6E 59 0E 33 69 90 00 BC [15:47:40]RAPDU: 3A 7C FD 6E 59 0E 33 69 90 00 [15:47:40]wFMCommunicate OK [15:47:40]SAM_PROTO_SignData done [15:47:40]FM_MakeSignedData done [15:47:40]CreateOFDProtocolMessage [15:47:40]wFMCommunicate request_size=4 [15:47:40]MH_SAM_APDU [15:47:40]CAPDU: 80 11 00 00 [15:47:40]Write to MH i2c: E2 08 00 16 07 80 11 00 00 00 00 00 00 97 [15:47:40]Write i2c OK [15:47:40]MH_I2C_Read... [15:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:40]Read from MH i2c: E2 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: E2 17 00 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: E2 17 00 16 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EA [15:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:47:40]wFMCommunicate OK [15:47:40]CreateOFDProtocolMessage done [15:47:40]OFDSenderStorePacket 76472 [15:47:40]StoreOFDPacket docnum=76472 [15:47:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 0F 75 06 01 17 34 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 9A 9C 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 6D F0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 34 00 00 00 00 07 04 06 00 18 F0 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 1B 92 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B8 2A 01 00 35 04 06 00 02 13 04 B6 B4 9E 3A 7C FD 6E 59 0E 33 69 [15:47:40]CheckFolder [15:47:40]dirname=/storage/ofd_packets [15:47:40]CheckFolder done [15:47:40]ProducePacketName [15:47:40]name=ofd_packets/00076472 [15:47:40]NVStorageSaveData ofd_packets/00076472 [15:47:40]File name is /storage/ofd_packets/00076472 [15:47:40]Write 300 bytes [15:47:40]NVStorageSaveData done [15:47:40]OFDSenderStorePacket done [15:47:40]KKMCreateOFDPacket done [15:47:40]NVStorageSaveData kkm_last_timestamp [15:47:40]File name is /storage/kkm_last_timestamp [15:47:40]Write 4 bytes [15:47:40]NVStorageSaveData done [15:47:40]ExternCall_PrintAddStr [15:47:40]wPrintStart [15:47:40]Write to MH i2c: 01 00 00 17 07 1E [15:47:40]Write i2c OK [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: 01 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: 01 07 00 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: 01 07 00 17 07 00 00 00 00 00 FF 0F 33 [15:47:40]RasterBufferAndPrint [15:47:40]line Счет N : (1)190946 [15:47:40]line ИНН: 02508201610067 [15:47:40]line Контрольно-Кассовый Чек [15:47:40]line ПРОДАЖА [15:47:40]line ТРК (МРК, ГНК) : 71 [15:47:40]line Товар: 2711190000 [15:47:40]line ГАЗ-К-5 [15:47:40]line 40.090 * 31.70 [15:47:40]line = 1270.85 [15:47:40]line НДС 12% НСП 1% [15:47:40]line > о реализуемом товаре [15:47:40]line ОКРУГЛЕНИЕ: -0.85 [15:47:40]line ИТОГО: 1270.00 [15:47:40]line Внесено: 2000.00 [15:47:40]line СДАЧА: 730.00 [15:47:40]line НСП 1% : 11.25 [15:47:40]line НДС 12% : 134.96 [15:47:40]line Наличными: 1270.00 [15:47:40]line Безнал.: 0.00 [15:47:40]line Место: АЗС № 106 "Партнер Нефть" [15:47:40]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [15:47:40]line СНО: Общий режим [15:47:40]line Чек 92 19.04.2024 15:47 [15:47:40]line Смена: 370 ФФД: 1.0 [15:47:40]line ЗНМ: 0300000141 [15:47:40]line РНМ: 0000000000091573 [15:47:40]line Версия ККМ: 001 [15:47:40]line [15:47:40]line Дисконтная программа [15:47:40]line СУГ [15:47:40]line номер 106 [15:47:40]line сэкономлено 40.09 сом [15:47:40]line ФМ: 0000000000874652 [15:47:40]line ФД: 76472 [15:47:40]line ФПД: 2280706716830 [15:47:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T154739&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76472&fm=2280706716830&tin=02508201610067®Number=0000000000091573&sum=127000 [15:47:40]OFD Sender: Processing packet 76472 [packets to send 128, broken 127] [15:47:40]ProducePacketName [15:47:40]name=ofd_packets/00076472 [15:47:40]OFD Sender: To server: pG, [15:47:40]CommunicateWithHost lk.salyk.kg:30040 [15:47:40]ConnectInit lk.salyk.kg [15:47:40]written 0, free lines is 4095 [15:47:40]Connected sock=10 [15:47:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 0F 75 06 01 17 34 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 9A 9C 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 6D F0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 34 00 00 00 00 07 04 06 00 18 F0 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 1B 92 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B8 2A 01 00 35 04 06 00 02 13 04 B6 B4 9E 3A 7C FD 6E 59 0E 33 69 [15:47:40]Write to MH i2c: 01 00 00 46 07 4D [15:47:40]Write i2c OK [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: 01 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: 01 07 00 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: 01 07 00 46 07 00 00 00 00 00 93 0C F3 [15:47:40]RasterBufferAndPrint [15:47:40]line [15:47:40]line [15:47:40]line [15:47:40]line [15:47:40]line [15:47:40]written 0, free lines is 3225 [15:47:40]MH_Cut [15:47:40]Write to MH i2c: D1 01 00 4D 07 01 26 [15:47:40]Write i2c OK [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: D1 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: D1 01 00 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: D1 01 00 4D 07 00 25 [15:47:40]Write to MH i2c: 01 00 00 4E 07 55 [15:47:41]Write i2c OK [15:47:41]MH_I2C_Read... [15:47:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 3A 0F 47 00 E3 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 34 36 35 32 10 04 04 00 B8 2A 01 00 F4 03 04 00 A7 39 22 66 B6 04 01 00 00 4E 92 F2 D0 AD A3 F9 9B [15:47:41]CommunicateWithHost err = 0 [15:47:41]CheckOFDResponse [15:47:41]1017 (14) - 77093643461234 [15:47:41]1041 (16) - 0000000000874652 [15:47:41]1040 (4) - 76472 [15:47:41]1012 (4) - 19.04.2024 09:30 [15:47:41]1206 (1) - 0 [15:47:41]OFD Sender: Remove packet 76472 [15:47:41]ProducePacketName [15:47:41]name=ofd_packets/00076472 [15:47:41]NVStorageDeleteData [15:47:41]OFD Sender: No OFD packet to send [15:47:41]*** Cut start [15:47:41]*** Partial cut [15:47:41]*** CUTSNS_PIN = 1 [15:47:41]*** CUTSNS_PIN = 0 [15:47:42]*** Brake cut motor [15:47:42]Read from MH i2c: 01 [15:47:42]MH_I2C_Read... [15:47:42]*** Stop cut motor [15:47:42]*** Cut end [15:47:42]Read from MH i2c: 01 07 00 [15:47:42]MH_I2C_Read... [15:47:42]Read from MH i2c: 01 07 00 4E 07 00 00 00 00 00 FF 0F 6A [15:47:42]process_action close_receipt done [15:47:42]requested_data is exist [15:47:42]produce_requested_data [15:47:42]requested_item fm.sn is exist - process it [15:47:42]wFMCommunicate request_size=4 [15:47:42]MH_SAM_APDU [15:47:42]CAPDU: 80 11 00 00 [15:47:42]Write to MH i2c: E2 08 00 4F 07 80 11 00 00 00 00 00 00 D0 [15:47:42]Write i2c OK [15:47:42]MH_I2C_Read... [15:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:42]Read from MH i2c: E2 [15:47:42]MH_I2C_Read... [15:47:42]Read from MH i2c: E2 17 00 [15:47:42]MH_I2C_Read... [15:47:42]Read from MH i2c: E2 17 00 4F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 23 [15:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:47:42]wFMCommunicate OK [15:47:42]requested_item fd.num is exist - process it [15:47:42]SAM_PROTO_GetFieldsCounters [15:47:42]wFMCommunicate request_size=4 [15:47:42]MH_SAM_APDU [15:47:42]CAPDU: 80 13 00 00 [15:47:42]Write to MH i2c: E2 08 00 50 07 80 13 00 00 00 00 00 00 D3 [15:47:42]Write i2c OK [15:47:42]MH_I2C_Read... [15:47:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:42]Read from MH i2c: E2 [15:47:42]MH_I2C_Read... [15:47:42]Read from MH i2c: E2 62 00 [15:47:42]MH_I2C_Read... [15:47:42]Read from MH i2c: E2 62 00 50 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B8 2A 01 00 0E 04 04 00 72 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 5E [15:47: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B8 2A 01 00 0E 04 04 00 72 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 [15:47:42]wFMCommunicate OK [15:47:42]SAM_PROTO_GetFieldsCounters done [15:47:42]requested_item shift.num is exist - process it [15:47:42]requested_item shift.opened is exist - process it [15:47:42]req_shift_opened [15:47:42]FM_GetShiftState [15:47:42]SAM_PROTO_GetShiftState [15:47:42]wFMCommunicate request_size=4 [15:47:42]MH_SAM_APDU [15:47:42]CAPDU: 80 13 01 00 [15:47:42]Write to MH i2c: E2 08 00 51 07 80 13 01 00 00 00 00 00 D5 [15:47:42]Write i2c OK [15:47:42]MH_I2C_Read... [15:47:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:42]Read from MH i2c: E2 [15:47:42]MH_I2C_Read... [15:47:42]Read from MH i2c: E2 0E 00 [15:47:42]MH_I2C_Read... [15:47:42]Read from MH i2c: E2 0E 00 51 07 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 BA [15:47:42]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:47:42]wFMCommunicate OK [15:47:42]SAM_PROTO_GetShiftState done [15:47:42]FM_GetShiftState done [15:47:42]req_shift_opened done [15:47:42]requested_item shift.open_date is exist - process it [15:47:42]req_shift_open_date [15:47:42]req_shift_open_date done [15:47:42]produce_requested_data done [15:47:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76472,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [15:47:42]process_action_free close_receipt [15:47:42]json_value_free [15:47:42]json_value_free done [15:47:42]process_json_proto returns [15:47:42]Send response to host [15:47:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76472,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [15:47:42]free response buf [15:47:42]execute_script done [15:47:42]execute_script returns [15:47:42]free content buf [15:47:42]Sock 7.Close socket [15:47:42]Sock 7.Thread stoped [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:36]OFD Sender: No OFD packet to send [15:48:37]accept exits with 9 [15:48:37]New connection [15:48:37]New thread 3067080036 created [15:48:37]Thread 3066936676 joined [15:48:37]Waiting for new connection... [15:48:37] Sock 9.Parse request [15:48:37]Sock 9.Check first char [15:48:37]Sock 9.First char is OK [15:48:37]request: POST /json_proto HTTP/1.0 [15:48:37]Method: POST [15:48:37]URL: /json_proto [15:48:37]Method is POST - this is cgi request [15:48:37]url: /json_proto [15:48:37]query_string will be loaded in cgi processing [15:48:37]execute_cgi json_proto POST (null) [15:48:37]execute_cgi path=json_proto method=POST [15:48:37]POST find Content-Length [15:48:37]Host: 172.17.62.5:8080 [15:48:37]Content-Length: 812 [15:48:37]Content-Type: application/json [15:48:37] [15:48:37]POST finish read [15:48:37]Found Content-Length = 812 [15:48:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 50.000, "sum" : 3270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:37]execute_script... [15:48:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 50.000, "sum" : 3270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:37]POST & json_proto [15:48:37]process_json_proto [15:48:37]json parsed OK: [15:48:37]protocol is kg_v1.0 [15:48:37]action value=close_receipt [15:48:37]process_action close_receipt [15:48:37]cmd_close_receipt [15:48:37]MH_GetDate [15:48:37]Write to MH i2c: F0 00 00 52 07 48 [15:48:37]Write i2c OK [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: F0 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: F0 09 00 [15:48:37]MH_I2C_Read... [15:48:37]Read from MH i2c: F0 09 00 52 07 00 57 92 22 66 F4 E9 65 64 68 [15:48:37]GetLastDocTimeStamp 1713541659 [15:48:37]current date 1713541719 [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 53 07 80 13 01 00 00 00 00 00 D7 [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 53 07 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 BC [15:48:37]RAPDU: 09 00 01 99 B9 21 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]opened in 1713486233 [15:48:37]opened+sec_in_day 1713572633 [15:48:37]quantity*price = 327000 [15:48:37]sum+1 = 327001 [15:48:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3270.00 НСП 1% : 28.94 НДС 12% : 347.26 Наличными: 0.00 Безнал.: 3270.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 93 19.04.2024 15:48 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76473 ФПД: 265330412972636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T154839&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76473&fm=265330412972636&tin=02508201610067®Number=0000000000091573&sum=327000 [15:48:39]StoreToDocumentArchive [15:48:39]shift 370 fd 76473 [15:48:39]save to /storage/0370/doc_00076473 [15:48:39]save last doc name /storage/0370/doc_00076473 to /storage/kkm_last_doc_name [15:48:39]save OK [15:48:39]Clear old archive folders... [15:48:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:48:39]tlvbuf is 00A0D4A0 [15:48:39]SAM_PROTO_ClearQueue [15:48:39]wFMCommunicate request_size=4 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 09 00 00 [15:48:39]Write to MH i2c: E2 08 00 60 07 80 09 00 00 00 00 00 00 D9 [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:39]Read from MH i2c: E2 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 60 07 00 90 00 DB [15:48:39]RAPDU: 90 00 [15:48:39]wFMCommunicate OK [15:48:39]SAM_PROTO_ClearQueue done [15:48:39]KKMCreateOFDPacket [15:48:39]OFDProtocolAddRootSTLVToBuf [15:48:39]FM_MakeSignedData [15:48:39]FM_MakeSignedData [15:48:39]SAM_PROTO_SignData [15:48:39]wFMCommunicate request_size=4 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 0D 01 02 [15:48:39]Write to MH i2c: E2 08 00 61 07 80 0D 01 02 00 00 00 00 E1 [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:39]Read from MH i2c: E2 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 61 07 00 90 00 DC [15:48:39]RAPDU: 90 00 [15:48:39]wFMCommunicate OK [15:48:39]wFMCommunicate request_size=255 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 58 FD 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 FD 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 87 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 FD 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 57 92 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B9 2A 01 00 35 04 06 00 [15:48:39]Write to MH i2c: E2 02 01 62 07 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 50 C3 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 58 FD 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 FD 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 87 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 FD 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 57 92 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B9 2A 01 00 35 04 06 00 00 00 F6 [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:39]Read from MH i2c: E2 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 62 07 00 90 00 DD [15:48:39]RAPDU: 90 00 [15:48:39]wFMCommunicate OK [15:48:39]wFMCommunicate request_size=11 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 0D 02 02 06 F1 51 0D 03 6A 5C [15:48:39]Write to MH i2c: E2 0E 00 63 07 80 0D 02 02 06 00 F1 51 0D 03 6A 5C 00 00 08 [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:39]Read from MH i2c: E2 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 63 07 00 90 00 DE [15:48:39]RAPDU: 90 00 [15:48:39]wFMCommunicate OK [15:48:39]wFMCommunicate request_size=4 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 0D 03 02 [15:48:39]Write to MH i2c: E2 08 00 64 07 80 0D 03 02 00 00 00 00 E6 [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:39]Read from MH i2c: E2 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 0B 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 0B 00 64 07 00 A4 67 85 70 A7 3C 4F BD 90 00 D6 [15:48:39]RAPDU: A4 67 85 70 A7 3C 4F BD 90 00 [15:48:39]wFMCommunicate OK [15:48:39]SAM_PROTO_SignData done [15:48:39]FM_MakeSignedData done [15:48:39]CreateOFDProtocolMessage [15:48:39]wFMCommunicate request_size=4 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 11 00 00 [15:48:39]Write to MH i2c: E2 08 00 65 07 80 11 00 00 00 00 00 00 E6 [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:39]Read from MH i2c: E2 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 17 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 17 00 65 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 39 [15:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:48:39]wFMCommunicate OK [15:48:39]CreateOFDProtocolMessage done [15:48:39]OFDSenderStorePacket 76473 [15:48:39]StoreOFDPacket docnum=76473 [15:48:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 6E AA 08 01 31 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 50 C3 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 58 FD 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 FD 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 87 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 FD 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 57 92 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B9 2A 01 00 35 04 06 00 F1 51 0D 03 6A 5C A4 67 85 70 A7 3C 4F BD [15:48:39]CheckFolder [15:48:39]dirname=/storage/ofd_packets [15:48:39]CheckFolder done [15:48:39]ProducePacketName [15:48:39]name=ofd_packets/00076473 [15:48:39]NVStorageSaveData ofd_packets/00076473 [15:48:39]File name is /storage/ofd_packets/00076473 [15:48:39]Write 302 bytes [15:48:39]NVStorageSaveData done [15:48:39]OFDSenderStorePacket done [15:48:39]KKMCreateOFDPacket done [15:48:39]NVStorageSaveData kkm_last_timestamp [15:48:39]File name is /storage/kkm_last_timestamp [15:48:39]Write 4 bytes [15:48:39]NVStorageSaveData done [15:48:39]ExternCall_PrintAddStr [15:48:39]wPrintStart [15:48:39]Write to MH i2c: 01 00 00 66 07 6D [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: 01 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: 01 07 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: 01 07 00 66 07 00 00 00 00 00 FF 0F 82 [15:48:39]RasterBufferAndPrint [15:48:39]line Счет N : (1)190948 [15:48:39]line ИНН: 02508201610067 [15:48:39]line Контрольно-Кассовый Чек [15:48:39]line ПРОДАЖА [15:48:39]line ТРК (МРК, ГНК) : 31 [15:48:39]line Товар: 2710124130 [15:48:39]line SUPER 92-К-5 [15:48:39]line 50.000 * 65.40 [15:48:39]line = 3270.00 [15:48:39]line НДС 12% НСП 1% [15:48:39]line > о реализуемом товаре [15:48:39]line ИТОГО: 3270.00 [15:48:39]line НСП 1% : 28.94 [15:48:39]line НДС 12% : 347.26 [15:48:39]line Наличными: 0.00 [15:48:39]line Безнал.: 3270.00 [15:48:39]line Место: АЗС № 106 "Партнер Нефть" [15:48:39]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [15:48:39]line СНО: Общий режим [15:48:39]line Чек 93 19.04.2024 15:48 [15:48:39]line Смена: 370 ФФД: 1.0 [15:48:39]line ЗНМ: 0300000141 [15:48:39]line РНМ: 0000000000091573 [15:48:39]line Версия ККМ: 001 [15:48:39]line Платежная система: Бакай Банк [15:48:39]line ФМ: 0000000000874652 [15:48:39]line ФД: 76473 [15:48:39]line ФПД: 265330412972636 [15:48:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T154839&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76473&fm=265330412972636&tin=02508201610067®Number=0000000000091573&sum=327000 [15:48:39]OFD Sender: Processing packet 76473 [packets to send 128, broken 127] [15:48:39]ProducePacketName [15:48:39]name=ofd_packets/00076473 [15:48:39]OFD Sender: To server: pG, [15:48:39]CommunicateWithHost lk.salyk.kg:30040 [15:48:39]ConnectInit lk.salyk.kg [15:48:39]written 0, free lines is 4095 [15:48:40]Connected sock=10 [15:48:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 6E AA 08 01 31 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 50 C3 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 58 FD 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 FD 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 87 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 FD 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 57 92 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 B9 2A 01 00 35 04 06 00 F1 51 0D 03 6A 5C A4 67 85 70 A7 3C 4F BD [15:48:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 46 EC 47 00 72 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 34 36 35 32 10 04 04 00 B9 2A 01 00 F4 03 04 00 E2 39 22 66 B6 04 01 00 00 58 B2 D7 77 91 D0 83 B3 [15:48:40]CommunicateWithHost err = 0 [15:48:40]CheckOFDResponse [15:48:40]1017 (14) - 77093643461234 [15:48:40]1041 (16) - 0000000000874652 [15:48:40]1040 (4) - 76473 [15:48:40]1012 (4) - 19.04.2024 09:31 [15:48:40]1206 (1) - 0 [15:48:40]OFD Sender: Remove packet 76473 [15:48:40]ProducePacketName [15:48:40]name=ofd_packets/00076473 [15:48:40]NVStorageDeleteData [15:48:40]Write to MH i2c: 01 00 00 8F 07 96 [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: 01 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: 01 07 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: 01 07 00 8F 07 00 00 00 00 00 0E 0D B8 [15:48:40]RasterBufferAndPrint [15:48:40]line [15:48:40]line [15:48:40]line [15:48:40]line [15:48:40]line [15:48:40]written 0, free lines is 3348 [15:48:40]MH_Cut [15:48:40]Write to MH i2c: D1 01 00 96 07 01 6F [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: D1 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: D1 01 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: D1 01 00 96 07 00 6E [15:48:40]Write to MH i2c: 01 00 00 97 07 9E [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:40]OFD Sender: No OFD packet to send [15:48:41]*** Cut start [15:48:41]*** Partial cut [15:48:41]*** CUTSNS_PIN = 1 [15:48:41]*** CUTSNS_PIN = 0 [15:48:41]*** Brake cut motor [15:48:41]Read from MH i2c: 01 [15:48:41]MH_I2C_Read... [15:48:41]*** Stop cut motor [15:48:41]*** Cut end [15:48:41]Read from MH i2c: 01 07 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: 01 07 00 97 07 00 00 00 00 00 FF 0F B3 [15:48:41]process_action close_receipt done [15:48:41]requested_data is exist [15:48:41]produce_requested_data [15:48:41]requested_item fm.sn is exist - process it [15:48:41]wFMCommunicate request_size=4 [15:48:41]MH_SAM_APDU [15:48:41]CAPDU: 80 11 00 00 [15:48:41]Write to MH i2c: E2 08 00 98 07 80 11 00 00 00 00 00 00 19 [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:41]Read from MH i2c: E2 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 17 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 17 00 98 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6C [15:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:48:41]wFMCommunicate OK [15:48:41]requested_item fd.num is exist - process it [15:48:41]SAM_PROTO_GetFieldsCounters [15:48:41]wFMCommunicate request_size=4 [15:48:41]MH_SAM_APDU [15:48:41]CAPDU: 80 13 00 00 [15:48:41]Write to MH i2c: E2 08 00 99 07 80 13 00 00 00 00 00 00 1C [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:41]Read from MH i2c: E2 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 62 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 62 00 99 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B9 2A 01 00 0E 04 04 00 72 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 AB [15:48:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 B9 2A 01 00 0E 04 04 00 72 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 [15:48:41]wFMCommunicate OK [15:48:41]SAM_PROTO_GetFieldsCounters done [15:48:41]requested_item shift.num is exist - process it [15:48:41]requested_item shift.opened is exist - process it [15:48:41]req_shift_opened [15:48:41]FM_GetShiftState [15:48:41]SAM_PROTO_GetShiftState [15:48:41]wFMCommunicate request_size=4 [15:48:41]MH_SAM_APDU [15:48:41]CAPDU: 80 13 01 00 [15:48:41]Write to MH i2c: E2 08 00 9A 07 80 13 01 00 00 00 00 00 1E [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:41]Read from MH i2c: E2 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 0E 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 0E 00 9A 07 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 03 [15:48:41]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:48:41]wFMCommunicate OK [15:48:41]SAM_PROTO_GetShiftState done [15:48:41]FM_GetShiftState done [15:48:41]req_shift_opened done [15:48:41]requested_item shift.open_date is exist - process it [15:48:41]req_shift_open_date [15:48:41]req_shift_open_date done [15:48:41]produce_requested_data done [15:48:41]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76473,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [15:48:41]process_action_free close_receipt [15:48:41]json_value_free [15:48:41]json_value_free done [15:48:41]process_json_proto returns [15:48:41]Send response to host [15:48:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76473,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [15:48:41]free response buf [15:48:41]execute_script done [15:48:41]execute_script returns [15:48:41]free content buf [15:48:41]Sock 9.Close socket [15:48:41]Sock 9.Thread stoped [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:56]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:56]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [15:53:51]OFD Sender: No OFD packet to send [15:53:56]OFD Sender: No OFD packet to send [15:54:01]OFD Sender: No OFD packet to send [15:54:06]OFD Sender: No OFD packet to send [15:54:11]OFD Sender: No OFD packet to send [15:54:16]OFD Sender: No OFD packet to send [15:54:21]OFD Sender: No OFD packet to send [15:54:26]OFD Sender: No OFD packet to send [15:54:31]OFD Sender: No OFD packet to send [15:54:36]OFD Sender: No OFD packet to send [15:54:41]OFD Sender: No OFD packet to send [15:54:46]OFD Sender: No OFD packet to send [15:54:51]OFD Sender: No OFD packet to send [15:54:56]OFD Sender: No OFD packet to send [15:55:01]OFD Sender: No OFD packet to send [15:55:06]OFD Sender: No OFD packet to send [15:55:11]OFD Sender: No OFD packet to send [15:55:16]OFD Sender: No OFD packet to send [15:55:21]OFD Sender: No OFD packet to send [15:55:26]OFD Sender: No OFD packet to send [15:55:31]OFD Sender: No OFD packet to send [15:55:36]OFD Sender: No OFD packet to send [15:55:41]OFD Sender: No OFD packet to send [15:55:46]OFD Sender: No OFD packet to send [15:55:51]OFD Sender: No OFD packet to send [15:55:56]OFD Sender: No OFD packet to send [15:56:01]OFD Sender: No OFD packet to send [15:56:06]OFD Sender: No OFD packet to send [15:56:11]OFD Sender: No OFD packet to send [15:56:12]accept exits with 7 [15:56:12]New connection [15:56:12]New thread 3066936676 created [15:56:12]Thread 3067080036 joined [15:56:12]Waiting for new connection... [15:56:12] Sock 7.Parse request [15:56:12]Sock 7.Check first char [15:56:12]Sock 7.First char is OK [15:56:12]request: POST /json_proto HTTP/1.0 [15:56:12]Method: POST [15:56:12]URL: /json_proto [15:56:12]Method is POST - this is cgi request [15:56:12]url: /json_proto [15:56:12]query_string will be loaded in cgi processing [15:56:12]execute_cgi json_proto POST (null) [15:56:12]execute_cgi path=json_proto method=POST [15:56:12]POST find Content-Length [15:56:12]Host: 172.17.62.5:8080 [15:56:12]Content-Length: 678 [15:56:12]Content-Type: application/json [15:56:12] [15:56:12]POST finish read [15:56:12]Found Content-Length = 678 [15:56:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.100, "sum" : 650.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:12]execute_script... [15:56:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.100, "sum" : 650.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:12]POST & json_proto [15:56:12]process_json_proto [15:56:12]json parsed OK: [15:56:12]protocol is kg_v1.0 [15:56:12]action value=close_receipt [15:56:12]process_action close_receipt [15:56:12]cmd_close_receipt [15:56:12]MH_GetDate [15:56:12]Write to MH i2c: F0 00 00 9B 07 91 [15:56:12]Write i2c OK [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: F0 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: F0 09 00 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: F0 09 00 9B 07 00 1E 94 22 66 F4 E9 65 64 7A [15:56:12]GetLastDocTimeStamp 1713541719 [15:56:12]current date 1713542174 [15:56:12]FM_GetShiftState [15:56:12]SAM_PROTO_GetShiftState [15:56:12]wFMCommunicate request_size=4 [15:56:12]MH_SAM_APDU [15:56:12]CAPDU: 80 13 01 00 [15:56:12]Write to MH i2c: E2 08 00 9C 07 80 13 01 00 00 00 00 00 20 [15:56:12]Write i2c OK [15:56:12]MH_I2C_Read... [15:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:12]Read from MH i2c: E2 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: E2 0E 00 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: E2 0E 00 9C 07 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 05 [15:56:12]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:56:12]wFMCommunicate OK [15:56:12]SAM_PROTO_GetShiftState done [15:56:12]FM_GetShiftState done [15:56:12]opened in 1713486233 [15:56:12]opened+sec_in_day 1713572633 [15:56:12]quantity*price = 65044 [15:56:12]sum+1 = 65045 [15:56:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.07 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 94 19.04.2024 15:56 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76474 ФПД: 84122319128195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T155614&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76474&fm=84122319128195&tin=02508201610067®Number=0000000000091573&sum=65000 [15:56:14]StoreToDocumentArchive [15:56:14]shift 370 fd 76474 [15:56:14]save to /storage/0370/doc_00076474 [15:56:14]save last doc name /storage/0370/doc_00076474 to /storage/kkm_last_doc_name [15:56:14]save OK [15:56:14]Clear old archive folders... [15:56:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:14]tlvbuf is 009E8690 [15:56:14]SAM_PROTO_ClearQueue [15:56:14]wFMCommunicate request_size=4 [15:56:14]MH_SAM_APDU [15:56:14]CAPDU: 80 09 00 00 [15:56:14]Write to MH i2c: E2 08 00 A9 07 80 09 00 00 00 00 00 00 22 [15:56:14]Write i2c OK [15:56:14]MH_I2C_Read... [15:56:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:14]Read from MH i2c: E2 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 03 00 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 03 00 A9 07 00 90 00 24 [15:56:14]RAPDU: 90 00 [15:56:14]wFMCommunicate OK [15:56:14]SAM_PROTO_ClearQueue done [15:56:14]KKMCreateOFDPacket [15:56:14]OFDProtocolAddRootSTLVToBuf [15:56:14]FM_MakeSignedData [15:56:14]FM_MakeSignedData [15:56:14]SAM_PROTO_SignData [15:56:14]wFMCommunicate request_size=4 [15:56:14]MH_SAM_APDU [15:56:14]CAPDU: 80 0D 01 02 [15:56:14]Write to MH i2c: E2 08 00 AA 07 80 0D 01 02 00 00 00 00 2A [15:56:14]Write i2c OK [15:56:14]MH_I2C_Read... [15:56:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:14]Read from MH i2c: E2 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 03 00 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 03 00 AA 07 00 90 00 25 [15:56:14]RAPDU: 90 00 [15:56:14]wFMCommunicate OK [15:56:14]wFMCommunicate request_size=255 [15:56:14]MH_SAM_APDU [15:56: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 74 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 14 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 1E 94 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BA 2A 01 00 35 04 06 00 4C [15:56:14]Write to MH i2c: E2 02 01 AB 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 74 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 14 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 1E 94 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BA 2A 01 00 35 04 06 00 4C 00 00 7F [15:56:14]Write i2c OK [15:56:14]MH_I2C_Read... [15:56:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:14]Read from MH i2c: E2 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 03 00 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 03 00 AB 07 00 90 00 26 [15:56:14]RAPDU: 90 00 [15:56:14]wFMCommunicate OK [15:56:14]wFMCommunicate request_size=10 [15:56:14]MH_SAM_APDU [15:56:14]CAPDU: 80 0D 02 02 05 82 40 F3 06 83 [15:56:14]Write to MH i2c: E2 0D 00 AC 07 80 0D 02 02 05 00 82 40 F3 06 83 00 00 75 [15:56:14]Write i2c OK [15:56:14]MH_I2C_Read... [15:56:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:14]Read from MH i2c: E2 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 03 00 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 03 00 AC 07 00 90 00 27 [15:56:14]RAPDU: 90 00 [15:56:14]wFMCommunicate OK [15:56:14]wFMCommunicate request_size=4 [15:56:14]MH_SAM_APDU [15:56:14]CAPDU: 80 0D 03 02 [15:56:14]Write to MH i2c: E2 08 00 AD 07 80 0D 03 02 00 00 00 00 2F [15:56:14]Write i2c OK [15:56:14]MH_I2C_Read... [15:56:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:14]Read from MH i2c: E2 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 0B 00 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 0B 00 AD 07 00 F8 8F AA 64 BD 2C C0 97 90 00 05 [15:56:14]RAPDU: F8 8F AA 64 BD 2C C0 97 90 00 [15:56:14]wFMCommunicate OK [15:56:14]SAM_PROTO_SignData done [15:56:14]FM_MakeSignedData done [15:56:14]CreateOFDProtocolMessage [15:56:14]wFMCommunicate request_size=4 [15:56:14]MH_SAM_APDU [15:56:14]CAPDU: 80 11 00 00 [15:56:14]Write to MH i2c: E2 08 00 AE 07 80 11 00 00 00 00 00 00 2F [15:56:14]Write i2c OK [15:56:14]MH_I2C_Read... [15:56:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:14]Read from MH i2c: E2 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 17 00 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 17 00 AE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 82 [15:56:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:56:14]wFMCommunicate OK [15:56:14]CreateOFDProtocolMessage done [15:56:14]OFDSenderStorePacket 76474 [15:56:14]StoreOFDPacket docnum=76474 [15:56:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 DF 3E 07 01 8D 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 74 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 14 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 1E 94 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BA 2A 01 00 35 04 06 00 4C 82 40 F3 06 83 F8 8F AA 64 BD 2C C0 97 [15:56:14]CheckFolder [15:56:14]dirname=/storage/ofd_packets [15:56:14]CheckFolder done [15:56:14]ProducePacketName [15:56:14]name=ofd_packets/00076474 [15:56:14]NVStorageSaveData ofd_packets/00076474 [15:56:14]File name is /storage/ofd_packets/00076474 [15:56:14]Write 301 bytes [15:56:14]NVStorageSaveData done [15:56:14]OFDSenderStorePacket done [15:56:14]KKMCreateOFDPacket done [15:56:14]NVStorageSaveData kkm_last_timestamp [15:56:14]File name is /storage/kkm_last_timestamp [15:56:14]Write 4 bytes [15:56:14]NVStorageSaveData done [15:56:14]ExternCall_PrintAddStr [15:56:14]wPrintStart [15:56:14]Write to MH i2c: 01 00 00 AF 07 B6 [15:56:14]Write i2c OK [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: 01 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: 01 07 00 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: 01 07 00 AF 07 00 00 00 00 00 FF 0F CB [15:56:14]RasterBufferAndPrint [15:56:14]line Счет N : (1)190949 [15:56:14]line ИНН: 02508201610067 [15:56:14]line Контрольно-Кассовый Чек [15:56:14]line ПРОДАЖА [15:56:14]line ТРК (МРК, ГНК) : 43 [15:56:14]line Товар: 2710124130 [15:56:14]line Аи-92-К-5 [15:56:14]line 10.100 * 64.40 [15:56:14]line = 650.44 [15:56:14]line НДС 12% НСП 1% [15:56:14]line > о реализуемом товаре [15:56:14]line ОКРУГЛЕНИЕ: -0.44 [15:56:14]line ИТОГО: 650.00 [15:56:14]line Внесено: 650.00 [15:56:14]line СДАЧА: 0.00 [15:56:14]line НСП 1% : 5.76 [15:56:14]line НДС 12% : 69.07 [15:56:14]line Наличными: 650.00 [15:56:14]line Безнал.: 0.00 [15:56:14]line Место: АЗС № 106 "Партнер Нефть" [15:56:14]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [15:56:14]line СНО: Общий режим [15:56:14]line Чек 94 19.04.2024 15:56 [15:56:14]line Смена: 370 ФФД: 1.0 [15:56:14]line ЗНМ: 0300000141 [15:56:14]line РНМ: 0000000000091573 [15:56:14]line Версия ККМ: 001 [15:56:14]line ФМ: 0000000000874652 [15:56:14]line ФД: 76474 [15:56:14]line ФПД: 84122319128195 [15:56:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T155614&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76474&fm=84122319128195&tin=02508201610067®Number=0000000000091573&sum=65000 [15:56:14]written 0, free lines is 4095 [15:56:14]OFD Sender: Processing packet 76474 [packets to send 128, broken 127] [15:56:14]ProducePacketName [15:56:14]name=ofd_packets/00076474 [15:56:14]OFD Sender: To server: pG, [15:56:14]CommunicateWithHost lk.salyk.kg:30040 [15:56:14]ConnectInit lk.salyk.kg [15:56:15]Connected sock=11 [15:56:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 DF 3E 07 01 8D 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 74 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 14 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 1E 94 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BA 2A 01 00 35 04 06 00 4C 82 40 F3 06 83 F8 8F AA 64 BD 2C C0 97 [15:56:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 52 3B 47 00 40 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 34 36 35 32 10 04 04 00 BA 2A 01 00 F4 03 04 00 A9 3B 22 66 B6 04 01 00 00 20 97 E4 68 B6 F2 77 27 [15:56:15]CommunicateWithHost err = 0 [15:56:15]CheckOFDResponse [15:56:15]1017 (14) - 77093643461234 [15:56:15]1041 (16) - 0000000000874652 [15:56:15]1040 (4) - 76474 [15:56:15]1012 (4) - 19.04.2024 09:38 [15:56:15]1206 (1) - 0 [15:56:15]OFD Sender: Remove packet 76474 [15:56:15]ProducePacketName [15:56:15]name=ofd_packets/00076474 [15:56:15]NVStorageDeleteData [15:56:15]Write to MH i2c: 01 00 00 D9 07 E0 [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: 01 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: 01 07 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: 01 07 00 D9 07 00 00 00 00 00 EF 0C E2 [15:56:15]RasterBufferAndPrint [15:56:15]line [15:56:15]line [15:56:15]line [15:56:15]line [15:56:15]line [15:56:15]written 0, free lines is 3319 [15:56:15]MH_Cut [15:56:15]Write to MH i2c: D1 01 00 E0 07 01 B9 [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: D1 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: D1 01 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: D1 01 00 E0 07 00 B8 [15:56:15]Write to MH i2c: 01 00 00 E1 07 E8 [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]OFD Sender: No OFD packet to send [15:56:16]*** Cut start [15:56:16]*** Partial cut [15:56:16]*** CUTSNS_PIN = 1 [15:56:16]*** CUTSNS_PIN = 0 [15:56:16]*** Brake cut motor [15:56:16]Read from MH i2c: 01 [15:56:16]MH_I2C_Read... [15:56:16]*** Stop cut motor [15:56:16]*** Cut end [15:56:16]Read from MH i2c: 01 07 00 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: 01 07 00 E1 07 00 00 00 00 00 FF 0F FD [15:56:16]process_action close_receipt done [15:56:16]requested_data is exist [15:56:16]produce_requested_data [15:56:16]requested_item fm.sn is exist - process it [15:56:16]wFMCommunicate request_size=4 [15:56:16]MH_SAM_APDU [15:56:16]CAPDU: 80 11 00 00 [15:56:16]Write to MH i2c: E2 08 00 E2 07 80 11 00 00 00 00 00 00 63 [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:16]Read from MH i2c: E2 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: E2 17 00 [15:56:16]MH_I2C_Read... [15:56:16]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 34 36 35 32 90 00 B6 [15:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:56:16]wFMCommunicate OK [15:56:16]requested_item fd.num is exist - process it [15:56:16]SAM_PROTO_GetFieldsCounters [15:56:16]wFMCommunicate request_size=4 [15:56:16]MH_SAM_APDU [15:56:16]CAPDU: 80 13 00 00 [15:56:16]Write to MH i2c: E2 08 00 E3 07 80 13 00 00 00 00 00 00 66 [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:16]Read from MH i2c: E2 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: E2 62 00 [15:56:16]MH_I2C_Read... [15:56:16]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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BA 2A 01 00 0E 04 04 00 72 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 F9 [15:56:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BA 2A 01 00 0E 04 04 00 72 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 [15:56:16]wFMCommunicate OK [15:56:16]SAM_PROTO_GetFieldsCounters done [15:56:16]requested_item shift.num is exist - process it [15:56:16]requested_item shift.opened is exist - process it [15:56:16]req_shift_opened [15:56:16]FM_GetShiftState [15:56:16]SAM_PROTO_GetShiftState [15:56:16]wFMCommunicate request_size=4 [15:56:16]MH_SAM_APDU [15:56:16]CAPDU: 80 13 01 00 [15:56:16]Write to MH i2c: E2 08 00 E4 07 80 13 01 00 00 00 00 00 68 [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:17]Read from MH i2c: E2 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: E2 0E 00 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: E2 0E 00 E4 07 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 4D [15:56:17]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [15:56:17]wFMCommunicate OK [15:56:17]SAM_PROTO_GetShiftState done [15:56:17]FM_GetShiftState done [15:56:17]req_shift_opened done [15:56:17]requested_item shift.open_date is exist - process it [15:56:17]req_shift_open_date [15:56:17]req_shift_open_date done [15:56:17]produce_requested_data done [15:56:17]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76474,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [15:56:17]process_action_free close_receipt [15:56:17]json_value_free [15:56:17]json_value_free done [15:56:17]process_json_proto returns [15:56:17]Send response to host [15:56:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76474,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [15:56:17]free response buf [15:56:17]execute_script done [15:56:17]execute_script returns [15:56:17]free content buf [15:56:17]Sock 7.Close socket [15:56:17]Sock 7.Thread stoped [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58: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:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:56]OFD Sender: No OFD packet to send [16:00:01]OFD Sender: No OFD packet to send [16:00:06]OFD Sender: No OFD packet to send [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:21]OFD Sender: No OFD packet to send [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:51]OFD Sender: No OFD packet to send [16:00:56]OFD Sender: No OFD packet to send [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02: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]accept exits with 9 [16:04:16]New connection [16:04:16]New thread 3067080036 created [16:04:16]Thread 3066936676 joined [16:04:16]Waiting for new connection... [16:04:16] Sock 9.Parse request [16:04:16]Sock 9.Check first char [16:04:16]Sock 9.First char is OK [16:04:16]request: POST /json_proto HTTP/1.0 [16:04:16]Method: POST [16:04:16]URL: /json_proto [16:04:16]Method is POST - this is cgi request [16:04:16]url: /json_proto [16:04:16]query_string will be loaded in cgi processing [16:04:16]execute_cgi json_proto POST (null) [16:04:16]execute_cgi path=json_proto method=POST [16:04:16]POST find Content-Length [16:04:16]Host: 172.17.62.5:8080 [16:04:16]Content-Length: 811 [16:04:16]Content-Type: application/json [16:04:16] [16:04:16]POST finish read [16:04:16]Found Content-Length = 811 [16:04:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 45.880, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:16]execute_script... [16:04: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)190950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 45.880, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:16]POST & json_proto [16:04:16]process_json_proto [16:04:16]json parsed OK: [16:04:16]protocol is kg_v1.0 [16:04:16]action value=close_receipt [16:04:16]process_action close_receipt [16:04:16]cmd_close_receipt [16:04:16]MH_GetDate [16:04:16]Write to MH i2c: F0 00 00 E5 07 DB [16:04:16]Write i2c OK [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: F0 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: F0 09 00 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: F0 09 00 E5 07 00 01 96 22 66 F4 E9 65 64 A9 [16:04:16]GetLastDocTimeStamp 1713542174 [16:04:16]current date 1713542657 [16:04:16]FM_GetShiftState [16:04:16]SAM_PROTO_GetShiftState [16:04:16]wFMCommunicate request_size=4 [16:04:16]MH_SAM_APDU [16:04:16]CAPDU: 80 13 01 00 [16:04:16]Write to MH i2c: E2 08 00 E6 07 80 13 01 00 00 00 00 00 6A [16:04:16]Write i2c OK [16:04:16]MH_I2C_Read... [16:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:16]Read from MH i2c: E2 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: E2 0E 00 [16:04:16]MH_I2C_Read... [16:04:16]Read from MH i2c: E2 0E 00 E6 07 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 4F [16:04:16]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:04:16]wFMCommunicate OK [16:04:16]SAM_PROTO_GetShiftState done [16:04:16]FM_GetShiftState done [16:04:16]opened in 1713486233 [16:04:16]opened+sec_in_day 1713572633 [16:04:16]quantity*price = 150027 [16:04:16]sum+1 = 150029 [16:04:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.28 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.28 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 95 19.04.2024 16:04 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76475 ФПД: 140546000760926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T160417&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76475&fm=140546000760926&tin=02508201610067®Number=0000000000091573&sum=150028 [16:04:17]StoreToDocumentArchive [16:04:17]shift 370 fd 76475 [16:04:17]save to /storage/0370/doc_00076475 [16:04:17]save last doc name /storage/0370/doc_00076475 to /storage/kkm_last_doc_name [16:04:17]save OK [16:04:17]Clear old archive folders... [16:04:17]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:04:17]tlvbuf is 00993980 [16:04:17]SAM_PROTO_ClearQueue [16:04:17]wFMCommunicate request_size=4 [16:04:17]MH_SAM_APDU [16:04:17]CAPDU: 80 09 00 00 [16:04:17]Write to MH i2c: E2 08 00 F3 07 80 09 00 00 00 00 00 00 6C [16:04:17]Write i2c OK [16:04:17]MH_I2C_Read... [16:04:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:17]Read from MH i2c: E2 [16:04:17]MH_I2C_Read... [16:04:17]Read from MH i2c: E2 03 00 [16:04:17]MH_I2C_Read... [16:04:17]Read from MH i2c: E2 03 00 F3 07 00 90 00 6E [16:04:17]RAPDU: 90 00 [16:04:17]wFMCommunicate OK [16:04:17]SAM_PROTO_ClearQueue done [16:04:17]KKMCreateOFDPacket [16:04:17]OFDProtocolAddRootSTLVToBuf [16:04:17]FM_MakeSignedData [16:04:17]FM_MakeSignedData [16:04:17]SAM_PROTO_SignData [16:04:17]wFMCommunicate request_size=4 [16:04:17]MH_SAM_APDU [16:04:17]CAPDU: 80 0D 01 02 [16:04:17]Write to MH i2c: E2 08 00 F4 07 80 0D 01 02 00 00 00 00 74 [16:04:17]Write i2c OK [16:04:17]MH_I2C_Read... [16:04:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:17]Read from MH i2c: E2 [16:04:17]MH_I2C_Read... [16:04:17]Read from MH i2c: E2 03 00 [16:04:17]MH_I2C_Read... [16:04:17]Read from MH i2c: E2 03 00 F4 07 00 90 00 6F [16:04:17]RAPDU: 90 00 [16:04:17]wFMCommunicate OK [16:04:17]wFMCommunicate request_size=255 [16:04:17]MH_SAM_APDU [16:04:17]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 B3 00 00 00 00 00 37 04 06 00 C6 0C 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 5F 00 00 00 F4 03 04 00 01 96 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BB 2A 01 00 35 04 06 00 7F D3 [16:04:17]Write to MH i2c: E2 02 01 F5 07 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 B3 00 00 00 00 00 37 04 06 00 C6 0C 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 5F 00 00 00 F4 03 04 00 01 96 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BB 2A 01 00 35 04 06 00 7F D3 00 00 C2 [16:04:17]Write i2c OK [16:04:17]MH_I2C_Read... [16:04:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:17]Read from MH i2c: E2 [16:04:17]MH_I2C_Read... [16:04:17]Read from MH i2c: E2 03 00 [16:04:17]MH_I2C_Read... [16:04:17]Read from MH i2c: E2 03 00 F5 07 00 90 00 70 [16:04:17]RAPDU: 90 00 [16:04:17]wFMCommunicate OK [16:04:17]wFMCommunicate request_size=9 [16:04:17]MH_SAM_APDU [16:04:17]CAPDU: 80 0D 02 02 04 6A 73 30 5E [16:04:17]Write to MH i2c: E2 0C 00 F6 07 80 0D 02 02 04 00 6A 73 30 5E 00 00 EA [16:04:17]Write i2c OK [16:04:17]MH_I2C_Read... [16:04:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:17]Read from MH i2c: E2 [16:04:17]MH_I2C_Read... [16:04:17]Read from MH i2c: E2 03 00 [16:04:17]MH_I2C_Read... [16:04:17]Read from MH i2c: E2 03 00 F6 07 00 90 00 71 [16:04:17]RAPDU: 90 00 [16:04:17]wFMCommunicate OK [16:04:17]wFMCommunicate request_size=4 [16:04:17]MH_SAM_APDU [16:04:17]CAPDU: 80 0D 03 02 [16:04:17]Write to MH i2c: E2 08 00 F7 07 80 0D 03 02 00 00 00 00 79 [16:04:17]Write i2c OK [16:04:17]MH_I2C_Read... [16:04:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:17]Read from MH i2c: E2 [16:04:17]MH_I2C_Read... [16:04:17]Read from MH i2c: E2 0B 00 [16:04:17]MH_I2C_Read... [16:04:17]Read from MH i2c: E2 0B 00 F7 07 00 FB F2 2E 29 4B 25 28 82 90 00 D8 [16:04:17]RAPDU: FB F2 2E 29 4B 25 28 82 90 00 [16:04:17]wFMCommunicate OK [16:04:17]SAM_PROTO_SignData done [16:04:17]FM_MakeSignedData done [16:04:17]CreateOFDProtocolMessage [16:04:17]wFMCommunicate request_size=4 [16:04:17]MH_SAM_APDU [16:04:17]CAPDU: 80 11 00 00 [16:04:17]Write to MH i2c: E2 08 00 F8 07 80 11 00 00 00 00 00 00 79 [16:04:17]Write i2c OK [16:04:17]MH_I2C_Read... [16:04:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:17]Read from MH i2c: E2 [16:04:17]MH_I2C_Read... [16:04:17]Read from MH i2c: E2 17 00 [16:04:17]MH_I2C_Read... [16:04:17]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 34 36 35 32 90 00 CC [16:04:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:04:17]wFMCommunicate OK [16:04:17]CreateOFDProtocolMessage done [16:04:17]OFDSenderStorePacket 76475 [16:04:17]StoreOFDPacket docnum=76475 [16:04:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 38 60 06 01 09 E2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 B3 00 00 00 00 00 37 04 06 00 C6 0C 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 5F 00 00 00 F4 03 04 00 01 96 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BB 2A 01 00 35 04 06 00 7F D3 6A 73 30 5E FB F2 2E 29 4B 25 28 82 [16:04:17]CheckFolder [16:04:17]dirname=/storage/ofd_packets [16:04:17]CheckFolder done [16:04:17]ProducePacketName [16:04:17]name=ofd_packets/00076475 [16:04:17]NVStorageSaveData ofd_packets/00076475 [16:04:17]File name is /storage/ofd_packets/00076475 [16:04:17]Write 300 bytes [16:04:17]NVStorageSaveData done [16:04:17]OFDSenderStorePacket done [16:04:17]KKMCreateOFDPacket done [16:04:17]NVStorageSaveData kkm_last_timestamp [16:04:17]File name is /storage/kkm_last_timestamp [16:04:17]Write 4 bytes [16:04:17]NVStorageSaveData done [16:04:17]ExternCall_PrintAddStr [16:04:17]wPrintStart [16:04:17]Write to MH i2c: 01 00 00 F9 07 00 [16:04:17]Write i2c OK [16:04:17]MH_I2C_Read... [16:04:17]Read from MH i2c: 01 [16:04:17]MH_I2C_Read... [16:04:17]Read from MH i2c: 01 07 00 [16:04:17]MH_I2C_Read... [16:04:17]Read from MH i2c: 01 07 00 F9 07 00 00 00 00 00 FF 0F 15 [16:04:17]RasterBufferAndPrint [16:04:17]line Счет N : (1)190950 [16:04:17]line ИНН: 02508201610067 [16:04:17]line Контрольно-Кассовый Чек [16:04:17]line ПРОДАЖА [16:04:17]line ТРК (МРК, ГНК) : 71 [16:04:17]line Товар: 2711190000 [16:04:17]line ГАЗ-К-5 [16:04:17]line 45.880 * 32.70 [16:04:17]line = 1500.28 [16:04:17]line НДС 12% НСП 1% [16:04:17]line > о реализуемом товаре [16:04:17]line ИТОГО: 1500.28 [16:04:17]line НСП 1% : 13.28 [16:04:17]line НДС 12% : 159.32 [16:04:17]line Наличными: 0.00 [16:04:17]line Безнал.: 1500.28 [16:04:17]line Место: АЗС № 106 "Партнер Нефть" [16:04:17]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:04:17]line СНО: Общий режим [16:04:17]line Чек 95 19.04.2024 16:04 [16:04:17]line Смена: 370 ФФД: 1.0 [16:04:17]line ЗНМ: 0300000141 [16:04:17]line РНМ: 0000000000091573 [16:04:17]line Версия ККМ: 001 [16:04:17]line Платежная система: О! деньги [16:04:17]line ФМ: 0000000000874652 [16:04:17]line ФД: 76475 [16:04:17]line ФПД: 140546000760926 [16:04:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T160417&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76475&fm=140546000760926&tin=02508201610067®Number=0000000000091573&sum=150028 [16:04:17]written 0, free lines is 4095 [16:04:17]OFD Sender: Processing packet 76475 [packets to send 128, broken 127] [16:04:17]ProducePacketName [16:04:17]name=ofd_packets/00076475 [16:04:17]OFD Sender: To server: pG, [16:04:17]CommunicateWithHost lk.salyk.kg:30040 [16:04:17]ConnectInit lk.salyk.kg [16:04:18]Write to MH i2c: 01 00 00 22 08 2A [16:04:18]Write i2c OK [16:04:18]MH_I2C_Read... [16:04:18]Read from MH i2c: 01 [16:04:18]MH_I2C_Read... [16:04:18]Read from MH i2c: 01 07 00 [16:04:18]MH_I2C_Read... [16:04:18]Read from MH i2c: 01 07 00 22 08 00 00 00 00 00 F7 0C 34 [16:04:18]RasterBufferAndPrint [16:04:18]line [16:04:18]line [16:04:18]line [16:04:18]line [16:04:18]line [16:04:18]written 0, free lines is 3324 [16:04:18]MH_Cut [16:04:18]Write to MH i2c: D1 01 00 29 08 01 03 [16:04:18]Write i2c OK [16:04:18]MH_I2C_Read... [16:04:18]Read from MH i2c: D1 [16:04:18]MH_I2C_Read... [16:04:18]Read from MH i2c: D1 01 00 [16:04:18]MH_I2C_Read... [16:04:18]Read from MH i2c: D1 01 00 29 08 00 02 [16:04:18]Write to MH i2c: 01 00 00 2A 08 32 [16:04:18]Write i2c OK [16:04:18]MH_I2C_Read... [16:04:19]*** Cut start [16:04:19]*** Partial cut [16:04:19]*** CUTSNS_PIN = 1 [16:04:19]*** CUTSNS_PIN = 0 [16:04:19]*** Brake cut motor [16:04:19]Read from MH i2c: 01 [16:04:19]MH_I2C_Read... [16:04:19]*** Stop cut motor [16:04:19]*** Cut end [16:04:19]Read from MH i2c: 01 07 00 [16:04:19]MH_I2C_Read... [16:04:19]Read from MH i2c: 01 07 00 2A 08 00 00 00 00 00 FF 0F 47 [16:04:19]process_action close_receipt done [16:04:19]requested_data is exist [16:04:19]produce_requested_data [16:04:19]requested_item fm.sn is exist - process it [16:04:19]wFMCommunicate request_size=4 [16:04:19]MH_SAM_APDU [16:04:19]CAPDU: 80 11 00 00 [16:04:19]Write to MH i2c: E2 08 00 2B 08 80 11 00 00 00 00 00 00 AD [16:04:19]Write i2c OK [16:04:19]MH_I2C_Read... [16:04:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:19]Read from MH i2c: E2 [16:04:19]MH_I2C_Read... [16:04:19]Read from MH i2c: E2 17 00 [16:04:19]MH_I2C_Read... [16:04:19]Read from MH i2c: E2 17 00 2B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 00 [16:04:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:04:19]wFMCommunicate OK [16:04:19]requested_item fd.num is exist - process it [16:04:19]SAM_PROTO_GetFieldsCounters [16:04:19]wFMCommunicate request_size=4 [16:04:19]MH_SAM_APDU [16:04:19]CAPDU: 80 13 00 00 [16:04:19]Write to MH i2c: E2 08 00 2C 08 80 13 00 00 00 00 00 00 B0 [16:04:19]Write i2c OK [16:04:19]MH_I2C_Read... [16:04:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:19]Read from MH i2c: E2 [16:04:19]MH_I2C_Read... [16:04:19]Read from MH i2c: E2 62 00 [16:04:19]MH_I2C_Read... [16:04:19]Read from MH i2c: E2 62 00 2C 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BB 2A 01 00 0E 04 04 00 72 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 47 [16:04:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BB 2A 01 00 0E 04 04 00 72 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 [16:04:19]wFMCommunicate OK [16:04:19]SAM_PROTO_GetFieldsCounters done [16:04:19]requested_item shift.num is exist - process it [16:04:19]requested_item shift.opened is exist - process it [16:04:19]req_shift_opened [16:04:19]FM_GetShiftState [16:04:19]SAM_PROTO_GetShiftState [16:04:19]wFMCommunicate request_size=4 [16:04:19]MH_SAM_APDU [16:04:19]CAPDU: 80 13 01 00 [16:04:19]Write to MH i2c: E2 08 00 2D 08 80 13 01 00 00 00 00 00 B2 [16:04:19]Write i2c OK [16:04:19]MH_I2C_Read... [16:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:19]Read from MH i2c: E2 [16:04:19]MH_I2C_Read... [16:04:19]Read from MH i2c: E2 0E 00 [16:04:19]MH_I2C_Read... [16:04:19]Read from MH i2c: E2 0E 00 2D 08 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 97 [16:04:19]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:04:19]wFMCommunicate OK [16:04:19]SAM_PROTO_GetShiftState done [16:04:19]FM_GetShiftState done [16:04:19]req_shift_opened done [16:04:19]requested_item shift.open_date is exist - process it [16:04:19]req_shift_open_date [16:04:19]req_shift_open_date done [16:04:19]produce_requested_data done [16:04:19]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76475,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [16:04:19]process_action_free close_receipt [16:04:19]json_value_free [16:04:19]json_value_free done [16:04:19]process_json_proto returns [16:04:19]Send response to host [16:04:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76475,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [16:04:19]free response buf [16:04:19]execute_script done [16:04:19]execute_script returns [16:04:19]free content buf [16:04:19]Sock 9.Close socket [16:04:19]Sock 9.Thread stoped [16:04:32]accept exits with 7 [16:04:32]New connection [16:04:32]New thread 3066936676 created [16:04:32]Thread 3067080036 joined [16:04:32]Waiting for new connection... [16:04:32] Sock 7.Parse request [16:04:32]Sock 7.Check first char [16:04:32]Sock 7.First char is OK [16:04:32]request: POST /json_proto HTTP/1.0 [16:04:32]Method: POST [16:04:32]URL: /json_proto [16:04:32]Method is POST - this is cgi request [16:04:32]url: /json_proto [16:04:32]query_string will be loaded in cgi processing [16:04:32]execute_cgi json_proto POST (null) [16:04:32]execute_cgi path=json_proto method=POST [16:04:32]POST find Content-Length [16:04:32]Host: 172.17.62.5:8080 [16:04:32]Content-Length: 682 [16:04:32]Content-Type: application/json [16:04:32] [16:04:32]POST finish read [16:04:32]Found Content-Length = 682 [16:04:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190951", "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" : 72.90, "quantity" : 48.010, "sum" : 3499.93, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3499.00, "payments": [ { "type": 0, "sum" : 3499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:32]execute_script... [16:04: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)190951", "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" : 72.90, "quantity" : 48.010, "sum" : 3499.93, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3499.00, "payments": [ { "type": 0, "sum" : 3499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:32]POST & json_proto [16:04:32]process_json_proto [16:04:32]json parsed OK: [16:04:32]protocol is kg_v1.0 [16:04:32]action value=close_receipt [16:04:32]process_action close_receipt [16:04:32]cmd_close_receipt [16:04:32]MH_GetDate [16:04:32]Write to MH i2c: F0 00 00 2E 08 25 [16:04:32]Write i2c OK [16:04:32]MH_I2C_Read... [16:04:32]Read from MH i2c: F0 [16:04:32]MH_I2C_Read... [16:04:32]Read from MH i2c: F0 09 00 [16:04:32]MH_I2C_Read... [16:04:32]Read from MH i2c: F0 09 00 2E 08 00 11 96 22 66 F4 E9 65 64 03 [16:04:32]GetLastDocTimeStamp 1713542657 [16:04:32]current date 1713542673 [16:04:32]FM_GetShiftState [16:04:32]SAM_PROTO_GetShiftState [16:04:32]wFMCommunicate request_size=4 [16:04:32]MH_SAM_APDU [16:04:32]CAPDU: 80 13 01 00 [16:04:32]Write to MH i2c: E2 08 00 2F 08 80 13 01 00 00 00 00 00 B4 [16:04:32]Write i2c OK [16:04:32]MH_I2C_Read... [16:04:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:32]Read from MH i2c: E2 [16:04:32]MH_I2C_Read... [16:04:32]Read from MH i2c: E2 0E 00 [16:04:32]MH_I2C_Read... [16:04:32]Read from MH i2c: E2 0E 00 2F 08 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 99 [16:04:32]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:04:32]wFMCommunicate OK [16:04:32]SAM_PROTO_GetShiftState done [16:04:32]FM_GetShiftState done [16:04:32]opened in 1713486233 [16:04:32]opened+sec_in_day 1713572633 [16:04:32]quantity*price = 349992 [16:04:32]sum+1 = 349994 [16:04:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.93 ИТОГО: 3499.00 Внесено: 5000.00 СДАЧА: 1501.00 НСП 1% : 30.97 НДС 12% : 371.67 Наличными: 3499.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 96 19.04.2024 16:04 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76476 ФПД: 84401776335550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T160433&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76476&fm=84401776335550&tin=02508201610067®Number=0000000000091573&sum=349900 [16:04:33]StoreToDocumentArchive [16:04:33]shift 370 fd 76476 [16:04:33]save to /storage/0370/doc_00076476 [16:04:33]save last doc name /storage/0370/doc_00076476 to /storage/kkm_last_doc_name [16:04:33]save OK [16:04:33]Clear old archive folders... [16:04:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:04:33]tlvbuf is 009E8C50 [16:04:33]SAM_PROTO_ClearQueue [16:04:33]wFMCommunicate request_size=4 [16:04:33]MH_SAM_APDU [16:04:33]CAPDU: 80 09 00 00 [16:04:33]Write to MH i2c: E2 08 00 3C 08 80 09 00 00 00 00 00 00 B6 [16:04:33]Write i2c OK [16:04:33]MH_I2C_Read... [16:04:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:33]Read from MH i2c: E2 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: E2 03 00 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: E2 03 00 3C 08 00 90 00 B8 [16:04:33]RAPDU: 90 00 [16:04:33]wFMCommunicate OK [16:04:33]SAM_PROTO_ClearQueue done [16:04:33]KKMCreateOFDPacket [16:04:33]OFDProtocolAddRootSTLVToBuf [16:04:33]FM_MakeSignedData [16:04:33]FM_MakeSignedData [16:04:33]SAM_PROTO_SignData [16:04:33]wFMCommunicate request_size=4 [16:04:33]MH_SAM_APDU [16:04:33]CAPDU: 80 0D 01 02 [16:04:33]Write to MH i2c: E2 08 00 3D 08 80 0D 01 02 00 00 00 00 BE [16:04:33]Write i2c OK [16:04:33]MH_I2C_Read... [16:04:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:33]Read from MH i2c: E2 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: E2 03 00 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: E2 03 00 3D 08 00 90 00 B9 [16:04:33]RAPDU: 90 00 [16:04:33]wFMCommunicate OK [16:04:33]wFMCommunicate request_size=255 [16:04:33]MH_SAM_APDU [16:04:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 29 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 56 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 91 00 00 00 00 07 04 06 00 CC 56 05 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 11 96 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BC 2A 01 00 35 04 06 00 4C [16:04:33]Write to MH i2c: E2 02 01 3E 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 8A BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 29 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 56 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 91 00 00 00 00 07 04 06 00 CC 56 05 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 11 96 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BC 2A 01 00 35 04 06 00 4C 00 00 94 [16:04:33]Write i2c OK [16:04:33]MH_I2C_Read... [16:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:33]Read from MH i2c: E2 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: E2 03 00 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: E2 03 00 3E 08 00 90 00 BA [16:04:33]RAPDU: 90 00 [16:04:33]wFMCommunicate OK [16:04:33]wFMCommunicate request_size=10 [16:04:33]MH_SAM_APDU [16:04:33]CAPDU: 80 0D 02 02 05 C3 51 E5 9A BE [16:04:33]Write to MH i2c: E2 0D 00 3F 08 80 0D 02 02 05 00 C3 51 E5 9A BE 00 00 1C [16:04:33]Write i2c OK [16:04:33]MH_I2C_Read... [16:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:33]Read from MH i2c: E2 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: E2 03 00 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: E2 03 00 3F 08 00 90 00 BB [16:04:33]RAPDU: 90 00 [16:04:33]wFMCommunicate OK [16:04:33]wFMCommunicate request_size=4 [16:04:33]MH_SAM_APDU [16:04:33]CAPDU: 80 0D 03 02 [16:04:33]Write to MH i2c: E2 08 00 40 08 80 0D 03 02 00 00 00 00 C3 [16:04:33]Write i2c OK [16:04:33]MH_I2C_Read... [16:04:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:33]Read from MH i2c: E2 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: E2 0B 00 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: E2 0B 00 40 08 00 D4 BF 84 D1 FD AF A8 89 90 00 89 [16:04:33]RAPDU: D4 BF 84 D1 FD AF A8 89 90 00 [16:04:33]wFMCommunicate OK [16:04:33]SAM_PROTO_SignData done [16:04:33]FM_MakeSignedData done [16:04:33]CreateOFDProtocolMessage [16:04:33]wFMCommunicate request_size=4 [16:04:33]MH_SAM_APDU [16:04:33]CAPDU: 80 11 00 00 [16:04:33]Write to MH i2c: E2 08 00 41 08 80 11 00 00 00 00 00 00 C3 [16:04:33]Write i2c OK [16:04:33]MH_I2C_Read... [16:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:33]Read from MH i2c: E2 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: E2 17 00 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: E2 17 00 41 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 16 [16:04:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:04:33]wFMCommunicate OK [16:04:33]CreateOFDProtocolMessage done [16:04:33]OFDSenderStorePacket 76476 [16:04:33]StoreOFDPacket docnum=76476 [16:04:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 A5 C0 07 01 9A 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 29 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 56 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 91 00 00 00 00 07 04 06 00 CC 56 05 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 11 96 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BC 2A 01 00 35 04 06 00 4C C3 51 E5 9A BE D4 BF 84 D1 FD AF A8 89 [16:04:33]CheckFolder [16:04:33]dirname=/storage/ofd_packets [16:04:33]CheckFolder done [16:04:33]ProducePacketName [16:04:33]name=ofd_packets/00076476 [16:04:33]NVStorageSaveData ofd_packets/00076476 [16:04:33]File name is /storage/ofd_packets/00076476 [16:04:33]Write 301 bytes [16:04:33]NVStorageSaveData done [16:04:33]OFDSenderStorePacket done [16:04:33]KKMCreateOFDPacket done [16:04:33]NVStorageSaveData kkm_last_timestamp [16:04:33]File name is /storage/kkm_last_timestamp [16:04:33]Write 4 bytes [16:04:33]NVStorageSaveData done [16:04:33]ExternCall_PrintAddStr [16:04:33]wPrintStart [16:04:33]Write to MH i2c: 01 00 00 42 08 4A [16:04:33]Write i2c OK [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: 01 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: 01 07 00 [16:04:33]MH_I2C_Read... [16:04:33]Read from MH i2c: 01 07 00 42 08 00 00 00 00 00 FF 0F 5F [16:04:33]RasterBufferAndPrint [16:04:33]line Счет N : (1)190951 [16:04:33]line ИНН: 02508201610067 [16:04:33]line Контрольно-Кассовый Чек [16:04:33]line ПРОДАЖА [16:04:33]line ТРК (МРК, ГНК) : 32 [16:04:33]line Товар: 2710124500 [16:04:33]line Аи-95-К-5 [16:04:33]line 48.010 * 72.90 [16:04:33]line = 3499.93 [16:04:33]line НДС 12% НСП 1% [16:04:33]line > о реализуемом товаре [16:04:33]line ОКРУГЛЕНИЕ: -0.93 [16:04:33]line ИТОГО: 3499.00 [16:04:33]line Внесено: 5000.00 [16:04:33]line СДАЧА: 1501.00 [16:04:33]line НСП 1% : 30.97 [16:04:33]line НДС 12% : 371.67 [16:04:33]line Наличными: 3499.00 [16:04:33]line Безнал.: 0.00 [16:04:33]line Место: АЗС № 106 "Партнер Нефть" [16:04:33]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:04:33]line СНО: Общий режим [16:04:33]line Чек 96 19.04.2024 16:04 [16:04:33]line Смена: 370 ФФД: 1.0 [16:04:33]line ЗНМ: 0300000141 [16:04:33]line РНМ: 0000000000091573 [16:04:33]line Версия ККМ: 001 [16:04:33]line ФМ: 0000000000874652 [16:04:33]line ФД: 76476 [16:04:33]line ФПД: 84401776335550 [16:04:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T160433&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76476&fm=84401776335550&tin=02508201610067®Number=0000000000091573&sum=349900 [16:04:34]written 0, free lines is 4095 [16:04:34]Write to MH i2c: 01 00 00 6C 08 74 [16:04:34]Write i2c OK [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: 01 [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: 01 07 00 [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: 01 07 00 6C 08 00 00 00 00 00 FF 0C 86 [16:04:34]RasterBufferAndPrint [16:04:34]line [16:04:34]line [16:04:34]line [16:04:34]line [16:04:34]line [16:04:34]written 0, free lines is 3332 [16:04:34]MH_Cut [16:04:34]Write to MH i2c: D1 01 00 73 08 01 4D [16:04:34]Write i2c OK [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: D1 [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: D1 01 00 [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: D1 01 00 73 08 00 4C [16:04:34]Write to MH i2c: 01 00 00 74 08 7C [16:04:34]Write i2c OK [16:04:34]MH_I2C_Read... [16:04:35]*** Cut start [16:04:35]*** Partial cut [16:04:35]*** CUTSNS_PIN = 1 [16:04:35]*** CUTSNS_PIN = 0 [16:04:35]*** Brake cut motor [16:04:35]Read from MH i2c: 01 [16:04:35]MH_I2C_Read... [16:04:35]*** Stop cut motor [16:04:35]*** Cut end [16:04:35]Read from MH i2c: 01 07 00 [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: 01 07 00 74 08 00 00 00 00 00 FF 0F 91 [16:04:35]process_action close_receipt done [16:04:35]requested_data is exist [16:04:35]produce_requested_data [16:04:35]requested_item fm.sn is exist - process it [16:04:35]wFMCommunicate request_size=4 [16:04:35]MH_SAM_APDU [16:04:35]CAPDU: 80 11 00 00 [16:04:35]Write to MH i2c: E2 08 00 75 08 80 11 00 00 00 00 00 00 F7 [16:04:35]Write i2c OK [16:04:35]MH_I2C_Read... [16:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:35]Read from MH i2c: E2 [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: E2 17 00 [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: E2 17 00 75 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4A [16:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:04:35]wFMCommunicate OK [16:04:35]requested_item fd.num is exist - process it [16:04:35]SAM_PROTO_GetFieldsCounters [16:04:35]wFMCommunicate request_size=4 [16:04:35]MH_SAM_APDU [16:04:35]CAPDU: 80 13 00 00 [16:04:35]Write to MH i2c: E2 08 00 76 08 80 13 00 00 00 00 00 00 FA [16:04:35]Write i2c OK [16:04:35]MH_I2C_Read... [16:04:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:36]Read from MH i2c: E2 [16:04:36]MH_I2C_Read... [16:04:36]Read from MH i2c: E2 62 00 [16:04:36]MH_I2C_Read... [16:04:36]Read from MH i2c: E2 62 00 76 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BC 2A 01 00 0E 04 04 00 72 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 95 [16:04:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BC 2A 01 00 0E 04 04 00 72 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 [16:04:36]wFMCommunicate OK [16:04:36]SAM_PROTO_GetFieldsCounters done [16:04:36]requested_item shift.num is exist - process it [16:04:36]requested_item shift.opened is exist - process it [16:04:36]req_shift_opened [16:04:36]FM_GetShiftState [16:04:36]SAM_PROTO_GetShiftState [16:04:36]wFMCommunicate request_size=4 [16:04:36]MH_SAM_APDU [16:04:36]CAPDU: 80 13 01 00 [16:04:36]Write to MH i2c: E2 08 00 77 08 80 13 01 00 00 00 00 00 FC [16:04:36]Write i2c OK [16:04:36]MH_I2C_Read... [16:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:36]Read from MH i2c: E2 [16:04:36]MH_I2C_Read... [16:04:36]Read from MH i2c: E2 0E 00 [16:04:36]MH_I2C_Read... [16:04:36]Read from MH i2c: E2 0E 00 77 08 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E1 [16:04:36]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:04:36]wFMCommunicate OK [16:04:36]SAM_PROTO_GetShiftState done [16:04:36]FM_GetShiftState done [16:04:36]req_shift_opened done [16:04:36]requested_item shift.open_date is exist - process it [16:04:36]req_shift_open_date [16:04:36]req_shift_open_date done [16:04:36]produce_requested_data done [16:04:36]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76476,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [16:04:36]process_action_free close_receipt [16:04:36]json_value_free [16:04:36]json_value_free done [16:04:36]process_json_proto returns [16:04:36]Send response to host [16:04:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76476,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [16:04:36]free response buf [16:04:36]execute_script done [16:04:36]execute_script returns [16:04:36]free content buf [16:04:36]Sock 7.Close socket [16:04:36]Sock 7.Thread stoped [16:06:30]ConnectInit Can't connect to host [16:06:30]CommunicateWithHost connect error [16:06:30]CommunicateWithHost err = -1 [16:06:30]OFD Sender: Server communicate error [16:06:30]OFD Sender: Processing packet 76475 [packets to send 129, broken 127] [16:06:30]ProducePacketName [16:06:30]name=ofd_packets/00076475 [16:06:30]OFD Sender: To server: pG, [16:06:30]CommunicateWithHost lk.salyk.kg:30040 [16:06:30]ConnectInit lk.salyk.kg [16:06:31]Connected sock=7 [16:06:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 38 60 06 01 09 E2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 B3 00 00 00 00 00 37 04 06 00 C6 0C 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 5F 00 00 00 F4 03 04 00 01 96 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BB 2A 01 00 35 04 06 00 7F D3 6A 73 30 5E FB F2 2E 29 4B 25 28 82 [16:06:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 71 D2 47 00 D7 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 34 36 35 32 10 04 04 00 BB 2A 01 00 F4 03 04 00 11 3E 22 66 B6 04 01 00 00 74 04 9F E3 3D 80 4E 32 [16:06:31]CommunicateWithHost err = 0 [16:06:31]CheckOFDResponse [16:06:31]1017 (14) - 77093643461234 [16:06:31]1041 (16) - 0000000000874652 [16:06:31]1040 (4) - 76475 [16:06:31]1012 (4) - 19.04.2024 09:49 [16:06:31]1206 (1) - 0 [16:06:31]OFD Sender: Remove packet 76475 [16:06:31]ProducePacketName [16:06:31]name=ofd_packets/00076475 [16:06:31]NVStorageDeleteData [16:06:32]OFD Sender: Processing packet 76476 [packets to send 128, broken 127] [16:06:32]ProducePacketName [16:06:32]name=ofd_packets/00076476 [16:06:32]OFD Sender: To server: pG, [16:06:32]CommunicateWithHost lk.salyk.kg:30040 [16:06:32]ConnectInit lk.salyk.kg [16:06:32]Connected sock=10 [16:06:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 A5 C0 07 01 9A 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 29 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 56 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 91 00 00 00 00 07 04 06 00 CC 56 05 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 11 96 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BC 2A 01 00 35 04 06 00 4C C3 51 E5 9A BE D4 BF 84 D1 FD AF A8 89 [16:06:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 3A BE 47 00 BA 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BC 2A 01 00 F4 03 04 00 12 3E 22 66 B6 04 01 00 00 E1 B6 3D 6E 8D 8A 06 59 [16:06:32]CommunicateWithHost err = 0 [16:06:32]CheckOFDResponse [16:06:32]1017 (14) - 77093643461234 [16:06:32]1041 (16) - 0000000000874652 [16:06:32]1040 (4) - 76476 [16:06:32]1012 (4) - 19.04.2024 09:49 [16:06:32]1206 (1) - 0 [16:06:32]OFD Sender: Remove packet 76476 [16:06:32]ProducePacketName [16:06:32]name=ofd_packets/00076476 [16:06:32]NVStorageDeleteData [16:06:33]OFD Sender: No OFD packet to send [16:06:36]accept exits with 9 [16:06:36]New connection [16:06:36]New thread 3067080036 created [16:06:36]Thread 3066936676 joined [16:06:36]Waiting for new connection... [16:06:36] Sock 9.Parse request [16:06:36]Sock 9.Check first char [16:06:36]Sock 9.First char is OK [16:06:36]request: POST /json_proto HTTP/1.0 [16:06:36]Method: POST [16:06:36]URL: /json_proto [16:06:36]Method is POST - this is cgi request [16:06:36]url: /json_proto [16:06:36]query_string will be loaded in cgi processing [16:06:36]execute_cgi json_proto POST (null) [16:06:36]execute_cgi path=json_proto method=POST [16:06:36]POST find Content-Length [16:06:36]Host: 172.17.62.5:8080 [16:06:36]Content-Length: 677 [16:06:36]Content-Type: application/json [16:06:36] [16:06:36]POST finish read [16:06:36]Found Content-Length = 677 [16:06:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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:06:36]execute_script... [16:06: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)190953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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:06:36]POST & json_proto [16:06:36]process_json_proto [16:06:36]json parsed OK: [16:06:36]protocol is kg_v1.0 [16:06:36]action value=close_receipt [16:06:36]process_action close_receipt [16:06:36]cmd_close_receipt [16:06:36]MH_GetDate [16:06:36]Write to MH i2c: F0 00 00 78 08 6F [16:06:36]Write i2c OK [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: F0 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: F0 09 00 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: F0 09 00 78 08 00 8D 96 22 66 F4 E9 65 64 C9 [16:06:36]GetLastDocTimeStamp 1713542673 [16:06:36]current date 1713542797 [16:06:36]FM_GetShiftState [16:06:36]SAM_PROTO_GetShiftState [16:06:36]wFMCommunicate request_size=4 [16:06:36]MH_SAM_APDU [16:06:36]CAPDU: 80 13 01 00 [16:06:36]Write to MH i2c: E2 08 00 79 08 80 13 01 00 00 00 00 00 FE [16:06:36]Write i2c OK [16:06:36]MH_I2C_Read... [16:06:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:36]Read from MH i2c: E2 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: E2 0E 00 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: E2 0E 00 79 08 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E3 [16:06:36]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:06:36]wFMCommunicate OK [16:06:36]SAM_PROTO_GetShiftState done [16:06:36]FM_GetShiftState done [16:06:36]opened in 1713486233 [16:06:36]opened+sec_in_day 1713572633 [16:06:36]quantity*price = 30010 [16:06:36]sum+1 = 30011 [16:06:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 97 19.04.2024 16:06 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76477 ФПД: 101798312988030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T160637&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76477&fm=101798312988030&tin=02508201610067®Number=0000000000091573&sum=30000 [16:06:37]StoreToDocumentArchive [16:06:37]shift 370 fd 76477 [16:06:37]save to /storage/0370/doc_00076477 [16:06:37]save last doc name /storage/0370/doc_00076477 to /storage/kkm_last_doc_name [16:06:37]save OK [16:06:37]Clear old archive folders... [16:06:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:06:37]tlvbuf is 009B04C0 [16:06:37]SAM_PROTO_ClearQueue [16:06:37]wFMCommunicate request_size=4 [16:06:37]MH_SAM_APDU [16:06:37]CAPDU: 80 09 00 00 [16:06:37]Write to MH i2c: E2 08 00 86 08 80 09 00 00 00 00 00 00 00 [16:06:37]Write i2c OK [16:06:37]MH_I2C_Read... [16:06:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:37]Read from MH i2c: E2 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 03 00 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 03 00 86 08 00 90 00 02 [16:06:37]RAPDU: 90 00 [16:06:37]wFMCommunicate OK [16:06:37]SAM_PROTO_ClearQueue done [16:06:37]KKMCreateOFDPacket [16:06:37]OFDProtocolAddRootSTLVToBuf [16:06:37]FM_MakeSignedData [16:06:37]FM_MakeSignedData [16:06:37]SAM_PROTO_SignData [16:06:37]wFMCommunicate request_size=4 [16:06:37]MH_SAM_APDU [16:06:37]CAPDU: 80 0D 01 02 [16:06:37]Write to MH i2c: E2 08 00 87 08 80 0D 01 02 00 00 00 00 08 [16:06:37]Write i2c OK [16:06:37]MH_I2C_Read... [16:06:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:37]Read from MH i2c: E2 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 03 00 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 03 00 87 08 00 90 00 03 [16:06:37]RAPDU: 90 00 [16:06:37]wFMCommunicate OK [16:06:37]wFMCommunicate request_size=255 [16:06:37]MH_SAM_APDU [16:06: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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 61 00 00 00 F4 03 04 00 8D 96 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BD 2A 01 00 35 04 06 00 5C [16:06:37]Write to MH i2c: E2 02 01 88 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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 61 00 00 00 F4 03 04 00 8D 96 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BD 2A 01 00 35 04 06 00 5C 00 00 DF [16:06:37]Write i2c OK [16:06:37]MH_I2C_Read... [16:06:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:37]Read from MH i2c: E2 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 03 00 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 03 00 88 08 00 90 00 04 [16:06:37]RAPDU: 90 00 [16:06:37]wFMCommunicate OK [16:06:37]wFMCommunicate request_size=10 [16:06:37]MH_SAM_APDU [16:06:37]CAPDU: 80 0D 02 02 05 95 C4 48 CD 7E [16:06:37]Write to MH i2c: E2 0D 00 89 08 80 0D 02 02 05 00 95 C4 48 CD 7E 00 00 01 [16:06:37]Write i2c OK [16:06:37]MH_I2C_Read... [16:06:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:37]Read from MH i2c: E2 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 03 00 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 03 00 89 08 00 90 00 05 [16:06:37]RAPDU: 90 00 [16:06:37]wFMCommunicate OK [16:06:37]wFMCommunicate request_size=4 [16:06:37]MH_SAM_APDU [16:06:37]CAPDU: 80 0D 03 02 [16:06:37]Write to MH i2c: E2 08 00 8A 08 80 0D 03 02 00 00 00 00 0D [16:06:37]Write i2c OK [16:06:37]MH_I2C_Read... [16:06:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:37]Read from MH i2c: E2 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 0B 00 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 0B 00 8A 08 00 FA 13 9A 7C 53 68 83 1E 90 00 8D [16:06:37]RAPDU: FA 13 9A 7C 53 68 83 1E 90 00 [16:06:37]wFMCommunicate OK [16:06:37]SAM_PROTO_SignData done [16:06:37]FM_MakeSignedData done [16:06:37]CreateOFDProtocolMessage [16:06:37]wFMCommunicate request_size=4 [16:06:37]MH_SAM_APDU [16:06:37]CAPDU: 80 11 00 00 [16:06:37]Write to MH i2c: E2 08 00 8B 08 80 11 00 00 00 00 00 00 0D [16:06:37]Write i2c OK [16:06:37]MH_I2C_Read... [16:06:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:38]Read from MH i2c: E2 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 17 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 17 00 8B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 60 [16:06:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:06:38]wFMCommunicate OK [16:06:38]CreateOFDProtocolMessage done [16:06:38]OFDSenderStorePacket 76477 [16:06:38]StoreOFDPacket docnum=76477 [16:06:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 A2 8A 07 01 D3 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 61 00 00 00 F4 03 04 00 8D 96 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BD 2A 01 00 35 04 06 00 5C 95 C4 48 CD 7E FA 13 9A 7C 53 68 83 1E [16:06:38]CheckFolder [16:06:38]dirname=/storage/ofd_packets [16:06:38]CheckFolder done [16:06:38]ProducePacketName [16:06:38]name=ofd_packets/00076477 [16:06:38]NVStorageSaveData ofd_packets/00076477 [16:06:38]File name is /storage/ofd_packets/00076477 [16:06:38]Write 301 bytes [16:06:38]NVStorageSaveData done [16:06:38]OFDSenderStorePacket done [16:06:38]KKMCreateOFDPacket done [16:06:38]NVStorageSaveData kkm_last_timestamp [16:06:38]File name is /storage/kkm_last_timestamp [16:06:38]Write 4 bytes [16:06:38]NVStorageSaveData done [16:06:38]OFD Sender: Processing packet 76477 [packets to send 128, broken 127] [16:06:38]ProducePacketName [16:06:38]name=ofd_packets/00076477 [16:06:38]OFD Sender: To server: pG, [16:06:38]CommunicateWithHost lk.salyk.kg:30040 [16:06:38]ConnectInit lk.salyk.kg [16:06:38]ExternCall_PrintAddStr [16:06:38]wPrintStart [16:06:38]Write to MH i2c: 01 00 00 8C 08 94 [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: 01 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: 01 07 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: 01 07 00 8C 08 00 00 00 00 00 FF 0F A9 [16:06:38]RasterBufferAndPrint [16:06:38]line Счет N : (1)190953 [16:06:38]line ИНН: 02508201610067 [16:06:38]line Контрольно-Кассовый Чек [16:06:38]line ПРОДАЖА [16:06:38]line ТРК (МРК, ГНК) : 43 [16:06:38]line Товар: 2710124130 [16:06:38]line Аи-92-К-5 [16:06:38]line 4.660 * 64.40 [16:06:38]line = 300.10 [16:06:38]line НДС 12% НСП 1% [16:06:38]line > о реализуемом товаре [16:06:38]line ОКРУГЛЕНИЕ: -0.10 [16:06:38]line ИТОГО: 300.00 [16:06:38]line Внесено: 300.00 [16:06:38]line СДАЧА: 0.00 [16:06:38]line НСП 1% : 2.66 [16:06:38]line НДС 12% : 31.87 [16:06:38]line Наличными: 300.00 [16:06:38]line Безнал.: 0.00 [16:06:38]line Место: АЗС № 106 "Партнер Нефть" [16:06:38]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:06:38]line СНО: Общий режим [16:06:38]line Чек 97 19.04.2024 16:06 [16:06:38]line Смена: 370 ФФД: 1.0 [16:06:38]line ЗНМ: 0300000141 [16:06:38]line РНМ: 0000000000091573 [16:06:38]line Версия ККМ: 001 [16:06:38]line ФМ: 0000000000874652 [16:06:38]line ФД: 76477 [16:06:38]line ФПД: 101798312988030 [16:06:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T160637&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76477&fm=101798312988030&tin=02508201610067®Number=0000000000091573&sum=30000 [16:06:38]Connected sock=11 [16:06:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 A2 8A 07 01 D3 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 61 00 00 00 F4 03 04 00 8D 96 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BD 2A 01 00 35 04 06 00 5C 95 C4 48 CD 7E FA 13 9A 7C 53 68 83 1E [16:06:38]written 0, free lines is 4095 [16:06:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 BC E9 47 00 D4 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BD 2A 01 00 F4 03 04 00 18 3E 22 66 B6 04 01 00 00 16 8A 64 E1 F0 55 32 D4 [16:06:38]CommunicateWithHost err = 0 [16:06:38]CheckOFDResponse [16:06:38]1017 (14) - 77093643461234 [16:06:38]1041 (16) - 0000000000874652 [16:06:38]1040 (4) - 76477 [16:06:38]1012 (4) - 19.04.2024 09:49 [16:06:38]1206 (1) - 0 [16:06:38]OFD Sender: Remove packet 76477 [16:06:38]ProducePacketName [16:06:38]name=ofd_packets/00076477 [16:06:38]NVStorageDeleteData [16:06:38]Write to MH i2c: 01 00 00 B6 08 BE [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: 01 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: 01 07 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: 01 07 00 B6 08 00 00 00 00 00 EB 0C BC [16:06:38]RasterBufferAndPrint [16:06:38]line [16:06:38]line [16:06:38]line [16:06:38]line [16:06:38]line [16:06:38]written 0, free lines is 3313 [16:06:38]MH_Cut [16:06:38]Write to MH i2c: D1 01 00 BD 08 01 97 [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: D1 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: D1 01 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: D1 01 00 BD 08 00 96 [16:06:38]Write to MH i2c: 01 00 00 BE 08 C6 [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:39]OFD Sender: No OFD packet to send [16:06:39]*** Cut start [16:06:39]*** Partial cut [16:06:39]*** CUTSNS_PIN = 1 [16:06:39]*** CUTSNS_PIN = 0 [16:06:39]*** Brake cut motor [16:06:40]Read from MH i2c: 01 [16:06:40]MH_I2C_Read... [16:06:40]*** Stop cut motor [16:06:40]*** Cut end [16:06:40]Read from MH i2c: 01 07 00 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: 01 07 00 BE 08 00 00 00 00 00 FF 0F DB [16:06:40]process_action close_receipt done [16:06:40]requested_data is exist [16:06:40]produce_requested_data [16:06:40]requested_item fm.sn is exist - process it [16:06:40]wFMCommunicate request_size=4 [16:06:40]MH_SAM_APDU [16:06:40]CAPDU: 80 11 00 00 [16:06:40]Write to MH i2c: E2 08 00 BF 08 80 11 00 00 00 00 00 00 41 [16:06:40]Write i2c OK [16:06:40]MH_I2C_Read... [16:06:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:40]Read from MH i2c: E2 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 17 00 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 17 00 BF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 94 [16:06:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:06:40]wFMCommunicate OK [16:06:40]requested_item fd.num is exist - process it [16:06:40]SAM_PROTO_GetFieldsCounters [16:06:40]wFMCommunicate request_size=4 [16:06:40]MH_SAM_APDU [16:06:40]CAPDU: 80 13 00 00 [16:06:40]Write to MH i2c: E2 08 00 C0 08 80 13 00 00 00 00 00 00 44 [16:06:40]Write i2c OK [16:06:40]MH_I2C_Read... [16:06:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:40]Read from MH i2c: E2 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 62 00 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 62 00 C0 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BD 2A 01 00 0E 04 04 00 72 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 E3 [16:06:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BD 2A 01 00 0E 04 04 00 72 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 [16:06:40]wFMCommunicate OK [16:06:40]SAM_PROTO_GetFieldsCounters done [16:06:40]requested_item shift.num is exist - process it [16:06:40]requested_item shift.opened is exist - process it [16:06:40]req_shift_opened [16:06:40]FM_GetShiftState [16:06:40]SAM_PROTO_GetShiftState [16:06:40]wFMCommunicate request_size=4 [16:06:40]MH_SAM_APDU [16:06:40]CAPDU: 80 13 01 00 [16:06:40]Write to MH i2c: E2 08 00 C1 08 80 13 01 00 00 00 00 00 46 [16:06:40]Write i2c OK [16:06:40]MH_I2C_Read... [16:06:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:40]Read from MH i2c: E2 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 0E 00 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 0E 00 C1 08 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 2B [16:06:40]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:06:40]wFMCommunicate OK [16:06:40]SAM_PROTO_GetShiftState done [16:06:40]FM_GetShiftState done [16:06:40]req_shift_opened done [16:06:40]requested_item shift.open_date is exist - process it [16:06:40]req_shift_open_date [16:06:40]req_shift_open_date done [16:06:40]produce_requested_data done [16:06:40]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76477,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [16:06:40]process_action_free close_receipt [16:06:40]json_value_free [16:06:40]json_value_free done [16:06:40]process_json_proto returns [16:06:40]Send response to host [16:06:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76477,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [16:06:40]free response buf [16:06:40]execute_script done [16:06:40]execute_script returns [16:06:40]free content buf [16:06:40]Sock 9.Close socket [16:06:40]Sock 9.Thread stoped [16:06:43]accept exits with 7 [16:06:43]New connection [16:06:43]New thread 3066936676 created [16:06:43]Thread 3067080036 joined [16:06:43]Waiting for new connection... [16:06:43] Sock 7.Parse request [16:06:43]Sock 7.Check first char [16:06:43]Sock 7.First char is OK [16:06:43]request: POST /json_proto HTTP/1.0 [16:06:43]Method: POST [16:06:43]URL: /json_proto [16:06:43]Method is POST - this is cgi request [16:06:43]url: /json_proto [16:06:43]query_string will be loaded in cgi processing [16:06:43]execute_cgi json_proto POST (null) [16:06:43]execute_cgi path=json_proto method=POST [16:06:43]POST find Content-Length [16:06:43]Host: 172.17.62.5:8080 [16:06:43]Content-Length: 679 [16:06:43]Content-Type: application/json [16:06:43] [16:06:43]POST finish read [16:06:43]Found Content-Length = 679 [16:06:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190952", "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" ] } } [16:06:43]execute_script... [16:06: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)190952", "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" ] } } [16:06:43]POST & json_proto [16:06:43]process_json_proto [16:06:43]json parsed OK: [16:06:43]protocol is kg_v1.0 [16:06:43]action value=close_receipt [16:06:43]process_action close_receipt [16:06:43]cmd_close_receipt [16:06:43]MH_GetDate [16:06:43]Write to MH i2c: F0 00 00 C2 08 B9 [16:06:43]Write i2c OK [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: F0 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: F0 09 00 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: F0 09 00 C2 08 00 95 96 22 66 F4 E9 65 64 1B [16:06:43]GetLastDocTimeStamp 1713542797 [16:06:43]current date 1713542805 [16:06:43]FM_GetShiftState [16:06:43]SAM_PROTO_GetShiftState [16:06:43]wFMCommunicate request_size=4 [16:06:43]MH_SAM_APDU [16:06:43]CAPDU: 80 13 01 00 [16:06:43]Write to MH i2c: E2 08 00 C3 08 80 13 01 00 00 00 00 00 48 [16:06:43]Write i2c OK [16:06:43]MH_I2C_Read... [16:06:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:43]Read from MH i2c: E2 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 0E 00 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 0E 00 C3 08 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 2D [16:06:43]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:06:43]wFMCommunicate OK [16:06:43]SAM_PROTO_GetShiftState done [16:06:43]FM_GetShiftState done [16:06:43]opened in 1713486233 [16:06:43]opened+sec_in_day 1713572633 [16:06:43]quantity*price = 100018 [16:06:43]sum+1 = 100020 [16:06:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 98 19.04.2024 16:06 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76478 ФПД: 244157262423182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T160645&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76478&fm=244157262423182&tin=02508201610067®Number=0000000000091573&sum=100000 [16:06:45]StoreToDocumentArchive [16:06:45]shift 370 fd 76478 [16:06:45]save to /storage/0370/doc_00076478 [16:06:45]save last doc name /storage/0370/doc_00076478 to /storage/kkm_last_doc_name [16:06:45]save OK [16:06:45]Clear old archive folders... [16:06:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:06:45]tlvbuf is 009B82B0 [16:06:45]SAM_PROTO_ClearQueue [16:06:45]wFMCommunicate request_size=4 [16:06:45]MH_SAM_APDU [16:06:45]CAPDU: 80 09 00 00 [16:06:45]Write to MH i2c: E2 08 00 D0 08 80 09 00 00 00 00 00 00 4A [16:06:45]Write i2c OK [16:06:45]MH_I2C_Read... [16:06:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:45]Read from MH i2c: E2 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 03 00 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 03 00 D0 08 00 90 00 4C [16:06:45]RAPDU: 90 00 [16:06:45]wFMCommunicate OK [16:06:45]SAM_PROTO_ClearQueue done [16:06:45]KKMCreateOFDPacket [16:06:45]OFDProtocolAddRootSTLVToBuf [16:06:45]FM_MakeSignedData [16:06:45]FM_MakeSignedData [16:06:45]SAM_PROTO_SignData [16:06:45]wFMCommunicate request_size=4 [16:06:45]MH_SAM_APDU [16:06:45]CAPDU: 80 0D 01 02 [16:06:45]Write to MH i2c: E2 08 00 D1 08 80 0D 01 02 00 00 00 00 52 [16:06:45]Write i2c OK [16:06:45]MH_I2C_Read... [16:06:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:45]Read from MH i2c: E2 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 03 00 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 03 00 D1 08 00 90 00 4D [16:06:45]RAPDU: 90 00 [16:06:45]wFMCommunicate OK [16:06:45]wFMCommunicate request_size=255 [16:06:45]MH_SAM_APDU [16:06: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 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 62 00 00 00 F4 03 04 00 95 96 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BE 2A 01 00 35 04 06 00 DE 0F 4A E5 [16:06:45]Write to MH i2c: E2 02 01 D2 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 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 62 00 00 00 F4 03 04 00 95 96 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BE 2A 01 00 35 04 06 00 DE 0F 4A E5 00 00 45 [16:06:45]Write i2c OK [16:06:45]MH_I2C_Read... [16:06:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:45]Read from MH i2c: E2 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 03 00 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 03 00 D2 08 00 90 00 4E [16:06:45]RAPDU: 90 00 [16:06:45]wFMCommunicate OK [16:06:45]wFMCommunicate request_size=7 [16:06:45]MH_SAM_APDU [16:06:45]CAPDU: 80 0D 02 02 02 64 8E [16:06:45]Write to MH i2c: E2 0A 00 D3 08 80 0D 02 02 02 00 64 8E 00 00 4B [16:06:45]Write i2c OK [16:06:45]MH_I2C_Read... [16:06:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:45]Read from MH i2c: E2 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 03 00 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 03 00 D3 08 00 90 00 4F [16:06:45]RAPDU: 90 00 [16:06:45]wFMCommunicate OK [16:06:45]wFMCommunicate request_size=4 [16:06:45]MH_SAM_APDU [16:06:45]CAPDU: 80 0D 03 02 [16:06:45]Write to MH i2c: E2 08 00 D4 08 80 0D 03 02 00 00 00 00 57 [16:06:45]Write i2c OK [16:06:45]MH_I2C_Read... [16:06:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:45]Read from MH i2c: E2 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 0B 00 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 0B 00 D4 08 00 0A 6E BC D5 60 D1 13 E7 90 00 8C [16:06:45]RAPDU: 0A 6E BC D5 60 D1 13 E7 90 00 [16:06:45]wFMCommunicate OK [16:06:45]SAM_PROTO_SignData done [16:06:45]FM_MakeSignedData done [16:06:45]CreateOFDProtocolMessage [16:06:45]wFMCommunicate request_size=4 [16:06:45]MH_SAM_APDU [16:06:45]CAPDU: 80 11 00 00 [16:06:45]Write to MH i2c: E2 08 00 D5 08 80 11 00 00 00 00 00 00 57 [16:06:45]Write i2c OK [16:06:45]MH_I2C_Read... [16:06:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:45]Read from MH i2c: E2 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 17 00 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 17 00 D5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AA [16:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:06:45]wFMCommunicate OK [16:06:45]CreateOFDProtocolMessage done [16:06:45]OFDSenderStorePacket 76478 [16:06:45]StoreOFDPacket docnum=76478 [16:06:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 35 88 04 01 6B 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 62 00 00 00 F4 03 04 00 95 96 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BE 2A 01 00 35 04 06 00 DE 0F 4A E5 64 8E 0A 6E BC D5 60 D1 13 E7 [16:06:45]CheckFolder [16:06:45]dirname=/storage/ofd_packets [16:06:45]CheckFolder done [16:06:45]ProducePacketName [16:06:45]name=ofd_packets/00076478 [16:06:45]NVStorageSaveData ofd_packets/00076478 [16:06:45]File name is /storage/ofd_packets/00076478 [16:06:45]Write 298 bytes [16:06:45]NVStorageSaveData done [16:06:45]OFDSenderStorePacket done [16:06:45]KKMCreateOFDPacket done [16:06:45]NVStorageSaveData kkm_last_timestamp [16:06:45]File name is /storage/kkm_last_timestamp [16:06:45]Write 4 bytes [16:06:45]NVStorageSaveData done [16:06:45]ExternCall_PrintAddStr [16:06:45]wPrintStart [16:06:45]Write to MH i2c: 01 00 00 D6 08 DE [16:06:45]Write i2c OK [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: 01 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: 01 07 00 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: 01 07 00 D6 08 00 00 00 00 00 FF 0F F3 [16:06:45]RasterBufferAndPrint [16:06:45]line Счет N : (1)190952 [16:06:45]line ИНН: 02508201610067 [16:06:45]line Контрольно-Кассовый Чек [16:06:45]line ПРОДАЖА [16:06:45]line ТРК (МРК, ГНК) : 51 [16:06:45]line Товар: 2710194210 [16:06:45]line ДТ-К-5 [16:06:45]line 13.720 * 72.90 [16:06:45]line = 1000.19 [16:06:45]line НДС 12% НСП 1% [16:06:45]line > о реализуемом товаре [16:06:45]line ОКРУГЛЕНИЕ: -0.19 [16:06:45]line ИТОГО: 1000.00 [16:06:45]line Внесено: 1000.00 [16:06:45]line СДАЧА: 0.00 [16:06:45]line НСП 1% : 8.85 [16:06:45]line НДС 12% : 106.21 [16:06:45]line Наличными: 1000.00 [16:06:45]line Безнал.: 0.00 [16:06:45]line Место: АЗС № 106 "Партнер Нефть" [16:06:45]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:06:45]line СНО: Общий режим [16:06:45]line Чек 98 19.04.2024 16:06 [16:06:45]line Смена: 370 ФФД: 1.0 [16:06:45]line ЗНМ: 0300000141 [16:06:45]line РНМ: 0000000000091573 [16:06:45]line Версия ККМ: 001 [16:06:45]line ФМ: 0000000000874652 [16:06:45]line ФД: 76478 [16:06:45]line ФПД: 244157262423182 [16:06:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T160645&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76478&fm=244157262423182&tin=02508201610067®Number=0000000000091573&sum=100000 [16:06:45]written 0, free lines is 4095 [16:06:45]OFD Sender: Processing packet 76478 [packets to send 128, broken 127] [16:06:45]ProducePacketName [16:06:45]name=ofd_packets/00076478 [16:06:45]OFD Sender: To server: pG, [16:06:45]CommunicateWithHost lk.salyk.kg:30040 [16:06:45]ConnectInit lk.salyk.kg [16:06:45]Connected sock=10 [16:06:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 35 88 04 01 6B 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 62 00 00 00 F4 03 04 00 95 96 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BE 2A 01 00 35 04 06 00 DE 0F 4A E5 64 8E 0A 6E BC D5 60 D1 13 E7 [16:06:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 15 83 47 00 67 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 34 36 35 32 10 04 04 00 BE 2A 01 00 F4 03 04 00 20 3E 22 66 B6 04 01 00 00 46 56 DA 03 15 FF 03 75 [16:06:46]CommunicateWithHost err = 0 [16:06:46]CheckOFDResponse [16:06:46]1017 (14) - 77093643461234 [16:06:46]1041 (16) - 0000000000874652 [16:06:46]1040 (4) - 76478 [16:06:46]1012 (4) - 19.04.2024 09:49 [16:06:46]1206 (1) - 0 [16:06:46]OFD Sender: Remove packet 76478 [16:06:46]ProducePacketName [16:06:46]name=ofd_packets/00076478 [16:06:46]NVStorageDeleteData [16:06:46]Write to MH i2c: 01 00 00 00 09 09 [16:06:46]Write i2c OK [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: 01 [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: 01 07 00 [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: 01 07 00 00 09 00 00 00 00 00 02 0D 1F [16:06:46]RasterBufferAndPrint [16:06:46]line [16:06:46]line [16:06:46]line [16:06:46]line [16:06:46]line [16:06:46]written 0, free lines is 3342 [16:06:46]MH_Cut [16:06:46]Write to MH i2c: D1 01 00 07 09 01 E2 [16:06:46]Write i2c OK [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: D1 [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: D1 01 00 [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: D1 01 00 07 09 00 E1 [16:06:46]Write to MH i2c: 01 00 00 08 09 11 [16:06:46]Write i2c OK [16:06:46]MH_I2C_Read... [16:06:46]OFD Sender: No OFD packet to send [16:06:46]*** Cut start [16:06:46]*** Partial cut [16:06:46]*** CUTSNS_PIN = 1 [16:06:46]*** CUTSNS_PIN = 0 [16:06:47]*** Brake cut motor [16:06:47]Read from MH i2c: 01 [16:06:47]MH_I2C_Read... [16:06:47]*** Stop cut motor [16:06:47]*** Cut end [16:06:47]Read from MH i2c: 01 07 00 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: 01 07 00 08 09 00 00 00 00 00 FF 0F 26 [16:06:47]process_action close_receipt done [16:06:47]requested_data is exist [16:06:47]produce_requested_data [16:06:47]requested_item fm.sn is exist - process it [16:06:47]wFMCommunicate request_size=4 [16:06:47]MH_SAM_APDU [16:06:47]CAPDU: 80 11 00 00 [16:06:47]Write to MH i2c: E2 08 00 09 09 80 11 00 00 00 00 00 00 8C [16:06:47]Write i2c OK [16:06:47]MH_I2C_Read... [16:06:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:47]Read from MH i2c: E2 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 17 00 [16:06:47]MH_I2C_Read... [16:06:47]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 34 36 35 32 90 00 DF [16:06:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:06:47]wFMCommunicate OK [16:06:47]requested_item fd.num is exist - process it [16:06:47]SAM_PROTO_GetFieldsCounters [16:06:47]wFMCommunicate request_size=4 [16:06:47]MH_SAM_APDU [16:06:47]CAPDU: 80 13 00 00 [16:06:47]Write to MH i2c: E2 08 00 0A 09 80 13 00 00 00 00 00 00 8F [16:06:47]Write i2c OK [16:06:47]MH_I2C_Read... [16:06:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:47]Read from MH i2c: E2 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 62 00 [16:06:47]MH_I2C_Read... [16:06:47]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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BE 2A 01 00 0E 04 04 00 72 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 32 [16:06:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BE 2A 01 00 0E 04 04 00 72 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 [16:06:47]wFMCommunicate OK [16:06:47]SAM_PROTO_GetFieldsCounters done [16:06:47]requested_item shift.num is exist - process it [16:06:47]requested_item shift.opened is exist - process it [16:06:47]req_shift_opened [16:06:47]FM_GetShiftState [16:06:47]SAM_PROTO_GetShiftState [16:06:47]wFMCommunicate request_size=4 [16:06:47]MH_SAM_APDU [16:06:47]CAPDU: 80 13 01 00 [16:06:47]Write to MH i2c: E2 08 00 0B 09 80 13 01 00 00 00 00 00 91 [16:06:47]Write i2c OK [16:06:47]MH_I2C_Read... [16:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:47]Read from MH i2c: E2 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 0E 00 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 0E 00 0B 09 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 76 [16:06:47]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:06:47]wFMCommunicate OK [16:06:47]SAM_PROTO_GetShiftState done [16:06:47]FM_GetShiftState done [16:06:47]req_shift_opened done [16:06:47]requested_item shift.open_date is exist - process it [16:06:47]req_shift_open_date [16:06:47]req_shift_open_date done [16:06:47]produce_requested_data done [16:06:47]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76478,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [16:06:47]process_action_free close_receipt [16:06:47]json_value_free [16:06:47]json_value_free done [16:06:47]process_json_proto returns [16:06:47]Send response to host [16:06:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76478,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [16:06:47]free response buf [16:06:47]execute_script done [16:06:47]execute_script returns [16:06:47]free content buf [16:06:47]Sock 7.Close socket [16:06:47]Sock 7.Thread stoped [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:42]accept exits with 9 [16:09:42]New connection [16:09:42]New thread 3067080036 created [16:09:42]Thread 3066936676 joined [16:09:42]Waiting for new connection... [16:09:42] Sock 9.Parse request [16:09:42]Sock 9.Check first char [16:09:42]Sock 9.First char is OK [16:09:42]request: POST /json_proto HTTP/1.0 [16:09:42]Method: POST [16:09:42]URL: /json_proto [16:09:42]Method is POST - this is cgi request [16:09:42]url: /json_proto [16:09:42]query_string will be loaded in cgi processing [16:09:42]execute_cgi json_proto POST (null) [16:09:42]execute_cgi path=json_proto method=POST [16:09:42]POST find Content-Length [16:09:42]Host: 172.17.62.5:8080 [16:09:42]Content-Length: 677 [16:09:42]Content-Type: application/json [16:09:42] [16:09:42]POST finish read [16:09:42]Found Content-Length = 677 [16:09:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 3.110, "sum" : 200.28, "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:09:42]execute_script... [16:09:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 3.110, "sum" : 200.28, "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:09:42]POST & json_proto [16:09:42]process_json_proto [16:09:42]json parsed OK: [16:09:42]protocol is kg_v1.0 [16:09:42]action value=close_receipt [16:09:42]process_action close_receipt [16:09:42]cmd_close_receipt [16:09:42]MH_GetDate [16:09:42]Write to MH i2c: F0 00 00 0C 09 04 [16:09:42]Write i2c OK [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: F0 [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: F0 09 00 [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: F0 09 00 0C 09 00 47 97 22 66 F4 E9 65 64 19 [16:09:42]GetLastDocTimeStamp 1713542805 [16:09:42]current date 1713542983 [16:09:42]FM_GetShiftState [16:09:42]SAM_PROTO_GetShiftState [16:09:42]wFMCommunicate request_size=4 [16:09:42]MH_SAM_APDU [16:09:42]CAPDU: 80 13 01 00 [16:09:42]Write to MH i2c: E2 08 00 0D 09 80 13 01 00 00 00 00 00 93 [16:09:42]Write i2c OK [16:09:42]MH_I2C_Read... [16:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:42]Read from MH i2c: E2 [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: E2 0E 00 [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: E2 0E 00 0D 09 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 78 [16:09:42]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:09:42]wFMCommunicate OK [16:09:42]SAM_PROTO_GetShiftState done [16:09:42]FM_GetShiftState done [16:09:42]opened in 1713486233 [16:09:42]opened+sec_in_day 1713572633 [16:09:42]quantity*price = 20028 [16:09:42]sum+1 = 20029 [16:09:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 99 19.04.2024 16:09 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76479 ФПД: 39293086707166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T160943&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76479&fm=39293086707166&tin=02508201610067®Number=0000000000091573&sum=20000 [16:09:43]StoreToDocumentArchive [16:09:43]shift 370 fd 76479 [16:09:43]save to /storage/0370/doc_00076479 [16:09:43]save last doc name /storage/0370/doc_00076479 to /storage/kkm_last_doc_name [16:09:43]save OK [16:09:43]Clear old archive folders... [16:09:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:43]tlvbuf is 00A07E10 [16:09:43]SAM_PROTO_ClearQueue [16:09:43]wFMCommunicate request_size=4 [16:09:43]MH_SAM_APDU [16:09:43]CAPDU: 80 09 00 00 [16:09:43]Write to MH i2c: E2 08 00 1A 09 80 09 00 00 00 00 00 00 95 [16:09:43]Write i2c OK [16:09:43]MH_I2C_Read... [16:09:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:43]Read from MH i2c: E2 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 03 00 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 03 00 1A 09 00 90 00 97 [16:09:43]RAPDU: 90 00 [16:09:43]wFMCommunicate OK [16:09:43]SAM_PROTO_ClearQueue done [16:09:43]KKMCreateOFDPacket [16:09:43]OFDProtocolAddRootSTLVToBuf [16:09:43]FM_MakeSignedData [16:09:43]FM_MakeSignedData [16:09:43]SAM_PROTO_SignData [16:09:43]wFMCommunicate request_size=4 [16:09:43]MH_SAM_APDU [16:09:43]CAPDU: 80 0D 01 02 [16:09:43]Write to MH i2c: E2 08 00 1B 09 80 0D 01 02 00 00 00 00 9D [16:09:43]Write i2c OK [16:09:43]MH_I2C_Read... [16:09:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:43]Read from MH i2c: E2 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 03 00 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 03 00 1B 09 00 90 00 98 [16:09:43]RAPDU: 90 00 [16:09:43]wFMCommunicate OK [16:09:43]wFMCommunicate request_size=255 [16:09:43]MH_SAM_APDU [16:09: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 26 0C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3C 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 63 00 00 00 F4 03 04 00 47 97 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BF 2A 01 00 35 04 06 00 23 [16:09:43]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 26 0C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3C 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 63 00 00 00 F4 03 04 00 47 97 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BF 2A 01 00 35 04 06 00 23 00 00 D1 [16:09:43]Write i2c OK [16:09:43]MH_I2C_Read... [16:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:43]Read from MH i2c: E2 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 03 00 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 03 00 1C 09 00 90 00 99 [16:09:43]RAPDU: 90 00 [16:09:43]wFMCommunicate OK [16:09:43]wFMCommunicate request_size=10 [16:09:43]MH_SAM_APDU [16:09:43]CAPDU: 80 0D 02 02 05 BC A2 79 AD DE [16:09:43]Write to MH i2c: E2 0D 00 1D 09 80 0D 02 02 05 00 BC A2 79 AD DE 00 00 0C [16:09:43]Write i2c OK [16:09:43]MH_I2C_Read... [16:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:43]Read from MH i2c: E2 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 03 00 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 03 00 1D 09 00 90 00 9A [16:09:43]RAPDU: 90 00 [16:09:43]wFMCommunicate OK [16:09:43]wFMCommunicate request_size=4 [16:09:43]MH_SAM_APDU [16:09:43]CAPDU: 80 0D 03 02 [16:09:43]Write to MH i2c: E2 08 00 1E 09 80 0D 03 02 00 00 00 00 A2 [16:09:43]Write i2c OK [16:09:43]MH_I2C_Read... [16:09:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:43]Read from MH i2c: E2 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 0B 00 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 0B 00 1E 09 00 41 D7 2D 9A AD 5A BD 13 90 00 59 [16:09:43]RAPDU: 41 D7 2D 9A AD 5A BD 13 90 00 [16:09:43]wFMCommunicate OK [16:09:43]SAM_PROTO_SignData done [16:09:43]FM_MakeSignedData done [16:09:43]CreateOFDProtocolMessage [16:09:43]wFMCommunicate request_size=4 [16:09:43]MH_SAM_APDU [16:09:43]CAPDU: 80 11 00 00 [16:09:43]Write to MH i2c: E2 08 00 1F 09 80 11 00 00 00 00 00 00 A2 [16:09:43]Write i2c OK [16:09:43]MH_I2C_Read... [16:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:43]Read from MH i2c: E2 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 17 00 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 17 00 1F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F5 [16:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:09:43]wFMCommunicate OK [16:09:43]CreateOFDProtocolMessage done [16:09:43]OFDSenderStorePacket 76479 [16:09:43]StoreOFDPacket docnum=76479 [16:09:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 28 96 07 01 50 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 26 0C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3C 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 63 00 00 00 F4 03 04 00 47 97 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BF 2A 01 00 35 04 06 00 23 BC A2 79 AD DE 41 D7 2D 9A AD 5A BD 13 [16:09:43]CheckFolder [16:09:43]dirname=/storage/ofd_packets [16:09:43]CheckFolder done [16:09:43]ProducePacketName [16:09:43]name=ofd_packets/00076479 [16:09:43]NVStorageSaveData ofd_packets/00076479 [16:09:43]File name is /storage/ofd_packets/00076479 [16:09:43]Write 301 bytes [16:09:43]NVStorageSaveData done [16:09:43]OFDSenderStorePacket done [16:09:43]KKMCreateOFDPacket done [16:09:43]NVStorageSaveData kkm_last_timestamp [16:09:43]File name is /storage/kkm_last_timestamp [16:09:43]Write 4 bytes [16:09:43]NVStorageSaveData done [16:09:43]ExternCall_PrintAddStr [16:09:43]wPrintStart [16:09:43]Write to MH i2c: 01 00 00 20 09 29 [16:09:43]Write i2c OK [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: 01 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: 01 07 00 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: 01 07 00 20 09 00 00 00 00 00 FF 0F 3E [16:09:43]RasterBufferAndPrint [16:09:43]line Счет N : (1)190954 [16:09:43]line ИНН: 02508201610067 [16:09:43]line Контрольно-Кассовый Чек [16:09:43]line ПРОДАЖА [16:09:43]line ТРК (МРК, ГНК) : 43 [16:09:43]line Товар: 2710124130 [16:09:43]line Аи-92-К-5 [16:09:43]line 3.110 * 64.40 [16:09:43]line = 200.28 [16:09:43]line НДС 12% НСП 1% [16:09:43]line > о реализуемом товаре [16:09:43]line ОКРУГЛЕНИЕ: -0.28 [16:09:43]line ИТОГО: 200.00 [16:09:43]line Внесено: 200.00 [16:09:43]line СДАЧА: 0.00 [16:09:43]line НСП 1% : 1.77 [16:09:43]line НДС 12% : 21.27 [16:09:43]line Наличными: 200.00 [16:09:43]line Безнал.: 0.00 [16:09:43]line Место: АЗС № 106 "Партнер Нефть" [16:09:43]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:09:43]line СНО: Общий режим [16:09:43]line Чек 99 19.04.2024 16:09 [16:09:43]line Смена: 370 ФФД: 1.0 [16:09:43]line ЗНМ: 0300000141 [16:09:43]line РНМ: 0000000000091573 [16:09:43]line Версия ККМ: 001 [16:09:43]line ФМ: 0000000000874652 [16:09:43]line ФД: 76479 [16:09:43]line ФПД: 39293086707166 [16:09:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T160943&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76479&fm=39293086707166&tin=02508201610067®Number=0000000000091573&sum=20000 [16:09:44]OFD Sender: Processing packet 76479 [packets to send 128, broken 127] [16:09:44]ProducePacketName [16:09:44]name=ofd_packets/00076479 [16:09:44]OFD Sender: To server: pG, [16:09:44]CommunicateWithHost lk.salyk.kg:30040 [16:09:44]ConnectInit lk.salyk.kg [16:09:44]written 0, free lines is 4095 [16:09:44]Connected sock=10 [16:09:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 28 96 07 01 50 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 26 0C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3C 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 63 00 00 00 F4 03 04 00 47 97 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 BF 2A 01 00 35 04 06 00 23 BC A2 79 AD DE 41 D7 2D 9A AD 5A BD 13 [16:09:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A1 0E 47 00 B1 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 34 36 35 32 10 04 04 00 BF 2A 01 00 F4 03 04 00 D2 3E 22 66 B6 04 01 00 00 1A DB D6 6B 52 11 AB 1E [16:09:44]CommunicateWithHost err = 0 [16:09:44]CheckOFDResponse [16:09:44]1017 (14) - 77093643461234 [16:09:44]1041 (16) - 0000000000874652 [16:09:44]1040 (4) - 76479 [16:09:44]1012 (4) - 19.04.2024 09:52 [16:09:44]1206 (1) - 0 [16:09:44]OFD Sender: Remove packet 76479 [16:09:44]ProducePacketName [16:09:44]name=ofd_packets/00076479 [16:09:44]NVStorageDeleteData [16:09:44]Write to MH i2c: 01 00 00 4A 09 53 [16:09:44]Write i2c OK [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: 01 [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: 01 07 00 [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: 01 07 00 4A 09 00 00 00 00 00 E3 0C 49 [16:09:44]RasterBufferAndPrint [16:09:44]line [16:09:44]line [16:09:44]line [16:09:44]line [16:09:44]line [16:09:44]written 0, free lines is 3305 [16:09:44]MH_Cut [16:09:44]Write to MH i2c: D1 01 00 51 09 01 2C [16:09:44]Write i2c OK [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: D1 [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: D1 01 00 [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: D1 01 00 51 09 00 2B [16:09:44]Write to MH i2c: 01 00 00 52 09 5B [16:09:44]Write i2c OK [16:09:44]MH_I2C_Read... [16:09:45]OFD Sender: No OFD packet to send [16:09:45]*** Cut start [16:09:45]*** Partial cut [16:09:45]*** CUTSNS_PIN = 1 [16:09:45]*** CUTSNS_PIN = 0 [16:09:45]*** Brake cut motor [16:09:46]Read from MH i2c: 01 [16:09:46]MH_I2C_Read... [16:09:46]*** Stop cut motor [16:09:46]*** Cut end [16:09:46]Read from MH i2c: 01 07 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: 01 07 00 52 09 00 00 00 00 00 FF 0F 70 [16:09:46]process_action close_receipt done [16:09:46]requested_data is exist [16:09:46]produce_requested_data [16:09:46]requested_item fm.sn is exist - process it [16:09:46]wFMCommunicate request_size=4 [16:09:46]MH_SAM_APDU [16:09:46]CAPDU: 80 11 00 00 [16:09:46]Write to MH i2c: E2 08 00 53 09 80 11 00 00 00 00 00 00 D6 [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:46]Read from MH i2c: E2 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 17 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 17 00 53 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 29 [16:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:09:46]wFMCommunicate OK [16:09:46]requested_item fd.num is exist - process it [16:09:46]SAM_PROTO_GetFieldsCounters [16:09:46]wFMCommunicate request_size=4 [16:09:46]MH_SAM_APDU [16:09:46]CAPDU: 80 13 00 00 [16:09:46]Write to MH i2c: E2 08 00 54 09 80 13 00 00 00 00 00 00 D9 [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:46]Read from MH i2c: E2 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 62 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 62 00 54 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BF 2A 01 00 0E 04 04 00 72 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 80 [16:09:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BF 2A 01 00 0E 04 04 00 72 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 [16:09:46]wFMCommunicate OK [16:09:46]SAM_PROTO_GetFieldsCounters done [16:09:46]requested_item shift.num is exist - process it [16:09:46]requested_item shift.opened is exist - process it [16:09:46]req_shift_opened [16:09:46]FM_GetShiftState [16:09:46]SAM_PROTO_GetShiftState [16:09:46]wFMCommunicate request_size=4 [16:09:46]MH_SAM_APDU [16:09:46]CAPDU: 80 13 01 00 [16:09:46]Write to MH i2c: E2 08 00 55 09 80 13 01 00 00 00 00 00 DB [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:46]Read from MH i2c: E2 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 0E 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 0E 00 55 09 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 C0 [16:09:46]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:09:46]wFMCommunicate OK [16:09:46]SAM_PROTO_GetShiftState done [16:09:46]FM_GetShiftState done [16:09:46]req_shift_opened done [16:09:46]requested_item shift.open_date is exist - process it [16:09:46]req_shift_open_date [16:09:46]req_shift_open_date done [16:09:46]produce_requested_data done [16:09:46]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76479,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [16:09:46]process_action_free close_receipt [16:09:46]json_value_free [16:09:46]json_value_free done [16:09:46]process_json_proto returns [16:09:46]Send response to host [16:09:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76479,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [16:09:46]free response buf [16:09:46]execute_script done [16:09:46]execute_script returns [16:09:46]free content buf [16:09:46]Sock 9.Close socket [16:09:46]Sock 9.Thread stoped [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:15]OFD Sender: No OFD packet to send [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:45]OFD Sender: No OFD packet to send [16:10:50]OFD Sender: No OFD packet to send [16:10:55]OFD Sender: No OFD packet to send [16:11:00]OFD Sender: No OFD packet to send [16:11:05]OFD Sender: No OFD packet to send [16:11:10]OFD Sender: No OFD packet to send [16:11:15]OFD Sender: No OFD packet to send [16:11:20]OFD Sender: No OFD packet to send [16:11:25]OFD Sender: No OFD packet to send [16:11:30]OFD Sender: No OFD packet to send [16:11:35]OFD Sender: No OFD packet to send [16:11:40]OFD Sender: No OFD packet to send [16:11:45]OFD Sender: No OFD packet to send [16:11:50]OFD Sender: No OFD packet to send [16:11:55]OFD Sender: No OFD packet to send [16:12:00]OFD Sender: No OFD packet to send [16:12:05]OFD Sender: No OFD packet to send [16:12:10]OFD Sender: No OFD packet to send [16:12:15]OFD Sender: No OFD packet to send [16:12:20]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:30]OFD Sender: No OFD packet to send [16:12:35]OFD Sender: No OFD packet to send [16:12:35]accept exits with 7 [16:12:35]New connection [16:12:35]New thread 3066936676 created [16:12:35]Thread 3067080036 joined [16:12:35]Waiting for new connection... [16:12:35] Sock 7.Parse request [16:12:35]Sock 7.Check first char [16:12:35]Sock 7.First char is OK [16:12:35]request: POST /json_proto HTTP/1.0 [16:12:35]Method: POST [16:12:35]URL: /json_proto [16:12:35]Method is POST - this is cgi request [16:12:35]url: /json_proto [16:12:35]query_string will be loaded in cgi processing [16:12:35]execute_cgi json_proto POST (null) [16:12:35]execute_cgi path=json_proto method=POST [16:12:35]POST find Content-Length [16:12:35]Host: 172.17.62.5:8080 [16:12:35]Content-Length: 1207 [16:12:35]Content-Type: application/json [16:12:35] [16:12:35]POST finish read [16:12:35]Found Content-Length = 1207 [16:12:35]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190955\u000A19.04.2024 15:54\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 64.40\u000A\u0418\u0422\u041E\u0413: 1288.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\u000A72626\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:35]execute_script... [16:12:35]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190955\u000A19.04.2024 15:54\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 64.40\u000A\u0418\u0422\u041E\u0413: 1288.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\u000A72626\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:35]POST & json_proto [16:12:35]process_json_proto [16:12:35]json parsed OK: [16:12:35]protocol is kg_v1.0 [16:12:35]action value=print_text [16:12:35]process_action print_text [16:12:35]cmd_print_text [16:12:35]ExternCall_PrintAddStr [16:12:35]wPrintStart [16:12:35]Write to MH i2c: 01 00 00 56 09 5F [16:12:35]Write i2c OK [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: 01 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: 01 07 00 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: 01 07 00 56 09 00 00 00 00 00 FF 0F 74 [16:12:35]RasterBufferAndPrint [16:12:35]line *****ТОВАРНЫЙ ЧЕК***** [16:12:35]line АЗС 106 [16:12:35]line Партнер нефть [16:12:35]line 02508201610067 [16:12:35]line Кассир : Табалдиева М. [16:12:35]line Счет N : (1)190955 [16:12:35]line 19.04.2024 15:54 [16:12:35]line ПРОДАЖА [16:12:35]line ТРК (МРК, ГНК): 12 [16:12:35]line Вид ГСМ : 2710124130 [16:12:35]line Аи-92-К-5 [16:12:35]line 20.000 x 64.40 [16:12:35]line ИТОГ: 1288.00 [16:12:35]line Тип оплаты: Талоны: Топливная Карта [16:12:35]line 72626 [16:12:35]line ______________________ [16:12:35]line (подпись) [16:12:35]written 0, free lines is 4095 [16:12:36]Write to MH i2c: 01 00 00 6A 09 73 [16:12:36]Write i2c OK [16:12:36]MH_I2C_Read... [16:12:36]Read from MH i2c: 01 [16:12:36]MH_I2C_Read... [16:12:36]Read from MH i2c: 01 07 00 [16:12:36]MH_I2C_Read... [16:12:36]Read from MH i2c: 01 07 00 6A 09 00 00 00 00 00 12 0E 9A [16:12:36]RasterBufferAndPrint [16:12:36]line [16:12:36]line [16:12:36]line [16:12:36]line [16:12:36]line [16:12:36]written 0, free lines is 3604 [16:12:36]MH_Cut [16:12:36]Write to MH i2c: D1 01 00 71 09 01 4C [16:12:36]Write i2c OK [16:12:36]MH_I2C_Read... [16:12:36]Read from MH i2c: D1 [16:12:36]MH_I2C_Read... [16:12:36]Read from MH i2c: D1 01 00 [16:12:36]MH_I2C_Read... [16:12:36]Read from MH i2c: D1 01 00 71 09 00 4B [16:12:36]Write to MH i2c: 01 00 00 72 09 7B [16:12:36]Write i2c OK [16:12:36]MH_I2C_Read... [16:12:36]*** Cut start [16:12:36]*** Partial cut [16:12:36]*** CUTSNS_PIN = 1 [16:12:36]*** CUTSNS_PIN = 0 [16:12:36]*** Brake cut motor [16:12:37]Read from MH i2c: 01 [16:12:37]MH_I2C_Read... [16:12:37]*** Stop cut motor [16:12:37]*** Cut end [16:12:37]Read from MH i2c: 01 07 00 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: 01 07 00 72 09 00 00 00 00 00 FF 0F 90 [16:12:37]process_action print_text done [16:12:37]requested_data is exist [16:12:37]produce_requested_data [16:12:37]requested_item fm.sn is exist - process it [16:12:37]wFMCommunicate request_size=4 [16:12:37]MH_SAM_APDU [16:12:37]CAPDU: 80 11 00 00 [16:12:37]Write to MH i2c: E2 08 00 73 09 80 11 00 00 00 00 00 00 F6 [16:12:37]Write i2c OK [16:12:37]MH_I2C_Read... [16:12:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:37]Read from MH i2c: E2 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: E2 17 00 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: E2 17 00 73 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 49 [16:12:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:12:37]wFMCommunicate OK [16:12:37]requested_item fd.num is exist - process it [16:12:37]SAM_PROTO_GetFieldsCounters [16:12:37]wFMCommunicate request_size=4 [16:12:37]MH_SAM_APDU [16:12:37]CAPDU: 80 13 00 00 [16:12:37]Write to MH i2c: E2 08 00 74 09 80 13 00 00 00 00 00 00 F9 [16:12:37]Write i2c OK [16:12:37]MH_I2C_Read... [16:12:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:37]Read from MH i2c: E2 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: E2 62 00 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: E2 62 00 74 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BF 2A 01 00 0E 04 04 00 72 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 A0 [16:12:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BF 2A 01 00 0E 04 04 00 72 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 [16:12:37]wFMCommunicate OK [16:12:37]SAM_PROTO_GetFieldsCounters done [16:12:37]requested_item shift.num is exist - process it [16:12:37]requested_item shift.opened is exist - process it [16:12:37]req_shift_opened [16:12:37]FM_GetShiftState [16:12:37]SAM_PROTO_GetShiftState [16:12:37]wFMCommunicate request_size=4 [16:12:37]MH_SAM_APDU [16:12:37]CAPDU: 80 13 01 00 [16:12:37]Write to MH i2c: E2 08 00 75 09 80 13 01 00 00 00 00 00 FB [16:12:37]Write i2c OK [16:12:37]MH_I2C_Read... [16:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:37]Read from MH i2c: E2 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: E2 0E 00 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: E2 0E 00 75 09 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E0 [16:12:37]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:12:37]wFMCommunicate OK [16:12:37]SAM_PROTO_GetShiftState done [16:12:37]FM_GetShiftState done [16:12:37]req_shift_opened done [16:12:37]requested_item shift.open_date is exist - process it [16:12:37]req_shift_open_date [16:12:37]req_shift_open_date done [16:12:37]produce_requested_data done [16:12:37]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76479,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [16:12:37]process_action_free print_text [16:12:37]json_value_free [16:12:37]json_value_free done [16:12:37]process_json_proto returns [16:12:37]Send response to host [16:12:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76479,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [16:12:37]free response buf [16:12:37]execute_script done [16:12:37]execute_script returns [16:12:37]free content buf [16:12:37]Sock 7.Close socket [16:12:37]Sock 7.Thread stoped [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:25]OFD Sender: No OFD packet to send [16:13:30]OFD Sender: No OFD packet to send [16:13:35]OFD Sender: No OFD packet to send [16:13:40]OFD Sender: No OFD packet to send [16:13:45]OFD Sender: No OFD packet to send [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:00]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:25]OFD Sender: No OFD packet to send [16:15:30]OFD Sender: No OFD packet to send [16:15:35]OFD Sender: No OFD packet to send [16:15:40]OFD Sender: No OFD packet to send [16:15:45]OFD Sender: No OFD packet to send [16:15:50]OFD Sender: No OFD packet to send [16:15:55]OFD Sender: No OFD packet to send [16:16:00]OFD Sender: No OFD packet to send [16:16:05]OFD Sender: No OFD packet to send [16:16:10]OFD Sender: No OFD packet to send [16:16:15]OFD Sender: No OFD packet to send [16:16:20]OFD Sender: No OFD packet to send [16:16:25]OFD Sender: No OFD packet to send [16:16:30]OFD Sender: No OFD packet to send [16:16:35]OFD Sender: No OFD packet to send [16:16:40]OFD Sender: No OFD packet to send [16:16:45]OFD Sender: No OFD packet to send [16:16:50]OFD Sender: No OFD packet to send [16:16:55]OFD Sender: No OFD packet to send [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:10]OFD Sender: No OFD packet to send [16:17:15]OFD Sender: No OFD packet to send [16:17:16]accept exits with 9 [16:17:16]New connection [16:17:16]New thread 3067080036 created [16:17:16]Thread 3066936676 joined [16:17:16]Waiting for new connection... [16:17:16] Sock 9.Parse request [16:17:16]Sock 9.Check first char [16:17:16]Sock 9.First char is OK [16:17:16]request: POST /json_proto HTTP/1.0 [16:17:16]Method: POST [16:17:16]URL: /json_proto [16:17:16]Method is POST - this is cgi request [16:17:16]url: /json_proto [16:17:16]query_string will be loaded in cgi processing [16:17:16]execute_cgi json_proto POST (null) [16:17:16]execute_cgi path=json_proto method=POST [16:17:16]POST find Content-Length [16:17:16]Host: 172.17.62.5:8080 [16:17:16]Content-Length: 1204 [16:17:16]Content-Type: application/json [16:17:16] [16:17:16]POST finish read [16:17:16]Found Content-Length = 1204 [16:17:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190956\u000A19.04.2024 15:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711190000\u000A\u0413\u0410\u0417-\u041A-5\u000A 30.000 x 32.70\u000A\u0418\u0422\u041E\u0413: 981.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:16]execute_script... [16:17:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190956\u000A19.04.2024 15:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711190000\u000A\u0413\u0410\u0417-\u041A-5\u000A 30.000 x 32.70\u000A\u0418\u0422\u041E\u0413: 981.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:16]POST & json_proto [16:17:16]process_json_proto [16:17:16]json parsed OK: [16:17:16]protocol is kg_v1.0 [16:17:16]action value=print_text [16:17:16]process_action print_text [16:17:16]cmd_print_text [16:17:16]ExternCall_PrintAddStr [16:17:16]wPrintStart [16:17:16]Write to MH i2c: 01 00 00 76 09 7F [16:17:16]Write i2c OK [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: 01 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: 01 07 00 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: 01 07 00 76 09 00 00 00 00 00 FF 0F 94 [16:17:16]RasterBufferAndPrint [16:17:16]line *****ТОВАРНЫЙ ЧЕК***** [16:17:16]line АЗС 106 [16:17:16]line Партнер нефть [16:17:16]line 02508201610067 [16:17:16]line Кассир : Табалдиева М. [16:17:16]line Счет N : (1)190956 [16:17:16]line 19.04.2024 15:58 [16:17:16]line ПРОДАЖА [16:17:16]line ТРК (МРК, ГНК): 71 [16:17:16]line Вид ГСМ : 2711190000 [16:17:16]line ГАЗ-К-5 [16:17:16]line 30.000 x 32.70 [16:17:16]line ИТОГ: 981.00 [16:17:16]line Тип оплаты: Технологический отпуск: [16:17:16]line ______________________ [16:17:16]line (подпись) [16:17:16]written 0, free lines is 4095 [16:17:16]Write to MH i2c: 01 00 00 89 09 92 [16:17:16]Write i2c OK [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: 01 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: 01 07 00 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: 01 07 00 89 09 00 00 00 00 00 29 0E D0 [16:17:16]RasterBufferAndPrint [16:17:16]line [16:17:16]line [16:17:16]line [16:17:16]line [16:17:16]line [16:17:16]written 0, free lines is 3626 [16:17:16]MH_Cut [16:17:16]Write to MH i2c: D1 01 00 90 09 01 6B [16:17:16]Write i2c OK [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: D1 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: D1 01 00 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: D1 01 00 90 09 00 6A [16:17:16]Write to MH i2c: 01 00 00 91 09 9A [16:17:16]Write i2c OK [16:17:16]MH_I2C_Read... [16:17:17]*** Cut start [16:17:17]*** Partial cut [16:17:17]*** CUTSNS_PIN = 1 [16:17:17]*** CUTSNS_PIN = 0 [16:17:17]*** Brake cut motor [16:17:17]Read from MH i2c: 01 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: 01 07 00 [16:17:17]MH_I2C_Read... [16:17:17]*** Stop cut motor [16:17:17]*** Cut end [16:17:17]Read from MH i2c: 01 07 00 91 09 00 00 00 00 00 FF 0F AF [16:17:17]process_action print_text done [16:17:17]requested_data is exist [16:17:17]produce_requested_data [16:17:17]requested_item fm.sn is exist - process it [16:17:17]wFMCommunicate request_size=4 [16:17:17]MH_SAM_APDU [16:17:17]CAPDU: 80 11 00 00 [16:17:17]Write to MH i2c: E2 08 00 92 09 80 11 00 00 00 00 00 00 15 [16:17:17]Write i2c OK [16:17:17]MH_I2C_Read... [16:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:17]Read from MH i2c: E2 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 17 00 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 17 00 92 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 68 [16:17:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:17:17]wFMCommunicate OK [16:17:17]requested_item fd.num is exist - process it [16:17:17]SAM_PROTO_GetFieldsCounters [16:17:17]wFMCommunicate request_size=4 [16:17:17]MH_SAM_APDU [16:17:17]CAPDU: 80 13 00 00 [16:17:17]Write to MH i2c: E2 08 00 93 09 80 13 00 00 00 00 00 00 18 [16:17:17]Write i2c OK [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 [16:17:17]MH_I2C_Read... [16:17:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:17]Read from MH i2c: E2 62 00 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 62 00 93 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BF 2A 01 00 0E 04 04 00 72 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 BF [16:17:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 BF 2A 01 00 0E 04 04 00 72 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 [16:17:17]wFMCommunicate OK [16:17:17]SAM_PROTO_GetFieldsCounters done [16:17:17]requested_item shift.num is exist - process it [16:17:17]requested_item shift.opened is exist - process it [16:17:17]req_shift_opened [16:17:17]FM_GetShiftState [16:17:17]SAM_PROTO_GetShiftState [16:17:17]wFMCommunicate request_size=4 [16:17:17]MH_SAM_APDU [16:17:17]CAPDU: 80 13 01 00 [16:17:17]Write to MH i2c: E2 08 00 94 09 80 13 01 00 00 00 00 00 1A [16:17:17]Write i2c OK [16:17:17]MH_I2C_Read... [16:17:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:17]Read from MH i2c: E2 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 0E 00 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 0E 00 94 09 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 FF [16:17:17]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:17:17]wFMCommunicate OK [16:17:17]SAM_PROTO_GetShiftState done [16:17:17]FM_GetShiftState done [16:17:17]req_shift_opened done [16:17:17]requested_item shift.open_date is exist - process it [16:17:17]req_shift_open_date [16:17:17]req_shift_open_date done [16:17:17]produce_requested_data done [16:17:17]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76479,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [16:17:17]process_action_free print_text [16:17:17]json_value_free [16:17:17]json_value_free done [16:17:17]process_json_proto returns [16:17:17]Send response to host [16:17:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76479,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [16:17:17]free response buf [16:17:17]execute_script done [16:17:17]execute_script returns [16:17:17]free content buf [16:17:17]Sock 9.Close socket [16:17:17]Sock 9.Thread stoped [16:17:20]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:15]OFD Sender: No OFD packet to send [16:18:20]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23: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:12]accept exits with 7 [16:24:12]New connection [16:24:12]New thread 3066936676 created [16:24:12]Thread 3067080036 joined [16:24:12]Waiting for new connection... [16:24:12] Sock 7.Parse request [16:24:12]Sock 7.Check first char [16:24:12]Sock 7.First char is OK [16:24:12]request: POST /json_proto HTTP/1.0 [16:24:12]Method: POST [16:24:12]URL: /json_proto [16:24:12]Method is POST - this is cgi request [16:24:12]url: /json_proto [16:24:12]query_string will be loaded in cgi processing [16:24:12]execute_cgi json_proto POST (null) [16:24:12]execute_cgi path=json_proto method=POST [16:24:12]POST find Content-Length [16:24:12]Host: 172.17.62.5:8080 [16:24:12]Content-Length: 990 [16:24:12]Content-Type: application/json [16:24:12] [16:24:12]POST finish read [16:24:12]Found Content-Length = 990 [16:24:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:24:12]execute_script... [16: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)190957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:24:12]POST & json_proto [16:24:12]process_json_proto [16:24:12]json parsed OK: [16:24:12]protocol is kg_v1.0 [16:24:12]action value=close_receipt [16:24:12]process_action close_receipt [16:24:12]cmd_close_receipt [16:24:12]MH_GetDate [16:24:12]Write to MH i2c: F0 00 00 95 09 8D [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: F0 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: F0 09 00 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: F0 09 00 95 09 00 AE 9A 22 66 F4 E9 65 64 0C [16:24:12]GetLastDocTimeStamp 1713542983 [16:24:12]current date 1713543854 [16:24:12]FM_GetShiftState [16:24:12]SAM_PROTO_GetShiftState [16:24:12]wFMCommunicate request_size=4 [16:24:12]MH_SAM_APDU [16:24:12]CAPDU: 80 13 01 00 [16:24:12]Write to MH i2c: E2 08 00 96 09 80 13 01 00 00 00 00 00 1C [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:13]Read from MH i2c: E2 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: E2 0E 00 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: E2 0E 00 96 09 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 01 [16:24:13]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:24:13]wFMCommunicate OK [16:24:13]SAM_PROTO_GetShiftState done [16:24:13]FM_GetShiftState done [16:24:13]opened in 1713486233 [16:24:13]opened+sec_in_day 1713572633 [16:24:13]quantity*price = 100013 [16:24:13]sum+1 = 100015 [16:24:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 100 19.04.2024 16:24 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 31.55 сом ФМ: 0000000000874652 ФД: 76480 ФПД: 119190918050704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T162414&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76480&fm=119190918050704&tin=02508201610067®Number=0000000000091573&sum=100000 [16:24:14]StoreToDocumentArchive [16:24:14]shift 370 fd 76480 [16:24:14]save to /storage/0370/doc_00076480 [16:24:14]save last doc name /storage/0370/doc_00076480 to /storage/kkm_last_doc_name [16:24:14]save OK [16:24:14]Clear old archive folders... [16:24:14]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:24:14]tlvbuf is 00A07C60 [16:24:14]SAM_PROTO_ClearQueue [16:24:14]wFMCommunicate request_size=4 [16:24:14]MH_SAM_APDU [16:24:14]CAPDU: 80 09 00 00 [16:24:14]Write to MH i2c: E2 08 00 A3 09 80 09 00 00 00 00 00 00 1E [16:24:14]Write i2c OK [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 [16:24:14]MH_I2C_Read... [16:24:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:14]Read from MH i2c: E2 03 00 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 03 00 A3 09 00 90 00 20 [16:24:14]RAPDU: 90 00 [16:24:14]wFMCommunicate OK [16:24:14]SAM_PROTO_ClearQueue done [16:24:14]KKMCreateOFDPacket [16:24:14]OFDProtocolAddRootSTLVToBuf [16:24:14]FM_MakeSignedData [16:24:14]FM_MakeSignedData [16:24:14]SAM_PROTO_SignData [16:24:14]wFMCommunicate request_size=4 [16:24:14]MH_SAM_APDU [16:24:14]CAPDU: 80 0D 01 02 [16:24:14]Write to MH i2c: E2 08 00 A4 09 80 0D 01 02 00 00 00 00 26 [16:24:14]Write i2c OK [16:24:14]MH_I2C_Read... [16:24:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:14]Read from MH i2c: E2 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 03 00 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 03 00 A4 09 00 90 00 21 [16:24:14]RAPDU: 90 00 [16:24:14]wFMCommunicate OK [16:24:14]wFMCommunicate request_size=255 [16:24:14]MH_SAM_APDU [16:24:14]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AE 9A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C0 2A 01 00 35 04 06 00 6C 67 [16:24:14]Write to MH i2c: E2 02 01 A5 09 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AE 9A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C0 2A 01 00 35 04 06 00 6C 67 00 00 04 [16:24:14]Write i2c OK [16:24:14]MH_I2C_Read... [16:24:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:14]Read from MH i2c: E2 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 03 00 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 03 00 A5 09 00 90 00 22 [16:24:14]RAPDU: 90 00 [16:24:14]wFMCommunicate OK [16:24:14]wFMCommunicate request_size=9 [16:24:14]MH_SAM_APDU [16:24:14]CAPDU: 80 0D 02 02 04 4C 54 B3 90 [16:24:14]Write to MH i2c: E2 0C 00 A6 09 80 0D 02 02 04 00 4C 54 B3 90 00 00 14 [16:24:14]Write i2c OK [16:24:14]MH_I2C_Read... [16:24:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:14]Read from MH i2c: E2 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 03 00 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 03 00 A6 09 00 90 00 23 [16:24:14]RAPDU: 90 00 [16:24:14]wFMCommunicate OK [16:24:14]wFMCommunicate request_size=4 [16:24:14]MH_SAM_APDU [16:24:14]CAPDU: 80 0D 03 02 [16:24:14]Write to MH i2c: E2 08 00 A7 09 80 0D 03 02 00 00 00 00 2B [16:24:14]Write i2c OK [16:24:14]MH_I2C_Read... [16:24:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:14]Read from MH i2c: E2 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 0B 00 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 0B 00 A7 09 00 A6 4B CB B7 17 73 28 18 90 00 69 [16:24:14]RAPDU: A6 4B CB B7 17 73 28 18 90 00 [16:24:14]wFMCommunicate OK [16:24:14]SAM_PROTO_SignData done [16:24:14]FM_MakeSignedData done [16:24:14]CreateOFDProtocolMessage [16:24:14]wFMCommunicate request_size=4 [16:24:14]MH_SAM_APDU [16:24:14]CAPDU: 80 11 00 00 [16:24:14]Write to MH i2c: E2 08 00 A8 09 80 11 00 00 00 00 00 00 2B [16:24:14]Write i2c OK [16:24:14]MH_I2C_Read... [16:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:14]Read from MH i2c: E2 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 17 00 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 17 00 A8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7E [16:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:24:14]wFMCommunicate OK [16:24:14]CreateOFDProtocolMessage done [16:24:14]OFDSenderStorePacket 76480 [16:24:14]StoreOFDPacket docnum=76480 [16:24:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 7F F5 06 01 AA 07 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AE 9A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C0 2A 01 00 35 04 06 00 6C 67 4C 54 B3 90 A6 4B CB B7 17 73 28 18 [16:24:14]CheckFolder [16:24:14]dirname=/storage/ofd_packets [16:24:14]CheckFolder done [16:24:14]ProducePacketName [16:24:14]name=ofd_packets/00076480 [16:24:14]NVStorageSaveData ofd_packets/00076480 [16:24:14]File name is /storage/ofd_packets/00076480 [16:24:14]Write 300 bytes [16:24:14]NVStorageSaveData done [16:24:14]OFDSenderStorePacket done [16:24:14]KKMCreateOFDPacket done [16:24:14]NVStorageSaveData kkm_last_timestamp [16:24:14]File name is /storage/kkm_last_timestamp [16:24:14]Write 4 bytes [16:24:14]NVStorageSaveData done [16:24:14]ExternCall_PrintAddStr [16:24:14]wPrintStart [16:24:14]Write to MH i2c: 01 00 00 A9 09 B2 [16:24:14]Write i2c OK [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: 01 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: 01 07 00 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: 01 07 00 A9 09 00 00 00 00 00 FF 0F C7 [16:24:14]RasterBufferAndPrint [16:24:14]line Счет N : (1)190957 [16:24:14]line ИНН: 02508201610067 [16:24:14]line Контрольно-Кассовый Чек [16:24:14]line ПРОДАЖА [16:24:14]line ТРК (МРК, ГНК) : 71 [16:24:14]line Товар: 2711190000 [16:24:14]line ГАЗ-К-5 [16:24:14]line 31.550 * 31.70 [16:24:14]line = 1000.14 [16:24:14]line НДС 12% НСП 1% [16:24:14]line > о реализуемом товаре [16:24:14]line ОКРУГЛЕНИЕ: -0.14 [16:24:14]line ИТОГО: 1000.00 [16:24:14]line Внесено: 1000.00 [16:24:14]line СДАЧА: 0.00 [16:24:14]line НСП 1% : 8.85 [16:24:14]line НДС 12% : 106.21 [16:24:14]line Наличными: 1000.00 [16:24:14]line Безнал.: 0.00 [16:24:14]line Место: АЗС № 106 "Партнер Нефть" [16:24:14]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:24:14]line СНО: Общий режим [16:24:14]line Чек 100 19.04.2024 16:24 [16:24:14]line Смена: 370 ФФД: 1.0 [16:24:14]line ЗНМ: 0300000141 [16:24:14]line РНМ: 0000000000091573 [16:24:14]line Версия ККМ: 001 [16:24:14]line [16:24:14]line Дисконтная программа [16:24:14]line СУГ [16:24:14]line номер 106 [16:24:14]line сэкономлено 31.55 сом [16:24:14]line ФМ: 0000000000874652 [16:24:14]line ФД: 76480 [16:24:14]line ФПД: 119190918050704 [16:24:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T162414&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76480&fm=119190918050704&tin=02508201610067®Number=0000000000091573&sum=100000 [16:24:15]OFD Sender: Processing packet 76480 [packets to send 128, broken 127] [16:24:15]ProducePacketName [16:24:15]name=ofd_packets/00076480 [16:24:15]OFD Sender: To server: pG, [16:24:15]CommunicateWithHost lk.salyk.kg:30040 [16:24:15]ConnectInit lk.salyk.kg [16:24:15]written 0, free lines is 4095 [16:24:15]Connected sock=9 [16:24:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 7F F5 06 01 AA 07 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AE 9A 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C0 2A 01 00 35 04 06 00 6C 67 4C 54 B3 90 A6 4B CB B7 17 73 28 18 [16:24:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 44 BD 47 00 14 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 34 36 35 32 10 04 04 00 C0 2A 01 00 F4 03 04 00 39 42 22 66 B6 04 01 00 00 32 BF DA 0F E3 08 62 1D [16:24:15]CommunicateWithHost err = 0 [16:24:15]CheckOFDResponse [16:24:15]1017 (14) - 77093643461234 [16:24:15]1041 (16) - 0000000000874652 [16:24:15]1040 (4) - 76480 [16:24:15]1012 (4) - 19.04.2024 10:06 [16:24:15]1206 (1) - 0 [16:24:15]OFD Sender: Remove packet 76480 [16:24:15]ProducePacketName [16:24:15]name=ofd_packets/00076480 [16:24:15]NVStorageDeleteData [16:24:15]Write to MH i2c: 01 00 00 D8 09 E1 [16:24:15]Write i2c OK [16:24:15]MH_I2C_Read... [16:24:15]Read from MH i2c: 01 [16:24:15]MH_I2C_Read... [16:24:15]Read from MH i2c: 01 07 00 [16:24:15]MH_I2C_Read... [16:24:15]Read from MH i2c: 01 07 00 D8 09 00 00 00 00 00 94 0C 88 [16:24:15]RasterBufferAndPrint [16:24:15]line [16:24:15]line [16:24:15]line [16:24:15]line [16:24:15]line [16:24:15]written 0, free lines is 3226 [16:24:15]MH_Cut [16:24:15]Write to MH i2c: D1 01 00 DF 09 01 BA [16:24:15]Write i2c OK [16:24:15]MH_I2C_Read... [16:24:15]Read from MH i2c: D1 [16:24:15]MH_I2C_Read... [16:24:15]Read from MH i2c: D1 01 00 [16:24:15]MH_I2C_Read... [16:24:15]Read from MH i2c: D1 01 00 DF 09 00 B9 [16:24:15]Write to MH i2c: 01 00 00 E0 09 E9 [16:24:15]Write i2c OK [16:24:15]MH_I2C_Read... [16:24:15]OFD Sender: No OFD packet to send [16:24:16]*** Cut start [16:24:16]*** Partial cut [16:24:16]*** CUTSNS_PIN = 1 [16:24:16]*** CUTSNS_PIN = 0 [16:24:16]*** Brake cut motor [16:24:16]Read from MH i2c: 01 [16:24:16]MH_I2C_Read... [16:24:16]*** Stop cut motor [16:24:16]*** Cut end [16:24:16]Read from MH i2c: 01 07 00 [16:24:16]MH_I2C_Read... [16:24:16]Read from MH i2c: 01 07 00 E0 09 00 00 00 00 00 FF 0F FE [16:24:16]process_action close_receipt done [16:24:16]requested_data is exist [16:24:16]produce_requested_data [16:24:16]requested_item fm.sn is exist - process it [16:24:16]wFMCommunicate request_size=4 [16:24:16]MH_SAM_APDU [16:24:16]CAPDU: 80 11 00 00 [16:24:16]Write to MH i2c: E2 08 00 E1 09 80 11 00 00 00 00 00 00 64 [16:24:16]Write i2c OK [16:24:16]MH_I2C_Read... [16:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:16]Read from MH i2c: E2 [16:24:16]MH_I2C_Read... [16:24:16]Read from MH i2c: E2 17 00 [16:24:16]MH_I2C_Read... [16:24:16]Read from MH i2c: E2 17 00 E1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B7 [16:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:24:16]wFMCommunicate OK [16:24:16]requested_item fd.num is exist - process it [16:24:16]SAM_PROTO_GetFieldsCounters [16:24:16]wFMCommunicate request_size=4 [16:24:16]MH_SAM_APDU [16:24:16]CAPDU: 80 13 00 00 [16:24:16]Write to MH i2c: E2 08 00 E2 09 80 13 00 00 00 00 00 00 67 [16:24:16]Write i2c OK [16:24:16]MH_I2C_Read... [16:24:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:17]Read from MH i2c: E2 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 62 00 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 62 00 E2 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C0 2A 01 00 0E 04 04 00 72 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 12 [16:24:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C0 2A 01 00 0E 04 04 00 72 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 [16:24:17]wFMCommunicate OK [16:24:17]SAM_PROTO_GetFieldsCounters done [16:24:17]requested_item shift.num is exist - process it [16:24:17]requested_item shift.opened is exist - process it [16:24:17]req_shift_opened [16:24:17]FM_GetShiftState [16:24:17]SAM_PROTO_GetShiftState [16:24:17]wFMCommunicate request_size=4 [16:24:17]MH_SAM_APDU [16:24:17]CAPDU: 80 13 01 00 [16:24:17]Write to MH i2c: E2 08 00 E3 09 80 13 01 00 00 00 00 00 69 [16:24:17]Write i2c OK [16:24:17]MH_I2C_Read... [16:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:17]Read from MH i2c: E2 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 0E 00 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 0E 00 E3 09 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 4E [16:24:17]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:24:17]wFMCommunicate OK [16:24:17]SAM_PROTO_GetShiftState done [16:24:17]FM_GetShiftState done [16:24:17]req_shift_opened done [16:24:17]requested_item shift.open_date is exist - process it [16:24:17]req_shift_open_date [16:24:17]req_shift_open_date done [16:24:17]produce_requested_data done [16:24:17]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76480,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [16:24:17]process_action_free close_receipt [16:24:17]json_value_free [16:24:17]json_value_free done [16:24:17]process_json_proto returns [16:24:17]Send response to host [16:24:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76480,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [16:24:17]free response buf [16:24:17]execute_script done [16:24:17]execute_script returns [16:24:17]free content buf [16:24:17]Sock 7.Close socket [16:24:17]Sock 7.Thread stoped [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:26]OFD Sender: No OFD packet to send [16:25:31]OFD Sender: No OFD packet to send [16:25:36]OFD Sender: No OFD packet to send [16:25:41]OFD Sender: No OFD packet to send [16:25:46]OFD Sender: No OFD packet to send [16:25:51]OFD Sender: No OFD packet to send [16:25:56]OFD Sender: No OFD packet to send [16:26:01]OFD Sender: No OFD packet to send [16:26:06]OFD Sender: No OFD packet to send [16:26:11]OFD Sender: No OFD packet to send [16:26:16]OFD Sender: No OFD packet to send [16:26:21]OFD Sender: No OFD packet to send [16:26:26]OFD Sender: No OFD packet to send [16:26:26]accept exits with 10 [16:26:26]New connection [16:26:26]New thread 3067080036 created [16:26:26]Thread 3066936676 joined [16:26:26]Waiting for new connection... [16:26:26] Sock 10.Parse request [16:26:26]Sock 10.Check first char [16:26:26]Sock 10.First char is OK [16:26:26]request: POST /json_proto HTTP/1.0 [16:26:26]Method: POST [16:26:26]URL: /json_proto [16:26:26]Method is POST - this is cgi request [16:26:26]url: /json_proto [16:26:26]query_string will be loaded in cgi processing [16:26:26]execute_cgi json_proto POST (null) [16:26:26]execute_cgi path=json_proto method=POST [16:26:26]POST find Content-Length [16:26:26]Host: 172.17.62.5:8080 [16:26:26]Content-Length: 819 [16:26:26]Content-Type: application/json [16:26:26] [16:26:26]POST finish read [16:26:26]Found Content-Length = 819 [16:26:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190958", "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" : 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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:26]execute_script... [16:26:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190958", "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" : 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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:26]POST & json_proto [16:26:26]process_json_proto [16:26:26]json parsed OK: [16:26:26]protocol is kg_v1.0 [16:26:26]action value=close_receipt [16:26:26]process_action close_receipt [16:26:26]cmd_close_receipt [16:26:26]MH_GetDate [16:26:26]Write to MH i2c: F0 00 00 E4 09 DC [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: F0 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: F0 09 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: F0 09 00 E4 09 00 34 9B 22 66 F4 E9 65 64 E2 [16:26:26]GetLastDocTimeStamp 1713543854 [16:26:26]current date 1713543988 [16:26:26]FM_GetShiftState [16:26:26]SAM_PROTO_GetShiftState [16:26:26]wFMCommunicate request_size=4 [16:26:26]MH_SAM_APDU [16:26:26]CAPDU: 80 13 01 00 [16:26:26]Write to MH i2c: E2 08 00 E5 09 80 13 01 00 00 00 00 00 6B [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:26]Read from MH i2c: E2 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 0E 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 0E 00 E5 09 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 50 [16:26:26]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:26:26]wFMCommunicate OK [16:26:26]SAM_PROTO_GetShiftState done [16:26:26]FM_GetShiftState done [16:26:26]opened in 1713486233 [16:26:26]opened+sec_in_day 1713572633 [16:26:26]quantity*price = 100018 [16:26:26]sum+1 = 100020 [16:26:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 101 19.04.2024 16:26 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76481 ФПД: 35962125951019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T162628&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76481&fm=35962125951019&tin=02508201610067®Number=0000000000091573&sum=100019 [16:26:28]StoreToDocumentArchive [16:26:28]shift 370 fd 76481 [16:26:28]save to /storage/0370/doc_00076481 [16:26:28]save last doc name /storage/0370/doc_00076481 to /storage/kkm_last_doc_name [16:26:28]save OK [16:26:28]Clear old archive folders... [16:26:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:26:28]tlvbuf is 009B27F0 [16:26:28]SAM_PROTO_ClearQueue [16:26:28]wFMCommunicate request_size=4 [16:26:28]MH_SAM_APDU [16:26:28]CAPDU: 80 09 00 00 [16:26:28]Write to MH i2c: E2 08 00 F2 09 80 09 00 00 00 00 00 00 6D [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:28]Read from MH i2c: E2 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 03 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 03 00 F2 09 00 90 00 6F [16:26:28]RAPDU: 90 00 [16:26:28]wFMCommunicate OK [16:26:28]SAM_PROTO_ClearQueue done [16:26:28]KKMCreateOFDPacket [16:26:28]OFDProtocolAddRootSTLVToBuf [16:26:28]FM_MakeSignedData [16:26:28]FM_MakeSignedData [16:26:28]SAM_PROTO_SignData [16:26:28]wFMCommunicate request_size=4 [16:26:28]MH_SAM_APDU [16:26:28]CAPDU: 80 0D 01 02 [16:26:28]Write to MH i2c: E2 08 00 F3 09 80 0D 01 02 00 00 00 00 75 [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:28]Read from MH i2c: E2 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 03 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 03 00 F3 09 00 90 00 70 [16:26:28]RAPDU: 90 00 [16:26:28]wFMCommunicate OK [16:26:28]wFMCommunicate request_size=255 [16:26:28]MH_SAM_APDU [16: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 65 00 00 00 F4 03 04 00 34 9B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C1 2A 01 00 35 04 06 00 20 [16:26:28]Write to MH i2c: E2 02 01 F4 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 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 65 00 00 00 F4 03 04 00 34 9B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C1 2A 01 00 35 04 06 00 20 00 00 ED [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:28]Read from MH i2c: E2 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 03 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 03 00 F4 09 00 90 00 71 [16:26:28]RAPDU: 90 00 [16:26:28]wFMCommunicate OK [16:26:28]wFMCommunicate request_size=10 [16:26:28]MH_SAM_APDU [16:26:28]CAPDU: 80 0D 02 02 05 B5 15 BE 20 2B [16:26:28]Write to MH i2c: E2 0D 00 F5 09 80 0D 02 02 05 00 B5 15 BE 20 2B 00 00 55 [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:28]Read from MH i2c: E2 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 03 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 03 00 F5 09 00 90 00 72 [16:26:28]RAPDU: 90 00 [16:26:28]wFMCommunicate OK [16:26:28]wFMCommunicate request_size=4 [16:26:28]MH_SAM_APDU [16:26:28]CAPDU: 80 0D 03 02 [16:26:28]Write to MH i2c: E2 08 00 F6 09 80 0D 03 02 00 00 00 00 7A [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:28]Read from MH i2c: E2 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 0B 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 0B 00 F6 09 00 C7 9C B2 5F C1 39 C7 EE 90 00 9E [16:26:28]RAPDU: C7 9C B2 5F C1 39 C7 EE 90 00 [16:26:28]wFMCommunicate OK [16:26:28]SAM_PROTO_SignData done [16:26:28]FM_MakeSignedData done [16:26:28]CreateOFDProtocolMessage [16:26:28]wFMCommunicate request_size=4 [16:26:28]MH_SAM_APDU [16:26:28]CAPDU: 80 11 00 00 [16:26:28]Write to MH i2c: E2 08 00 F7 09 80 11 00 00 00 00 00 00 7A [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:28]Read from MH i2c: E2 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 17 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 17 00 F7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CD [16:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:26:28]wFMCommunicate OK [16:26:28]CreateOFDProtocolMessage done [16:26:28]OFDSenderStorePacket 76481 [16:26:28]StoreOFDPacket docnum=76481 [16:26:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 74 50 07 01 48 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 65 00 00 00 F4 03 04 00 34 9B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C1 2A 01 00 35 04 06 00 20 B5 15 BE 20 2B C7 9C B2 5F C1 39 C7 EE [16:26:28]CheckFolder [16:26:28]dirname=/storage/ofd_packets [16:26:28]CheckFolder done [16:26:28]ProducePacketName [16:26:28]name=ofd_packets/00076481 [16:26:28]NVStorageSaveData ofd_packets/00076481 [16:26:28]File name is /storage/ofd_packets/00076481 [16:26:28]Write 301 bytes [16:26:28]NVStorageSaveData done [16:26:28]OFDSenderStorePacket done [16:26:28]KKMCreateOFDPacket done [16:26:28]NVStorageSaveData kkm_last_timestamp [16:26:28]File name is /storage/kkm_last_timestamp [16:26:28]Write 4 bytes [16:26:28]NVStorageSaveData done [16:26:28]ExternCall_PrintAddStr [16:26:28]wPrintStart [16:26:28]Write to MH i2c: 01 00 00 F8 09 01 [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: 01 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: 01 07 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: 01 07 00 F8 09 00 00 00 00 00 FF 0F 16 [16:26:28]RasterBufferAndPrint [16:26:28]line Счет N : (1)190958 [16:26:28]line ИНН: 02508201610067 [16:26:28]line Контрольно-Кассовый Чек [16:26:28]line ПРОДАЖА [16:26:28]line ТРК (МРК, ГНК) : 32 [16:26:28]line Товар: 2710124500 [16:26:28]line Аи-95-К-5 [16:26:28]line 13.720 * 72.90 [16:26:28]line = 1000.19 [16:26:28]line НДС 12% НСП 1% [16:26:28]line > о реализуемом товаре [16:26:28]line ИТОГО: 1000.19 [16:26:28]line НСП 1% : 8.85 [16:26:28]line НДС 12% : 106.21 [16:26:28]line Наличными: 0.00 [16:26:28]line Безнал.: 1000.19 [16:26:28]line Место: АЗС № 106 "Партнер Нефть" [16:26:28]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:26:28]line СНО: Общий режим [16:26:28]line Чек 101 19.04.2024 16:26 [16:26:28]line Смена: 370 ФФД: 1.0 [16:26:28]line ЗНМ: 0300000141 [16:26:28]line РНМ: 0000000000091573 [16:26:28]line Версия ККМ: 001 [16:26:28]line Платежная система: Бакай Банк [16:26:28]line ФМ: 0000000000874652 [16:26:28]line ФД: 76481 [16:26:28]line ФПД: 35962125951019 [16:26:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T162628&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76481&fm=35962125951019&tin=02508201610067®Number=0000000000091573&sum=100019 [16:26:28]written 0, free lines is 4095 [16:26:28]OFD Sender: Processing packet 76481 [packets to send 128, broken 127] [16:26:28]ProducePacketName [16:26:28]name=ofd_packets/00076481 [16:26:28]OFD Sender: To server: pG, [16:26:28]CommunicateWithHost lk.salyk.kg:30040 [16:26:28]ConnectInit lk.salyk.kg [16:26:28]Connected sock=9 [16:26:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 74 50 07 01 48 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 65 00 00 00 F4 03 04 00 34 9B 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C1 2A 01 00 35 04 06 00 20 B5 15 BE 20 2B C7 9C B2 5F C1 39 C7 EE [16:26:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 6B 7A 47 00 A0 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 34 36 35 32 10 04 04 00 C1 2A 01 00 F4 03 04 00 BF 42 22 66 B6 04 01 00 00 68 40 BC DD 36 AD B1 9E [16:26:29]CommunicateWithHost err = 0 [16:26:29]CheckOFDResponse [16:26:29]1017 (14) - 77093643461234 [16:26:29]1041 (16) - 0000000000874652 [16:26:29]1040 (4) - 76481 [16:26:29]1012 (4) - 19.04.2024 10:09 [16:26:29]1206 (1) - 0 [16:26:29]OFD Sender: Remove packet 76481 [16:26:29]ProducePacketName [16:26:29]name=ofd_packets/00076481 [16:26:29]NVStorageDeleteData [16:26:29]Write to MH i2c: 01 00 00 21 0A 2B [16:26:29]Write i2c OK [16:26:29]MH_I2C_Read... [16:26:29]Read from MH i2c: 01 [16:26:29]MH_I2C_Read... [16:26:29]Read from MH i2c: 01 07 00 [16:26:29]MH_I2C_Read... [16:26:29]Read from MH i2c: 01 07 00 21 0A 00 00 00 00 00 FD 0C 3B [16:26:29]RasterBufferAndPrint [16:26:29]line [16:26:29]line [16:26:29]line [16:26:29]line [16:26:29]line [16:26:29]written 0, free lines is 3332 [16:26:29]MH_Cut [16:26:29]Write to MH i2c: D1 01 00 28 0A 01 04 [16:26:29]Write i2c OK [16:26:29]MH_I2C_Read... [16:26:29]Read from MH i2c: D1 [16:26:29]MH_I2C_Read... [16:26:29]Read from MH i2c: D1 01 00 [16:26:29]MH_I2C_Read... [16:26:29]Read from MH i2c: D1 01 00 28 0A 00 03 [16:26:29]Write to MH i2c: 01 00 00 29 0A 33 [16:26:29]Write i2c OK [16:26:29]MH_I2C_Read... [16:26:29]OFD Sender: No OFD packet to send [16:26:29]*** Cut start [16:26:29]*** Partial cut [16:26:29]*** CUTSNS_PIN = 1 [16:26:29]*** CUTSNS_PIN = 0 [16:26:30]*** Brake cut motor [16:26:30]Read from MH i2c: 01 [16:26:30]MH_I2C_Read... [16:26:30]*** Stop cut motor [16:26:30]*** Cut end [16:26:30]Read from MH i2c: 01 07 00 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: 01 07 00 29 0A 00 00 00 00 00 FF 0F 48 [16:26:30]process_action close_receipt done [16:26:30]requested_data is exist [16:26:30]produce_requested_data [16:26:30]requested_item fm.sn is exist - process it [16:26:30]wFMCommunicate request_size=4 [16:26:30]MH_SAM_APDU [16:26:30]CAPDU: 80 11 00 00 [16:26:30]Write to MH i2c: E2 08 00 2A 0A 80 11 00 00 00 00 00 00 AE [16:26:30]Write i2c OK [16:26:30]MH_I2C_Read... [16:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:30]Read from MH i2c: E2 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: E2 17 00 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: E2 17 00 2A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 01 [16:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:26:30]wFMCommunicate OK [16:26:30]requested_item fd.num is exist - process it [16:26:30]SAM_PROTO_GetFieldsCounters [16:26:30]wFMCommunicate request_size=4 [16:26:30]MH_SAM_APDU [16:26:30]CAPDU: 80 13 00 00 [16:26:30]Write to MH i2c: E2 08 00 2B 0A 80 13 00 00 00 00 00 00 B1 [16:26:30]Write i2c OK [16:26:30]MH_I2C_Read... [16:26:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:30]Read from MH i2c: E2 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: E2 62 00 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: E2 62 00 2B 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C1 2A 01 00 0E 04 04 00 72 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 60 [16:26: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C1 2A 01 00 0E 04 04 00 72 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 [16:26:30]wFMCommunicate OK [16:26:30]SAM_PROTO_GetFieldsCounters done [16:26:30]requested_item shift.num is exist - process it [16:26:30]requested_item shift.opened is exist - process it [16:26:30]req_shift_opened [16:26:30]FM_GetShiftState [16:26:30]SAM_PROTO_GetShiftState [16:26:30]wFMCommunicate request_size=4 [16:26:30]MH_SAM_APDU [16:26:30]CAPDU: 80 13 01 00 [16:26:30]Write to MH i2c: E2 08 00 2C 0A 80 13 01 00 00 00 00 00 B3 [16:26:30]Write i2c OK [16:26:30]MH_I2C_Read... [16:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:30]Read from MH i2c: E2 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: E2 0E 00 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: E2 0E 00 2C 0A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 98 [16:26:30]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:26:30]wFMCommunicate OK [16:26:30]SAM_PROTO_GetShiftState done [16:26:30]FM_GetShiftState done [16:26:30]req_shift_opened done [16:26:30]requested_item shift.open_date is exist - process it [16:26:30]req_shift_open_date [16:26:30]req_shift_open_date done [16:26:30]produce_requested_data done [16:26:30]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76481,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [16:26:30]process_action_free close_receipt [16:26:30]json_value_free [16:26:30]json_value_free done [16:26:30]process_json_proto returns [16:26:30]Send response to host [16:26:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76481,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [16:26:30]free response buf [16:26:30]execute_script done [16:26:30]execute_script returns [16:26:30]free content buf [16:26:30]Sock 10.Close socket [16:26:30]Sock 10.Thread stoped [16:26:34]OFD Sender: No OFD packet to send [16:26:39]OFD Sender: No OFD packet to send [16:26:44]OFD Sender: No OFD packet to send [16:26:49]OFD Sender: No OFD packet to send [16:26:54]OFD Sender: No OFD packet to send [16:26:59]OFD Sender: No OFD packet to send [16:27:04]OFD Sender: No OFD packet to send [16:27:09]OFD Sender: No OFD packet to send [16:27:14]OFD Sender: No OFD packet to send [16:27:19]OFD Sender: No OFD packet to send [16:27:24]OFD Sender: No OFD packet to send [16:27:29]OFD Sender: No OFD packet to send [16:27:34]OFD Sender: No OFD packet to send [16:27:39]OFD Sender: No OFD packet to send [16:27:44]OFD Sender: No OFD packet to send [16:27:49]OFD Sender: No OFD packet to send [16:27:54]OFD Sender: No OFD packet to send [16:27:59]OFD Sender: No OFD packet to send [16:28:04]OFD Sender: No OFD packet to send [16:28:09]OFD Sender: No OFD packet to send [16:28:14]OFD Sender: No OFD packet to send [16:28:19]OFD Sender: No OFD packet to send [16:28:24]OFD Sender: No OFD packet to send [16:28:29]OFD Sender: No OFD packet to send [16:28:34]OFD Sender: No OFD packet to send [16:28:39]OFD Sender: No OFD packet to send [16:28:44]OFD Sender: No OFD packet to send [16:28:49]OFD Sender: No OFD packet to send [16:28:54]OFD Sender: No OFD packet to send [16:28:59]OFD Sender: No OFD packet to send [16:29:04]OFD Sender: No OFD packet to send [16:29:09]OFD Sender: No OFD packet to send [16:29:14]OFD Sender: No OFD packet to send [16:29:19]OFD Sender: No OFD packet to send [16:29:24]OFD Sender: No OFD packet to send [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:59]OFD Sender: No OFD packet to send [16:30:04]OFD Sender: No OFD packet to send [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:22]accept exits with 7 [16:30:22]New connection [16:30:22]New thread 3066936676 created [16:30:22]Thread 3067080036 joined [16:30:22]Waiting for new connection... [16:30:22] Sock 7.Parse request [16:30:22]Sock 7.Check first char [16:30:22]Sock 7.First char is OK [16:30:22]request: POST /json_proto HTTP/1.0 [16:30:22]Method: POST [16:30:22]URL: /json_proto [16:30:22]Method is POST - this is cgi request [16:30:22]url: /json_proto [16:30:22]query_string will be loaded in cgi processing [16:30:22]execute_cgi json_proto POST (null) [16:30:22]execute_cgi path=json_proto method=POST [16:30:22]POST find Content-Length [16:30:22]Host: 172.17.62.5:8080 [16:30:22]Content-Length: 677 [16:30:22]Content-Type: application/json [16:30:22] [16:30:22]POST finish read [16:30:22]Found Content-Length = 677 [16:30:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190959", "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" : 64.40, "quantity" : 4.350, "sum" : 280.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:22]execute_script... [16:30: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)190959", "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" : 64.40, "quantity" : 4.350, "sum" : 280.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:22]POST & json_proto [16:30:22]process_json_proto [16:30:22]json parsed OK: [16:30:22]protocol is kg_v1.0 [16:30:22]action value=close_receipt [16:30:22]process_action close_receipt [16:30:22]cmd_close_receipt [16:30:22]MH_GetDate [16:30:22]Write to MH i2c: F0 00 00 2D 0A 26 [16:30:22]Write i2c OK [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: F0 [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: F0 09 00 [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: F0 09 00 2D 0A 00 1F 9C 22 66 F4 E9 65 64 18 [16:30:22]GetLastDocTimeStamp 1713543988 [16:30:22]current date 1713544223 [16:30:22]FM_GetShiftState [16:30:22]SAM_PROTO_GetShiftState [16:30:22]wFMCommunicate request_size=4 [16:30:22]MH_SAM_APDU [16:30:22]CAPDU: 80 13 01 00 [16:30:22]Write to MH i2c: E2 08 00 2E 0A 80 13 01 00 00 00 00 00 B5 [16:30:22]Write i2c OK [16:30:22]MH_I2C_Read... [16:30:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:22]Read from MH i2c: E2 [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: E2 0E 00 [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: E2 0E 00 2E 0A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 9A [16:30:22]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:30:22]wFMCommunicate OK [16:30:22]SAM_PROTO_GetShiftState done [16:30:22]FM_GetShiftState done [16:30:22]opened in 1713486233 [16:30:22]opened+sec_in_day 1713572633 [16:30:22]quantity*price = 28014 [16:30:22]sum+1 = 28015 [16:30:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 280.00 Внесено: 280.00 СДАЧА: 0.00 НСП 1% : 2.48 НДС 12% : 29.75 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 102 19.04.2024 16:30 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76482 ФПД: 258340917211360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T163023&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76482&fm=258340917211360&tin=02508201610067®Number=0000000000091573&sum=28000 [16:30:23]StoreToDocumentArchive [16:30:23]shift 370 fd 76482 [16:30:23]save to /storage/0370/doc_00076482 [16:30:23]save last doc name /storage/0370/doc_00076482 to /storage/kkm_last_doc_name [16:30:23]save OK [16:30:23]Clear old archive folders... [16:30:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:30:23]tlvbuf is 009E8DE0 [16:30:23]SAM_PROTO_ClearQueue [16:30:23]wFMCommunicate request_size=4 [16:30:23]MH_SAM_APDU [16:30:23]CAPDU: 80 09 00 00 [16:30:23]Write to MH i2c: E2 08 00 3B 0A 80 09 00 00 00 00 00 00 B7 [16:30:23]Write i2c OK [16:30:23]MH_I2C_Read... [16:30:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:23]Read from MH i2c: E2 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 03 00 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 03 00 3B 0A 00 90 00 B9 [16:30:23]RAPDU: 90 00 [16:30:23]wFMCommunicate OK [16:30:23]SAM_PROTO_ClearQueue done [16:30:23]KKMCreateOFDPacket [16:30:23]OFDProtocolAddRootSTLVToBuf [16:30:23]FM_MakeSignedData [16:30:23]FM_MakeSignedData [16:30:23]SAM_PROTO_SignData [16:30:23]wFMCommunicate request_size=4 [16:30:23]MH_SAM_APDU [16:30:23]CAPDU: 80 0D 01 02 [16:30:23]Write to MH i2c: E2 08 00 3C 0A 80 0D 01 02 00 00 00 00 BF [16:30:23]Write i2c OK [16:30:23]MH_I2C_Read... [16:30:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:23]Read from MH i2c: E2 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 03 00 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 03 00 3C 0A 00 90 00 BA [16:30:23]RAPDU: 90 00 [16:30:23]wFMCommunicate OK [16:30:23]wFMCommunicate request_size=255 [16:30:23]MH_SAM_APDU [16:30: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 FE 10 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 6E 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 0B 00 00 00 00 07 04 06 00 60 6D 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 1F 9C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C2 2A 01 00 35 04 06 00 EA [16:30:23]Write to MH i2c: E2 02 01 3D 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 FE 10 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 6E 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 0B 00 00 00 00 07 04 06 00 60 6D 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 1F 9C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C2 2A 01 00 35 04 06 00 EA 00 00 22 [16:30:23]Write i2c OK [16:30:23]MH_I2C_Read... [16:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:23]Read from MH i2c: E2 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 03 00 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 03 00 3D 0A 00 90 00 BB [16:30:23]RAPDU: 90 00 [16:30:23]wFMCommunicate OK [16:30:23]wFMCommunicate request_size=10 [16:30:23]MH_SAM_APDU [16:30:23]CAPDU: 80 0D 02 02 05 F5 AE 99 F0 E0 [16:30:23]Write to MH i2c: E2 0D 00 3E 0A 80 0D 02 02 05 00 F5 AE 99 F0 E0 00 00 D8 [16:30:23]Write i2c OK [16:30:23]MH_I2C_Read... [16:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:23]Read from MH i2c: E2 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 03 00 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 03 00 3E 0A 00 90 00 BC [16:30:23]RAPDU: 90 00 [16:30:23]wFMCommunicate OK [16:30:23]wFMCommunicate request_size=4 [16:30:23]MH_SAM_APDU [16:30:23]CAPDU: 80 0D 03 02 [16:30:23]Write to MH i2c: E2 08 00 3F 0A 80 0D 03 02 00 00 00 00 C4 [16:30:23]Write i2c OK [16:30:23]MH_I2C_Read... [16:30:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:23]Read from MH i2c: E2 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 0B 00 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 0B 00 3F 0A 00 60 18 72 E0 05 18 41 82 90 00 6F [16:30:23]RAPDU: 60 18 72 E0 05 18 41 82 90 00 [16:30:23]wFMCommunicate OK [16:30:23]SAM_PROTO_SignData done [16:30:23]FM_MakeSignedData done [16:30:23]CreateOFDProtocolMessage [16:30:23]wFMCommunicate request_size=4 [16:30:23]MH_SAM_APDU [16:30:23]CAPDU: 80 11 00 00 [16:30:23]Write to MH i2c: E2 08 00 40 0A 80 11 00 00 00 00 00 00 C4 [16:30:23]Write i2c OK [16:30:23]MH_I2C_Read... [16:30:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:23]Read from MH i2c: E2 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 17 00 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 17 00 40 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 17 [16:30:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:30:23]wFMCommunicate OK [16:30:23]CreateOFDProtocolMessage done [16:30:23]OFDSenderStorePacket 76482 [16:30:23]StoreOFDPacket docnum=76482 [16:30:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 5F 6C 07 01 26 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 FE 10 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 6E 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 0B 00 00 00 00 07 04 06 00 60 6D 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 1F 9C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C2 2A 01 00 35 04 06 00 EA F5 AE 99 F0 E0 60 18 72 E0 05 18 41 82 [16:30:23]CheckFolder [16:30:23]dirname=/storage/ofd_packets [16:30:23]CheckFolder done [16:30:23]ProducePacketName [16:30:23]name=ofd_packets/00076482 [16:30:23]NVStorageSaveData ofd_packets/00076482 [16:30:23]File name is /storage/ofd_packets/00076482 [16:30:23]Write 301 bytes [16:30:23]NVStorageSaveData done [16:30:23]OFDSenderStorePacket done [16:30:23]KKMCreateOFDPacket done [16:30:23]NVStorageSaveData kkm_last_timestamp [16:30:23]File name is /storage/kkm_last_timestamp [16:30:23]Write 4 bytes [16:30:23]NVStorageSaveData done [16:30:23]ExternCall_PrintAddStr [16:30:23]wPrintStart [16:30:23]Write to MH i2c: 01 00 00 41 0A 4B [16:30:23]Write i2c OK [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: 01 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: 01 07 00 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: 01 07 00 41 0A 00 00 00 00 00 FF 0F 60 [16:30:23]RasterBufferAndPrint [16:30:23]line Счет N : (1)190959 [16:30:23]line ИНН: 02508201610067 [16:30:23]line Контрольно-Кассовый Чек [16:30:23]line ПРОДАЖА [16:30:23]line ТРК (МРК, ГНК) : 22 [16:30:23]line Товар: 2710124130 [16:30:23]line Аи-92-К-5 [16:30:23]line 4.350 * 64.40 [16:30:23]line = 280.14 [16:30:23]line НДС 12% НСП 1% [16:30:23]line > о реализуемом товаре [16:30:23]line ОКРУГЛЕНИЕ: -0.14 [16:30:23]line ИТОГО: 280.00 [16:30:23]line Внесено: 280.00 [16:30:23]line СДАЧА: 0.00 [16:30:23]line НСП 1% : 2.48 [16:30:23]line НДС 12% : 29.75 [16:30:23]line Наличными: 280.00 [16:30:23]line Безнал.: 0.00 [16:30:23]line Место: АЗС № 106 "Партнер Нефть" [16:30:23]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:30:23]line СНО: Общий режим [16:30:23]line Чек 102 19.04.2024 16:30 [16:30:23]line Смена: 370 ФФД: 1.0 [16:30:23]line ЗНМ: 0300000141 [16:30:23]line РНМ: 0000000000091573 [16:30:23]line Версия ККМ: 001 [16:30:23]line ФМ: 0000000000874652 [16:30:23]line ФД: 76482 [16:30:23]line ФПД: 258340917211360 [16:30:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T163023&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76482&fm=258340917211360&tin=02508201610067®Number=0000000000091573&sum=28000 [16:30:24]OFD Sender: Processing packet 76482 [packets to send 128, broken 127] [16:30:24]ProducePacketName [16:30:24]name=ofd_packets/00076482 [16:30:24]OFD Sender: To server: pG, [16:30:24]CommunicateWithHost lk.salyk.kg:30040 [16:30:24]ConnectInit lk.salyk.kg [16:30:24]written 0, free lines is 4095 [16:30:24]Connected sock=10 [16:30:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 5F 6C 07 01 26 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 FE 10 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 6E 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 0B 00 00 00 00 07 04 06 00 60 6D 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 1F 9C 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C2 2A 01 00 35 04 06 00 EA F5 AE 99 F0 E0 60 18 72 E0 05 18 41 82 [16:30:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C5 C9 47 00 88 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 34 36 35 32 10 04 04 00 C2 2A 01 00 F4 03 04 00 AA 43 22 66 B6 04 01 00 00 70 EC 58 7D 06 9B 56 B9 [16:30:24]CommunicateWithHost err = 0 [16:30:24]CheckOFDResponse [16:30:24]1017 (14) - 77093643461234 [16:30:24]1041 (16) - 0000000000874652 [16:30:24]1040 (4) - 76482 [16:30:24]1012 (4) - 19.04.2024 10:12 [16:30:24]1206 (1) - 0 [16:30:24]OFD Sender: Remove packet 76482 [16:30:24]ProducePacketName [16:30:24]name=ofd_packets/00076482 [16:30:24]NVStorageDeleteData [16:30:24]Write to MH i2c: 01 00 00 6B 0A 75 [16:30:24]Write i2c OK [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: 01 [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: 01 07 00 [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: 01 07 00 6B 0A 00 00 00 00 00 FA 0C 82 [16:30:24]RasterBufferAndPrint [16:30:24]line [16:30:24]line [16:30:24]line [16:30:24]line [16:30:24]line [16:30:24]written 0, free lines is 3328 [16:30:24]MH_Cut [16:30:24]Write to MH i2c: D1 01 00 72 0A 01 4E [16:30:24]Write i2c OK [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: D1 [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: D1 01 00 [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: D1 01 00 72 0A 00 4D [16:30:24]Write to MH i2c: 01 00 00 73 0A 7D [16:30:24]Write i2c OK [16:30:24]MH_I2C_Read... [16:30:24]OFD Sender: No OFD packet to send [16:30:25]*** Cut start [16:30:25]*** Partial cut [16:30:25]*** CUTSNS_PIN = 1 [16:30:25]*** CUTSNS_PIN = 0 [16:30:25]*** Brake cut motor [16:30:25]Read from MH i2c: 01 [16:30:25]MH_I2C_Read... [16:30:25]*** Stop cut motor [16:30:25]*** Cut end [16:30:25]Read from MH i2c: 01 07 00 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: 01 07 00 73 0A 00 00 00 00 00 FF 0F 92 [16:30:25]process_action close_receipt done [16:30:25]requested_data is exist [16:30:25]produce_requested_data [16:30:25]requested_item fm.sn is exist - process it [16:30:25]wFMCommunicate request_size=4 [16:30:25]MH_SAM_APDU [16:30:25]CAPDU: 80 11 00 00 [16:30:25]Write to MH i2c: E2 08 00 74 0A 80 11 00 00 00 00 00 00 F8 [16:30:25]Write i2c OK [16:30:25]MH_I2C_Read... [16:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:26]Read from MH i2c: E2 [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: E2 17 00 [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: E2 17 00 74 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4B [16:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:30:26]wFMCommunicate OK [16:30:26]requested_item fd.num is exist - process it [16:30:26]SAM_PROTO_GetFieldsCounters [16:30:26]wFMCommunicate request_size=4 [16:30:26]MH_SAM_APDU [16:30:26]CAPDU: 80 13 00 00 [16:30:26]Write to MH i2c: E2 08 00 75 0A 80 13 00 00 00 00 00 00 FB [16:30:26]Write i2c OK [16:30:26]MH_I2C_Read... [16:30:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:26]Read from MH i2c: E2 [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: E2 62 00 [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: E2 62 00 75 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C2 2A 01 00 0E 04 04 00 72 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 AE [16:30:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C2 2A 01 00 0E 04 04 00 72 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 [16:30:26]wFMCommunicate OK [16:30:26]SAM_PROTO_GetFieldsCounters done [16:30:26]requested_item shift.num is exist - process it [16:30:26]requested_item shift.opened is exist - process it [16:30:26]req_shift_opened [16:30:26]FM_GetShiftState [16:30:26]SAM_PROTO_GetShiftState [16:30:26]wFMCommunicate request_size=4 [16:30:26]MH_SAM_APDU [16:30:26]CAPDU: 80 13 01 00 [16:30:26]Write to MH i2c: E2 08 00 76 0A 80 13 01 00 00 00 00 00 FD [16:30:26]Write i2c OK [16:30:26]MH_I2C_Read... [16:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:26]Read from MH i2c: E2 [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: E2 0E 00 [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: E2 0E 00 76 0A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E2 [16:30:26]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:30:26]wFMCommunicate OK [16:30:26]SAM_PROTO_GetShiftState done [16:30:26]FM_GetShiftState done [16:30:26]req_shift_opened done [16:30:26]requested_item shift.open_date is exist - process it [16:30:26]req_shift_open_date [16:30:26]req_shift_open_date done [16:30:26]produce_requested_data done [16:30:26]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76482,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [16:30:26]process_action_free close_receipt [16:30:26]json_value_free [16:30:26]json_value_free done [16:30:26]process_json_proto returns [16:30:26]Send response to host [16:30:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76482,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [16:30:26]free response buf [16:30:26]execute_script done [16:30:26]execute_script returns [16:30:26]free content buf [16:30:26]Sock 7.Close socket [16:30:26]Sock 7.Thread stoped [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:55]OFD Sender: No OFD packet to send [16:31:00]OFD Sender: No OFD packet to send [16:31:05]OFD Sender: No OFD packet to send [16:31:10]OFD Sender: No OFD packet to send [16:31:15]OFD Sender: No OFD packet to send [16:31:20]OFD Sender: No OFD packet to send [16:31:25]OFD Sender: No OFD packet to send [16:31:30]OFD Sender: No OFD packet to send [16:31:35]OFD Sender: No OFD packet to send [16:31:40]OFD Sender: No OFD packet to send [16:31:45]OFD Sender: No OFD packet to send [16:31:50]OFD Sender: No OFD packet to send [16:31:55]OFD Sender: No OFD packet to send [16:32:00]OFD Sender: No OFD packet to send [16:32:05]OFD Sender: No OFD packet to send [16:32:10]OFD Sender: No OFD packet to send [16:32:15]OFD Sender: No OFD packet to send [16:32:20]OFD Sender: No OFD packet to send [16:32:25]OFD Sender: No OFD packet to send [16:32:30]OFD Sender: No OFD packet to send [16:32:35]OFD Sender: No OFD packet to send [16:32:40]OFD Sender: No OFD packet to send [16:32:45]OFD Sender: No OFD packet to send [16:32:50]OFD Sender: No OFD packet to send [16:32:55]OFD Sender: No OFD packet to send [16:33:00]OFD Sender: No OFD packet to send [16:33:05]OFD Sender: No OFD packet to send [16:33:10]OFD Sender: No OFD packet to send [16:33:15]OFD Sender: No OFD packet to send [16:33:20]OFD Sender: No OFD packet to send [16:33:25]OFD Sender: No OFD packet to send [16:33:30]OFD Sender: No OFD packet to send [16:33:35]OFD Sender: No OFD packet to send [16:33:40]OFD Sender: No OFD packet to send [16:33:45]OFD Sender: No OFD packet to send [16:33:50]OFD Sender: No OFD packet to send [16:33:55]OFD Sender: No OFD packet to send [16:34:00]OFD Sender: No OFD packet to send [16:34:05]OFD Sender: No OFD packet to send [16:34:10]OFD Sender: No OFD packet to send [16:34:15]OFD Sender: No OFD packet to send [16:34:20]OFD Sender: No OFD packet to send [16:34:25]OFD Sender: No OFD packet to send [16:34:30]OFD Sender: No OFD packet to send [16:34:35]OFD Sender: No OFD packet to send [16:34:40]OFD Sender: No OFD packet to send [16:34:45]OFD Sender: No OFD packet to send [16:34:50]OFD Sender: No OFD packet to send [16:34:55]OFD Sender: No OFD packet to send [16:35:00]OFD Sender: No OFD packet to send [16:35:05]OFD Sender: No OFD packet to send [16:35:10]OFD Sender: No OFD packet to send [16:35:15]OFD Sender: No OFD packet to send [16:35:20]OFD Sender: No OFD packet to send [16:35:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:05]OFD Sender: No OFD packet to send [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:20]accept exits with 9 [16:36:20]New connection [16:36:20]New thread 3067080036 created [16:36:20]Thread 3066936676 joined [16:36:20]Waiting for new connection... [16:36:20] Sock 9.Parse request [16:36:20]Sock 9.Check first char [16:36:20]Sock 9.First char is OK [16:36:20]request: POST /json_proto HTTP/1.0 [16:36:20]Method: POST [16:36:20]URL: /json_proto [16:36:20]Method is POST - this is cgi request [16:36:20]url: /json_proto [16:36:20]query_string will be loaded in cgi processing [16:36:20]execute_cgi json_proto POST (null) [16:36:20]execute_cgi path=json_proto method=POST [16:36:20]POST find Content-Length [16:36:20]Host: 172.17.62.5:8080 [16:36:20]Content-Length: 674 [16:36:20]Content-Type: application/json [16:36:20] [16:36:20]POST finish read [16:36:20]Found Content-Length = 674 [16:36:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:36:20]execute_script... [16:36: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)190962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 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:36:20]POST & json_proto [16:36:20]process_json_proto [16:36:20]json parsed OK: [16:36:20]protocol is kg_v1.0 [16:36:20]action value=close_receipt [16:36:20]process_action close_receipt [16:36:20]cmd_close_receipt [16:36:20]MH_GetDate [16:36:20]Write to MH i2c: F0 00 00 77 0A 70 [16:36:20]Write i2c OK [16:36:20]MH_I2C_Read... [16:36:20]Read from MH i2c: F0 [16:36:20]MH_I2C_Read... [16:36:20]Read from MH i2c: F0 09 00 [16:36:20]MH_I2C_Read... [16:36:20]Read from MH i2c: F0 09 00 77 0A 00 86 9D 22 66 F4 E9 65 64 CA [16:36:20]GetLastDocTimeStamp 1713544223 [16:36:20]current date 1713544582 [16:36:20]FM_GetShiftState [16:36:20]SAM_PROTO_GetShiftState [16:36:20]wFMCommunicate request_size=4 [16:36:20]MH_SAM_APDU [16:36:20]CAPDU: 80 13 01 00 [16:36:20]Write to MH i2c: E2 08 00 78 0A 80 13 01 00 00 00 00 00 FF [16:36:20]Write i2c OK [16:36:20]MH_I2C_Read... [16:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:20]Read from MH i2c: E2 [16:36:20]MH_I2C_Read... [16:36:20]Read from MH i2c: E2 0E 00 [16:36:20]MH_I2C_Read... [16:36:20]Read from MH i2c: E2 0E 00 78 0A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E4 [16:36:20]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:36:20]wFMCommunicate OK [16:36:20]SAM_PROTO_GetShiftState done [16:36:20]FM_GetShiftState done [16:36:20]opened in 1713486233 [16:36:20]opened+sec_in_day 1713572633 [16:36:20]quantity*price = 50009 [16:36:20]sum+1 = 50010 [16:36:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 103 19.04.2024 16:36 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76483 ФПД: 148077542769316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T163622&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76483&fm=148077542769316&tin=02508201610067®Number=0000000000091573&sum=50000 [16:36:21]StoreToDocumentArchive [16:36:21]shift 370 fd 76483 [16:36:21]save to /storage/0370/doc_00076483 [16:36:21]save last doc name /storage/0370/doc_00076483 to /storage/kkm_last_doc_name [16:36:21]save OK [16:36:21]Clear old archive folders... [16:36:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:36:21]tlvbuf is 009F0B70 [16:36:21]SAM_PROTO_ClearQueue [16:36:21]wFMCommunicate request_size=4 [16:36:21]MH_SAM_APDU [16:36:21]CAPDU: 80 09 00 00 [16:36:21]Write to MH i2c: E2 08 00 85 0A 80 09 00 00 00 00 00 00 01 [16:36:21]Write i2c OK [16:36:21]MH_I2C_Read... [16:36:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:21]Read from MH i2c: E2 [16:36:21]MH_I2C_Read... [16:36:21]Read from MH i2c: E2 03 00 [16:36:21]MH_I2C_Read... [16:36:21]Read from MH i2c: E2 03 00 85 0A 00 90 00 03 [16:36:21]RAPDU: 90 00 [16:36:21]wFMCommunicate OK [16:36:21]SAM_PROTO_ClearQueue done [16:36:21]KKMCreateOFDPacket [16:36:21]OFDProtocolAddRootSTLVToBuf [16:36:21]FM_MakeSignedData [16:36:21]FM_MakeSignedData [16:36:21]SAM_PROTO_SignData [16:36:21]wFMCommunicate request_size=4 [16:36:21]MH_SAM_APDU [16:36:21]CAPDU: 80 0D 01 02 [16:36:21]Write to MH i2c: E2 08 00 86 0A 80 0D 01 02 00 00 00 00 09 [16:36:21]Write i2c OK [16:36:21]MH_I2C_Read... [16:36:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:22]Read from MH i2c: E2 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: E2 03 00 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: E2 03 00 86 0A 00 90 00 04 [16:36:22]RAPDU: 90 00 [16:36:22]wFMCommunicate OK [16:36:22]wFMCommunicate request_size=255 [16:36:22]MH_SAM_APDU [16:36:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 67 00 00 00 F4 03 04 00 86 9D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C3 2A 01 00 35 04 06 00 86 AC FD 56 [16:36:22]Write to MH i2c: E2 02 01 87 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 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 67 00 00 00 F4 03 04 00 86 9D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C3 2A 01 00 35 04 06 00 86 AC FD 56 00 00 AB [16:36:22]Write i2c OK [16:36:22]MH_I2C_Read... [16:36:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:22]Read from MH i2c: E2 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: E2 03 00 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: E2 03 00 87 0A 00 90 00 05 [16:36:22]RAPDU: 90 00 [16:36:22]wFMCommunicate OK [16:36:22]wFMCommunicate request_size=7 [16:36:22]MH_SAM_APDU [16:36:22]CAPDU: 80 0D 02 02 02 02 A4 [16:36:22]Write to MH i2c: E2 0A 00 88 0A 80 0D 02 02 02 00 02 A4 00 00 B6 [16:36:22]Write i2c OK [16:36:22]MH_I2C_Read... [16:36:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:22]Read from MH i2c: E2 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: E2 03 00 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: E2 03 00 88 0A 00 90 00 06 [16:36:22]RAPDU: 90 00 [16:36:22]wFMCommunicate OK [16:36:22]wFMCommunicate request_size=4 [16:36:22]MH_SAM_APDU [16:36:22]CAPDU: 80 0D 03 02 [16:36:22]Write to MH i2c: E2 08 00 89 0A 80 0D 03 02 00 00 00 00 0E [16:36:22]Write i2c OK [16:36:22]MH_I2C_Read... [16:36:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:22]Read from MH i2c: E2 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: E2 0B 00 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: E2 0B 00 89 0A 00 3D E2 39 E5 C7 44 F3 B4 90 00 FE [16:36:22]RAPDU: 3D E2 39 E5 C7 44 F3 B4 90 00 [16:36:22]wFMCommunicate OK [16:36:22]SAM_PROTO_SignData done [16:36:22]FM_MakeSignedData done [16:36:22]CreateOFDProtocolMessage [16:36:22]wFMCommunicate request_size=4 [16:36:22]MH_SAM_APDU [16:36:22]CAPDU: 80 11 00 00 [16:36:22]Write to MH i2c: E2 08 00 8A 0A 80 11 00 00 00 00 00 00 0E [16:36:22]Write i2c OK [16:36:22]MH_I2C_Read... [16:36:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:22]Read from MH i2c: E2 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: E2 17 00 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: E2 17 00 8A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 61 [16:36:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:36:22]wFMCommunicate OK [16:36:22]CreateOFDProtocolMessage done [16:36:22]OFDSenderStorePacket 76483 [16:36:22]StoreOFDPacket docnum=76483 [16:36:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 3F E1 04 01 42 AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 67 00 00 00 F4 03 04 00 86 9D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C3 2A 01 00 35 04 06 00 86 AC FD 56 02 A4 3D E2 39 E5 C7 44 F3 B4 [16:36:22]CheckFolder [16:36:22]dirname=/storage/ofd_packets [16:36:22]CheckFolder done [16:36:22]ProducePacketName [16:36:22]name=ofd_packets/00076483 [16:36:22]NVStorageSaveData ofd_packets/00076483 [16:36:22]File name is /storage/ofd_packets/00076483 [16:36:22]Write 298 bytes [16:36:22]NVStorageSaveData done [16:36:22]OFDSenderStorePacket done [16:36:22]KKMCreateOFDPacket done [16:36:22]NVStorageSaveData kkm_last_timestamp [16:36:22]File name is /storage/kkm_last_timestamp [16:36:22]Write 4 bytes [16:36:22]NVStorageSaveData done [16:36:22]ExternCall_PrintAddStr [16:36:22]wPrintStart [16:36:22]Write to MH i2c: 01 00 00 8B 0A 95 [16:36:22]Write i2c OK [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: 01 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: 01 07 00 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: 01 07 00 8B 0A 00 00 00 00 00 FF 0F AA [16:36:22]RasterBufferAndPrint [16:36:22]line Счет N : (1)190962 [16:36:22]line ИНН: 02508201610067 [16:36:22]line Контрольно-Кассовый Чек [16:36:22]line ПРОДАЖА [16:36:22]line ТРК (МРК, ГНК) : 61 [16:36:22]line Товар: 2710194210 [16:36:22]line ДТ-К-5 [16:36:22]line 6.860 * 72.90 [16:36:22]line = 500.09 [16:36:22]line НДС 12% НСП 1% [16:36:22]line > о реализуемом товаре [16:36:22]line ОКРУГЛЕНИЕ: -0.09 [16:36:22]line ИТОГО: 500.00 [16:36:22]line Внесено: 500.00 [16:36:22]line СДАЧА: 0.00 [16:36:22]line НСП 1% : 4.43 [16:36:22]line НДС 12% : 53.11 [16:36:22]line Наличными: 500.00 [16:36:22]line Безнал.: 0.00 [16:36:22]line Место: АЗС № 106 "Партнер Нефть" [16:36:22]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:36:22]line СНО: Общий режим [16:36:22]line Чек 103 19.04.2024 16:36 [16:36:22]line Смена: 370 ФФД: 1.0 [16:36:22]line ЗНМ: 0300000141 [16:36:22]line РНМ: 0000000000091573 [16:36:22]line Версия ККМ: 001 [16:36:22]line ФМ: 0000000000874652 [16:36:22]line ФД: 76483 [16:36:22]line ФПД: 148077542769316 [16:36:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T163622&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76483&fm=148077542769316&tin=02508201610067®Number=0000000000091573&sum=50000 [16:36:22]OFD Sender: Processing packet 76483 [packets to send 128, broken 127] [16:36:22]ProducePacketName [16:36:22]name=ofd_packets/00076483 [16:36:22]OFD Sender: To server: pG, [16:36:22]CommunicateWithHost lk.salyk.kg:30040 [16:36:22]ConnectInit lk.salyk.kg [16:36:22]written 0, free lines is 4095 [16:36:22]Connected sock=10 [16:36:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 3F E1 04 01 42 AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 67 00 00 00 F4 03 04 00 86 9D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C3 2A 01 00 35 04 06 00 86 AC FD 56 02 A4 3D E2 39 E5 C7 44 F3 B4 [16:36:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 95 BE 47 00 2C 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 34 36 35 32 10 04 04 00 C3 2A 01 00 F4 03 04 00 11 45 22 66 B6 04 01 00 00 B3 6D A8 E8 7B C8 06 0B [16:36:23]CommunicateWithHost err = 0 [16:36:23]CheckOFDResponse [16:36:23]1017 (14) - 77093643461234 [16:36:23]1041 (16) - 0000000000874652 [16:36:23]1040 (4) - 76483 [16:36:23]1012 (4) - 19.04.2024 10:18 [16:36:23]1206 (1) - 0 [16:36:23]OFD Sender: Remove packet 76483 [16:36:23]ProducePacketName [16:36:23]name=ofd_packets/00076483 [16:36:23]NVStorageDeleteData [16:36:23]Write to MH i2c: 01 00 00 B5 0A BF [16:36:23]Write i2c OK [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: 01 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: 01 07 00 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: 01 07 00 B5 0A 00 00 00 00 00 FC 0C CE [16:36:23]RasterBufferAndPrint [16:36:23]line [16:36:23]line [16:36:23]line [16:36:23]line [16:36:23]line [16:36:23]written 0, free lines is 3331 [16:36:23]MH_Cut [16:36:23]Write to MH i2c: D1 01 00 BC 0A 01 98 [16:36:23]Write i2c OK [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: D1 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: D1 01 00 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: D1 01 00 BC 0A 00 97 [16:36:23]Write to MH i2c: 01 00 00 BD 0A C7 [16:36:23]Write i2c OK [16:36:23]MH_I2C_Read... [16:36:23]OFD Sender: No OFD packet to send [16:36:23]*** Cut start [16:36:23]*** Partial cut [16:36:23]*** CUTSNS_PIN = 1 [16:36:24]*** CUTSNS_PIN = 0 [16:36:24]*** Brake cut motor [16:36:24]Read from MH i2c: 01 [16:36:24]MH_I2C_Read... [16:36:24]*** Stop cut motor [16:36:24]*** Cut end [16:36:24]Read from MH i2c: 01 07 00 [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: 01 07 00 BD 0A 00 00 00 00 00 FF 0F DC [16:36:24]process_action close_receipt done [16:36:24]requested_data is exist [16:36:24]produce_requested_data [16:36:24]requested_item fm.sn is exist - process it [16:36:24]wFMCommunicate request_size=4 [16:36:24]MH_SAM_APDU [16:36:24]CAPDU: 80 11 00 00 [16:36:24]Write to MH i2c: E2 08 00 BE 0A 80 11 00 00 00 00 00 00 42 [16:36:24]Write i2c OK [16:36:24]MH_I2C_Read... [16:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:24]Read from MH i2c: E2 [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: E2 17 00 [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: E2 17 00 BE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 95 [16:36:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:36:24]wFMCommunicate OK [16:36:24]requested_item fd.num is exist - process it [16:36:24]SAM_PROTO_GetFieldsCounters [16:36:24]wFMCommunicate request_size=4 [16:36:24]MH_SAM_APDU [16:36:24]CAPDU: 80 13 00 00 [16:36:24]Write to MH i2c: E2 08 00 BF 0A 80 13 00 00 00 00 00 00 45 [16:36:24]Write i2c OK [16:36:24]MH_I2C_Read... [16:36:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:24]Read from MH i2c: E2 [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: E2 62 00 [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: E2 62 00 BF 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C3 2A 01 00 0E 04 04 00 72 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 FC [16: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C3 2A 01 00 0E 04 04 00 72 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 [16:36:24]wFMCommunicate OK [16:36:24]SAM_PROTO_GetFieldsCounters done [16:36:24]requested_item shift.num is exist - process it [16:36:24]requested_item shift.opened is exist - process it [16:36:24]req_shift_opened [16:36:24]FM_GetShiftState [16:36:24]SAM_PROTO_GetShiftState [16:36:24]wFMCommunicate request_size=4 [16:36:24]MH_SAM_APDU [16:36:24]CAPDU: 80 13 01 00 [16:36:24]Write to MH i2c: E2 08 00 C0 0A 80 13 01 00 00 00 00 00 47 [16:36:24]Write i2c OK [16:36:24]MH_I2C_Read... [16:36:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:24]Read from MH i2c: E2 [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: E2 0E 00 [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: E2 0E 00 C0 0A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 2C [16:36:24]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:36:24]wFMCommunicate OK [16:36:24]SAM_PROTO_GetShiftState done [16:36:24]FM_GetShiftState done [16:36:24]req_shift_opened done [16:36:24]requested_item shift.open_date is exist - process it [16:36:24]req_shift_open_date [16:36:24]req_shift_open_date done [16:36:24]produce_requested_data done [16:36:24]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76483,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [16:36:24]process_action_free close_receipt [16:36:24]json_value_free [16:36:24]json_value_free done [16:36:24]process_json_proto returns [16:36:24]Send response to host [16:36:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76483,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [16:36:24]free response buf [16:36:24]execute_script done [16:36:24]execute_script returns [16:36:24]free content buf [16:36:24]Sock 9.Close socket [16:36:24]Sock 9.Thread stoped [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:52]accept exits with 7 [16:37:52]New connection [16:37:52]New thread 3066936676 created [16:37:52]Thread 3067080036 joined [16:37:52]Waiting for new connection... [16:37:52] Sock 7.Parse request [16:37:52]Sock 7.Check first char [16:37:52]Sock 7.First char is OK [16:37:52]request: POST /json_proto HTTP/1.0 [16:37:52]Method: POST [16:37:52]URL: /json_proto [16:37:52]Method is POST - this is cgi request [16:37:52]url: /json_proto [16:37:52]query_string will be loaded in cgi processing [16:37:52]execute_cgi json_proto POST (null) [16:37:52]execute_cgi path=json_proto method=POST [16:37:52]POST find Content-Length [16:37:52]Host: 172.17.62.5:8080 [16:37:52]Content-Length: 682 [16:37:52]Content-Type: application/json [16:37:52] [16:37:52]POST finish read [16:37:52]Found Content-Length = 682 [16:37:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 55.450, "sum" : 3570.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3570.00, "payments": [ { "type": 0, "sum" : 3570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:52]execute_script... [16:37: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)190961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 55.450, "sum" : 3570.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3570.00, "payments": [ { "type": 0, "sum" : 3570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:52]POST & json_proto [16:37:52]process_json_proto [16:37:52]json parsed OK: [16:37:52]protocol is kg_v1.0 [16:37:52]action value=close_receipt [16:37:52]process_action close_receipt [16:37:52]cmd_close_receipt [16:37:52]MH_GetDate [16:37:52]Write to MH i2c: F0 00 00 C1 0A BA [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: F0 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: F0 09 00 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: F0 09 00 C1 0A 00 E2 9D 22 66 F4 E9 65 64 70 [16:37:52]GetLastDocTimeStamp 1713544582 [16:37:52]current date 1713544674 [16:37:52]FM_GetShiftState [16:37:52]SAM_PROTO_GetShiftState [16:37:52]wFMCommunicate request_size=4 [16:37:52]MH_SAM_APDU [16:37:52]CAPDU: 80 13 01 00 [16:37:52]Write to MH i2c: E2 08 00 C2 0A 80 13 01 00 00 00 00 00 49 [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:52]Read from MH i2c: E2 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 0E 00 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 0E 00 C2 0A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 2E [16:37:52]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:37:52]wFMCommunicate OK [16:37:52]SAM_PROTO_GetShiftState done [16:37:52]FM_GetShiftState done [16:37:52]opened in 1713486233 [16:37:52]opened+sec_in_day 1713572633 [16:37:52]quantity*price = 357098 [16:37:52]sum+1 = 357099 [16:37:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.98 ИТОГО: 3570.00 Внесено: 4000.00 СДАЧА: 430.00 НСП 1% : 31.60 НДС 12% : 379.22 Наличными: 3570.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 104 19.04.2024 16:37 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76484 ФПД: 140163487040923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T163754&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76484&fm=140163487040923&tin=02508201610067®Number=0000000000091573&sum=357000 [16:37:53]StoreToDocumentArchive [16:37:53]shift 370 fd 76484 [16:37:53]save to /storage/0370/doc_00076484 [16:37:53]save last doc name /storage/0370/doc_00076484 to /storage/kkm_last_doc_name [16:37:53]save OK [16:37:53]Clear old archive folders... [16:37:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:53]tlvbuf is 009FBF90 [16:37:53]SAM_PROTO_ClearQueue [16:37:53]wFMCommunicate request_size=4 [16:37:53]MH_SAM_APDU [16:37:53]CAPDU: 80 09 00 00 [16:37:53]Write to MH i2c: E2 08 00 CF 0A 80 09 00 00 00 00 00 00 4B [16:37:53]Write i2c OK [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: E2 [16:37:53]MH_I2C_Read... [16:37:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:53]Read from MH i2c: E2 03 00 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: E2 03 00 CF 0A 00 90 00 4D [16:37:53]RAPDU: 90 00 [16:37:53]wFMCommunicate OK [16:37:53]SAM_PROTO_ClearQueue done [16:37:53]KKMCreateOFDPacket [16:37:53]OFDProtocolAddRootSTLVToBuf [16:37:53]FM_MakeSignedData [16:37:53]FM_MakeSignedData [16:37:53]SAM_PROTO_SignData [16:37:53]wFMCommunicate request_size=4 [16:37:53]MH_SAM_APDU [16:37:53]CAPDU: 80 0D 01 02 [16:37:53]Write to MH i2c: E2 08 00 D0 0A 80 0D 01 02 00 00 00 00 53 [16:37:53]Write i2c OK [16:37:53]MH_I2C_Read... [16:37:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:53]Read from MH i2c: E2 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: E2 03 00 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: E2 03 00 D0 0A 00 90 00 4E [16:37:53]RAPDU: 90 00 [16:37:53]wFMCommunicate OK [16:37:53]wFMCommunicate request_size=255 [16:37:53]MH_SAM_APDU [16:37: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 9A D8 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 EA 72 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 72 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 94 00 00 00 00 07 04 06 00 88 72 05 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 E2 9D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C4 2A 01 00 35 04 06 00 7F [16:37:53]Write to MH i2c: E2 02 01 D1 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 9A D8 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 EA 72 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 72 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 94 00 00 00 00 07 04 06 00 88 72 05 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 E2 9D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C4 2A 01 00 35 04 06 00 7F 00 00 D9 [16:37:53]Write i2c OK [16:37:53]MH_I2C_Read... [16:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:54]Read from MH i2c: E2 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 03 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 03 00 D1 0A 00 90 00 4F [16:37:54]RAPDU: 90 00 [16:37:54]wFMCommunicate OK [16:37:54]wFMCommunicate request_size=10 [16:37:54]MH_SAM_APDU [16:37:54]CAPDU: 80 0D 02 02 05 7A 5A DB 05 9B [16:37:54]Write to MH i2c: E2 0D 00 D2 0A 80 0D 02 02 05 00 7A 5A DB 05 9B 00 00 AF [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 [16:37:54]MH_I2C_Read... [16:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:54]Read from MH i2c: E2 03 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 03 00 D2 0A 00 90 00 50 [16:37:54]RAPDU: 90 00 [16:37:54]wFMCommunicate OK [16:37:54]wFMCommunicate request_size=4 [16:37:54]MH_SAM_APDU [16:37:54]CAPDU: 80 0D 03 02 [16:37:54]Write to MH i2c: E2 08 00 D3 0A 80 0D 03 02 00 00 00 00 58 [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:54]Read from MH i2c: E2 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 0B 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 0B 00 D3 0A 00 FE 31 8D 36 F2 05 CC DD 90 00 EB [16:37:54]RAPDU: FE 31 8D 36 F2 05 CC DD 90 00 [16:37:54]wFMCommunicate OK [16:37:54]SAM_PROTO_SignData done [16:37:54]FM_MakeSignedData done [16:37:54]CreateOFDProtocolMessage [16:37:54]wFMCommunicate request_size=4 [16:37:54]MH_SAM_APDU [16:37:54]CAPDU: 80 11 00 00 [16:37:54]Write to MH i2c: E2 08 00 D4 0A 80 11 00 00 00 00 00 00 58 [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 [16:37:54]MH_I2C_Read... [16:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:54]Read from MH i2c: E2 17 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 17 00 D4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AB [16:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:37:54]wFMCommunicate OK [16:37:54]CreateOFDProtocolMessage done [16:37:54]OFDSenderStorePacket 76484 [16:37:54]StoreOFDPacket docnum=76484 [16:37:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 40 34 07 01 5D 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 9A D8 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 EA 72 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 72 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 94 00 00 00 00 07 04 06 00 88 72 05 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 E2 9D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C4 2A 01 00 35 04 06 00 7F 7A 5A DB 05 9B FE 31 8D 36 F2 05 CC DD [16:37:54]CheckFolder [16:37:54]dirname=/storage/ofd_packets [16:37:54]CheckFolder done [16:37:54]ProducePacketName [16:37:54]name=ofd_packets/00076484 [16:37:54]NVStorageSaveData ofd_packets/00076484 [16:37:54]File name is /storage/ofd_packets/00076484 [16:37:54]Write 301 bytes [16:37:54]NVStorageSaveData done [16:37:54]OFDSenderStorePacket done [16:37:54]KKMCreateOFDPacket done [16:37:54]NVStorageSaveData kkm_last_timestamp [16:37:54]File name is /storage/kkm_last_timestamp [16:37:54]Write 4 bytes [16:37:54]NVStorageSaveData done [16:37:54]ExternCall_PrintAddStr [16:37:54]wPrintStart [16:37:54]Write to MH i2c: 01 00 00 D5 0A DF [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: 01 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: 01 07 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: 01 07 00 D5 0A 00 00 00 00 00 FF 0F F4 [16:37:54]RasterBufferAndPrint [16:37:54]line Счет N : (1)190961 [16:37:54]line ИНН: 02508201610067 [16:37:54]line Контрольно-Кассовый Чек [16:37:54]line ПРОДАЖА [16:37:54]line ТРК (МРК, ГНК) : 33 [16:37:54]line Товар: 2710124130 [16:37:54]line Аи-92-К-5 [16:37:54]line 55.450 * 64.40 [16:37:54]line = 3570.98 [16:37:54]line НДС 12% НСП 1% [16:37:54]line > о реализуемом товаре [16:37:54]line ОКРУГЛЕНИЕ: -0.98 [16:37:54]line ИТОГО: 3570.00 [16:37:54]line Внесено: 4000.00 [16:37:54]line СДАЧА: 430.00 [16:37:54]line НСП 1% : 31.60 [16:37:54]line НДС 12% : 379.22 [16:37:54]line Наличными: 3570.00 [16:37:54]line Безнал.: 0.00 [16:37:54]line Место: АЗС № 106 "Партнер Нефть" [16:37:54]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:37:54]line СНО: Общий режим [16:37:54]line Чек 104 19.04.2024 16:37 [16:37:54]line Смена: 370 ФФД: 1.0 [16:37:54]line ЗНМ: 0300000141 [16:37:54]line РНМ: 0000000000091573 [16:37:54]line Версия ККМ: 001 [16:37:54]line ФМ: 0000000000874652 [16:37:54]line ФД: 76484 [16:37:54]line ФПД: 140163487040923 [16:37:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T163754&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76484&fm=140163487040923&tin=02508201610067®Number=0000000000091573&sum=357000 [16:37:54]written 0, free lines is 4095 [16:37:54]OFD Sender: Processing packet 76484 [packets to send 128, broken 127] [16:37:54]ProducePacketName [16:37:54]name=ofd_packets/00076484 [16:37:54]OFD Sender: To server: pG, [16:37:54]CommunicateWithHost lk.salyk.kg:30040 [16:37:54]ConnectInit lk.salyk.kg [16:37:54]Connected sock=11 [16:37:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 40 34 07 01 5D 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 9A D8 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 EA 72 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 72 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 94 00 00 00 00 07 04 06 00 88 72 05 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 E2 9D 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C4 2A 01 00 35 04 06 00 7F 7A 5A DB 05 9B FE 31 8D 36 F2 05 CC DD [16:37:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 EF 5B 47 00 3E 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 34 36 35 32 10 04 04 00 C4 2A 01 00 F4 03 04 00 6D 45 22 66 B6 04 01 00 00 AA 98 32 72 FE 41 7E 2F [16:37:54]CommunicateWithHost err = 0 [16:37:54]CheckOFDResponse [16:37:54]1017 (14) - 77093643461234 [16:37:54]1041 (16) - 0000000000874652 [16:37:54]1040 (4) - 76484 [16:37:54]1012 (4) - 19.04.2024 10:20 [16:37:54]1206 (1) - 0 [16:37:54]OFD Sender: Remove packet 76484 [16:37:54]ProducePacketName [16:37:54]name=ofd_packets/00076484 [16:37:54]NVStorageDeleteData [16:37:54]Write to MH i2c: 01 00 00 FF 0A 09 [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: 01 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: 01 07 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: 01 07 00 FF 0A 00 00 00 00 00 FF 0C 1B [16:37:54]RasterBufferAndPrint [16:37:54]line [16:37:54]line [16:37:54]line [16:37:54]line [16:37:54]line [16:37:54]written 0, free lines is 3335 [16:37:54]MH_Cut [16:37:54]Write to MH i2c: D1 01 00 06 0B 01 E3 [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: D1 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: D1 01 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: D1 01 00 06 0B 00 E2 [16:37:54]Write to MH i2c: 01 00 00 07 0B 12 [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:55]OFD Sender: No OFD packet to send [16:37:55]*** Cut start [16:37:55]*** Partial cut [16:37:55]*** CUTSNS_PIN = 1 [16:37:55]*** CUTSNS_PIN = 0 [16:37:55]*** Brake cut motor [16:37:56]Read from MH i2c: 01 [16:37:56]MH_I2C_Read... [16:37:56]*** Stop cut motor [16:37:56]*** Cut end [16:37:56]Read from MH i2c: 01 07 00 [16:37:56]MH_I2C_Read... [16:37:56]Read from MH i2c: 01 07 00 07 0B 00 00 00 00 00 FF 0F 27 [16:37:56]process_action close_receipt done [16:37:56]requested_data is exist [16:37:56]produce_requested_data [16:37:56]requested_item fm.sn is exist - process it [16:37:56]wFMCommunicate request_size=4 [16:37:56]MH_SAM_APDU [16:37:56]CAPDU: 80 11 00 00 [16:37:56]Write to MH i2c: E2 08 00 08 0B 80 11 00 00 00 00 00 00 8D [16:37:56]Write i2c OK [16:37:56]MH_I2C_Read... [16:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:56]Read from MH i2c: E2 [16:37:56]MH_I2C_Read... [16:37:56]Read from MH i2c: E2 17 00 [16:37:56]MH_I2C_Read... [16:37:56]Read from MH i2c: E2 17 00 08 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E0 [16:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:37:56]wFMCommunicate OK [16:37:56]requested_item fd.num is exist - process it [16:37:56]SAM_PROTO_GetFieldsCounters [16:37:56]wFMCommunicate request_size=4 [16:37:56]MH_SAM_APDU [16:37:56]CAPDU: 80 13 00 00 [16:37:56]Write to MH i2c: E2 08 00 09 0B 80 13 00 00 00 00 00 00 90 [16:37:56]Write i2c OK [16:37:56]MH_I2C_Read... [16:37:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:56]Read from MH i2c: E2 [16:37:56]MH_I2C_Read... [16:37:56]Read from MH i2c: E2 62 00 [16:37:56]MH_I2C_Read... [16:37:56]Read from MH i2c: E2 62 00 09 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C4 2A 01 00 0E 04 04 00 72 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 4B [16:37: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C4 2A 01 00 0E 04 04 00 72 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 [16:37:56]wFMCommunicate OK [16:37:56]SAM_PROTO_GetFieldsCounters done [16:37:56]requested_item shift.num is exist - process it [16:37:56]requested_item shift.opened is exist - process it [16:37:56]req_shift_opened [16:37:56]FM_GetShiftState [16:37:56]SAM_PROTO_GetShiftState [16:37:56]wFMCommunicate request_size=4 [16:37:56]MH_SAM_APDU [16:37:56]CAPDU: 80 13 01 00 [16:37:56]Write to MH i2c: E2 08 00 0A 0B 80 13 01 00 00 00 00 00 92 [16:37:56]Write i2c OK [16:37:56]MH_I2C_Read... [16:37:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:56]Read from MH i2c: E2 [16:37:56]MH_I2C_Read... [16:37:56]Read from MH i2c: E2 0E 00 [16:37:56]MH_I2C_Read... [16:37:56]Read from MH i2c: E2 0E 00 0A 0B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 77 [16:37:56]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:37:56]wFMCommunicate OK [16:37:56]SAM_PROTO_GetShiftState done [16:37:56]FM_GetShiftState done [16:37:56]req_shift_opened done [16:37:56]requested_item shift.open_date is exist - process it [16:37:56]req_shift_open_date [16:37:56]req_shift_open_date done [16:37:56]produce_requested_data done [16:37:56]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76484,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [16:37:56]process_action_free close_receipt [16:37:56]json_value_free [16:37:56]json_value_free done [16:37:56]process_json_proto returns [16:37:56]Send response to host [16:37:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76484,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [16:37:56]free response buf [16:37:56]execute_script done [16:37:56]execute_script returns [16:37:56]free content buf [16:37:56]Sock 7.Close socket [16:37:56]Sock 7.Thread stoped [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]accept exits with 10 [16:39:25]New connection [16:39:25]New thread 3067080036 created [16:39:25]Thread 3066936676 joined [16:39:25]Waiting for new connection... [16:39:25] Sock 10.Parse request [16:39:25]Sock 10.Check first char [16:39:25]Sock 10.First char is OK [16:39:25]request: POST /json_proto HTTP/1.0 [16:39:25]Method: POST [16:39:25]URL: /json_proto [16:39:25]Method is POST - this is cgi request [16:39:25]url: /json_proto [16:39:25]query_string will be loaded in cgi processing [16:39:25]execute_cgi json_proto POST (null) [16:39:25]execute_cgi path=json_proto method=POST [16:39:25]POST find Content-Length [16:39:25]Host: 172.17.62.5:8080 [16:39:25]Content-Length: 990 [16:39:25]Content-Type: application/json [16:39:25] [16:39:25]POST finish read [16:39:25]Found Content-Length = 990 [16:39:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 51.270, "sum" : 1625.26, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 51.27 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1625.00, "payments": [ { "type": 0, "sum" : 1625.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:25]execute_script... [16:39: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)190960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 51.270, "sum" : 1625.26, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 51.27 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1625.00, "payments": [ { "type": 0, "sum" : 1625.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:25]POST & json_proto [16:39:25]process_json_proto [16:39:25]json parsed OK: [16:39:25]protocol is kg_v1.0 [16:39:25]action value=close_receipt [16:39:25]process_action close_receipt [16:39:25]cmd_close_receipt [16:39:25]MH_GetDate [16:39:25]Write to MH i2c: F0 00 00 0B 0B 05 [16:39:25]Write i2c OK [16:39:25]MH_I2C_Read... [16:39:25]Read from MH i2c: F0 [16:39:25]MH_I2C_Read... [16:39:25]Read from MH i2c: F0 09 00 [16:39:25]MH_I2C_Read... [16:39:25]Read from MH i2c: F0 09 00 0B 0B 00 3E 9E 22 66 F4 E9 65 64 18 [16:39:25]GetLastDocTimeStamp 1713544674 [16:39:25]current date 1713544766 [16:39:25]FM_GetShiftState [16:39:25]SAM_PROTO_GetShiftState [16:39:25]wFMCommunicate request_size=4 [16:39:25]MH_SAM_APDU [16:39:25]CAPDU: 80 13 01 00 [16:39:25]Write to MH i2c: E2 08 00 0C 0B 80 13 01 00 00 00 00 00 94 [16:39:25]Write i2c OK [16:39:25]MH_I2C_Read... [16:39:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:25]Read from MH i2c: E2 [16:39:25]MH_I2C_Read... [16:39:25]Read from MH i2c: E2 0E 00 [16:39:25]MH_I2C_Read... [16:39:25]Read from MH i2c: E2 0E 00 0C 0B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 79 [16:39:25]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:39:25]wFMCommunicate OK [16:39:25]SAM_PROTO_GetShiftState done [16:39:25]FM_GetShiftState done [16:39:25]opened in 1713486233 [16:39:25]opened+sec_in_day 1713572633 [16:39:25]quantity*price = 162525 [16:39:25]sum+1 = 162527 [16:39:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 1625.00 Внесено: 2000.00 СДАЧА: 375.00 НСП 1% : 14.38 НДС 12% : 172.59 Наличными: 1625.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 105 19.04.2024 16:39 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 51.27 сом ФМ: 0000000000874652 ФД: 76485 ФПД: 90134952980540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T163926&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76485&fm=90134952980540&tin=02508201610067®Number=0000000000091573&sum=162500 [16:39:26]StoreToDocumentArchive [16:39:26]shift 370 fd 76485 [16:39:26]save to /storage/0370/doc_00076485 [16:39:26]save last doc name /storage/0370/doc_00076485 to /storage/kkm_last_doc_name [16:39:26]save OK [16:39:26]Clear old archive folders... [16:39:26]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:39:26]tlvbuf is 009EC240 [16:39:26]SAM_PROTO_ClearQueue [16:39:26]wFMCommunicate request_size=4 [16:39:26]MH_SAM_APDU [16:39:26]CAPDU: 80 09 00 00 [16:39:26]Write to MH i2c: E2 08 00 19 0B 80 09 00 00 00 00 00 00 96 [16:39:26]Write i2c OK [16:39:26]MH_I2C_Read... [16:39:26]Read from MH i2c: E2 [16:39:26]MH_I2C_Read... [16:39:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:26]Read from MH i2c: E2 03 00 [16:39:26]MH_I2C_Read... [16:39:26]Read from MH i2c: E2 03 00 19 0B 00 90 00 98 [16:39:26]RAPDU: 90 00 [16:39:26]wFMCommunicate OK [16:39:26]SAM_PROTO_ClearQueue done [16:39:26]KKMCreateOFDPacket [16:39:26]OFDProtocolAddRootSTLVToBuf [16:39:26]FM_MakeSignedData [16:39:26]FM_MakeSignedData [16:39:26]SAM_PROTO_SignData [16:39:26]wFMCommunicate request_size=4 [16:39:26]MH_SAM_APDU [16:39:26]CAPDU: 80 0D 01 02 [16:39:26]Write to MH i2c: E2 08 00 1A 0B 80 0D 01 02 00 00 00 00 9E [16:39:26]Write i2c OK [16:39:26]MH_I2C_Read... [16:39:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:26]Read from MH i2c: E2 [16:39:26]MH_I2C_Read... [16:39:26]Read from MH i2c: E2 03 00 [16:39:26]MH_I2C_Read... [16:39:26]Read from MH i2c: E2 03 00 1A 0B 00 90 00 99 [16:39:26]RAPDU: 90 00 [16:39:26]wFMCommunicate OK [16:39:26]wFMCommunicate request_size=255 [16:39:26]MH_SAM_APDU [16:39:26]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 46 C8 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 DE 7A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 7A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 43 00 00 00 00 07 04 06 00 C4 7A 02 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 3E 9E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C5 2A 01 00 35 04 06 00 51 FA [16:39:26]Write to MH i2c: E2 02 01 1B 0B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 46 C8 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 DE 7A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 7A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 43 00 00 00 00 07 04 06 00 C4 7A 02 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 3E 9E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C5 2A 01 00 35 04 06 00 51 FA 00 00 71 [16:39:26]Write i2c OK [16:39:26]MH_I2C_Read... [16:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:26]Read from MH i2c: E2 [16:39:26]MH_I2C_Read... [16:39:26]Read from MH i2c: E2 03 00 [16:39:26]MH_I2C_Read... [16:39:26]Read from MH i2c: E2 03 00 1B 0B 00 90 00 9A [16:39:26]RAPDU: 90 00 [16:39:26]wFMCommunicate OK [16:39:26]wFMCommunicate request_size=9 [16:39:26]MH_SAM_APDU [16:39:26]CAPDU: 80 0D 02 02 04 2D DA B0 3C [16:39:26]Write to MH i2c: E2 0C 00 1C 0B 80 0D 02 02 04 00 2D DA B0 3C 00 00 9C [16:39:26]Write i2c OK [16:39:26]MH_I2C_Read... [16:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:26]Read from MH i2c: E2 [16:39:26]MH_I2C_Read... [16:39:26]Read from MH i2c: E2 03 00 [16:39:26]MH_I2C_Read... [16:39:26]Read from MH i2c: E2 03 00 1C 0B 00 90 00 9B [16:39:26]RAPDU: 90 00 [16:39:26]wFMCommunicate OK [16:39:26]wFMCommunicate request_size=4 [16:39:26]MH_SAM_APDU [16:39:26]CAPDU: 80 0D 03 02 [16:39:26]Write to MH i2c: E2 08 00 1D 0B 80 0D 03 02 00 00 00 00 A3 [16:39:26]Write i2c OK [16:39:26]MH_I2C_Read... [16:39:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:26]Read from MH i2c: E2 [16:39:26]MH_I2C_Read... [16:39:26]Read from MH i2c: E2 0B 00 [16:39:26]MH_I2C_Read... [16:39:26]Read from MH i2c: E2 0B 00 1D 0B 00 3E A6 68 96 77 29 1C 90 90 00 D2 [16:39:26]RAPDU: 3E A6 68 96 77 29 1C 90 90 00 [16:39:26]wFMCommunicate OK [16:39:26]SAM_PROTO_SignData done [16:39:26]FM_MakeSignedData done [16:39:26]CreateOFDProtocolMessage [16:39:26]wFMCommunicate request_size=4 [16:39:26]MH_SAM_APDU [16:39:26]CAPDU: 80 11 00 00 [16:39:26]Write to MH i2c: E2 08 00 1E 0B 80 11 00 00 00 00 00 00 A3 [16:39:26]Write i2c OK [16:39:26]MH_I2C_Read... [16:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:27]Read from MH i2c: E2 [16:39:27]MH_I2C_Read... [16:39:27]Read from MH i2c: E2 17 00 [16:39:27]MH_I2C_Read... [16:39:27]Read from MH i2c: E2 17 00 1E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F6 [16:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:39:27]wFMCommunicate OK [16:39:27]CreateOFDProtocolMessage done [16:39:27]OFDSenderStorePacket 76485 [16:39:27]StoreOFDPacket docnum=76485 [16:39:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 92 09 06 01 84 64 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 46 C8 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 DE 7A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 7A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 43 00 00 00 00 07 04 06 00 C4 7A 02 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 3E 9E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C5 2A 01 00 35 04 06 00 51 FA 2D DA B0 3C 3E A6 68 96 77 29 1C 90 [16:39:27]CheckFolder [16:39:27]dirname=/storage/ofd_packets [16:39:27]CheckFolder done [16:39:27]ProducePacketName [16:39:27]name=ofd_packets/00076485 [16:39:27]NVStorageSaveData ofd_packets/00076485 [16:39:27]File name is /storage/ofd_packets/00076485 [16:39:27]Write 300 bytes [16:39:27]NVStorageSaveData done [16:39:27]OFDSenderStorePacket done [16:39:27]KKMCreateOFDPacket done [16:39:27]NVStorageSaveData kkm_last_timestamp [16:39:27]File name is /storage/kkm_last_timestamp [16:39:27]Write 4 bytes [16:39:27]NVStorageSaveData done [16:39:27]ExternCall_PrintAddStr [16:39:27]wPrintStart [16:39:27]Write to MH i2c: 01 00 00 1F 0B 2A [16:39:27]Write i2c OK [16:39:27]MH_I2C_Read... [16:39:27]Read from MH i2c: 01 [16:39:27]MH_I2C_Read... [16:39:27]Read from MH i2c: 01 07 00 [16:39:27]MH_I2C_Read... [16:39:27]Read from MH i2c: 01 07 00 1F 0B 00 00 00 00 00 FF 0F 3F [16:39:27]RasterBufferAndPrint [16:39:27]line Счет N : (1)190960 [16:39:27]line ИНН: 02508201610067 [16:39:27]line Контрольно-Кассовый Чек [16:39:27]line ПРОДАЖА [16:39:27]line ТРК (МРК, ГНК) : 71 [16:39:27]line Товар: 2711190000 [16:39:27]line ГАЗ-К-5 [16:39:27]line 51.270 * 31.70 [16:39:27]line = 1625.26 [16:39:27]line НДС 12% НСП 1% [16:39:27]line > о реализуемом товаре [16:39:27]line ОКРУГЛЕНИЕ: -0.26 [16:39:27]line ИТОГО: 1625.00 [16:39:27]line Внесено: 2000.00 [16:39:27]line СДАЧА: 375.00 [16:39:27]line НСП 1% : 14.38 [16:39:27]line НДС 12% : 172.59 [16:39:27]line Наличными: 1625.00 [16:39:27]line Безнал.: 0.00 [16:39:27]line Место: АЗС № 106 "Партнер Нефть" [16:39:27]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:39:27]line СНО: Общий режим [16:39:27]line Чек 105 19.04.2024 16:39 [16:39:27]line Смена: 370 ФФД: 1.0 [16:39:27]line ЗНМ: 0300000141 [16:39:27]line РНМ: 0000000000091573 [16:39:27]line Версия ККМ: 001 [16:39:27]line [16:39:27]line Дисконтная программа [16:39:27]line СУГ [16:39:27]line номер 106 [16:39:27]line сэкономлено 51.27 сом [16:39:27]line ФМ: 0000000000874652 [16:39:27]line ФД: 76485 [16:39:27]line ФПД: 90134952980540 [16:39:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T163926&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76485&fm=90134952980540&tin=02508201610067®Number=0000000000091573&sum=162500 [16:39:27]OFD Sender: Processing packet 76485 [packets to send 128, broken 127] [16:39:27]ProducePacketName [16:39:27]name=ofd_packets/00076485 [16:39:27]OFD Sender: To server: pG, [16:39:27]CommunicateWithHost lk.salyk.kg:30040 [16:39:27]ConnectInit lk.salyk.kg [16:39:27]written 0, free lines is 4095 [16:39:27]Write to MH i2c: 01 00 00 4E 0B 59 [16:39:27]Write i2c OK [16:39:27]MH_I2C_Read... [16:39:27]Read from MH i2c: 01 [16:39:27]MH_I2C_Read... [16:39:27]Read from MH i2c: 01 07 00 [16:39:27]MH_I2C_Read... [16:39:27]Read from MH i2c: 01 07 00 4E 0B 00 00 00 00 00 97 0C 03 [16:39:27]RasterBufferAndPrint [16:39:27]line [16:39:27]line [16:39:27]line [16:39:27]line [16:39:27]line [16:39:27]written 0, free lines is 3229 [16:39:27]MH_Cut [16:39:27]Write to MH i2c: D1 01 00 55 0B 01 32 [16:39:27]Write i2c OK [16:39:27]MH_I2C_Read... [16:39:27]Read from MH i2c: D1 [16:39:27]MH_I2C_Read... [16:39:27]Read from MH i2c: D1 01 00 [16:39:27]MH_I2C_Read... [16:39:27]Read from MH i2c: D1 01 00 55 0B 00 31 [16:39:27]Write to MH i2c: 01 00 00 56 0B 61 [16:39:27]Write i2c OK [16:39:27]MH_I2C_Read... [16:39:28]Connected sock=9 [16:39:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 92 09 06 01 84 64 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 46 C8 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 DE 7A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 7A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 43 00 00 00 00 07 04 06 00 C4 7A 02 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 3E 9E 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C5 2A 01 00 35 04 06 00 51 FA 2D DA B0 3C 3E A6 68 96 77 29 1C 90 [16:39:28]*** Cut start [16:39:28]*** Partial cut [16:39:28]*** CUTSNS_PIN = 1 [16:39:28]*** CUTSNS_PIN = 0 [16:39:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 7A 2A 47 00 C6 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C5 2A 01 00 F4 03 04 00 CB 45 22 66 B6 04 01 00 00 C7 2B 2E A5 5C 96 E8 C7 [16:39:28]CommunicateWithHost err = 0 [16:39:28]CheckOFDResponse [16:39:28]1017 (14) - 77093643461234 [16:39:28]1041 (16) - 0000000000874652 [16:39:28]1040 (4) - 76485 [16:39:28]1012 (4) - 19.04.2024 10:22 [16:39:28]1206 (1) - 0 [16:39:28]OFD Sender: Remove packet 76485 [16:39:28]ProducePacketName [16:39:28]name=ofd_packets/00076485 [16:39:28]NVStorageDeleteData [16:39:28]*** Brake cut motor [16:39:29]Read from MH i2c: 01 [16:39:29]MH_I2C_Read... [16:39:29]*** Stop cut motor [16:39:29]*** Cut end [16:39:29]Read from MH i2c: 01 07 00 [16:39:29]MH_I2C_Read... [16:39:29]Read from MH i2c: 01 07 00 56 0B 00 00 00 00 00 FF 0F 76 [16:39:29]process_action close_receipt done [16:39:29]requested_data is exist [16:39:29]produce_requested_data [16:39:29]requested_item fm.sn is exist - process it [16:39:29]wFMCommunicate request_size=4 [16:39:29]MH_SAM_APDU [16:39:29]CAPDU: 80 11 00 00 [16:39:29]Write to MH i2c: E2 08 00 57 0B 80 11 00 00 00 00 00 00 DC [16:39:29]Write i2c OK [16:39:29]MH_I2C_Read... [16:39:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:29]Read from MH i2c: E2 [16:39:29]MH_I2C_Read... [16:39:29]Read from MH i2c: E2 17 00 [16:39:29]MH_I2C_Read... [16:39:29]Read from MH i2c: E2 17 00 57 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2F [16:39:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:39:29]wFMCommunicate OK [16:39:29]requested_item fd.num is exist - process it [16:39:29]SAM_PROTO_GetFieldsCounters [16:39:29]wFMCommunicate request_size=4 [16:39:29]MH_SAM_APDU [16:39:29]CAPDU: 80 13 00 00 [16:39:29]Write to MH i2c: E2 08 00 58 0B 80 13 00 00 00 00 00 00 DF [16:39:29]Write i2c OK [16:39:29]MH_I2C_Read... [16:39:29]OFD Sender: No OFD packet to send [16:39:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:29]Read from MH i2c: E2 [16:39:29]MH_I2C_Read... [16:39:29]Read from MH i2c: E2 62 00 [16:39:29]MH_I2C_Read... [16:39:29]Read from MH i2c: E2 62 00 58 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C5 2A 01 00 0E 04 04 00 72 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 9E [16:39:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C5 2A 01 00 0E 04 04 00 72 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 [16:39:29]wFMCommunicate OK [16:39:29]SAM_PROTO_GetFieldsCounters done [16:39:29]requested_item shift.num is exist - process it [16:39:29]requested_item shift.opened is exist - process it [16:39:29]req_shift_opened [16:39:29]FM_GetShiftState [16:39:29]SAM_PROTO_GetShiftState [16:39:29]wFMCommunicate request_size=4 [16:39:29]MH_SAM_APDU [16:39:29]CAPDU: 80 13 01 00 [16:39:29]Write to MH i2c: E2 08 00 59 0B 80 13 01 00 00 00 00 00 E1 [16:39:29]Write i2c OK [16:39:29]MH_I2C_Read... [16:39:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:29]Read from MH i2c: E2 [16:39:29]MH_I2C_Read... [16:39:29]Read from MH i2c: E2 0E 00 [16:39:29]MH_I2C_Read... [16:39:29]Read from MH i2c: E2 0E 00 59 0B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 C6 [16:39:29]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:39:29]wFMCommunicate OK [16:39:29]SAM_PROTO_GetShiftState done [16:39:29]FM_GetShiftState done [16:39:29]req_shift_opened done [16:39:29]requested_item shift.open_date is exist - process it [16:39:29]req_shift_open_date [16:39:29]req_shift_open_date done [16:39:29]produce_requested_data done [16:39:29]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76485,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [16:39:29]process_action_free close_receipt [16:39:29]json_value_free [16:39:29]json_value_free done [16:39:29]process_json_proto returns [16:39:29]Send response to host [16:39:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76485,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [16:39:29]free response buf [16:39:29]execute_script done [16:39:29]execute_script returns [16:39:29]free content buf [16:39:29]Sock 10.Close socket [16:39:29]Sock 10.Thread stoped [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:24]OFD Sender: No OFD packet to send [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43:49]OFD Sender: No OFD packet to send [16:43:54]OFD Sender: No OFD packet to send [16:43:59]OFD Sender: No OFD packet to send [16:44:04]OFD Sender: No OFD packet to send [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:28]accept exits with 7 [16:46:28]New connection [16:46:28]New thread 3066936676 created [16:46:28]Thread 3067080036 joined [16:46:28]Waiting for new connection... [16:46:28] Sock 7.Parse request [16:46:28]Sock 7.Check first char [16:46:28]Sock 7.First char is OK [16:46:28]request: POST /json_proto HTTP/1.0 [16:46:28]Method: POST [16:46:28]URL: /json_proto [16:46:28]Method is POST - this is cgi request [16:46:28]url: /json_proto [16:46:28]query_string will be loaded in cgi processing [16:46:28]execute_cgi json_proto POST (null) [16:46:28]execute_cgi path=json_proto method=POST [16:46:28]POST find Content-Length [16:46:28]Host: 172.17.62.5:8080 [16:46:28]Content-Length: 990 [16:46:28]Content-Type: application/json [16:46:28] [16:46:28]POST finish read [16:46:28]Found Content-Length = 990 [16:46:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 56.790, "sum" : 1800.24, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 56.79 \u0441\u043E\u043C", "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:28]execute_script... [16:46: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)190963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 56.790, "sum" : 1800.24, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 56.79 \u0441\u043E\u043C", "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:28]POST & json_proto [16:46:28]process_json_proto [16:46:28]json parsed OK: [16:46:28]protocol is kg_v1.0 [16:46:28]action value=close_receipt [16:46:28]process_action close_receipt [16:46:28]cmd_close_receipt [16:46:28]MH_GetDate [16:46:28]Write to MH i2c: F0 00 00 5A 0B 54 [16:46:28]Write i2c OK [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: F0 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: F0 09 00 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: F0 09 00 5A 0B 00 E6 9F 22 66 F4 E9 65 64 10 [16:46:28]GetLastDocTimeStamp 1713544766 [16:46:28]current date 1713545190 [16:46:28]FM_GetShiftState [16:46:28]SAM_PROTO_GetShiftState [16:46:28]wFMCommunicate request_size=4 [16:46:28]MH_SAM_APDU [16:46:28]CAPDU: 80 13 01 00 [16:46:28]Write to MH i2c: E2 08 00 5B 0B 80 13 01 00 00 00 00 00 E3 [16:46:28]Write i2c OK [16:46:28]MH_I2C_Read... [16:46:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:28]Read from MH i2c: E2 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: E2 0E 00 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: E2 0E 00 5B 0B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 C8 [16:46:28]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:46:28]wFMCommunicate OK [16:46:28]SAM_PROTO_GetShiftState done [16:46:28]FM_GetShiftState done [16:46:28]opened in 1713486233 [16:46:28]opened+sec_in_day 1713572633 [16:46:28]quantity*price = 180024 [16:46:28]sum+1 = 180025 [16:46:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.18 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 106 19.04.2024 16:46 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 56.79 сом ФМ: 0000000000874652 ФД: 76486 ФПД: 173325888501752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T164630&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76486&fm=173325888501752&tin=02508201610067®Number=0000000000091573&sum=180000 [16:46:30]StoreToDocumentArchive [16:46:30]shift 370 fd 76486 [16:46:30]save to /storage/0370/doc_00076486 [16:46:30]save last doc name /storage/0370/doc_00076486 to /storage/kkm_last_doc_name [16:46:30]save OK [16:46:30]Clear old archive folders... [16:46:30]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:46:30]tlvbuf is 009FC450 [16:46:30]SAM_PROTO_ClearQueue [16:46:30]wFMCommunicate request_size=4 [16:46:30]MH_SAM_APDU [16:46:30]CAPDU: 80 09 00 00 [16:46:30]Write to MH i2c: E2 08 00 68 0B 80 09 00 00 00 00 00 00 E5 [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 [16:46:30]MH_I2C_Read... [16:46:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:30]Read from MH i2c: E2 03 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 03 00 68 0B 00 90 00 E7 [16:46:30]RAPDU: 90 00 [16:46:30]wFMCommunicate OK [16:46:30]SAM_PROTO_ClearQueue done [16:46:30]KKMCreateOFDPacket [16:46:30]OFDProtocolAddRootSTLVToBuf [16:46:30]FM_MakeSignedData [16:46:30]FM_MakeSignedData [16:46:30]SAM_PROTO_SignData [16:46:30]wFMCommunicate request_size=4 [16:46:30]MH_SAM_APDU [16:46:30]CAPDU: 80 0D 01 02 [16:46:30]Write to MH i2c: E2 08 00 69 0B 80 0D 01 02 00 00 00 00 ED [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:30]Read from MH i2c: E2 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 03 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 03 00 69 0B 00 90 00 E8 [16:46:30]RAPDU: 90 00 [16:46:30]wFMCommunicate OK [16:46:30]wFMCommunicate request_size=255 [16:46:30]MH_SAM_APDU [16:46:30]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D6 DD 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 38 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 E6 9F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C6 2A 01 00 35 04 06 00 9D A3 [16:46:30]Write to MH i2c: E2 02 01 6A 0B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D6 DD 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 38 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 E6 9F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C6 2A 01 00 35 04 06 00 9D A3 00 00 CC [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:30]Read from MH i2c: E2 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 03 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 03 00 6A 0B 00 90 00 E9 [16:46:30]RAPDU: 90 00 [16:46:30]wFMCommunicate OK [16:46:30]wFMCommunicate request_size=9 [16:46:30]MH_SAM_APDU [16:46:30]CAPDU: 80 0D 02 02 04 94 03 B7 F8 [16:46:30]Write to MH i2c: E2 0C 00 6B 0B 80 0D 02 02 04 00 94 03 B7 F8 00 00 3E [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:30]Read from MH i2c: E2 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 03 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 03 00 6B 0B 00 90 00 EA [16:46:30]RAPDU: 90 00 [16:46:30]wFMCommunicate OK [16:46:30]wFMCommunicate request_size=4 [16:46:30]MH_SAM_APDU [16:46:30]CAPDU: 80 0D 03 02 [16:46:30]Write to MH i2c: E2 08 00 6C 0B 80 0D 03 02 00 00 00 00 F2 [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:30]Read from MH i2c: E2 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 0B 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 0B 00 6C 0B 00 A3 2A 86 CB C6 F6 53 3D 90 00 5D [16:46:30]RAPDU: A3 2A 86 CB C6 F6 53 3D 90 00 [16:46:30]wFMCommunicate OK [16:46:30]SAM_PROTO_SignData done [16:46:30]FM_MakeSignedData done [16:46:30]CreateOFDProtocolMessage [16:46:30]wFMCommunicate request_size=4 [16:46:30]MH_SAM_APDU [16:46:30]CAPDU: 80 11 00 00 [16:46:30]Write to MH i2c: E2 08 00 6D 0B 80 11 00 00 00 00 00 00 F2 [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:30]Read from MH i2c: E2 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 17 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 17 00 6D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 45 [16:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:46:30]wFMCommunicate OK [16:46:30]CreateOFDProtocolMessage done [16:46:30]OFDSenderStorePacket 76486 [16:46:30]StoreOFDPacket docnum=76486 [16:46:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 EE E5 06 01 75 3A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D6 DD 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 38 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 E6 9F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C6 2A 01 00 35 04 06 00 9D A3 94 03 B7 F8 A3 2A 86 CB C6 F6 53 3D [16:46:30]CheckFolder [16:46:30]dirname=/storage/ofd_packets [16:46:30]CheckFolder done [16:46:30]ProducePacketName [16:46:30]name=ofd_packets/00076486 [16:46:30]NVStorageSaveData ofd_packets/00076486 [16:46:30]File name is /storage/ofd_packets/00076486 [16:46:30]Write 300 bytes [16:46:30]NVStorageSaveData done [16:46:30]OFDSenderStorePacket done [16:46:30]KKMCreateOFDPacket done [16:46:30]NVStorageSaveData kkm_last_timestamp [16:46:30]File name is /storage/kkm_last_timestamp [16:46:30]Write 4 bytes [16:46:30]NVStorageSaveData done [16:46:30]ExternCall_PrintAddStr [16:46:30]wPrintStart [16:46:30]Write to MH i2c: 01 00 00 6E 0B 79 [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: 01 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: 01 07 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: 01 07 00 6E 0B 00 00 00 00 00 FF 0F 8E [16:46:30]RasterBufferAndPrint [16:46:30]line Счет N : (1)190963 [16:46:30]line ИНН: 02508201610067 [16:46:30]line Контрольно-Кассовый Чек [16:46:30]line ПРОДАЖА [16:46:30]line ТРК (МРК, ГНК) : 71 [16:46:30]line Товар: 2711190000 [16:46:30]line ГАЗ-К-5 [16:46:30]line 56.790 * 31.70 [16:46:30]line = 1800.24 [16:46:30]line НДС 12% НСП 1% [16:46:30]line > о реализуемом товаре [16:46:30]line ОКРУГЛЕНИЕ: -0.24 [16:46:30]line ИТОГО: 1800.00 [16:46:30]line Внесено: 1800.00 [16:46:30]line СДАЧА: 0.00 [16:46:30]line НСП 1% : 15.93 [16:46:30]line НДС 12% : 191.18 [16:46:30]line Наличными: 1800.00 [16:46:30]line Безнал.: 0.00 [16:46:30]line Место: АЗС № 106 "Партнер Нефть" [16:46:30]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:46:30]line СНО: Общий режим [16:46:30]line Чек 106 19.04.2024 16:46 [16:46:30]line Смена: 370 ФФД: 1.0 [16:46:30]line ЗНМ: 0300000141 [16:46:30]line РНМ: 0000000000091573 [16:46:30]line Версия ККМ: 001 [16:46:30]line [16:46:30]line Дисконтная программа [16:46:30]line СУГ [16:46:30]line номер 106 [16:46:30]line сэкономлено 56.79 сом [16:46:30]line ФМ: 0000000000874652 [16:46:30]line ФД: 76486 [16:46:30]line ФПД: 173325888501752 [16:46:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T164630&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76486&fm=173325888501752&tin=02508201610067®Number=0000000000091573&sum=180000 [16:46:30]OFD Sender: Processing packet 76486 [packets to send 128, broken 127] [16:46:30]ProducePacketName [16:46:30]name=ofd_packets/00076486 [16:46:30]OFD Sender: To server: pG, [16:46:30]CommunicateWithHost lk.salyk.kg:30040 [16:46:30]ConnectInit lk.salyk.kg [16:46:30]written 0, free lines is 4095 [16:46:31]Connected sock=10 [16: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 34 36 35 32 0E 01 00 00 EE E5 06 01 75 3A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D6 DD 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 38 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 E6 9F 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C6 2A 01 00 35 04 06 00 9D A3 94 03 B7 F8 A3 2A 86 CB C6 F6 53 3D [16:46:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 2F FE 47 00 12 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 34 36 35 32 10 04 04 00 C6 2A 01 00 F4 03 04 00 71 47 22 66 B6 04 01 00 00 20 0A 95 69 55 EE 52 E8 [16:46:31]CommunicateWithHost err = 0 [16:46:31]CheckOFDResponse [16:46:31]1017 (14) - 77093643461234 [16:46:31]1041 (16) - 0000000000874652 [16:46:31]1040 (4) - 76486 [16:46:31]1012 (4) - 19.04.2024 10:29 [16:46:31]1206 (1) - 0 [16:46:31]OFD Sender: Remove packet 76486 [16:46:31]ProducePacketName [16:46:31]name=ofd_packets/00076486 [16:46:31]NVStorageDeleteData [16:46:31]Write to MH i2c: 01 00 00 9D 0B A8 [16:46:31]Write i2c OK [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: 01 [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: 01 07 00 [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: 01 07 00 9D 0B 00 00 00 00 00 A5 0C 60 [16:46:31]RasterBufferAndPrint [16:46:31]line [16:46:31]line [16:46:31]line [16:46:31]line [16:46:31]line [16:46:31]written 0, free lines is 3243 [16:46:31]MH_Cut [16:46:31]Write to MH i2c: D1 01 00 A4 0B 01 81 [16:46:31]Write i2c OK [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: D1 [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: D1 01 00 [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: D1 01 00 A4 0B 00 80 [16:46:31]Write to MH i2c: 01 00 00 A5 0B B0 [16:46:31]Write i2c OK [16:46:31]MH_I2C_Read... [16:46:31]OFD Sender: No OFD packet to send [16:46:32]*** Cut start [16:46:32]*** Partial cut [16:46:32]*** CUTSNS_PIN = 1 [16:46:32]*** CUTSNS_PIN = 0 [16:46:32]*** Brake cut motor [16:46:32]Read from MH i2c: 01 [16:46:32]MH_I2C_Read... [16:46:32]*** Stop cut motor [16:46:32]*** Cut end [16:46:32]Read from MH i2c: 01 07 00 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: 01 07 00 A5 0B 00 00 00 00 00 FF 0F C5 [16:46:32]process_action close_receipt done [16:46:32]requested_data is exist [16:46:32]produce_requested_data [16:46:32]requested_item fm.sn is exist - process it [16:46:32]wFMCommunicate request_size=4 [16:46:32]MH_SAM_APDU [16:46:32]CAPDU: 80 11 00 00 [16:46:32]Write to MH i2c: E2 08 00 A6 0B 80 11 00 00 00 00 00 00 2B [16:46:32]Write i2c OK [16:46:32]MH_I2C_Read... [16:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:32]Read from MH i2c: E2 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 17 00 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 17 00 A6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7E [16:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:46:32]wFMCommunicate OK [16:46:32]requested_item fd.num is exist - process it [16:46:32]SAM_PROTO_GetFieldsCounters [16:46:32]wFMCommunicate request_size=4 [16:46:32]MH_SAM_APDU [16:46:32]CAPDU: 80 13 00 00 [16:46:32]Write to MH i2c: E2 08 00 A7 0B 80 13 00 00 00 00 00 00 2E [16:46:32]Write i2c OK [16:46:32]MH_I2C_Read... [16:46:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:33]Read from MH i2c: E2 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: E2 62 00 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: E2 62 00 A7 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C6 2A 01 00 0E 04 04 00 72 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 F1 [16:46:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C6 2A 01 00 0E 04 04 00 72 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 [16:46:33]wFMCommunicate OK [16:46:33]SAM_PROTO_GetFieldsCounters done [16:46:33]requested_item shift.num is exist - process it [16:46:33]requested_item shift.opened is exist - process it [16:46:33]req_shift_opened [16:46:33]FM_GetShiftState [16:46:33]SAM_PROTO_GetShiftState [16:46:33]wFMCommunicate request_size=4 [16:46:33]MH_SAM_APDU [16:46:33]CAPDU: 80 13 01 00 [16:46:33]Write to MH i2c: E2 08 00 A8 0B 80 13 01 00 00 00 00 00 30 [16:46:33]Write i2c OK [16:46:33]MH_I2C_Read... [16:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:33]Read from MH i2c: E2 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: E2 0E 00 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: E2 0E 00 A8 0B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 15 [16:46:33]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:46:33]wFMCommunicate OK [16:46:33]SAM_PROTO_GetShiftState done [16:46:33]FM_GetShiftState done [16:46:33]req_shift_opened done [16:46:33]requested_item shift.open_date is exist - process it [16:46:33]req_shift_open_date [16:46:33]req_shift_open_date done [16:46:33]produce_requested_data done [16:46:33]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76486,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [16:46:33]process_action_free close_receipt [16:46:33]json_value_free [16:46:33]json_value_free done [16:46:33]process_json_proto returns [16:46:33]Send response to host [16:46:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76486,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [16:46:33]free response buf [16:46:33]execute_script done [16:46:33]execute_script returns [16:46:33]free content buf [16:46:33]Sock 7.Close socket [16:46:33]Sock 7.Thread stoped [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:06]OFD Sender: No OFD packet to send [16:47:11]OFD Sender: No OFD packet to send [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:23]accept exits with 9 [16:47:23]New connection [16:47:23]New thread 3067080036 created [16:47:23]Thread 3066936676 joined [16:47:23]Waiting for new connection... [16:47:23] Sock 9.Parse request [16:47:23]Sock 9.Check first char [16:47:23]Sock 9.First char is OK [16:47:23]request: POST /json_proto HTTP/1.0 [16:47:23]Method: POST [16:47:23]URL: /json_proto [16:47:23]Method is POST - this is cgi request [16:47:23]url: /json_proto [16:47:23]query_string will be loaded in cgi processing [16:47:23]execute_cgi json_proto POST (null) [16:47:23]execute_cgi path=json_proto method=POST [16:47:23]POST find Content-Length [16:47:23]Host: 172.17.62.5:8080 [16:47:23]Content-Length: 674 [16:47:23]Content-Type: application/json [16:47:23] [16:47:23]POST finish read [16:47:23]Found Content-Length = 674 [16:47:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190964", "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.610, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:23]execute_script... [16:47: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)190964", "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.610, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:23]POST & json_proto [16:47:23]process_json_proto [16:47:23]json parsed OK: [16:47:23]protocol is kg_v1.0 [16:47:23]action value=close_receipt [16:47:23]process_action close_receipt [16:47:23]cmd_close_receipt [16:47:23]MH_GetDate [16:47:23]Write to MH i2c: F0 00 00 A9 0B A3 [16:47:23]Write i2c OK [16:47:23]MH_I2C_Read... [16:47:23]Read from MH i2c: F0 [16:47:23]MH_I2C_Read... [16:47:23]Read from MH i2c: F0 09 00 [16:47:23]MH_I2C_Read... [16:47:23]Read from MH i2c: F0 09 00 A9 0B 00 1D A0 22 66 F4 E9 65 64 97 [16:47:23]GetLastDocTimeStamp 1713545190 [16:47:23]current date 1713545245 [16:47:23]FM_GetShiftState [16:47:23]SAM_PROTO_GetShiftState [16:47:23]wFMCommunicate request_size=4 [16:47:23]MH_SAM_APDU [16:47:23]CAPDU: 80 13 01 00 [16:47:23]Write to MH i2c: E2 08 00 AA 0B 80 13 01 00 00 00 00 00 32 [16:47:23]Write i2c OK [16:47:23]MH_I2C_Read... [16:47:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:23]Read from MH i2c: E2 [16:47:23]MH_I2C_Read... [16:47:23]Read from MH i2c: E2 0E 00 [16:47:23]MH_I2C_Read... [16:47:23]Read from MH i2c: E2 0E 00 AA 0B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 17 [16:47:23]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:47:23]wFMCommunicate OK [16:47:23]SAM_PROTO_GetShiftState done [16:47:23]FM_GetShiftState done [16:47:23]opened in 1713486233 [16:47:23]opened+sec_in_day 1713572633 [16:47:23]quantity*price = 70056 [16:47:23]sum+1 = 70058 [16:47:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 107 19.04.2024 16:47 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76487 ФПД: 8417013505686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T164725&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76487&fm=8417013505686&tin=02508201610067®Number=0000000000091573&sum=70000 [16:47:24]StoreToDocumentArchive [16:47:24]shift 370 fd 76487 [16:47:24]save to /storage/0370/doc_00076487 [16:47:24]save last doc name /storage/0370/doc_00076487 to /storage/kkm_last_doc_name [16:47:24]save OK [16:47:24]Clear old archive folders... [16:47:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:47:24]tlvbuf is 009F0CE0 [16:47:24]SAM_PROTO_ClearQueue [16:47:24]wFMCommunicate request_size=4 [16:47:24]MH_SAM_APDU [16:47:24]CAPDU: 80 09 00 00 [16:47:24]Write to MH i2c: E2 08 00 B7 0B 80 09 00 00 00 00 00 00 34 [16:47:24]Write i2c OK [16:47:24]MH_I2C_Read... [16:47:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:24]Read from MH i2c: E2 [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: E2 03 00 [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: E2 03 00 B7 0B 00 90 00 36 [16:47:24]RAPDU: 90 00 [16:47:24]wFMCommunicate OK [16:47:24]SAM_PROTO_ClearQueue done [16:47:24]KKMCreateOFDPacket [16:47:24]OFDProtocolAddRootSTLVToBuf [16:47:24]FM_MakeSignedData [16:47:24]FM_MakeSignedData [16:47:24]SAM_PROTO_SignData [16:47:24]wFMCommunicate request_size=4 [16:47:24]MH_SAM_APDU [16:47:24]CAPDU: 80 0D 01 02 [16:47:24]Write to MH i2c: E2 08 00 B8 0B 80 0D 01 02 00 00 00 00 3C [16:47:24]Write i2c OK [16:47:24]MH_I2C_Read... [16:47:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:24]Read from MH i2c: E2 [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: E2 03 00 [16:47:24]MH_I2C_Read... [16:47:24]Read from MH i2c: E2 03 00 B8 0B 00 90 00 37 [16:47:24]RAPDU: 90 00 [16:47:24]wFMCommunicate OK [16:47:24]wFMCommunicate request_size=255 [16:47:24]MH_SAM_APDU [16:47:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 1D A0 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C7 2A 01 00 35 04 06 00 07 A7 BD 19 [16:47:24]Write to MH i2c: E2 02 01 B9 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 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 1D A0 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C7 2A 01 00 35 04 06 00 07 A7 BD 19 00 00 D1 [16:47:24]Write i2c OK [16:47:24]MH_I2C_Read... [16:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:25]Read from MH i2c: E2 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: E2 03 00 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: E2 03 00 B9 0B 00 90 00 38 [16:47:25]RAPDU: 90 00 [16:47:25]wFMCommunicate OK [16:47:25]wFMCommunicate request_size=7 [16:47:25]MH_SAM_APDU [16:47:25]CAPDU: 80 0D 02 02 02 9E 96 [16:47:25]Write to MH i2c: E2 0A 00 BA 0B 80 0D 02 02 02 00 9E 96 00 00 77 [16:47:25]Write i2c OK [16:47:25]MH_I2C_Read... [16:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:25]Read from MH i2c: E2 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: E2 03 00 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: E2 03 00 BA 0B 00 90 00 39 [16:47:25]RAPDU: 90 00 [16:47:25]wFMCommunicate OK [16:47:25]wFMCommunicate request_size=4 [16:47:25]MH_SAM_APDU [16:47:25]CAPDU: 80 0D 03 02 [16:47:25]Write to MH i2c: E2 08 00 BB 0B 80 0D 03 02 00 00 00 00 41 [16:47:25]Write i2c OK [16:47:25]MH_I2C_Read... [16:47:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:25]Read from MH i2c: E2 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: E2 0B 00 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: E2 0B 00 BB 0B 00 19 B7 93 44 ED B6 03 A1 90 00 30 [16:47:25]RAPDU: 19 B7 93 44 ED B6 03 A1 90 00 [16:47:25]wFMCommunicate OK [16:47:25]SAM_PROTO_SignData done [16:47:25]FM_MakeSignedData done [16:47:25]CreateOFDProtocolMessage [16:47:25]wFMCommunicate request_size=4 [16:47:25]MH_SAM_APDU [16:47:25]CAPDU: 80 11 00 00 [16:47:25]Write to MH i2c: E2 08 00 BC 0B 80 11 00 00 00 00 00 00 41 [16:47:25]Write i2c OK [16:47:25]MH_I2C_Read... [16:47:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:25]Read from MH i2c: E2 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: E2 17 00 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: E2 17 00 BC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 94 [16:47:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:47:25]wFMCommunicate OK [16:47:25]CreateOFDProtocolMessage done [16:47:25]OFDSenderStorePacket 76487 [16:47:25]StoreOFDPacket docnum=76487 [16:47:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 94 6E 04 01 C3 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 1D A0 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C7 2A 01 00 35 04 06 00 07 A7 BD 19 9E 96 19 B7 93 44 ED B6 03 A1 [16:47:25]CheckFolder [16:47:25]dirname=/storage/ofd_packets [16:47:25]CheckFolder done [16:47:25]ProducePacketName [16:47:25]name=ofd_packets/00076487 [16:47:25]NVStorageSaveData ofd_packets/00076487 [16:47:25]File name is /storage/ofd_packets/00076487 [16:47:25]Write 298 bytes [16:47:25]NVStorageSaveData done [16:47:25]OFDSenderStorePacket done [16:47:25]KKMCreateOFDPacket done [16:47:25]NVStorageSaveData kkm_last_timestamp [16:47:25]File name is /storage/kkm_last_timestamp [16:47:25]Write 4 bytes [16:47:25]NVStorageSaveData done [16:47:25]ExternCall_PrintAddStr [16:47:25]wPrintStart [16:47:25]Write to MH i2c: 01 00 00 BD 0B C8 [16:47:25]Write i2c OK [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: 01 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: 01 07 00 [16:47:25]MH_I2C_Read... [16:47:25]Read from MH i2c: 01 07 00 BD 0B 00 00 00 00 00 FF 0F DD [16:47:25]RasterBufferAndPrint [16:47:25]line Счет N : (1)190964 [16:47:25]line ИНН: 02508201610067 [16:47:25]line Контрольно-Кассовый Чек [16:47:25]line ПРОДАЖА [16:47:25]line ТРК (МРК, ГНК) : 51 [16:47:25]line Товар: 2710194210 [16:47:25]line ДТ-К-5 [16:47:25]line 9.610 * 72.90 [16:47:25]line = 700.57 [16:47:25]line НДС 12% НСП 1% [16:47:25]line > о реализуемом товаре [16:47:25]line ОКРУГЛЕНИЕ: -0.57 [16:47:25]line ИТОГО: 700.00 [16:47:25]line Внесено: 700.00 [16:47:25]line СДАЧА: 0.00 [16:47:25]line НСП 1% : 6.20 [16:47:25]line НДС 12% : 74.40 [16:47:25]line Наличными: 700.00 [16:47:25]line Безнал.: 0.00 [16:47:25]line Место: АЗС № 106 "Партнер Нефть" [16:47:25]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:47:25]line СНО: Общий режим [16:47:25]line Чек 107 19.04.2024 16:47 [16:47:25]line Смена: 370 ФФД: 1.0 [16:47:25]line ЗНМ: 0300000141 [16:47:25]line РНМ: 0000000000091573 [16:47:25]line Версия ККМ: 001 [16:47:25]line ФМ: 0000000000874652 [16:47:25]line ФД: 76487 [16:47:25]line ФПД: 8417013505686 [16:47:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T164725&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76487&fm=8417013505686&tin=02508201610067®Number=0000000000091573&sum=70000 [16:47:25]OFD Sender: Processing packet 76487 [packets to send 128, broken 127] [16:47:25]ProducePacketName [16:47:25]name=ofd_packets/00076487 [16:47:25]OFD Sender: To server: pG, [16:47:25]CommunicateWithHost lk.salyk.kg:30040 [16:47:25]ConnectInit lk.salyk.kg [16:47:25]written 0, free lines is 4095 [16:47:26]Write to MH i2c: 01 00 00 E7 0B F2 [16:47:26]Write i2c OK [16:47:26]MH_I2C_Read... [16:47:26]Read from MH i2c: 01 [16:47:26]MH_I2C_Read... [16:47:26]Read from MH i2c: 01 07 00 [16:47:26]MH_I2C_Read... [16:47:26]Read from MH i2c: 01 07 00 E7 0B 00 00 00 00 00 E4 0C E9 [16:47:26]RasterBufferAndPrint [16:47:26]line [16:47:26]line [16:47:26]line [16:47:26]line [16:47:26]line [16:47:26]written 0, free lines is 3303 [16:47:26]MH_Cut [16:47:26]Write to MH i2c: D1 01 00 EE 0B 01 CB [16:47:26]Write i2c OK [16:47:26]MH_I2C_Read... [16:47:26]Read from MH i2c: D1 [16:47:26]MH_I2C_Read... [16:47:26]Read from MH i2c: D1 01 00 [16:47:26]MH_I2C_Read... [16:47:26]Read from MH i2c: D1 01 00 EE 0B 00 CA [16:47:26]Write to MH i2c: 01 00 00 EF 0B FA [16:47:26]Write i2c OK [16:47:26]MH_I2C_Read... [16:47:26]*** Cut start [16:47:26]*** Partial cut [16:47:26]*** CUTSNS_PIN = 1 [16:47:26]*** CUTSNS_PIN = 0 [16:47:27]*** Brake cut motor [16:47:27]Read from MH i2c: 01 [16:47:27]MH_I2C_Read... [16:47:27]*** Stop cut motor [16:47:27]*** Cut end [16:47:27]Read from MH i2c: 01 07 00 [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: 01 07 00 EF 0B 00 00 00 00 00 FF 0F 0F [16:47:27]process_action close_receipt done [16:47:27]requested_data is exist [16:47:27]produce_requested_data [16:47:27]requested_item fm.sn is exist - process it [16:47:27]wFMCommunicate request_size=4 [16:47:27]MH_SAM_APDU [16:47:27]CAPDU: 80 11 00 00 [16:47:27]Write to MH i2c: E2 08 00 F0 0B 80 11 00 00 00 00 00 00 75 [16:47:27]Write i2c OK [16:47:27]MH_I2C_Read... [16:47:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:27]Read from MH i2c: E2 [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: E2 17 00 [16:47:27]MH_I2C_Read... [16:47:27]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 34 36 35 32 90 00 C8 [16:47:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:47:27]wFMCommunicate OK [16:47:27]requested_item fd.num is exist - process it [16:47:27]SAM_PROTO_GetFieldsCounters [16:47:27]wFMCommunicate request_size=4 [16:47:27]MH_SAM_APDU [16:47:27]CAPDU: 80 13 00 00 [16:47:27]Write to MH i2c: E2 08 00 F1 0B 80 13 00 00 00 00 00 00 78 [16:47:27]Write i2c OK [16:47:27]MH_I2C_Read... [16:47:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:27]Read from MH i2c: E2 [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: E2 62 00 [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: E2 62 00 F1 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C7 2A 01 00 0E 04 04 00 72 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 3F [16:47:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C7 2A 01 00 0E 04 04 00 72 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 [16:47:27]wFMCommunicate OK [16:47:27]SAM_PROTO_GetFieldsCounters done [16:47:27]requested_item shift.num is exist - process it [16:47:27]requested_item shift.opened is exist - process it [16:47:27]req_shift_opened [16:47:27]FM_GetShiftState [16:47:27]SAM_PROTO_GetShiftState [16:47:27]wFMCommunicate request_size=4 [16:47:27]MH_SAM_APDU [16:47:27]CAPDU: 80 13 01 00 [16:47:27]Write to MH i2c: E2 08 00 F2 0B 80 13 01 00 00 00 00 00 7A [16:47:27]Write i2c OK [16:47:27]MH_I2C_Read... [16:47:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:27]Read from MH i2c: E2 [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: E2 0E 00 [16:47:27]MH_I2C_Read... [16:47:27]Read from MH i2c: E2 0E 00 F2 0B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 5F [16:47:27]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:47:27]wFMCommunicate OK [16:47:27]SAM_PROTO_GetShiftState done [16:47:27]FM_GetShiftState done [16:47:27]req_shift_opened done [16:47:27]requested_item shift.open_date is exist - process it [16:47:27]req_shift_open_date [16:47:27]req_shift_open_date done [16:47:27]produce_requested_data done [16:47:27]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76487,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [16:47:27]process_action_free close_receipt [16:47:27]json_value_free [16:47:27]json_value_free done [16:47:27]process_json_proto returns [16:47:27]Send response to host [16:47:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76487,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [16:47:27]free response buf [16:47:27]execute_script done [16:47:27]execute_script returns [16:47:27]free content buf [16:47:27]Sock 9.Close socket [16:47:27]Sock 9.Thread stoped [16:49:35]ConnectInit Can't connect to host [16:49:35]CommunicateWithHost connect error [16:49:35]CommunicateWithHost err = -1 [16:49:35]OFD Sender: Server communicate error [16:49:40]OFD Sender: Processing packet 76487 [packets to send 128, broken 127] [16:49:40]ProducePacketName [16:49:40]name=ofd_packets/00076487 [16:49:40]OFD Sender: To server: pG, [16:49:40]CommunicateWithHost lk.salyk.kg:30040 [16:49:40]ConnectInit lk.salyk.kg [16:49:41]Connected sock=9 [16:49:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 94 6E 04 01 C3 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 1D A0 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C7 2A 01 00 35 04 06 00 07 A7 BD 19 9E 96 19 B7 93 44 ED B6 03 A1 [16:49:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 CA 06 47 00 A4 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C7 2A 01 00 F4 03 04 00 2F 48 22 66 B6 04 01 00 00 10 39 4C 52 5D 1D 3C F8 [16:49:41]CommunicateWithHost err = 0 [16:49:41]CheckOFDResponse [16:49:41]1017 (14) - 77093643461234 [16:49:41]1041 (16) - 0000000000874652 [16:49:41]1040 (4) - 76487 [16:49:41]1012 (4) - 19.04.2024 10:32 [16:49:41]1206 (1) - 0 [16:49:41]OFD Sender: Remove packet 76487 [16:49:41]ProducePacketName [16:49:41]name=ofd_packets/00076487 [16:49:41]NVStorageDeleteData [16:49:41]OFD Sender: No OFD packet to send [16:49:46]OFD Sender: No OFD packet to send [16:49:51]OFD Sender: No OFD packet to send [16:49:56]OFD Sender: No OFD packet to send [16:50:01]OFD Sender: No OFD packet to send [16:50:06]OFD Sender: No OFD packet to send [16:50:11]OFD Sender: No OFD packet to send [16:50:16]OFD Sender: No OFD packet to send [16:50:21]OFD Sender: No OFD packet to send [16:50:26]OFD Sender: No OFD packet to send [16:50:31]OFD Sender: No OFD packet to send [16:50:36]OFD Sender: No OFD packet to send [16:50:41]OFD Sender: No OFD packet to send [16:50:46]OFD Sender: No OFD packet to send [16:50:51]OFD Sender: No OFD packet to send [16:50:56]OFD Sender: No OFD packet to send [16:51:01]OFD Sender: No OFD packet to send [16:51:06]OFD Sender: No OFD packet to send [16:51:11]OFD Sender: No OFD packet to send [16:51:16]OFD Sender: No OFD packet to send [16:51:21]OFD Sender: No OFD packet to send [16:51:26]OFD Sender: No OFD packet to send [16:51:31]OFD Sender: No OFD packet to send [16:51:36]OFD Sender: No OFD packet to send [16:51:41]OFD Sender: No OFD packet to send [16:51:46]OFD Sender: No OFD packet to send [16:51:51]OFD Sender: No OFD packet to send [16:51:56]OFD Sender: No OFD packet to send [16:52:01]OFD Sender: No OFD packet to send [16:52:06]OFD Sender: No OFD packet to send [16:52:11]OFD Sender: No OFD packet to send [16:52:17]OFD Sender: No OFD packet to send [16:52:22]OFD Sender: No OFD packet to send [16:52:27]OFD Sender: No OFD packet to send [16:52:32]OFD Sender: No OFD packet to send [16:52:37]OFD Sender: No OFD packet to send [16:52:42]OFD Sender: No OFD packet to send [16:52:47]OFD Sender: No OFD packet to send [16:52:52]OFD Sender: No OFD packet to send [16:52:57]OFD Sender: No OFD packet to send [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:27]OFD Sender: No OFD packet to send [16:53:32]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53:42]OFD Sender: No OFD packet to send [16:53:47]OFD Sender: No OFD packet to send [16:53:52]OFD Sender: No OFD packet to send [16:53:57]OFD Sender: No OFD packet to send [16:54:02]OFD Sender: No OFD packet to send [16:54:07]OFD Sender: No OFD packet to send [16:54:12]OFD Sender: No OFD packet to send [16:54:17]OFD Sender: No OFD packet to send [16:54:22]OFD Sender: No OFD packet to send [16:54:27]OFD Sender: No OFD packet to send [16:54:32]OFD Sender: No OFD packet to send [16:54:37]OFD Sender: No OFD packet to send [16:54:42]OFD Sender: No OFD packet to send [16:54:47]OFD Sender: No OFD packet to send [16:54:52]OFD Sender: No OFD packet to send [16:54:57]OFD Sender: No OFD packet to send [16:55:02]OFD Sender: No OFD packet to send [16:55:07]OFD Sender: No OFD packet to send [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:40]accept exits with 7 [16:55:40]New connection [16:55:40]New thread 3066936676 created [16:55:40]Thread 3067080036 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.62.5:8080 [16:55:40]Content-Length: 813 [16:55:40]Content-Type: application/json [16:55:40] [16:55:40]POST finish read [16:55:40]Found Content-Length = 813 [16:55:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190965", "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.000, "sum" : 364.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 364.50 } ] } , "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 : (1)190965", "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.000, "sum" : 364.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 364.50 } ] } , "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 F3 0B ED [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 F3 0B 00 0D A2 22 66 F4 E9 65 64 D3 [16:55:40]GetLastDocTimeStamp 1713545245 [16:55:40]current date 1713545741 [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 F4 0B 80 13 01 00 00 00 00 00 7C [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 F4 0B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 61 [16:55:40]RAPDU: 09 00 01 99 B9 21 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 1713486233 [16:55:40]opened+sec_in_day 1713572633 [16:55:40]quantity*price = 36450 [16:55:40]sum+1 = 36451 [16:55:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 364.50 НСП 1% : 3.23 НДС 12% : 38.71 Наличными: 0.00 Безнал.: 364.50 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 108 19.04.2024 16:55 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76488 ФПД: 78106548255667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T165541&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76488&fm=78106548255667&tin=02508201610067®Number=0000000000091573&sum=36450 [16:55:41]StoreToDocumentArchive [16:55:41]shift 370 fd 76488 [16:55:41]save to /storage/0370/doc_00076488 [16:55:41]save last doc name /storage/0370/doc_00076488 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=248 [16:55:41]tlvbuf is 009B2890 [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 01 0C 80 09 00 00 00 00 00 00 7F [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 01 0C 00 90 00 81 [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 02 0C 80 0D 01 02 00 00 00 00 87 [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 02 0C 00 90 00 82 [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 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 62 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 8E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 0D A2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C8 2A 01 00 35 04 06 00 47 09 99 10 [16:55:41]Write to MH i2c: E2 02 01 03 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 88 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 62 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 8E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 0D A2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C8 2A 01 00 35 04 06 00 47 09 99 10 00 00 59 [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 03 0C 00 90 00 83 [16:55:41]RAPDU: 90 00 [16:55:41]wFMCommunicate OK [16:55:41]wFMCommunicate request_size=7 [16:55:41]MH_SAM_APDU [16:55:41]CAPDU: 80 0D 02 02 02 3B B3 [16:55:41]Write to MH i2c: E2 0A 00 04 0C 80 0D 02 02 02 00 3B B3 00 00 7C [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 04 0C 00 90 00 84 [16:55:41]RAPDU: 90 00 [16:55:41]wFMCommunicate OK [16:55:41]wFMCommunicate request_size=4 [16:55:41]MH_SAM_APDU [16:55:41]CAPDU: 80 0D 03 02 [16:55:41]Write to MH i2c: E2 08 00 05 0C 80 0D 03 02 00 00 00 00 8C [16:55:41]Write i2c OK [16:55:41]MH_I2C_Read... [16:55:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:41]Read from MH i2c: E2 [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: E2 0B 00 [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: E2 0B 00 05 0C 00 19 BB 19 30 C8 92 29 66 90 00 93 [16:55:41]RAPDU: 19 BB 19 30 C8 92 29 66 90 00 [16:55:41]wFMCommunicate OK [16:55:41]SAM_PROTO_SignData done [16:55:41]FM_MakeSignedData done [16:55:41]CreateOFDProtocolMessage [16:55:41]wFMCommunicate request_size=4 [16:55:41]MH_SAM_APDU [16:55:41]CAPDU: 80 11 00 00 [16:55:41]Write to MH i2c: E2 08 00 06 0C 80 11 00 00 00 00 00 00 8C [16:55:41]Write i2c OK [16:55:41]MH_I2C_Read... [16:55:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:41]Read from MH i2c: E2 [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: E2 17 00 [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: E2 17 00 06 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DF [16:55:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:55:41]wFMCommunicate OK [16:55:41]CreateOFDProtocolMessage done [16:55:41]OFDSenderStorePacket 76488 [16:55:41]StoreOFDPacket docnum=76488 [16:55:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 8B 66 04 01 44 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 62 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 8E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 0D A2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C8 2A 01 00 35 04 06 00 47 09 99 10 3B B3 19 BB 19 30 C8 92 29 66 [16:55:41]CheckFolder [16:55:41]dirname=/storage/ofd_packets [16:55:41]CheckFolder done [16:55:41]ProducePacketName [16:55:41]name=ofd_packets/00076488 [16:55:41]NVStorageSaveData ofd_packets/00076488 [16:55:41]File name is /storage/ofd_packets/00076488 [16:55:41]Write 298 bytes [16:55:41]NVStorageSaveData done [16:55:41]OFDSenderStorePacket done [16:55:41]KKMCreateOFDPacket done [16:55:41]NVStorageSaveData kkm_last_timestamp [16:55:41]File name is /storage/kkm_last_timestamp [16:55:41]Write 4 bytes [16:55:41]NVStorageSaveData done [16:55:41]ExternCall_PrintAddStr [16:55:41]wPrintStart [16:55:41]Write to MH i2c: 01 00 00 07 0C 13 [16:55:41]Write i2c OK [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: 01 [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: 01 07 00 [16:55:41]MH_I2C_Read... [16:55:41]Read from MH i2c: 01 07 00 07 0C 00 00 00 00 00 FF 0F 28 [16:55:41]RasterBufferAndPrint [16:55:41]line Счет N : (1)190965 [16:55:41]line ИНН: 02508201610067 [16:55:41]line Контрольно-Кассовый Чек [16:55:41]line ПРОДАЖА [16:55:41]line ТРК (МРК, ГНК) : 51 [16:55:41]line Товар: 2710194210 [16:55:41]line ДТ-К-5 [16:55:41]line 5.000 * 72.90 [16:55:41]line = 364.50 [16:55:41]line НДС 12% НСП 1% [16:55:41]line > о реализуемом товаре [16:55:41]line ИТОГО: 364.50 [16:55:41]line НСП 1% : 3.23 [16:55:41]line НДС 12% : 38.71 [16:55:41]line Наличными: 0.00 [16:55:41]line Безнал.: 364.50 [16:55:41]line Место: АЗС № 106 "Партнер Нефть" [16:55:41]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:55:41]line СНО: Общий режим [16:55:41]line Чек 108 19.04.2024 16:55 [16:55:41]line Смена: 370 ФФД: 1.0 [16:55:41]line ЗНМ: 0300000141 [16:55:41]line РНМ: 0000000000091573 [16:55:41]line Версия ККМ: 001 [16:55:41]line Платежная система: Бакай Банк [16:55:41]line ФМ: 0000000000874652 [16:55:41]line ФД: 76488 [16:55:41]line ФПД: 78106548255667 [16:55:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T165541&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76488&fm=78106548255667&tin=02508201610067®Number=0000000000091573&sum=36450 [16:55:42]OFD Sender: Processing packet 76488 [packets to send 128, broken 127] [16:55:42]ProducePacketName [16:55:42]name=ofd_packets/00076488 [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]written 0, free lines is 4095 [16:55:42]Write to MH i2c: 01 00 00 30 0C 3C [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 30 0C 00 00 00 00 00 F0 0C 3F [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 3318 [16:55:42]MH_Cut [16:55:42]Write to MH i2c: D1 01 00 37 0C 01 15 [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 37 0C 00 14 [16:55:42]Write to MH i2c: 01 00 00 38 0C 44 [16:55:42]Write i2c OK [16:55:42]MH_I2C_Read... [16:55:43]*** Cut start [16:55:43]*** Partial cut [16:55:43]*** CUTSNS_PIN = 1 [16:55:43]*** CUTSNS_PIN = 0 [16:55:43]*** 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 38 0C 00 00 00 00 00 FF 0F 59 [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 39 0C 80 11 00 00 00 00 00 00 BF [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 39 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 12 [16:55:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 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 3A 0C 80 13 00 00 00 00 00 00 C2 [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 3A 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C8 2A 01 00 0E 04 04 00 72 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 8D [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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C8 2A 01 00 0E 04 04 00 72 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 [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 3B 0C 80 13 01 00 00 00 00 00 C4 [16:55:44]Write i2c OK [16:55:44]MH_I2C_Read... [16:55:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:44]Read from MH i2c: E2 [16:55:44]MH_I2C_Read... [16:55:44]Read from MH i2c: E2 0E 00 [16:55:44]MH_I2C_Read... [16:55:44]Read from MH i2c: E2 0E 00 3B 0C 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 A9 [16:55:44]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:55:44]wFMCommunicate OK [16:55:44]SAM_PROTO_GetShiftState done [16:55:44]FM_GetShiftState done [16:55:44]req_shift_opened done [16:55:44]requested_item shift.open_date is exist - process it [16:55:44]req_shift_open_date [16:55:44]req_shift_open_date done [16:55:44]produce_requested_data done [16:55:44]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76488,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [16:55:44]process_action_free close_receipt [16:55:44]json_value_free [16:55:44]json_value_free done [16:55:44]process_json_proto returns [16:55:44]Send response to host [16:55:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76488,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [16:55:44]free response buf [16:55:44]execute_script done [16:55:44]execute_script returns [16:55:44]free content buf [16:55:44]Sock 7.Close socket [16:55:44]Sock 7.Thread stoped [16:55:44]Connected sock=11 [16: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 34 36 35 32 0C 01 00 00 8B 66 04 01 44 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 62 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 8E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 0D A2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C8 2A 01 00 35 04 06 00 47 09 99 10 3B B3 19 BB 19 30 C8 92 29 66 [16:55:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 B9 52 47 00 B1 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 34 36 35 32 10 04 04 00 C8 2A 01 00 F4 03 04 00 9B 49 22 66 B6 04 01 00 00 8C A1 CD FE EC 79 7B 3E [16:55:44]CommunicateWithHost err = 0 [16:55:44]CheckOFDResponse [16:55:44]1017 (14) - 77093643461234 [16:55:44]1041 (16) - 0000000000874652 [16:55:44]1040 (4) - 76488 [16:55:44]1012 (4) - 19.04.2024 10:38 [16:55:44]1206 (1) - 0 [16:55:44]OFD Sender: Remove packet 76488 [16:55:44]ProducePacketName [16:55:44]name=ofd_packets/00076488 [16:55:44]NVStorageDeleteData [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:52]accept exits with 9 [16:55:52]New connection [16:55:52]New thread 3067080036 created [16:55:52]Thread 3066936676 joined [16:55:52]Waiting for new connection... [16:55:52] Sock 9.Parse request [16:55:52]Sock 9.Check first char [16:55:52]Sock 9.First char is OK [16:55:52]request: POST /json_proto HTTP/1.0 [16:55:52]Method: POST [16:55:52]URL: /json_proto [16:55:52]Method is POST - this is cgi request [16:55:52]url: /json_proto [16:55:52]query_string will be loaded in cgi processing [16:55:52]execute_cgi json_proto POST (null) [16:55:52]execute_cgi path=json_proto method=POST [16:55:52]POST find Content-Length [16:55:52]Host: 172.17.62.5:8080 [16:55:52]Content-Length: 639 [16:55:52]Content-Type: application/json [16:55:52] [16:55:52]POST finish read [16:55:52]Found Content-Length = 639 [16:55:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190966", "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" : 64.40, "quantity" : 5.000, "sum" : 322.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 322.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:52]execute_script... [16:55:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190966", "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" : 64.40, "quantity" : 5.000, "sum" : 322.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 322.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:52]POST & json_proto [16:55:52]process_json_proto [16:55:52]json parsed OK: [16:55:52]protocol is kg_v1.0 [16:55:52]action value=close_receipt [16:55:52]process_action close_receipt [16:55:52]cmd_close_receipt [16:55:52]MH_GetDate [16:55:52]Write to MH i2c: F0 00 00 3C 0C 37 [16:55:52]Write i2c OK [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: F0 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: F0 09 00 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: F0 09 00 3C 0C 00 1A A2 22 66 F4 E9 65 64 2A [16:55:52]GetLastDocTimeStamp 1713545741 [16:55:52]current date 1713545754 [16:55:52]FM_GetShiftState [16:55:52]SAM_PROTO_GetShiftState [16:55:52]wFMCommunicate request_size=4 [16:55:52]MH_SAM_APDU [16:55:52]CAPDU: 80 13 01 00 [16:55:52]Write to MH i2c: E2 08 00 3D 0C 80 13 01 00 00 00 00 00 C6 [16:55:52]Write i2c OK [16:55:52]MH_I2C_Read... [16:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:52]Read from MH i2c: E2 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 0E 00 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 0E 00 3D 0C 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 AB [16:55:52]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:55:52]wFMCommunicate OK [16:55:52]SAM_PROTO_GetShiftState done [16:55:52]FM_GetShiftState done [16:55:52]opened in 1713486233 [16:55:52]opened+sec_in_day 1713572633 [16:55:52]quantity*price = 32200 [16:55:52]sum+1 = 32201 [16:55:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 322.00 НСП 1% : 2.85 НДС 12% : 34.19 Наличными: 322.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 109 19.04.2024 16:55 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76489 ФПД: 245280052451534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T165554&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76489&fm=245280052451534&tin=02508201610067®Number=0000000000091573&sum=32200 [16:55:53]StoreToDocumentArchive [16:55:53]shift 370 fd 76489 [16:55:53]save to /storage/0370/doc_00076489 [16:55:53]save last doc name /storage/0370/doc_00076489 to /storage/kkm_last_doc_name [16:55:53]save OK [16:55:53]Clear old archive folders... [16:55:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:53]tlvbuf is 009BF6E0 [16:55:53]SAM_PROTO_ClearQueue [16:55:53]wFMCommunicate request_size=4 [16:55:53]MH_SAM_APDU [16:55:53]CAPDU: 80 09 00 00 [16:55:53]Write to MH i2c: E2 08 00 4A 0C 80 09 00 00 00 00 00 00 C8 [16:55:53]Write i2c OK [16:55:53]MH_I2C_Read... [16:55:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:53]Read from MH i2c: E2 [16:55:53]MH_I2C_Read... [16:55:53]Read from MH i2c: E2 03 00 [16:55:53]MH_I2C_Read... [16:55:53]Read from MH i2c: E2 03 00 4A 0C 00 90 00 CA [16:55:53]RAPDU: 90 00 [16:55:53]wFMCommunicate OK [16:55:53]SAM_PROTO_ClearQueue done [16:55:53]KKMCreateOFDPacket [16:55:53]OFDProtocolAddRootSTLVToBuf [16:55:53]FM_MakeSignedData [16:55:53]FM_MakeSignedData [16:55:53]SAM_PROTO_SignData [16:55:53]wFMCommunicate request_size=4 [16:55:53]MH_SAM_APDU [16:55:53]CAPDU: 80 0D 01 02 [16:55:53]Write to MH i2c: E2 08 00 4B 0C 80 0D 01 02 00 00 00 00 D0 [16:55:53]Write i2c OK [16:55:53]MH_I2C_Read... [16:55:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:53]Read from MH i2c: E2 [16:55:53]MH_I2C_Read... [16:55:53]Read from MH i2c: E2 03 00 [16:55:53]MH_I2C_Read... [16:55:53]Read from MH i2c: E2 03 00 4B 0C 00 90 00 CB [16:55:53]RAPDU: 90 00 [16:55:53]wFMCommunicate OK [16:55:53]wFMCommunicate request_size=255 [16:55:53]MH_SAM_APDU [16:55: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 88 13 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 C8 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0D 00 00 00 00 07 04 06 00 C8 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 1A A2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C9 2A 01 00 35 04 06 00 DF [16:55:53]Write to MH i2c: E2 02 01 4C 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 88 13 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 C8 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0D 00 00 00 00 07 04 06 00 C8 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 1A A2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C9 2A 01 00 35 04 06 00 DF 00 00 02 [16:55:53]Write i2c OK [16:55:53]MH_I2C_Read... [16:55:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:54]Read from MH i2c: E2 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 03 00 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 03 00 4C 0C 00 90 00 CC [16:55:54]RAPDU: 90 00 [16:55:54]wFMCommunicate OK [16:55:54]wFMCommunicate request_size=10 [16:55:54]MH_SAM_APDU [16:55:54]CAPDU: 80 0D 02 02 05 14 B6 65 98 CE [16:55:54]Write to MH i2c: E2 0D 00 4D 0C 80 0D 02 02 05 00 14 B6 65 98 CE 00 00 72 [16:55:54]Write i2c OK [16:55:54]MH_I2C_Read... [16:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:54]Read from MH i2c: E2 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 03 00 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 03 00 4D 0C 00 90 00 CD [16:55:54]RAPDU: 90 00 [16:55:54]wFMCommunicate OK [16:55:54]wFMCommunicate request_size=4 [16:55:54]MH_SAM_APDU [16:55:54]CAPDU: 80 0D 03 02 [16:55:54]Write to MH i2c: E2 08 00 4E 0C 80 0D 03 02 00 00 00 00 D5 [16:55:54]Write i2c OK [16:55:54]MH_I2C_Read... [16:55:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:54]Read from MH i2c: E2 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 0B 00 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 0B 00 4E 0C 00 F6 76 BD 81 F7 34 AA C3 90 00 18 [16:55:54]RAPDU: F6 76 BD 81 F7 34 AA C3 90 00 [16:55:54]wFMCommunicate OK [16:55:54]SAM_PROTO_SignData done [16:55:54]FM_MakeSignedData done [16:55:54]CreateOFDProtocolMessage [16:55:54]wFMCommunicate request_size=4 [16:55:54]MH_SAM_APDU [16:55:54]CAPDU: 80 11 00 00 [16:55:54]Write to MH i2c: E2 08 00 4F 0C 80 11 00 00 00 00 00 00 D5 [16:55:54]Write i2c OK [16:55:54]MH_I2C_Read... [16:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:54]Read from MH i2c: E2 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 17 00 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 17 00 4F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 28 [16:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:55:54]wFMCommunicate OK [16:55:54]CreateOFDProtocolMessage done [16:55:54]OFDSenderStorePacket 76489 [16:55:54]StoreOFDPacket docnum=76489 [16:55:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 D2 1D 07 01 FB 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 C8 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0D 00 00 00 00 07 04 06 00 C8 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 1A A2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C9 2A 01 00 35 04 06 00 DF 14 B6 65 98 CE F6 76 BD 81 F7 34 AA C3 [16:55:54]CheckFolder [16:55:54]dirname=/storage/ofd_packets [16:55:54]CheckFolder done [16:55:54]ProducePacketName [16:55:54]name=ofd_packets/00076489 [16:55:54]NVStorageSaveData ofd_packets/00076489 [16:55:54]File name is /storage/ofd_packets/00076489 [16:55:54]Write 301 bytes [16:55:54]NVStorageSaveData done [16:55:54]OFDSenderStorePacket done [16:55:54]KKMCreateOFDPacket done [16:55:54]NVStorageSaveData kkm_last_timestamp [16:55:54]File name is /storage/kkm_last_timestamp [16:55:54]Write 4 bytes [16:55:54]NVStorageSaveData done [16:55:54]ExternCall_PrintAddStr [16:55:54]wPrintStart [16:55:54]Write to MH i2c: 01 00 00 50 0C 5C [16:55:54]Write i2c OK [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: 01 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: 01 07 00 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: 01 07 00 50 0C 00 00 00 00 00 FF 0F 71 [16:55:54]RasterBufferAndPrint [16:55:54]line Счет N : (1)190966 [16:55:54]line ИНН: 02508201610067 [16:55:54]line Контрольно-Кассовый Чек [16:55:54]line ПРОДАЖА [16:55:54]line ТРК (МРК, ГНК) : 22 [16:55:54]line Товар: 2710124130 [16:55:54]line Аи-92-К-5 [16:55:54]line 5.000 * 64.40 [16:55:54]line = 322.00 [16:55:54]line НДС 12% НСП 1% [16:55:54]line > о реализуемом товаре [16:55:54]line ИТОГО: 322.00 [16:55:54]line НСП 1% : 2.85 [16:55:54]line НДС 12% : 34.19 [16:55:54]line Наличными: 322.00 [16:55:54]line Безнал.: 0.00 [16:55:54]line Место: АЗС № 106 "Партнер Нефть" [16:55:54]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:55:54]line СНО: Общий режим [16:55:54]line Чек 109 19.04.2024 16:55 [16:55:54]line Смена: 370 ФФД: 1.0 [16:55:54]line ЗНМ: 0300000141 [16:55:54]line РНМ: 0000000000091573 [16:55:54]line Версия ККМ: 001 [16:55:54]line ФМ: 0000000000874652 [16:55:54]line ФД: 76489 [16:55:54]line ФПД: 245280052451534 [16:55:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T165554&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76489&fm=245280052451534&tin=02508201610067®Number=0000000000091573&sum=32200 [16:55:54]written 0, free lines is 4095 [16:55:54]OFD Sender: Processing packet 76489 [packets to send 128, broken 127] [16:55:54]ProducePacketName [16:55:54]name=ofd_packets/00076489 [16:55:54]OFD Sender: To server: pG, [16:55:54]CommunicateWithHost lk.salyk.kg:30040 [16:55:54]ConnectInit lk.salyk.kg [16:55:54]Connected sock=10 [16:55:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 D2 1D 07 01 FB 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 C8 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0D 00 00 00 00 07 04 06 00 C8 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 1A A2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C9 2A 01 00 35 04 06 00 DF 14 B6 65 98 CE F6 76 BD 81 F7 34 AA C3 [16:55:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 32 5E 47 00 39 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 34 36 35 32 10 04 04 00 C9 2A 01 00 F4 03 04 00 A4 49 22 66 B6 04 01 00 00 6C 7C 67 0D EE A2 72 39 [16:55:54]CommunicateWithHost err = 0 [16:55:54]CheckOFDResponse [16:55:54]1017 (14) - 77093643461234 [16:55:54]1041 (16) - 0000000000874652 [16:55:54]1040 (4) - 76489 [16:55:54]1012 (4) - 19.04.2024 10:38 [16:55:54]1206 (1) - 0 [16:55:54]OFD Sender: Remove packet 76489 [16:55:54]ProducePacketName [16:55:54]name=ofd_packets/00076489 [16:55:54]NVStorageDeleteData [16:55:54]Write to MH i2c: 01 00 00 77 0C 83 [16:55:54]Write i2c OK [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: 01 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: 01 07 00 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: 01 07 00 77 0C 00 00 00 00 00 2C 0D C3 [16:55:54]RasterBufferAndPrint [16:55:54]line [16:55:54]line [16:55:54]line [16:55:54]line [16:55:54]line [16:55:54]written 0, free lines is 3382 [16:55:54]MH_Cut [16:55:54]Write to MH i2c: D1 01 00 7E 0C 01 5C [16:55:54]Write i2c OK [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: D1 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: D1 01 00 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: D1 01 00 7E 0C 00 5B [16:55:54]Write to MH i2c: 01 00 00 7F 0C 8B [16:55:54]Write i2c OK [16:55:54]MH_I2C_Read... [16:55:55]OFD Sender: No OFD packet to send [16:55:55]*** Cut start [16:55:55]*** Partial cut [16:55:55]*** CUTSNS_PIN = 1 [16:55:55]*** CUTSNS_PIN = 0 [16:55:55]*** Brake cut motor [16:55:55]Read from MH i2c: 01 [16:55:55]MH_I2C_Read... [16:55:55]*** Stop cut motor [16:55:55]*** Cut end [16:55:55]Read from MH i2c: 01 07 00 [16:55:55]MH_I2C_Read... [16:55:55]Read from MH i2c: 01 07 00 7F 0C 00 00 00 00 00 FF 0F A0 [16:55:55]process_action close_receipt done [16:55:55]requested_data is exist [16:55:55]produce_requested_data [16:55:55]requested_item fm.sn is exist - process it [16:55:55]wFMCommunicate request_size=4 [16:55:55]MH_SAM_APDU [16:55:55]CAPDU: 80 11 00 00 [16:55:55]Write to MH i2c: E2 08 00 80 0C 80 11 00 00 00 00 00 00 06 [16:55:55]Write i2c OK [16:55:55]MH_I2C_Read... [16:55:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:55]Read from MH i2c: E2 [16:55:55]MH_I2C_Read... [16:55:55]Read from MH i2c: E2 17 00 [16:55:55]MH_I2C_Read... [16:55:55]Read from MH i2c: E2 17 00 80 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 59 [16:55:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:55:55]wFMCommunicate OK [16:55:55]requested_item fd.num is exist - process it [16:55:55]SAM_PROTO_GetFieldsCounters [16:55:55]wFMCommunicate request_size=4 [16:55:55]MH_SAM_APDU [16:55:55]CAPDU: 80 13 00 00 [16:55:55]Write to MH i2c: E2 08 00 81 0C 80 13 00 00 00 00 00 00 09 [16:55:55]Write i2c OK [16:55:55]MH_I2C_Read... [16:55:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:56]Read from MH i2c: E2 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: E2 62 00 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: E2 62 00 81 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C9 2A 01 00 0E 04 04 00 72 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 D8 [16:55: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C9 2A 01 00 0E 04 04 00 72 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 [16:55:56]wFMCommunicate OK [16:55:56]SAM_PROTO_GetFieldsCounters done [16:55:56]requested_item shift.num is exist - process it [16:55:56]requested_item shift.opened is exist - process it [16:55:56]req_shift_opened [16:55:56]FM_GetShiftState [16:55:56]SAM_PROTO_GetShiftState [16:55:56]wFMCommunicate request_size=4 [16:55:56]MH_SAM_APDU [16:55:56]CAPDU: 80 13 01 00 [16:55:56]Write to MH i2c: E2 08 00 82 0C 80 13 01 00 00 00 00 00 0B [16:55:56]Write i2c OK [16:55:56]MH_I2C_Read... [16:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:56]Read from MH i2c: E2 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: E2 0E 00 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: E2 0E 00 82 0C 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 F0 [16:55:56]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:55:56]wFMCommunicate OK [16:55:56]SAM_PROTO_GetShiftState done [16:55:56]FM_GetShiftState done [16:55:56]req_shift_opened done [16:55:56]requested_item shift.open_date is exist - process it [16:55:56]req_shift_open_date [16:55:56]req_shift_open_date done [16:55:56]produce_requested_data done [16:55:56]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76489,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [16:55:56]process_action_free close_receipt [16:55:56]json_value_free [16:55:56]json_value_free done [16:55:56]process_json_proto returns [16:55:56]Send response to host [16:55:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76489,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [16:55:56]free response buf [16:55:56]execute_script done [16:55:56]execute_script returns [16:55:56]free content buf [16:55:56]Sock 9.Close socket [16:55:56]Sock 9.Thread stoped [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]accept exits with 7 [16:59:15]New connection [16:59:15]New thread 3066936676 created [16:59:15]Thread 3067080036 joined [16:59:15]Waiting for new connection... [16:59:15] Sock 7.Parse request [16:59:15]Sock 7.Check first char [16:59:15]Sock 7.First char is OK [16:59:15]request: POST /json_proto HTTP/1.0 [16:59:15]Method: POST [16:59:15]URL: /json_proto [16:59:15]Method is POST - this is cgi request [16:59:15]url: /json_proto [16:59:15]query_string will be loaded in cgi processing [16:59:15]execute_cgi json_proto POST (null) [16:59:15]execute_cgi path=json_proto method=POST [16:59:15]POST find Content-Length [16:59:15]Host: 172.17.62.5:8080 [16:59:15]Content-Length: 990 [16:59:15]Content-Type: application/json [16:59:15] [16:59:15]POST finish read [16:59:15]Found Content-Length = 990 [16:59:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:59:15]execute_script... [16:59: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)190967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:59:15]POST & json_proto [16:59:15]process_json_proto [16:59:15]json parsed OK: [16:59:15]protocol is kg_v1.0 [16:59:15]action value=close_receipt [16:59:15]process_action close_receipt [16:59:15]cmd_close_receipt [16:59:15]MH_GetDate [16:59:15]Write to MH i2c: F0 00 00 83 0C 7E [16:59:15]Write i2c OK [16:59:15]MH_I2C_Read... [16:59:15]Read from MH i2c: F0 [16:59:15]MH_I2C_Read... [16:59:15]Read from MH i2c: F0 09 00 [16:59:15]MH_I2C_Read... [16:59:15]Read from MH i2c: F0 09 00 83 0C 00 E4 A2 22 66 F4 E9 65 64 3B [16:59:15]GetLastDocTimeStamp 1713545754 [16:59:15]current date 1713545956 [16:59:15]FM_GetShiftState [16:59:15]SAM_PROTO_GetShiftState [16:59:15]wFMCommunicate request_size=4 [16:59:15]MH_SAM_APDU [16:59:15]CAPDU: 80 13 01 00 [16:59:15]Write to MH i2c: E2 08 00 84 0C 80 13 01 00 00 00 00 00 0D [16:59:15]Write i2c OK [16:59:15]MH_I2C_Read... [16:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:15]Read from MH i2c: E2 [16:59:15]MH_I2C_Read... [16:59:15]Read from MH i2c: E2 0E 00 [16:59:15]MH_I2C_Read... [16:59:15]Read from MH i2c: E2 0E 00 84 0C 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 F2 [16:59:15]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:59:15]wFMCommunicate OK [16:59:15]SAM_PROTO_GetShiftState done [16:59:15]FM_GetShiftState done [16:59:15]opened in 1713486233 [16:59:15]opened+sec_in_day 1713572633 [16:59:15]quantity*price = 100013 [16:59:15]sum+1 = 100015 [16:59:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 110 19.04.2024 16:59 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 31.55 сом ФМ: 0000000000874652 ФД: 76490 ФПД: 100994824110505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T165916&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76490&fm=100994824110505&tin=02508201610067®Number=0000000000091573&sum=100000 [16:59:16]StoreToDocumentArchive [16:59:16]shift 370 fd 76490 [16:59:16]save to /storage/0370/doc_00076490 [16:59:16]save last doc name /storage/0370/doc_00076490 to /storage/kkm_last_doc_name [16:59:16]save OK [16:59:16]Clear old archive folders... [16:59:16]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:59:16]tlvbuf is 009BB690 [16:59:16]SAM_PROTO_ClearQueue [16:59:16]wFMCommunicate request_size=4 [16:59:16]MH_SAM_APDU [16:59:16]CAPDU: 80 09 00 00 [16:59:16]Write to MH i2c: E2 08 00 91 0C 80 09 00 00 00 00 00 00 0F [16:59:16]Write i2c OK [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: E2 [16:59:16]MH_I2C_Read... [16:59:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:16]Read from MH i2c: E2 03 00 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: E2 03 00 91 0C 00 90 00 11 [16:59:16]RAPDU: 90 00 [16:59:16]wFMCommunicate OK [16:59:16]SAM_PROTO_ClearQueue done [16:59:16]KKMCreateOFDPacket [16:59:16]OFDProtocolAddRootSTLVToBuf [16:59:16]FM_MakeSignedData [16:59:16]FM_MakeSignedData [16:59:16]SAM_PROTO_SignData [16:59:16]wFMCommunicate request_size=4 [16:59:16]MH_SAM_APDU [16:59:16]CAPDU: 80 0D 01 02 [16:59:16]Write to MH i2c: E2 08 00 92 0C 80 0D 01 02 00 00 00 00 17 [16:59:16]Write i2c OK [16:59:16]MH_I2C_Read... [16:59:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:16]Read from MH i2c: E2 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: E2 03 00 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: E2 03 00 92 0C 00 90 00 12 [16:59:16]RAPDU: 90 00 [16:59:16]wFMCommunicate OK [16:59:16]wFMCommunicate request_size=255 [16:59:16]MH_SAM_APDU [16:59:16]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 E4 A2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CA 2A 01 00 35 04 06 00 5B DA [16:59:16]Write to MH i2c: E2 02 01 93 0C 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 E4 A2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CA 2A 01 00 35 04 06 00 5B DA 00 00 A9 [16:59:16]Write i2c OK [16:59:16]MH_I2C_Read... [16:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:16]Read from MH i2c: E2 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: E2 03 00 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: E2 03 00 93 0C 00 90 00 13 [16:59:16]RAPDU: 90 00 [16:59:16]wFMCommunicate OK [16:59:16]wFMCommunicate request_size=9 [16:59:16]MH_SAM_APDU [16:59:16]CAPDU: 80 0D 02 02 04 B0 9D 81 A9 [16:59:16]Write to MH i2c: E2 0C 00 94 0C 80 0D 02 02 04 00 B0 9D 81 A9 00 00 99 [16:59:16]Write i2c OK [16:59:16]MH_I2C_Read... [16:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:16]Read from MH i2c: E2 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: E2 03 00 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: E2 03 00 94 0C 00 90 00 14 [16:59:16]RAPDU: 90 00 [16:59:16]wFMCommunicate OK [16:59:16]wFMCommunicate request_size=4 [16:59:16]MH_SAM_APDU [16:59:16]CAPDU: 80 0D 03 02 [16:59:16]Write to MH i2c: E2 08 00 95 0C 80 0D 03 02 00 00 00 00 1C [16:59:16]Write i2c OK [16:59:16]MH_I2C_Read... [16:59:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:16]Read from MH i2c: E2 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: E2 0B 00 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: E2 0B 00 95 0C 00 6D 88 B4 19 B0 E8 55 32 90 00 FE [16:59:16]RAPDU: 6D 88 B4 19 B0 E8 55 32 90 00 [16:59:16]wFMCommunicate OK [16:59:16]SAM_PROTO_SignData done [16:59:16]FM_MakeSignedData done [16:59:16]CreateOFDProtocolMessage [16:59:16]wFMCommunicate request_size=4 [16:59:16]MH_SAM_APDU [16:59:16]CAPDU: 80 11 00 00 [16:59:16]Write to MH i2c: E2 08 00 96 0C 80 11 00 00 00 00 00 00 1C [16:59:16]Write i2c OK [16:59:16]MH_I2C_Read... [16:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:16]Read from MH i2c: E2 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: E2 17 00 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: E2 17 00 96 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6F [16:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:59:16]wFMCommunicate OK [16:59:16]CreateOFDProtocolMessage done [16:59:16]OFDSenderStorePacket 76490 [16:59:16]StoreOFDPacket docnum=76490 [16:59:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 7D 54 06 01 0C 15 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 E4 A2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CA 2A 01 00 35 04 06 00 5B DA B0 9D 81 A9 6D 88 B4 19 B0 E8 55 32 [16:59:16]CheckFolder [16:59:16]dirname=/storage/ofd_packets [16:59:16]CheckFolder done [16:59:16]ProducePacketName [16:59:16]name=ofd_packets/00076490 [16:59:16]NVStorageSaveData ofd_packets/00076490 [16:59:16]File name is /storage/ofd_packets/00076490 [16:59:16]Write 300 bytes [16:59:16]NVStorageSaveData done [16:59:16]OFDSenderStorePacket done [16:59:16]KKMCreateOFDPacket done [16:59:16]NVStorageSaveData kkm_last_timestamp [16:59:16]File name is /storage/kkm_last_timestamp [16:59:16]Write 4 bytes [16:59:16]NVStorageSaveData done [16:59:16]ExternCall_PrintAddStr [16:59:16]wPrintStart [16:59:16]Write to MH i2c: 01 00 00 97 0C A3 [16:59:16]Write i2c OK [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: 01 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: 01 07 00 [16:59:16]MH_I2C_Read... [16:59:16]Read from MH i2c: 01 07 00 97 0C 00 00 00 00 00 FF 0F B8 [16:59:16]RasterBufferAndPrint [16:59:16]line Счет N : (1)190967 [16:59:16]line ИНН: 02508201610067 [16:59:16]line Контрольно-Кассовый Чек [16:59:16]line ПРОДАЖА [16:59:16]line ТРК (МРК, ГНК) : 71 [16:59:16]line Товар: 2711190000 [16:59:16]line ГАЗ-К-5 [16:59:16]line 31.550 * 31.70 [16:59:16]line = 1000.14 [16:59:16]line НДС 12% НСП 1% [16:59:16]line > о реализуемом товаре [16:59:16]line ОКРУГЛЕНИЕ: -0.14 [16:59:16]line ИТОГО: 1000.00 [16:59:16]line Внесено: 1000.00 [16:59:16]line СДАЧА: 0.00 [16:59:16]line НСП 1% : 8.85 [16:59:16]line НДС 12% : 106.21 [16:59:16]line Наличными: 1000.00 [16:59:16]line Безнал.: 0.00 [16:59:16]line Место: АЗС № 106 "Партнер Нефть" [16:59:16]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [16:59:16]line СНО: Общий режим [16:59:16]line Чек 110 19.04.2024 16:59 [16:59:16]line Смена: 370 ФФД: 1.0 [16:59:16]line ЗНМ: 0300000141 [16:59:16]line РНМ: 0000000000091573 [16:59:16]line Версия ККМ: 001 [16:59:16]line [16:59:16]line Дисконтная программа [16:59:16]line СУГ [16:59:16]line номер 106 [16:59:16]line сэкономлено 31.55 сом [16:59:16]line ФМ: 0000000000874652 [16:59:16]line ФД: 76490 [16:59:16]line ФПД: 100994824110505 [16:59:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T165916&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76490&fm=100994824110505&tin=02508201610067®Number=0000000000091573&sum=100000 [16:59:17]OFD Sender: Processing packet 76490 [packets to send 128, broken 127] [16:59:17]ProducePacketName [16:59:17]name=ofd_packets/00076490 [16:59:17]OFD Sender: To server: pG, [16:59:17]CommunicateWithHost lk.salyk.kg:30040 [16:59:17]ConnectInit lk.salyk.kg [16:59:17]written 0, free lines is 4095 [16:59:17]Connected sock=10 [16:59:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 7D 54 06 01 0C 15 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 E4 A2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CA 2A 01 00 35 04 06 00 5B DA B0 9D 81 A9 6D 88 B4 19 B0 E8 55 32 [16:59:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 25 1F 47 00 43 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 34 36 35 32 10 04 04 00 CA 2A 01 00 F4 03 04 00 6F 4A 22 66 B6 04 01 00 00 4E 83 CB EF 7C 8D 50 51 [16:59:17]CommunicateWithHost err = 0 [16:59:17]CheckOFDResponse [16:59:17]1017 (14) - 77093643461234 [16:59:17]1041 (16) - 0000000000874652 [16:59:17]1040 (4) - 76490 [16:59:17]1012 (4) - 19.04.2024 10:41 [16:59:17]1206 (1) - 0 [16:59:17]OFD Sender: Remove packet 76490 [16:59:17]ProducePacketName [16:59:17]name=ofd_packets/00076490 [16:59:17]NVStorageDeleteData [16:59:17]Write to MH i2c: 01 00 00 C6 0C D2 [16:59:17]Write i2c OK [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: 01 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: 01 07 00 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: 01 07 00 C6 0C 00 00 00 00 00 A1 0C 86 [16:59:17]RasterBufferAndPrint [16:59:17]line [16:59:17]line [16:59:17]line [16:59:17]line [16:59:17]line [16:59:17]written 0, free lines is 3239 [16:59:17]MH_Cut [16:59:17]Write to MH i2c: D1 01 00 CD 0C 01 AB [16:59:17]Write i2c OK [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: D1 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: D1 01 00 [16:59:17]MH_I2C_Read... [16:59:17]Read from MH i2c: D1 01 00 CD 0C 00 AA [16:59:17]Write to MH i2c: 01 00 00 CE 0C DA [16:59:17]Write i2c OK [16:59:17]MH_I2C_Read... [16:59:17]OFD Sender: No OFD packet to send [16:59:18]*** Cut start [16:59:18]*** Partial cut [16:59:18]*** CUTSNS_PIN = 1 [16:59:18]*** CUTSNS_PIN = 0 [16:59:18]*** Brake cut motor [16:59:19]Read from MH i2c: 01 [16:59:19]MH_I2C_Read... [16:59:19]*** Stop cut motor [16:59:19]*** Cut end [16:59:19]Read from MH i2c: 01 07 00 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: 01 07 00 CE 0C 00 00 00 00 00 FF 0F EF [16:59:19]process_action close_receipt done [16:59:19]requested_data is exist [16:59:19]produce_requested_data [16:59:19]requested_item fm.sn is exist - process it [16:59:19]wFMCommunicate request_size=4 [16:59:19]MH_SAM_APDU [16:59:19]CAPDU: 80 11 00 00 [16:59:19]Write to MH i2c: E2 08 00 CF 0C 80 11 00 00 00 00 00 00 55 [16:59:19]Write i2c OK [16:59:19]MH_I2C_Read... [16:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:19]Read from MH i2c: E2 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 17 00 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 17 00 CF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A8 [16:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [16:59:19]wFMCommunicate OK [16:59:19]requested_item fd.num is exist - process it [16:59:19]SAM_PROTO_GetFieldsCounters [16:59:19]wFMCommunicate request_size=4 [16:59:19]MH_SAM_APDU [16:59:19]CAPDU: 80 13 00 00 [16:59:19]Write to MH i2c: E2 08 00 D0 0C 80 13 00 00 00 00 00 00 58 [16:59:19]Write i2c OK [16:59:19]MH_I2C_Read... [16:59:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:19]Read from MH i2c: E2 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 62 00 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 62 00 D0 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CA 2A 01 00 0E 04 04 00 72 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 2B [16:59:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CA 2A 01 00 0E 04 04 00 72 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 [16:59:19]wFMCommunicate OK [16:59:19]SAM_PROTO_GetFieldsCounters done [16:59:19]requested_item shift.num is exist - process it [16:59:19]requested_item shift.opened is exist - process it [16:59:19]req_shift_opened [16:59:19]FM_GetShiftState [16:59:19]SAM_PROTO_GetShiftState [16:59:19]wFMCommunicate request_size=4 [16:59:19]MH_SAM_APDU [16:59:19]CAPDU: 80 13 01 00 [16:59:19]Write to MH i2c: E2 08 00 D1 0C 80 13 01 00 00 00 00 00 5A [16:59:19]Write i2c OK [16:59:19]MH_I2C_Read... [16:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:19]Read from MH i2c: E2 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 0E 00 [16:59:19]MH_I2C_Read... [16:59:19]Read from MH i2c: E2 0E 00 D1 0C 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 3F [16:59:19]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [16:59:19]wFMCommunicate OK [16:59:19]SAM_PROTO_GetShiftState done [16:59:19]FM_GetShiftState done [16:59:19]req_shift_opened done [16:59:19]requested_item shift.open_date is exist - process it [16:59:19]req_shift_open_date [16:59:19]req_shift_open_date done [16:59:19]produce_requested_data done [16:59:19]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76490,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [16:59:19]process_action_free close_receipt [16:59:19]json_value_free [16:59:19]json_value_free done [16:59:19]process_json_proto returns [16:59:19]Send response to host [16:59:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76490,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [16:59:19]free response buf [16:59:19]execute_script done [16:59:19]execute_script returns [16:59:19]free content buf [16:59:19]Sock 7.Close socket [16:59:19]Sock 7.Thread stoped [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:08]OFD Sender: No OFD packet to send [17:02:13]OFD Sender: No OFD packet to send [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03: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:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:43]OFD Sender: No OFD packet to send [17:04:48]OFD Sender: No OFD packet to send [17:04:53]OFD Sender: No OFD packet to send [17:04:58]OFD Sender: No OFD packet to send [17:05:03]OFD Sender: No OFD packet to send [17:05:08]OFD Sender: No OFD packet to send [17:05:13]OFD Sender: No OFD packet to send [17:05:18]OFD Sender: No OFD packet to send [17:05:23]OFD Sender: No OFD packet to send [17:05:28]OFD Sender: No OFD packet to send [17:05:33]OFD Sender: No OFD packet to send [17:05:38]OFD Sender: No OFD packet to send [17:05:43]OFD Sender: No OFD packet to send [17:05:48]OFD Sender: No OFD packet to send [17:05:53]OFD Sender: No OFD packet to send [17:05:58]OFD Sender: No OFD packet to send [17:06:03]OFD Sender: No OFD packet to send [17:06:08]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:53]accept exits with 9 [17:07:53]New connection [17:07:53]New thread 3067080036 created [17:07:53]Thread 3066936676 joined [17:07:53]Waiting for new connection... [17:07:53] Sock 9.Parse request [17:07:53]Sock 9.Check first char [17:07:53]Sock 9.First char is OK [17:07:53]request: POST /json_proto HTTP/1.0 [17:07:53]Method: POST [17:07:53]URL: /json_proto [17:07:53]Method is POST - this is cgi request [17:07:53]url: /json_proto [17:07:53]query_string will be loaded in cgi processing [17:07:53]execute_cgi json_proto POST (null) [17:07:53]execute_cgi path=json_proto method=POST [17:07:53]POST find Content-Length [17:07:53]Host: 172.17.62.5:8080 [17:07:53]Content-Length: 978 [17:07:53]Content-Type: application/json [17:07:53] [17:07:53]POST finish read [17:07:53]Found Content-Length = 978 [17:07:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 51.740, "sum" : 3720.11, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 51.74 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 3720.00, "payments": [ { "type": 0, "sum" : 3720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:53]execute_script... [17:07: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)190968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 51.740, "sum" : 3720.11, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 51.74 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 3720.00, "payments": [ { "type": 0, "sum" : 3720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:53]POST & json_proto [17:07:53]process_json_proto [17:07:53]json parsed OK: [17:07:53]protocol is kg_v1.0 [17:07:53]action value=close_receipt [17:07:53]process_action close_receipt [17:07:53]cmd_close_receipt [17:07:53]MH_GetDate [17:07:53]Write to MH i2c: F0 00 00 D2 0C CD [17:07:53]Write i2c OK [17:07:53]MH_I2C_Read... [17:07:53]Read from MH i2c: F0 [17:07:53]MH_I2C_Read... [17:07:53]Read from MH i2c: F0 09 00 [17:07:53]MH_I2C_Read... [17:07:53]Read from MH i2c: F0 09 00 D2 0C 00 EB A4 22 66 F4 E9 65 64 93 [17:07:53]GetLastDocTimeStamp 1713545956 [17:07:53]current date 1713546475 [17:07:53]FM_GetShiftState [17:07:53]SAM_PROTO_GetShiftState [17:07:53]wFMCommunicate request_size=4 [17:07:53]MH_SAM_APDU [17:07:53]CAPDU: 80 13 01 00 [17:07:53]Write to MH i2c: E2 08 00 D3 0C 80 13 01 00 00 00 00 00 5C [17:07:53]Write i2c OK [17:07:53]MH_I2C_Read... [17:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:53]Read from MH i2c: E2 [17:07:53]MH_I2C_Read... [17:07:53]Read from MH i2c: E2 0E 00 [17:07:53]MH_I2C_Read... [17:07:53]Read from MH i2c: E2 0E 00 D3 0C 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 41 [17:07:53]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:07:54]wFMCommunicate OK [17:07:54]SAM_PROTO_GetShiftState done [17:07:54]FM_GetShiftState done [17:07:54]opened in 1713486233 [17:07:54]opened+sec_in_day 1713572633 [17:07:54]quantity*price = 372010 [17:07:54]sum+1 = 372012 [17:07:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 3720.00 Внесено: 5000.00 СДАЧА: 1280.00 НСП 1% : 32.92 НДС 12% : 395.06 Наличными: 3720.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 111 19.04.2024 17:07 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 51.74 сом ФМ: 0000000000874652 ФД: 76491 ФПД: 125019805100815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T170755&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76491&fm=125019805100815&tin=02508201610067®Number=0000000000091573&sum=372000 [17:07:54]StoreToDocumentArchive [17:07:54]shift 370 fd 76491 [17:07:54]save to /storage/0370/doc_00076491 [17:07:54]save last doc name /storage/0370/doc_00076491 to /storage/kkm_last_doc_name [17:07:54]save OK [17:07:54]Clear old archive folders... [17:07:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:07:54]tlvbuf is 009BB8C0 [17:07:54]SAM_PROTO_ClearQueue [17:07:54]wFMCommunicate request_size=4 [17:07:54]MH_SAM_APDU [17:07:54]CAPDU: 80 09 00 00 [17:07:54]Write to MH i2c: E2 08 00 E0 0C 80 09 00 00 00 00 00 00 5E [17:07:54]Write i2c OK [17:07:54]MH_I2C_Read... [17:07:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:54]Read from MH i2c: E2 [17:07:54]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 03 00 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 03 00 E0 0C 00 90 00 60 [17:07:55]RAPDU: 90 00 [17:07:55]wFMCommunicate OK [17:07:55]SAM_PROTO_ClearQueue done [17:07:55]KKMCreateOFDPacket [17:07:55]OFDProtocolAddRootSTLVToBuf [17:07:55]FM_MakeSignedData [17:07:55]FM_MakeSignedData [17:07:55]SAM_PROTO_SignData [17:07:55]wFMCommunicate request_size=4 [17:07:55]MH_SAM_APDU [17:07:55]CAPDU: 80 0D 01 02 [17:07:55]Write to MH i2c: E2 08 00 E1 0C 80 0D 01 02 00 00 00 00 66 [17:07:55]Write i2c OK [17:07:55]MH_I2C_Read... [17:07:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:55]Read from MH i2c: E2 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 03 00 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 03 00 E1 0C 00 90 00 61 [17:07:55]RAPDU: 90 00 [17:07:55]wFMCommunicate OK [17:07:55]wFMCommunicate request_size=255 [17:07:55]MH_SAM_APDU [17:07: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 1C CA 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2B AD 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 AD 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 9A 00 00 00 00 07 04 06 00 20 AD 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 EB A4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CB 2A 01 00 35 04 06 00 71 B4 71 12 [17:07:55]Write to MH i2c: E2 02 01 E2 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 1C CA 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2B AD 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 AD 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 9A 00 00 00 00 07 04 06 00 20 AD 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 EB A4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CB 2A 01 00 35 04 06 00 71 B4 71 12 00 00 C7 [17:07:55]Write i2c OK [17:07:55]MH_I2C_Read... [17:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:55]Read from MH i2c: E2 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 03 00 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 03 00 E2 0C 00 90 00 62 [17:07:55]RAPDU: 90 00 [17:07:55]wFMCommunicate OK [17:07:55]wFMCommunicate request_size=7 [17:07:55]MH_SAM_APDU [17:07:55]CAPDU: 80 0D 02 02 02 AB 0F [17:07:55]Write to MH i2c: E2 0A 00 E3 0C 80 0D 02 02 02 00 AB 0F 00 00 27 [17:07:55]Write i2c OK [17:07:55]MH_I2C_Read... [17:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:55]Read from MH i2c: E2 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 03 00 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 03 00 E3 0C 00 90 00 63 [17:07:55]RAPDU: 90 00 [17:07:55]wFMCommunicate OK [17:07:55]wFMCommunicate request_size=4 [17:07:55]MH_SAM_APDU [17:07:55]CAPDU: 80 0D 03 02 [17:07:55]Write to MH i2c: E2 08 00 E4 0C 80 0D 03 02 00 00 00 00 6B [17:07:55]Write i2c OK [17:07:55]MH_I2C_Read... [17:07:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:55]Read from MH i2c: E2 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 0B 00 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 0B 00 E4 0C 00 99 C4 D7 5D AD D6 3C D0 90 00 8C [17:07:55]RAPDU: 99 C4 D7 5D AD D6 3C D0 90 00 [17:07:55]wFMCommunicate OK [17:07:55]SAM_PROTO_SignData done [17:07:55]FM_MakeSignedData done [17:07:55]CreateOFDProtocolMessage [17:07:55]wFMCommunicate request_size=4 [17:07:55]MH_SAM_APDU [17:07:55]CAPDU: 80 11 00 00 [17:07:55]Write to MH i2c: E2 08 00 E5 0C 80 11 00 00 00 00 00 00 6B [17:07:55]Write i2c OK [17:07:55]MH_I2C_Read... [17:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:55]Read from MH i2c: E2 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 17 00 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: E2 17 00 E5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BE [17:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:07:55]wFMCommunicate OK [17:07:55]CreateOFDProtocolMessage done [17:07:55]OFDSenderStorePacket 76491 [17:07:55]StoreOFDPacket docnum=76491 [17:07:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 09 A9 04 01 AB FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C CA 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2B AD 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 AD 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 9A 00 00 00 00 07 04 06 00 20 AD 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 EB A4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CB 2A 01 00 35 04 06 00 71 B4 71 12 AB 0F 99 C4 D7 5D AD D6 3C D0 [17:07:55]CheckFolder [17:07:55]dirname=/storage/ofd_packets [17:07:55]CheckFolder done [17:07:55]ProducePacketName [17:07:55]name=ofd_packets/00076491 [17:07:55]NVStorageSaveData ofd_packets/00076491 [17:07:55]File name is /storage/ofd_packets/00076491 [17:07:55]Write 298 bytes [17:07:55]NVStorageSaveData done [17:07:55]OFDSenderStorePacket done [17:07:55]KKMCreateOFDPacket done [17:07:55]NVStorageSaveData kkm_last_timestamp [17:07:55]File name is /storage/kkm_last_timestamp [17:07:55]Write 4 bytes [17:07:55]NVStorageSaveData done [17:07:55]ExternCall_PrintAddStr [17:07:55]wPrintStart [17:07:55]Write to MH i2c: 01 00 00 E6 0C F2 [17:07:55]Write i2c OK [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: 01 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: 01 07 00 [17:07:55]MH_I2C_Read... [17:07:55]Read from MH i2c: 01 07 00 E6 0C 00 00 00 00 00 FF 0F 07 [17:07:55]RasterBufferAndPrint [17:07:55]line Счет N : (1)190968 [17:07:55]line ИНН: 02508201610067 [17:07:55]line Контрольно-Кассовый Чек [17:07:55]line ПРОДАЖА [17:07:55]line ТРК (МРК, ГНК) : 23 [17:07:55]line Товар: 2710194210 [17:07:55]line ДТ-К-5 [17:07:55]line 51.740 * 71.90 [17:07:55]line = 3720.11 [17:07:55]line НДС 12% НСП 1% [17:07:55]line > о реализуемом товаре [17:07:55]line ОКРУГЛЕНИЕ: -0.11 [17:07:55]line ИТОГО: 3720.00 [17:07:55]line Внесено: 5000.00 [17:07:55]line СДАЧА: 1280.00 [17:07:55]line НСП 1% : 32.92 [17:07:55]line НДС 12% : 395.06 [17:07:55]line Наличными: 3720.00 [17:07:55]line Безнал.: 0.00 [17:07:55]line Место: АЗС № 106 "Партнер Нефть" [17:07:55]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:07:55]line СНО: Общий режим [17:07:55]line Чек 111 19.04.2024 17:07 [17:07:55]line Смена: 370 ФФД: 1.0 [17:07:55]line ЗНМ: 0300000141 [17:07:55]line РНМ: 0000000000091573 [17:07:55]line Версия ККМ: 001 [17:07:55]line [17:07:55]line Дисконтная программа [17:07:55]line ДТ [17:07:55]line номер 106 [17:07:55]line сэкономлено 51.74 сом [17:07:55]line ФМ: 0000000000874652 [17:07:55]line ФД: 76491 [17:07:55]line ФПД: 125019805100815 [17:07:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T170755&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76491&fm=125019805100815&tin=02508201610067®Number=0000000000091573&sum=372000 [17:07:55]OFD Sender: Processing packet 76491 [packets to send 128, broken 127] [17:07:55]ProducePacketName [17:07:55]name=ofd_packets/00076491 [17:07:55]OFD Sender: To server: pG, [17:07:55]CommunicateWithHost lk.salyk.kg:30040 [17:07:55]ConnectInit lk.salyk.kg [17:07:55]written 0, free lines is 4095 [17:07:56]Write to MH i2c: 01 00 00 15 0D 22 [17:07:56]Write i2c OK [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: 01 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: 01 07 00 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: 01 07 00 15 0D 00 00 00 00 00 82 0C B7 [17:07:56]RasterBufferAndPrint [17:07:56]line [17:07:56]line [17:07:56]line [17:07:56]line [17:07:56]line [17:07:56]written 0, free lines is 3208 [17:07:56]MH_Cut [17:07:56]Write to MH i2c: D1 01 00 1C 0D 01 FB [17:07:56]Write i2c OK [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: D1 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: D1 01 00 [17:07:56]MH_I2C_Read... [17:07:56]Read from MH i2c: D1 01 00 1C 0D 00 FA [17:07:56]Write to MH i2c: 01 00 00 1D 0D 2A [17:07:56]Write i2c OK [17:07:56]MH_I2C_Read... [17:07:57]*** Cut start [17:07:57]*** Partial cut [17:07:57]*** CUTSNS_PIN = 1 [17:07:57]*** CUTSNS_PIN = 0 [17:07:57]*** Brake cut motor [17:07:57]Read from MH i2c: 01 [17:07:57]MH_I2C_Read... [17:07:57]*** Stop cut motor [17:07:57]*** Cut end [17:07:57]Read from MH i2c: 01 07 00 [17:07:57]MH_I2C_Read... [17:07:57]Read from MH i2c: 01 07 00 1D 0D 00 00 00 00 00 FF 0F 3F [17:07:57]process_action close_receipt done [17:07:57]requested_data is exist [17:07:57]produce_requested_data [17:07:57]requested_item fm.sn is exist - process it [17:07:57]wFMCommunicate request_size=4 [17:07:57]MH_SAM_APDU [17:07:57]CAPDU: 80 11 00 00 [17:07:57]Write to MH i2c: E2 08 00 1E 0D 80 11 00 00 00 00 00 00 A5 [17:07:57]Write i2c OK [17:07:57]MH_I2C_Read... [17:07:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:57]Read from MH i2c: E2 [17:07:57]MH_I2C_Read... [17:07:57]Read from MH i2c: E2 17 00 [17:07:57]MH_I2C_Read... [17:07:57]Read from MH i2c: E2 17 00 1E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F8 [17:07:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:07:57]wFMCommunicate OK [17:07:57]requested_item fd.num is exist - process it [17:07:57]SAM_PROTO_GetFieldsCounters [17:07:57]wFMCommunicate request_size=4 [17:07:57]MH_SAM_APDU [17:07:57]CAPDU: 80 13 00 00 [17:07:57]Write to MH i2c: E2 08 00 1F 0D 80 13 00 00 00 00 00 00 A8 [17:07:57]Write i2c OK [17:07:57]MH_I2C_Read... [17:07:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:57]Read from MH i2c: E2 [17:07:57]MH_I2C_Read... [17:07:57]Read from MH i2c: E2 62 00 [17:07:57]MH_I2C_Read... [17:07:57]Read from MH i2c: E2 62 00 1F 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CB 2A 01 00 0E 04 04 00 72 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 7F [17:07:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CB 2A 01 00 0E 04 04 00 72 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 [17:07:57]wFMCommunicate OK [17:07:57]SAM_PROTO_GetFieldsCounters done [17:07:57]requested_item shift.num is exist - process it [17:07:57]requested_item shift.opened is exist - process it [17:07:57]req_shift_opened [17:07:57]FM_GetShiftState [17:07:57]SAM_PROTO_GetShiftState [17:07:57]wFMCommunicate request_size=4 [17:07:57]MH_SAM_APDU [17:07:57]CAPDU: 80 13 01 00 [17:07:57]Write to MH i2c: E2 08 00 20 0D 80 13 01 00 00 00 00 00 AA [17:07:57]Write i2c OK [17:07:57]MH_I2C_Read... [17:07:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:57]Read from MH i2c: E2 [17:07:57]MH_I2C_Read... [17:07:57]Read from MH i2c: E2 0E 00 [17:07:57]MH_I2C_Read... [17:07:57]Read from MH i2c: E2 0E 00 20 0D 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 8F [17:07:57]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:07:57]wFMCommunicate OK [17:07:57]SAM_PROTO_GetShiftState done [17:07:57]FM_GetShiftState done [17:07:57]req_shift_opened done [17:07:57]requested_item shift.open_date is exist - process it [17:07:57]req_shift_open_date [17:07:57]req_shift_open_date done [17:07:57]produce_requested_data done [17:07:57]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76491,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [17:07:57]process_action_free close_receipt [17:07:57]json_value_free [17:07:57]json_value_free done [17:07:57]process_json_proto returns [17:07:57]Send response to host [17:07:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76491,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [17:07:57]free response buf [17:07:57]execute_script done [17:07:57]execute_script returns [17:07:57]free content buf [17:07:57]Sock 9.Close socket [17:07:57]Sock 9.Thread stoped [17:08:00]ConnectInit Can't take IP for lk.salyk.kg [17:08:00]CommunicateWithHost connect error [17:08:00]CommunicateWithHost err = -1 [17:08:00]OFD Sender: Server communicate error [17:08:05]OFD Sender: Processing packet 76491 [packets to send 128, broken 127] [17:08:05]ProducePacketName [17:08:05]name=ofd_packets/00076491 [17:08:05]OFD Sender: To server: pG, [17:08:05]CommunicateWithHost lk.salyk.kg:30040 [17:08:05]ConnectInit lk.salyk.kg [17:08:06]Connected sock=9 [17: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 34 36 35 32 0C 01 00 00 09 A9 04 01 AB FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C CA 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2B AD 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 AD 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 9A 00 00 00 00 07 04 06 00 20 AD 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 EB A4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CB 2A 01 00 35 04 06 00 71 B4 71 12 AB 0F 99 C4 D7 5D AD D6 3C D0 [17:08:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 2B ED 47 00 0B 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 34 36 35 32 10 04 04 00 CB 2A 01 00 F4 03 04 00 80 4C 22 66 B6 04 01 00 00 EC 7A 32 27 65 F0 6A AE [17:08:06]CommunicateWithHost err = 0 [17:08:06]CheckOFDResponse [17:08:06]1017 (14) - 77093643461234 [17:08:06]1041 (16) - 0000000000874652 [17:08:06]1040 (4) - 76491 [17:08:06]1012 (4) - 19.04.2024 10:50 [17:08:06]1206 (1) - 0 [17:08:06]OFD Sender: Remove packet 76491 [17:08:06]ProducePacketName [17:08:06]name=ofd_packets/00076491 [17:08:06]NVStorageDeleteData [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:16]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:43]accept exits with 7 [17:08:43]New connection [17:08:43]New thread 3066936676 created [17:08:43]Thread 3067080036 joined [17:08:43]Waiting for new connection... [17:08:43] Sock 7.Parse request [17:08:43]Sock 7.Check first char [17:08:43]Sock 7.First char is OK [17:08:43]request: POST /json_proto HTTP/1.0 [17:08:43]Method: POST [17:08:43]URL: /json_proto [17:08:43]Method is POST - this is cgi request [17:08:43]url: /json_proto [17:08:43]query_string will be loaded in cgi processing [17:08:43]execute_cgi json_proto POST (null) [17:08:43]execute_cgi path=json_proto method=POST [17:08:43]POST find Content-Length [17:08:43]Host: 172.17.62.5:8080 [17:08:43]Content-Length: 808 [17:08:43]Content-Type: application/json [17:08:43] [17:08:43]POST finish read [17:08:43]Found Content-Length = 808 [17:08:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:43]execute_script... [17:08: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)190969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:43]POST & json_proto [17:08:43]process_json_proto [17:08:43]json parsed OK: [17:08:43]protocol is kg_v1.0 [17:08:43]action value=close_receipt [17:08:43]process_action close_receipt [17:08:43]cmd_close_receipt [17:08:43]MH_GetDate [17:08:43]Write to MH i2c: F0 00 00 21 0D 1D [17:08:43]Write i2c OK [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: F0 [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: F0 09 00 [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: F0 09 00 21 0D 00 1D A5 22 66 F4 E9 65 64 16 [17:08:43]GetLastDocTimeStamp 1713546475 [17:08:43]current date 1713546525 [17:08:43]FM_GetShiftState [17:08:43]SAM_PROTO_GetShiftState [17:08:43]wFMCommunicate request_size=4 [17:08:43]MH_SAM_APDU [17:08:43]CAPDU: 80 13 01 00 [17:08:43]Write to MH i2c: E2 08 00 22 0D 80 13 01 00 00 00 00 00 AC [17:08:43]Write i2c OK [17:08:43]MH_I2C_Read... [17:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:43]Read from MH i2c: E2 [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: E2 0E 00 [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: E2 0E 00 22 0D 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 91 [17:08:43]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:08:43]wFMCommunicate OK [17:08:43]SAM_PROTO_GetShiftState done [17:08:43]FM_GetShiftState done [17:08:43]opened in 1713486233 [17:08:43]opened+sec_in_day 1713572633 [17:08:43]quantity*price = 100013 [17:08:43]sum+1 = 100014 [17:08:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.13 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.13 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 112 19.04.2024 17:08 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76492 ФПД: 46256957606579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T170845&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76492&fm=46256957606579&tin=02508201610067®Number=0000000000091573&sum=100013 [17:08:44]StoreToDocumentArchive [17:08:44]shift 370 fd 76492 [17:08:44]save to /storage/0370/doc_00076492 [17:08:44]save last doc name /storage/0370/doc_00076492 to /storage/kkm_last_doc_name [17:08:44]save OK [17:08:44]Clear old archive folders... [17:08:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:08:44]tlvbuf is 009B2B70 [17:08:44]SAM_PROTO_ClearQueue [17:08:44]wFMCommunicate request_size=4 [17:08:44]MH_SAM_APDU [17:08:44]CAPDU: 80 09 00 00 [17:08:44]Write to MH i2c: E2 08 00 2F 0D 80 09 00 00 00 00 00 00 AE [17:08:44]Write i2c OK [17:08:44]MH_I2C_Read... [17:08:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:44]Read from MH i2c: E2 [17:08:44]MH_I2C_Read... [17:08:44]Read from MH i2c: E2 03 00 [17:08:44]MH_I2C_Read... [17:08:44]Read from MH i2c: E2 03 00 2F 0D 00 90 00 B0 [17:08:44]RAPDU: 90 00 [17:08:44]wFMCommunicate OK [17:08:44]SAM_PROTO_ClearQueue done [17:08:44]KKMCreateOFDPacket [17:08:44]OFDProtocolAddRootSTLVToBuf [17:08:44]FM_MakeSignedData [17:08:44]FM_MakeSignedData [17:08:44]SAM_PROTO_SignData [17:08:44]wFMCommunicate request_size=4 [17:08:44]MH_SAM_APDU [17:08:44]CAPDU: 80 0D 01 02 [17:08:44]Write to MH i2c: E2 08 00 30 0D 80 0D 01 02 00 00 00 00 B6 [17:08:44]Write i2c OK [17:08:44]MH_I2C_Read... [17:08:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:44]Read from MH i2c: E2 [17:08:44]MH_I2C_Read... [17:08:44]Read from MH i2c: E2 03 00 [17:08:44]MH_I2C_Read... [17:08:44]Read from MH i2c: E2 03 00 30 0D 00 90 00 B1 [17:08:44]RAPDU: 90 00 [17:08:44]wFMCommunicate OK [17:08:44]wFMCommunicate request_size=255 [17:08:44]MH_SAM_APDU [17:08: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 1D A5 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CC 2A 01 00 35 04 06 00 2A [17:08:45]Write to MH i2c: E2 02 01 31 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 1D A5 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CC 2A 01 00 35 04 06 00 2A 00 00 EF [17:08:45]Write i2c OK [17:08:45]MH_I2C_Read... [17:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:45]Read from MH i2c: E2 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: E2 03 00 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: E2 03 00 31 0D 00 90 00 B2 [17:08:45]RAPDU: 90 00 [17:08:45]wFMCommunicate OK [17:08:45]wFMCommunicate request_size=10 [17:08:45]MH_SAM_APDU [17:08:45]CAPDU: 80 0D 02 02 05 12 09 86 CA B3 [17:08:45]Write to MH i2c: E2 0D 00 32 0D 80 0D 02 02 05 00 12 09 86 CA B3 00 00 E1 [17:08:45]Write i2c OK [17:08:45]MH_I2C_Read... [17:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:45]Read from MH i2c: E2 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: E2 03 00 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: E2 03 00 32 0D 00 90 00 B3 [17:08:45]RAPDU: 90 00 [17:08:45]wFMCommunicate OK [17:08:45]wFMCommunicate request_size=4 [17:08:45]MH_SAM_APDU [17:08:45]CAPDU: 80 0D 03 02 [17:08:45]Write to MH i2c: E2 08 00 33 0D 80 0D 03 02 00 00 00 00 BB [17:08:45]Write i2c OK [17:08:45]MH_I2C_Read... [17:08:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:45]Read from MH i2c: E2 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: E2 0B 00 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: E2 0B 00 33 0D 00 A9 33 F0 C4 A0 3F D9 6A 90 00 6E [17:08:45]RAPDU: A9 33 F0 C4 A0 3F D9 6A 90 00 [17:08:45]wFMCommunicate OK [17:08:45]SAM_PROTO_SignData done [17:08:45]FM_MakeSignedData done [17:08:45]CreateOFDProtocolMessage [17:08:45]wFMCommunicate request_size=4 [17:08:45]MH_SAM_APDU [17:08:45]CAPDU: 80 11 00 00 [17:08:45]Write to MH i2c: E2 08 00 34 0D 80 11 00 00 00 00 00 00 BB [17:08:45]Write i2c OK [17:08:45]MH_I2C_Read... [17:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:45]Read from MH i2c: E2 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: E2 17 00 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: E2 17 00 34 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0E [17:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:08:45]wFMCommunicate OK [17:08:45]CreateOFDProtocolMessage done [17:08:45]OFDSenderStorePacket 76492 [17:08:45]StoreOFDPacket docnum=76492 [17:08:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 DD BE 07 01 9A 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 1D A5 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CC 2A 01 00 35 04 06 00 2A 12 09 86 CA B3 A9 33 F0 C4 A0 3F D9 6A [17:08:45]CheckFolder [17:08:45]dirname=/storage/ofd_packets [17:08:45]CheckFolder done [17:08:45]ProducePacketName [17:08:45]name=ofd_packets/00076492 [17:08:45]NVStorageSaveData ofd_packets/00076492 [17:08:45]File name is /storage/ofd_packets/00076492 [17:08:45]Write 301 bytes [17:08:45]NVStorageSaveData done [17:08:45]OFDSenderStorePacket done [17:08:45]KKMCreateOFDPacket done [17:08:45]NVStorageSaveData kkm_last_timestamp [17:08:45]File name is /storage/kkm_last_timestamp [17:08:45]Write 4 bytes [17:08:45]NVStorageSaveData done [17:08:45]ExternCall_PrintAddStr [17:08:45]wPrintStart [17:08:45]Write to MH i2c: 01 00 00 35 0D 42 [17:08:45]Write i2c OK [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: 01 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: 01 07 00 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: 01 07 00 35 0D 00 00 00 00 00 FF 0F 57 [17:08:45]RasterBufferAndPrint [17:08:45]line Счет N : (1)190969 [17:08:45]line ИНН: 02508201610067 [17:08:45]line Контрольно-Кассовый Чек [17:08:45]line ПРОДАЖА [17:08:45]line ТРК (МРК, ГНК) : 43 [17:08:45]line Товар: 2710124130 [17:08:45]line Аи-92-К-5 [17:08:45]line 15.530 * 64.40 [17:08:45]line = 1000.13 [17:08:45]line НДС 12% НСП 1% [17:08:45]line > о реализуемом товаре [17:08:45]line ИТОГО: 1000.13 [17:08:45]line НСП 1% : 8.85 [17:08:45]line НДС 12% : 106.21 [17:08:45]line Наличными: 0.00 [17:08:45]line Безнал.: 1000.13 [17:08:45]line Место: АЗС № 106 "Партнер Нефть" [17:08:45]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:08:45]line СНО: Общий режим [17:08:45]line Чек 112 19.04.2024 17:08 [17:08:45]line Смена: 370 ФФД: 1.0 [17:08:45]line ЗНМ: 0300000141 [17:08:45]line РНМ: 0000000000091573 [17:08:45]line Версия ККМ: 001 [17:08:45]line Платежная система: О! деньги [17:08:45]line ФМ: 0000000000874652 [17:08:45]line ФД: 76492 [17:08:45]line ФПД: 46256957606579 [17:08:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T170845&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76492&fm=46256957606579&tin=02508201610067®Number=0000000000091573&sum=100013 [17:08:45]written 0, free lines is 4095 [17:08:45]OFD Sender: Processing packet 76492 [packets to send 128, broken 127] [17:08:45]ProducePacketName [17:08:45]name=ofd_packets/00076492 [17:08:45]OFD Sender: To server: pG, [17:08:45]CommunicateWithHost lk.salyk.kg:30040 [17:08:45]ConnectInit lk.salyk.kg [17:08:45]Write to MH i2c: 01 00 00 5E 0D 6B [17:08:45]Write i2c OK [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: 01 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: 01 07 00 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: 01 07 00 5E 0D 00 00 00 00 00 FE 0C 7C [17:08:45]RasterBufferAndPrint [17:08:45]line [17:08:45]line [17:08:45]line [17:08:45]line [17:08:45]line [17:08:45]written 0, free lines is 3332 [17:08:45]MH_Cut [17:08:45]Write to MH i2c: D1 01 00 65 0D 01 44 [17:08:45]Write i2c OK [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: D1 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: D1 01 00 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: D1 01 00 65 0D 00 43 [17:08:45]Write to MH i2c: 01 00 00 66 0D 73 [17:08:45]Write i2c OK [17:08:45]MH_I2C_Read... [17:08:45]Connected sock=10 [17: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 34 36 35 32 0F 01 00 00 DD BE 07 01 9A 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 1D A5 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CC 2A 01 00 35 04 06 00 2A 12 09 86 CA B3 A9 33 F0 C4 A0 3F D9 6A [17:08:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 08 D9 47 00 06 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 34 36 35 32 10 04 04 00 CC 2A 01 00 F4 03 04 00 A8 4C 22 66 B6 04 01 00 00 05 C1 77 33 67 C5 67 76 [17:08:46]CommunicateWithHost err = 0 [17:08:46]CheckOFDResponse [17:08:46]1017 (14) - 77093643461234 [17:08:46]1041 (16) - 0000000000874652 [17:08:46]1040 (4) - 76492 [17:08:46]1012 (4) - 19.04.2024 10:51 [17:08:46]1206 (1) - 0 [17:08:46]OFD Sender: Remove packet 76492 [17:08:46]ProducePacketName [17:08:46]name=ofd_packets/00076492 [17:08:46]NVStorageDeleteData [17:08:46]*** Cut start [17:08:46]*** Partial cut [17:08:46]*** CUTSNS_PIN = 1 [17:08:46]OFD Sender: No OFD packet to send [17:08:46]*** CUTSNS_PIN = 0 [17:08:46]*** Brake cut motor [17:08:47]Read from MH i2c: 01 [17:08:47]MH_I2C_Read... [17:08:47]*** Stop cut motor [17:08:47]*** Cut end [17:08:47]Read from MH i2c: 01 07 00 [17:08:47]MH_I2C_Read... [17:08:47]Read from MH i2c: 01 07 00 66 0D 00 00 00 00 00 FF 0F 88 [17:08:47]process_action close_receipt done [17:08:47]requested_data is exist [17:08:47]produce_requested_data [17:08:47]requested_item fm.sn is exist - process it [17:08:47]wFMCommunicate request_size=4 [17:08:47]MH_SAM_APDU [17:08:47]CAPDU: 80 11 00 00 [17:08:47]Write to MH i2c: E2 08 00 67 0D 80 11 00 00 00 00 00 00 EE [17:08:47]Write i2c OK [17:08:47]MH_I2C_Read... [17:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:47]Read from MH i2c: E2 [17:08:47]MH_I2C_Read... [17:08:47]Read from MH i2c: E2 17 00 [17:08:47]MH_I2C_Read... [17:08:47]Read from MH i2c: E2 17 00 67 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 41 [17:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:08:47]wFMCommunicate OK [17:08:47]requested_item fd.num is exist - process it [17:08:47]SAM_PROTO_GetFieldsCounters [17:08:47]wFMCommunicate request_size=4 [17:08:47]MH_SAM_APDU [17:08:47]CAPDU: 80 13 00 00 [17:08:47]Write to MH i2c: E2 08 00 68 0D 80 13 00 00 00 00 00 00 F1 [17:08:47]Write i2c OK [17:08:47]MH_I2C_Read... [17:08:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:47]Read from MH i2c: E2 [17:08:47]MH_I2C_Read... [17:08:47]Read from MH i2c: E2 62 00 [17:08:47]MH_I2C_Read... [17:08:47]Read from MH i2c: E2 62 00 68 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CC 2A 01 00 0E 04 04 00 72 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 CC [17:08:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CC 2A 01 00 0E 04 04 00 72 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 [17:08:47]wFMCommunicate OK [17:08:47]SAM_PROTO_GetFieldsCounters done [17:08:47]requested_item shift.num is exist - process it [17:08:47]requested_item shift.opened is exist - process it [17:08:47]req_shift_opened [17:08:47]FM_GetShiftState [17:08:47]SAM_PROTO_GetShiftState [17:08:47]wFMCommunicate request_size=4 [17:08:47]MH_SAM_APDU [17:08:47]CAPDU: 80 13 01 00 [17:08:47]Write to MH i2c: E2 08 00 69 0D 80 13 01 00 00 00 00 00 F3 [17:08:47]Write i2c OK [17:08:47]MH_I2C_Read... [17:08:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:47]Read from MH i2c: E2 [17:08:47]MH_I2C_Read... [17:08:47]Read from MH i2c: E2 0E 00 [17:08:47]MH_I2C_Read... [17:08:47]Read from MH i2c: E2 0E 00 69 0D 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 D8 [17:08:47]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:08:47]wFMCommunicate OK [17:08:47]SAM_PROTO_GetShiftState done [17:08:47]FM_GetShiftState done [17:08:47]req_shift_opened done [17:08:47]requested_item shift.open_date is exist - process it [17:08:47]req_shift_open_date [17:08:47]req_shift_open_date done [17:08:47]produce_requested_data done [17:08:47]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76492,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [17:08:47]process_action_free close_receipt [17:08:47]json_value_free [17:08:47]json_value_free done [17:08:47]process_json_proto returns [17:08:47]Send response to host [17:08:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76492,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [17:08:47]free response buf [17:08:47]execute_script done [17:08:47]execute_script returns [17:08:47]free content buf [17:08:47]Sock 7.Close socket [17:08:47]Sock 7.Thread stoped [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:27]OFD Sender: No OFD packet to send [17:13:32]OFD Sender: No OFD packet to send [17:13:37]OFD Sender: No OFD packet to send [17:13:42]OFD Sender: No OFD packet to send [17:13:47]OFD Sender: No OFD packet to send [17:13:52]OFD Sender: No OFD packet to send [17:13:57]OFD Sender: No OFD packet to send [17:14:00]accept exits with 9 [17:14:00]New connection [17:14:00]New thread 3067080036 created [17:14:00]Thread 3066936676 joined [17:14:00]Waiting for new connection... [17:14:00] Sock 9.Parse request [17:14:00]Sock 9.Check first char [17:14:00]Sock 9.First char is OK [17:14:00]request: POST /json_proto HTTP/1.0 [17:14:00]Method: POST [17:14:00]URL: /json_proto [17:14:00]Method is POST - this is cgi request [17:14:00]url: /json_proto [17:14:00]query_string will be loaded in cgi processing [17:14:00]execute_cgi json_proto POST (null) [17:14:00]execute_cgi path=json_proto method=POST [17:14:00]POST find Content-Length [17:14:00]Host: 172.17.62.5:8080 [17:14:00]Content-Length: 816 [17:14:00]Content-Type: application/json [17:14:00] [17:14:00]POST finish read [17:14:00]Found Content-Length = 816 [17:14:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190970", "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" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:00]execute_script... [17:14: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)190970", "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" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:00]POST & json_proto [17:14:00]process_json_proto [17:14:00]json parsed OK: [17:14:00]protocol is kg_v1.0 [17:14:00]action value=close_receipt [17:14:00]process_action close_receipt [17:14:00]cmd_close_receipt [17:14:00]MH_GetDate [17:14:00]Write to MH i2c: F0 00 00 6A 0D 66 [17:14:00]Write i2c OK [17:14:00]MH_I2C_Read... [17:14:00]Read from MH i2c: F0 [17:14:00]MH_I2C_Read... [17:14:00]Read from MH i2c: F0 09 00 [17:14:00]MH_I2C_Read... [17:14:00]Read from MH i2c: F0 09 00 6A 0D 00 59 A6 22 66 F4 E9 65 64 9C [17:14:00]GetLastDocTimeStamp 1713546525 [17:14:00]current date 1713546841 [17:14:00]FM_GetShiftState [17:14:00]SAM_PROTO_GetShiftState [17:14:00]wFMCommunicate request_size=4 [17:14:00]MH_SAM_APDU [17:14:00]CAPDU: 80 13 01 00 [17:14:00]Write to MH i2c: E2 08 00 6B 0D 80 13 01 00 00 00 00 00 F5 [17:14:00]Write i2c OK [17:14:00]MH_I2C_Read... [17:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:00]Read from MH i2c: E2 [17:14:00]MH_I2C_Read... [17:14:00]Read from MH i2c: E2 0E 00 [17:14:00]MH_I2C_Read... [17:14:00]Read from MH i2c: E2 0E 00 6B 0D 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 DA [17:14:00]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:14:00]wFMCommunicate OK [17:14:00]SAM_PROTO_GetShiftState done [17:14:00]FM_GetShiftState done [17:14:00]opened in 1713486233 [17:14:00]opened+sec_in_day 1713572633 [17:14:00]quantity*price = 50038 [17:14:00]sum+1 = 50040 [17:14:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.39 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.39 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 113 19.04.2024 17:14 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76493 ФПД: 275939785308384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T171401&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76493&fm=275939785308384&tin=02508201610067®Number=0000000000091573&sum=50039 [17:14:01]StoreToDocumentArchive [17:14:01]shift 370 fd 76493 [17:14:01]save to /storage/0370/doc_00076493 [17:14:01]save last doc name /storage/0370/doc_00076493 to /storage/kkm_last_doc_name [17:14:01]save OK [17:14:01]Clear old archive folders... [17:14:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:01]tlvbuf is 009949E0 [17:14:01]SAM_PROTO_ClearQueue [17:14:01]wFMCommunicate request_size=4 [17:14:01]MH_SAM_APDU [17:14:01]CAPDU: 80 09 00 00 [17:14:01]Write to MH i2c: E2 08 00 78 0D 80 09 00 00 00 00 00 00 F7 [17:14:01]Write i2c OK [17:14:01]MH_I2C_Read... [17:14:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:01]Read from MH i2c: E2 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: E2 03 00 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: E2 03 00 78 0D 00 90 00 F9 [17:14:01]RAPDU: 90 00 [17:14:01]wFMCommunicate OK [17:14:01]SAM_PROTO_ClearQueue done [17:14:01]KKMCreateOFDPacket [17:14:01]OFDProtocolAddRootSTLVToBuf [17:14:01]FM_MakeSignedData [17:14:01]FM_MakeSignedData [17:14:01]SAM_PROTO_SignData [17:14:01]wFMCommunicate request_size=4 [17:14:01]MH_SAM_APDU [17:14:01]CAPDU: 80 0D 01 02 [17:14:01]Write to MH i2c: E2 08 00 79 0D 80 0D 01 02 00 00 00 00 FF [17:14:01]Write i2c OK [17:14:01]MH_I2C_Read... [17:14:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:01]Read from MH i2c: E2 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: E2 03 00 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: E2 03 00 79 0D 00 90 00 FA [17:14:01]RAPDU: 90 00 [17:14:01]wFMCommunicate OK [17:14:01]wFMCommunicate request_size=255 [17:14:01]MH_SAM_APDU [17:14: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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 77 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 59 A6 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CD 2A 01 00 35 04 06 00 FA [17:14:01]Write to MH i2c: E2 02 01 7A 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 77 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 59 A6 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CD 2A 01 00 35 04 06 00 FA 00 00 5F [17:14:01]Write i2c OK [17:14:01]MH_I2C_Read... [17:14:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:01]Read from MH i2c: E2 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: E2 03 00 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: E2 03 00 7A 0D 00 90 00 FB [17:14:01]RAPDU: 90 00 [17:14:01]wFMCommunicate OK [17:14:01]wFMCommunicate request_size=10 [17:14:01]MH_SAM_APDU [17:14:01]CAPDU: 80 0D 02 02 05 F7 3C E1 F8 E0 [17:14:01]Write to MH i2c: E2 0D 00 7B 0D 80 0D 02 02 05 00 F7 3C E1 F8 E0 00 00 F8 [17:14:01]Write i2c OK [17:14:01]MH_I2C_Read... [17:14:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:01]Read from MH i2c: E2 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: E2 03 00 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: E2 03 00 7B 0D 00 90 00 FC [17:14:01]RAPDU: 90 00 [17:14:01]wFMCommunicate OK [17:14:01]wFMCommunicate request_size=4 [17:14:01]MH_SAM_APDU [17:14:01]CAPDU: 80 0D 03 02 [17:14:01]Write to MH i2c: E2 08 00 7C 0D 80 0D 03 02 00 00 00 00 04 [17:14:01]Write i2c OK [17:14:01]MH_I2C_Read... [17:14:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:01]Read from MH i2c: E2 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: E2 0B 00 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: E2 0B 00 7C 0D 00 0C AE 5E 73 92 97 08 49 90 00 0A [17:14:01]RAPDU: 0C AE 5E 73 92 97 08 49 90 00 [17:14:01]wFMCommunicate OK [17:14:01]SAM_PROTO_SignData done [17:14:01]FM_MakeSignedData done [17:14:01]CreateOFDProtocolMessage [17:14:01]wFMCommunicate request_size=4 [17:14:01]MH_SAM_APDU [17:14:01]CAPDU: 80 11 00 00 [17:14:01]Write to MH i2c: E2 08 00 7D 0D 80 11 00 00 00 00 00 00 04 [17:14:01]Write i2c OK [17:14:01]MH_I2C_Read... [17:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:01]Read from MH i2c: E2 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: E2 17 00 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: E2 17 00 7D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 57 [17:14:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:14:01]wFMCommunicate OK [17:14:01]CreateOFDProtocolMessage done [17:14:01]OFDSenderStorePacket 76493 [17:14:01]StoreOFDPacket docnum=76493 [17:14:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 0C 3A 07 01 B4 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 77 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 59 A6 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CD 2A 01 00 35 04 06 00 FA F7 3C E1 F8 E0 0C AE 5E 73 92 97 08 49 [17:14:01]CheckFolder [17:14:01]dirname=/storage/ofd_packets [17:14:01]CheckFolder done [17:14:01]ProducePacketName [17:14:01]name=ofd_packets/00076493 [17:14:01]NVStorageSaveData ofd_packets/00076493 [17:14:01]File name is /storage/ofd_packets/00076493 [17:14:01]Write 301 bytes [17:14:01]NVStorageSaveData done [17:14:01]OFDSenderStorePacket done [17:14:01]KKMCreateOFDPacket done [17:14:01]NVStorageSaveData kkm_last_timestamp [17:14:01]File name is /storage/kkm_last_timestamp [17:14:01]Write 4 bytes [17:14:01]NVStorageSaveData done [17:14:01]ExternCall_PrintAddStr [17:14:01]wPrintStart [17:14:01]Write to MH i2c: 01 00 00 7E 0D 8B [17:14:01]Write i2c OK [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: 01 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: 01 07 00 [17:14:01]MH_I2C_Read... [17:14:01]Read from MH i2c: 01 07 00 7E 0D 00 00 00 00 00 FF 0F A0 [17:14:01]RasterBufferAndPrint [17:14:01]line Счет N : (1)190970 [17:14:01]line ИНН: 02508201610067 [17:14:01]line Контрольно-Кассовый Чек [17:14:01]line ПРОДАЖА [17:14:01]line ТРК (МРК, ГНК) : 22 [17:14:01]line Товар: 2710124130 [17:14:01]line Аи-92-К-5 [17:14:01]line 7.770 * 64.40 [17:14:01]line = 500.39 [17:14:01]line НДС 12% НСП 1% [17:14:01]line > о реализуемом товаре [17:14:01]line ИТОГО: 500.39 [17:14:01]line НСП 1% : 4.43 [17:14:01]line НДС 12% : 53.14 [17:14:01]line Наличными: 0.00 [17:14:01]line Безнал.: 500.39 [17:14:01]line Место: АЗС № 106 "Партнер Нефть" [17:14:01]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:14:01]line СНО: Общий режим [17:14:01]line Чек 113 19.04.2024 17:14 [17:14:01]line Смена: 370 ФФД: 1.0 [17:14:01]line ЗНМ: 0300000141 [17:14:01]line РНМ: 0000000000091573 [17:14:01]line Версия ККМ: 001 [17:14:01]line Платежная система: Бакай Банк [17:14:01]line ФМ: 0000000000874652 [17:14:01]line ФД: 76493 [17:14:01]line ФПД: 275939785308384 [17:14:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T171401&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76493&fm=275939785308384&tin=02508201610067®Number=0000000000091573&sum=50039 [17:14:01]written 0, free lines is 4095 [17:14:01]OFD Sender: Processing packet 76493 [packets to send 128, broken 127] [17:14:01]ProducePacketName [17:14:01]name=ofd_packets/00076493 [17:14:01]OFD Sender: To server: pG, [17:14:01]CommunicateWithHost lk.salyk.kg:30040 [17:14:01]ConnectInit lk.salyk.kg [17:14:02]Connected sock=10 [17:14:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 0C 3A 07 01 B4 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 77 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 59 A6 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CD 2A 01 00 35 04 06 00 FA F7 3C E1 F8 E0 0C AE 5E 73 92 97 08 49 [17:14:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 84 8D 47 00 66 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 34 36 35 32 10 04 04 00 CD 2A 01 00 F4 03 04 00 E4 4D 22 66 B6 04 01 00 00 2E 56 0E BD C3 13 A1 1A [17:14:02]CommunicateWithHost err = 0 [17:14:02]CheckOFDResponse [17:14:02]1017 (14) - 77093643461234 [17:14:02]1041 (16) - 0000000000874652 [17:14:02]1040 (4) - 76493 [17:14:02]1012 (4) - 19.04.2024 10:56 [17:14:02]1206 (1) - 0 [17:14:02]OFD Sender: Remove packet 76493 [17:14:02]ProducePacketName [17:14:02]name=ofd_packets/00076493 [17:14:02]NVStorageDeleteData [17:14:02]Write to MH i2c: 01 00 00 A7 0D B4 [17:14:02]Write i2c OK [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: 01 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: 01 07 00 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: 01 07 00 A7 0D 00 00 00 00 00 FD 0C C4 [17:14:02]RasterBufferAndPrint [17:14:02]line [17:14:02]line [17:14:02]line [17:14:02]line [17:14:02]line [17:14:02]written 0, free lines is 3331 [17:14:02]MH_Cut [17:14:02]Write to MH i2c: D1 01 00 AE 0D 01 8D [17:14:02]Write i2c OK [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: D1 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: D1 01 00 [17:14:02]MH_I2C_Read... [17:14:02]Read from MH i2c: D1 01 00 AE 0D 00 8C [17:14:02]Write to MH i2c: 01 00 00 AF 0D BC [17:14:02]Write i2c OK [17:14:02]MH_I2C_Read... [17:14:02]OFD Sender: No OFD packet to send [17:14:03]*** Cut start [17:14:03]*** Partial cut [17:14:03]*** CUTSNS_PIN = 1 [17:14:03]*** CUTSNS_PIN = 0 [17:14:03]*** Brake cut motor [17:14:03]Read from MH i2c: 01 [17:14:03]MH_I2C_Read... [17:14:03]*** Stop cut motor [17:14:03]*** Cut end [17:14:03]Read from MH i2c: 01 07 00 [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: 01 07 00 AF 0D 00 00 00 00 00 FF 0F D1 [17:14:03]process_action close_receipt done [17:14:03]requested_data is exist [17:14:03]produce_requested_data [17:14:03]requested_item fm.sn is exist - process it [17:14:03]wFMCommunicate request_size=4 [17:14:03]MH_SAM_APDU [17:14:03]CAPDU: 80 11 00 00 [17:14:03]Write to MH i2c: E2 08 00 B0 0D 80 11 00 00 00 00 00 00 37 [17:14:03]Write i2c OK [17:14:03]MH_I2C_Read... [17:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:03]Read from MH i2c: E2 [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: E2 17 00 [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: E2 17 00 B0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8A [17:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:14:03]wFMCommunicate OK [17:14:03]requested_item fd.num is exist - process it [17:14:03]SAM_PROTO_GetFieldsCounters [17:14:03]wFMCommunicate request_size=4 [17:14:03]MH_SAM_APDU [17:14:03]CAPDU: 80 13 00 00 [17:14:03]Write to MH i2c: E2 08 00 B1 0D 80 13 00 00 00 00 00 00 3A [17:14:03]Write i2c OK [17:14:03]MH_I2C_Read... [17:14:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:03]Read from MH i2c: E2 [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: E2 62 00 [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: E2 62 00 B1 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CD 2A 01 00 0E 04 04 00 72 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 19 [17:14:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CD 2A 01 00 0E 04 04 00 72 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 [17:14:03]wFMCommunicate OK [17:14:03]SAM_PROTO_GetFieldsCounters done [17:14:03]requested_item shift.num is exist - process it [17:14:03]requested_item shift.opened is exist - process it [17:14:03]req_shift_opened [17:14:03]FM_GetShiftState [17:14:03]SAM_PROTO_GetShiftState [17:14:03]wFMCommunicate request_size=4 [17:14:03]MH_SAM_APDU [17:14:03]CAPDU: 80 13 01 00 [17:14:03]Write to MH i2c: E2 08 00 B2 0D 80 13 01 00 00 00 00 00 3C [17:14:03]Write i2c OK [17:14:03]MH_I2C_Read... [17:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:03]Read from MH i2c: E2 [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: E2 0E 00 [17:14:03]MH_I2C_Read... [17:14:03]Read from MH i2c: E2 0E 00 B2 0D 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 21 [17:14:03]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:14:03]wFMCommunicate OK [17:14:03]SAM_PROTO_GetShiftState done [17:14:03]FM_GetShiftState done [17:14:03]req_shift_opened done [17:14:03]requested_item shift.open_date is exist - process it [17:14:03]req_shift_open_date [17:14:03]req_shift_open_date done [17:14:03]produce_requested_data done [17:14:03]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76493,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [17:14:03]process_action_free close_receipt [17:14:03]json_value_free [17:14:03]json_value_free done [17:14:03]process_json_proto returns [17:14:03]Send response to host [17:14:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76493,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [17:14:03]free response buf [17:14:03]execute_script done [17:14:03]execute_script returns [17:14:03]free content buf [17:14:03]Sock 9.Close socket [17:14:03]Sock 9.Thread stoped [17:14:07]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:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:43]OFD Sender: No OFD packet to send [17:20:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:48]OFD Sender: No OFD packet to send [17:21:53]OFD Sender: No OFD packet to send [17:21:58]OFD Sender: No OFD packet to send [17:22:03]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:41]accept exits with 7 [17:23:41]New connection [17:23:41]New thread 3066936676 created [17:23:41]Thread 3067080036 joined [17:23:41]Waiting for new connection... [17:23:41] Sock 7.Parse request [17:23:41]Sock 7.Check first char [17:23:41]Sock 7.First char is OK [17:23:41]request: POST /json_proto HTTP/1.0 [17:23:41]Method: POST [17:23:41]URL: /json_proto [17:23:41]Method is POST - this is cgi request [17:23:41]url: /json_proto [17:23:41]query_string will be loaded in cgi processing [17:23:41]execute_cgi json_proto POST (null) [17:23:41]execute_cgi path=json_proto method=POST [17:23:41]POST find Content-Length [17:23:41]Host: 172.17.62.5:8080 [17:23:41]Content-Length: 1166 [17:23:41]Content-Type: application/json [17:23:41] [17:23:41]POST finish read [17:23:41]Found Content-Length = 1166 [17:23:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190971\u000A19.04.2024 17:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 48.070 x 72.90\u000A\u0418\u0422\u041E\u0413: 3504.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30119756\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:41]execute_script... [17:23:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190971\u000A19.04.2024 17:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 48.070 x 72.90\u000A\u0418\u0422\u041E\u0413: 3504.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30119756\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:41]POST & json_proto [17:23:41]process_json_proto [17:23:41]json parsed OK: [17:23:41]protocol is kg_v1.0 [17:23:41]action value=print_text [17:23:41]process_action print_text [17:23:41]cmd_print_text [17:23:41]ExternCall_PrintAddStr [17:23:41]wPrintStart [17:23:41]Write to MH i2c: 01 00 00 B3 0D C0 [17:23:41]Write i2c OK [17:23:41]MH_I2C_Read... [17:23:41]Read from MH i2c: 01 [17:23:41]MH_I2C_Read... [17:23:41]Read from MH i2c: 01 07 00 [17:23:41]MH_I2C_Read... [17:23:41]Read from MH i2c: 01 07 00 B3 0D 00 00 00 00 00 FF 0F D5 [17:23:41]RasterBufferAndPrint [17:23:41]line *****ТОВАРНЫЙ ЧЕК***** [17:23:41]line АЗС 106 [17:23:41]line Партнер нефть [17:23:41]line 02508201610067 [17:23:41]line Кассир : Табалдиева М. [17:23:41]line Счет N : (1)190971 [17:23:41]line 19.04.2024 17:05 [17:23:41]line ПРОДАЖА [17:23:41]line ТРК (МРК, ГНК): 61 [17:23:41]line Вид ГСМ : 2710194210 [17:23:41]line ДТ-К-5 [17:23:41]line 48.070 x 72.90 [17:23:41]line ИТОГ: 3504.30 [17:23:41]line Тип оплаты: Талоны: ТК ГПНА Online [17:23:41]line 30119756 [17:23:41]line ______________________ [17:23:41]line (подпись) [17:23:41]written 0, free lines is 4095 [17:23:41]Write to MH i2c: 01 00 00 C7 0D D4 [17:23:41]Write i2c OK [17:23:41]MH_I2C_Read... [17:23:41]Read from MH i2c: 01 [17:23:41]MH_I2C_Read... [17:23:41]Read from MH i2c: 01 07 00 [17:23:41]MH_I2C_Read... [17:23:41]Read from MH i2c: 01 07 00 C7 0D 00 00 00 00 00 0D 0E F6 [17:23:41]RasterBufferAndPrint [17:23:41]line [17:23:41]line [17:23:41]line [17:23:41]line [17:23:41]line [17:23:41]written 0, free lines is 3599 [17:23:41]MH_Cut [17:23:41]Write to MH i2c: D1 01 00 CE 0D 01 AD [17:23:41]Write i2c OK [17:23:41]MH_I2C_Read... [17:23:41]Read from MH i2c: D1 [17:23:41]MH_I2C_Read... [17:23:41]Read from MH i2c: D1 01 00 [17:23:41]MH_I2C_Read... [17:23:41]Read from MH i2c: D1 01 00 CE 0D 00 AC [17:23:41]Write to MH i2c: 01 00 00 CF 0D DC [17:23:41]Write i2c OK [17:23:41]MH_I2C_Read... [17:23:42]*** Cut start [17:23:42]*** Partial cut [17:23:42]*** CUTSNS_PIN = 1 [17:23:42]*** CUTSNS_PIN = 0 [17:23:42]*** Brake cut motor [17:23:42]Read from MH i2c: 01 [17:23:42]MH_I2C_Read... [17:23:42]*** Stop cut motor [17:23:42]*** Cut end [17:23:42]Read from MH i2c: 01 07 00 [17:23:42]MH_I2C_Read... [17:23:42]Read from MH i2c: 01 07 00 CF 0D 00 00 00 00 00 FF 0F F1 [17:23:42]process_action print_text done [17:23:42]requested_data is exist [17:23:42]produce_requested_data [17:23:42]requested_item fm.sn is exist - process it [17:23:42]wFMCommunicate request_size=4 [17:23:42]MH_SAM_APDU [17:23:42]CAPDU: 80 11 00 00 [17:23:42]Write to MH i2c: E2 08 00 D0 0D 80 11 00 00 00 00 00 00 57 [17:23:42]Write i2c OK [17:23:42]MH_I2C_Read... [17:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:42]Read from MH i2c: E2 [17:23:42]MH_I2C_Read... [17:23:42]Read from MH i2c: E2 17 00 [17:23:42]MH_I2C_Read... [17:23:42]Read from MH i2c: E2 17 00 D0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AA [17:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:23:42]wFMCommunicate OK [17:23:42]requested_item fd.num is exist - process it [17:23:42]SAM_PROTO_GetFieldsCounters [17:23:42]wFMCommunicate request_size=4 [17:23:42]MH_SAM_APDU [17:23:42]CAPDU: 80 13 00 00 [17:23:42]Write to MH i2c: E2 08 00 D1 0D 80 13 00 00 00 00 00 00 5A [17:23:42]Write i2c OK [17:23:42]MH_I2C_Read... [17:23:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:42]Read from MH i2c: E2 [17:23:42]MH_I2C_Read... [17:23:42]Read from MH i2c: E2 62 00 [17:23:42]MH_I2C_Read... [17:23:42]Read from MH i2c: E2 62 00 D1 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CD 2A 01 00 0E 04 04 00 72 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 39 [17:23: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CD 2A 01 00 0E 04 04 00 72 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 [17:23:42]wFMCommunicate OK [17:23:42]SAM_PROTO_GetFieldsCounters done [17:23:42]requested_item shift.num is exist - process it [17:23:42]requested_item shift.opened is exist - process it [17:23:42]req_shift_opened [17:23:42]FM_GetShiftState [17:23:42]SAM_PROTO_GetShiftState [17:23:42]wFMCommunicate request_size=4 [17:23:42]MH_SAM_APDU [17:23:42]CAPDU: 80 13 01 00 [17:23:42]Write to MH i2c: E2 08 00 D2 0D 80 13 01 00 00 00 00 00 5C [17:23:42]Write i2c OK [17:23:42]MH_I2C_Read... [17:23:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:42]Read from MH i2c: E2 [17:23:42]MH_I2C_Read... [17:23:42]Read from MH i2c: E2 0E 00 [17:23:42]MH_I2C_Read... [17:23:42]Read from MH i2c: E2 0E 00 D2 0D 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 41 [17:23:42]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:23:42]wFMCommunicate OK [17:23:42]SAM_PROTO_GetShiftState done [17:23:42]FM_GetShiftState done [17:23:42]req_shift_opened done [17:23:42]requested_item shift.open_date is exist - process it [17:23:42]req_shift_open_date [17:23:42]req_shift_open_date done [17:23:42]produce_requested_data done [17:23:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76493,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [17:23:42]process_action_free print_text [17:23:42]json_value_free [17:23:42]json_value_free done [17:23:42]process_json_proto returns [17:23:42]Send response to host [17:23:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76493,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [17:23:42]free response buf [17:23:42]execute_script done [17:23:42]execute_script returns [17:23:42]free content buf [17:23:42]Sock 7.Close socket [17:23:42]Sock 7.Thread stoped [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]accept exits with 9 [17:25:33]New connection [17:25:33]New thread 3067080036 created [17:25:33]Thread 3066936676 joined [17:25:33]Waiting for new connection... [17:25:33] Sock 9.Parse request [17:25:33]Sock 9.Check first char [17:25:33]Sock 9.First char is OK [17:25:33]request: POST /json_proto HTTP/1.0 [17:25:33]Method: POST [17:25:33]URL: /json_proto [17:25:33]Method is POST - this is cgi request [17:25:33]url: /json_proto [17:25:33]query_string will be loaded in cgi processing [17:25:33]execute_cgi json_proto POST (null) [17:25:33]execute_cgi path=json_proto method=POST [17:25:33]POST find Content-Length [17:25:33]Host: 172.17.62.5:8080 [17:25:33]Content-Length: 1164 [17:25:33]Content-Type: application/json [17:25:33] [17:25:33]POST finish read [17:25:33]Found Content-Length = 1164 [17:25:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190973\u000A19.04.2024 17:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 1.930 x 72.90\u000A\u0418\u0422\u041E\u0413: 140.70\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30119756\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:33]execute_script... [17:25:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190973\u000A19.04.2024 17:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 1.930 x 72.90\u000A\u0418\u0422\u041E\u0413: 140.70\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30119756\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:33]POST & json_proto [17:25:33]process_json_proto [17:25:33]json parsed OK: [17:25:33]protocol is kg_v1.0 [17:25:33]action value=print_text [17:25:33]process_action print_text [17:25:33]cmd_print_text [17:25:33]ExternCall_PrintAddStr [17:25:33]wPrintStart [17:25:33]Write to MH i2c: 01 00 00 D3 0D E0 [17:25:33]Write i2c OK [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: 01 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: 01 07 00 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: 01 07 00 D3 0D 00 00 00 00 00 FF 0F F5 [17:25:33]RasterBufferAndPrint [17:25:33]line *****ТОВАРНЫЙ ЧЕК***** [17:25:33]line АЗС 106 [17:25:33]line Партнер нефть [17:25:33]line 02508201610067 [17:25:33]line Кассир : Табалдиева М. [17:25:33]line Счет N : (1)190973 [17:25:33]line 19.04.2024 17:07 [17:25:33]line ПРОДАЖА [17:25:33]line ТРК (МРК, ГНК): 61 [17:25:33]line Вид ГСМ : 2710194210 [17:25:33]line ДТ-К-5 [17:25:33]line 1.930 x 72.90 [17:25:33]line ИТОГ: 140.70 [17:25:33]line Тип оплаты: Талоны: ТК ГПНА Online [17:25:33]line 30119756 [17:25:33]line ______________________ [17:25:33]line (подпись) [17:25:33]written 0, free lines is 4095 [17:25:33]OFD Sender: No OFD packet to send [17:25:33]Write to MH i2c: 01 00 00 E7 0D F4 [17:25:33]Write i2c OK [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: 01 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: 01 07 00 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: 01 07 00 E7 0D 00 00 00 00 00 0E 0E 17 [17:25:33]RasterBufferAndPrint [17:25:33]line [17:25:33]line [17:25:33]line [17:25:33]line [17:25:33]line [17:25:33]written 0, free lines is 3600 [17:25:33]MH_Cut [17:25:33]Write to MH i2c: D1 01 00 EE 0D 01 CD [17:25:33]Write i2c OK [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: D1 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: D1 01 00 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: D1 01 00 EE 0D 00 CC [17:25:33]Write to MH i2c: 01 00 00 EF 0D FC [17:25:33]Write i2c OK [17:25:33]MH_I2C_Read... [17:25:34]*** Cut start [17:25:34]*** Partial cut [17:25:34]*** CUTSNS_PIN = 1 [17:25:34]*** CUTSNS_PIN = 0 [17:25:34]*** Brake cut motor [17:25:34]Read from MH i2c: 01 [17:25:34]MH_I2C_Read... [17:25:34]*** Stop cut motor [17:25:34]*** Cut end [17:25:34]Read from MH i2c: 01 07 00 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: 01 07 00 EF 0D 00 00 00 00 00 FF 0F 11 [17:25:34]process_action print_text done [17:25:34]requested_data is exist [17:25:34]produce_requested_data [17:25:34]requested_item fm.sn is exist - process it [17:25:34]wFMCommunicate request_size=4 [17:25:34]MH_SAM_APDU [17:25:34]CAPDU: 80 11 00 00 [17:25:34]Write to MH i2c: E2 08 00 F0 0D 80 11 00 00 00 00 00 00 77 [17:25:34]Write i2c OK [17:25:34]MH_I2C_Read... [17:25:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:34]Read from MH i2c: E2 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: E2 17 00 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: E2 17 00 F0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CA [17:25:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:25:34]wFMCommunicate OK [17:25:34]requested_item fd.num is exist - process it [17:25:34]SAM_PROTO_GetFieldsCounters [17:25:34]wFMCommunicate request_size=4 [17:25:34]MH_SAM_APDU [17:25:34]CAPDU: 80 13 00 00 [17:25:34]Write to MH i2c: E2 08 00 F1 0D 80 13 00 00 00 00 00 00 7A [17:25:34]Write i2c OK [17:25:34]MH_I2C_Read... [17:25:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:35]Read from MH i2c: E2 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: E2 62 00 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: E2 62 00 F1 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CD 2A 01 00 0E 04 04 00 72 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 59 [17:25:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CD 2A 01 00 0E 04 04 00 72 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 [17:25:35]wFMCommunicate OK [17:25:35]SAM_PROTO_GetFieldsCounters done [17:25:35]requested_item shift.num is exist - process it [17:25:35]requested_item shift.opened is exist - process it [17:25:35]req_shift_opened [17:25:35]FM_GetShiftState [17:25:35]SAM_PROTO_GetShiftState [17:25:35]wFMCommunicate request_size=4 [17:25:35]MH_SAM_APDU [17:25:35]CAPDU: 80 13 01 00 [17:25:35]Write to MH i2c: E2 08 00 F2 0D 80 13 01 00 00 00 00 00 7C [17:25:35]Write i2c OK [17:25:35]MH_I2C_Read... [17:25:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:35]Read from MH i2c: E2 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: E2 0E 00 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: E2 0E 00 F2 0D 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 61 [17:25:35]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:25:35]wFMCommunicate OK [17:25:35]SAM_PROTO_GetShiftState done [17:25:35]FM_GetShiftState done [17:25:35]req_shift_opened done [17:25:35]requested_item shift.open_date is exist - process it [17:25:35]req_shift_open_date [17:25:35]req_shift_open_date done [17:25:35]produce_requested_data done [17:25:35]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76493,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [17:25:35]process_action_free print_text [17:25:35]json_value_free [17:25:35]json_value_free done [17:25:35]process_json_proto returns [17:25:35]Send response to host [17:25:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76493,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [17:25:35]free response buf [17:25:35]execute_script done [17:25:35]execute_script returns [17:25:35]free content buf [17:25:35]Sock 9.Close socket [17:25:35]Sock 9.Thread stoped [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:53]accept exits with 7 [17:30:53]New connection [17:30:53]New thread 3066936676 created [17:30:53]Thread 3067080036 joined [17:30:53]Waiting for new connection... [17:30:53] Sock 7.Parse request [17:30:53]Sock 7.Check first char [17:30:53]Sock 7.First char is OK [17:30:53]request: POST /json_proto HTTP/1.0 [17:30:53]Method: POST [17:30:53]URL: /json_proto [17:30:53]Method is POST - this is cgi request [17:30:53]url: /json_proto [17:30:53]query_string will be loaded in cgi processing [17:30:53]execute_cgi json_proto POST (null) [17:30:53]execute_cgi path=json_proto method=POST [17:30:53]POST find Content-Length [17:30:53]Host: 172.17.62.5:8080 [17:30:53]Content-Length: 681 [17:30:53]Content-Type: application/json [17:30:53] [17:30:53]POST finish read [17:30:53]Found Content-Length = 681 [17:30:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:53]execute_script... [17:30:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:53]POST & json_proto [17:30:53]process_json_proto [17:30:53]json parsed OK: [17:30:53]protocol is kg_v1.0 [17:30:53]action value=close_receipt [17:30:53]process_action close_receipt [17:30:53]cmd_close_receipt [17:30:53]MH_GetDate [17:30:53]Write to MH i2c: F0 00 00 F3 0D EF [17:30:53]Write i2c OK [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: F0 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: F0 09 00 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: F0 09 00 F3 0D 00 4F AA 22 66 F4 E9 65 64 1F [17:30:53]GetLastDocTimeStamp 1713546841 [17:30:53]current date 1713547855 [17:30:53]FM_GetShiftState [17:30:53]SAM_PROTO_GetShiftState [17:30:53]wFMCommunicate request_size=4 [17:30:53]MH_SAM_APDU [17:30:53]CAPDU: 80 13 01 00 [17:30:53]Write to MH i2c: E2 08 00 F4 0D 80 13 01 00 00 00 00 00 7E [17:30:53]Write i2c OK [17:30:53]MH_I2C_Read... [17:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:53]Read from MH i2c: E2 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: E2 0E 00 [17:30:53]MH_I2C_Read... [17:30:53]Read from MH i2c: E2 0E 00 F4 0D 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 63 [17:30:53]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:30:53]wFMCommunicate OK [17:30:53]SAM_PROTO_GetShiftState done [17:30:53]FM_GetShiftState done [17:30:53]opened in 1713486233 [17:30:53]opened+sec_in_day 1713572633 [17:30:53]quantity*price = 50031 [17:30:53]sum+1 = 50032 [17:30:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 114 19.04.2024 17:30 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76494 ФПД: 97296135095188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T173055&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76494&fm=97296135095188&tin=02508201610067®Number=0000000000091573&sum=50000 [17:30:54]StoreToDocumentArchive [17:30:54]shift 370 fd 76494 [17:30:54]save to /storage/0370/doc_00076494 [17:30:54]save last doc name /storage/0370/doc_00076494 to /storage/kkm_last_doc_name [17:30:54]save OK [17:30:54]Clear old archive folders... [17:30:54]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:30:54]tlvbuf is 009C6010 [17:30:54]SAM_PROTO_ClearQueue [17:30:54]wFMCommunicate request_size=4 [17:30:54]MH_SAM_APDU [17:30:54]CAPDU: 80 09 00 00 [17:30:54]Write to MH i2c: E2 08 00 01 0E 80 09 00 00 00 00 00 00 81 [17:30:54]Write i2c OK [17:30:54]MH_I2C_Read... [17:30:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:54]Read from MH i2c: E2 [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: E2 03 00 [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: E2 03 00 01 0E 00 90 00 83 [17:30:54]RAPDU: 90 00 [17:30:54]wFMCommunicate OK [17:30:54]SAM_PROTO_ClearQueue done [17:30:54]KKMCreateOFDPacket [17:30:54]OFDProtocolAddRootSTLVToBuf [17:30:54]FM_MakeSignedData [17:30:54]FM_MakeSignedData [17:30:54]SAM_PROTO_SignData [17:30:54]wFMCommunicate request_size=4 [17:30:54]MH_SAM_APDU [17:30:54]CAPDU: 80 0D 01 02 [17:30:54]Write to MH i2c: E2 08 00 02 0E 80 0D 01 02 00 00 00 00 89 [17:30:54]Write i2c OK [17:30:54]MH_I2C_Read... [17:30:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:55]Read from MH i2c: E2 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 03 00 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 03 00 02 0E 00 90 00 84 [17:30:55]RAPDU: 90 00 [17:30:55]wFMCommunicate OK [17:30:55]wFMCommunicate request_size=255 [17:30:55]MH_SAM_APDU [17:30:55]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 72 00 00 00 F4 03 04 00 4F AA 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CE 2A 01 00 35 04 06 00 58 7D [17:30:55]Write to MH i2c: E2 02 01 03 0E 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 72 00 00 00 F4 03 04 00 4F AA 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CE 2A 01 00 35 04 06 00 58 7D 00 00 28 [17:30:55]Write i2c OK [17:30:55]MH_I2C_Read... [17:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:55]Read from MH i2c: E2 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 03 00 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 03 00 03 0E 00 90 00 85 [17:30:55]RAPDU: 90 00 [17:30:55]wFMCommunicate OK [17:30:55]wFMCommunicate request_size=9 [17:30:55]MH_SAM_APDU [17:30:55]CAPDU: 80 0D 02 02 04 85 92 03 94 [17:30:55]Write to MH i2c: E2 0C 00 04 0E 80 0D 02 02 04 00 85 92 03 94 00 00 42 [17:30:55]Write i2c OK [17:30:55]MH_I2C_Read... [17:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:55]Read from MH i2c: E2 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 03 00 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 03 00 04 0E 00 90 00 86 [17:30:55]RAPDU: 90 00 [17:30:55]wFMCommunicate OK [17:30:55]wFMCommunicate request_size=4 [17:30:55]MH_SAM_APDU [17:30:55]CAPDU: 80 0D 03 02 [17:30:55]Write to MH i2c: E2 08 00 05 0E 80 0D 03 02 00 00 00 00 8E [17:30:55]Write i2c OK [17:30:55]MH_I2C_Read... [17:30:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:55]Read from MH i2c: E2 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 0B 00 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 0B 00 05 0E 00 9E 8F 41 93 2F 13 AA B9 90 00 35 [17:30:55]RAPDU: 9E 8F 41 93 2F 13 AA B9 90 00 [17:30:55]wFMCommunicate OK [17:30:55]SAM_PROTO_SignData done [17:30:55]FM_MakeSignedData done [17:30:55]CreateOFDProtocolMessage [17:30:55]wFMCommunicate request_size=4 [17:30:55]MH_SAM_APDU [17:30:55]CAPDU: 80 11 00 00 [17:30:55]Write to MH i2c: E2 08 00 06 0E 80 11 00 00 00 00 00 00 8E [17:30:55]Write i2c OK [17:30:55]MH_I2C_Read... [17:30:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:55]Read from MH i2c: E2 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 17 00 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 17 00 06 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E1 [17:30:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:30:55]wFMCommunicate OK [17:30:55]CreateOFDProtocolMessage done [17:30:55]OFDSenderStorePacket 76494 [17:30:55]StoreOFDPacket docnum=76494 [17:30:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 8B 45 06 01 C2 D8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 72 00 00 00 F4 03 04 00 4F AA 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CE 2A 01 00 35 04 06 00 58 7D 85 92 03 94 9E 8F 41 93 2F 13 AA B9 [17:30:55]CheckFolder [17:30:55]dirname=/storage/ofd_packets [17:30:55]CheckFolder done [17:30:55]ProducePacketName [17:30:55]name=ofd_packets/00076494 [17:30:55]NVStorageSaveData ofd_packets/00076494 [17:30:55]File name is /storage/ofd_packets/00076494 [17:30:55]Write 300 bytes [17:30:55]NVStorageSaveData done [17:30:55]OFDSenderStorePacket done [17:30:55]KKMCreateOFDPacket done [17:30:55]NVStorageSaveData kkm_last_timestamp [17:30:55]File name is /storage/kkm_last_timestamp [17:30:55]Write 4 bytes [17:30:55]NVStorageSaveData done [17:30:55]ExternCall_PrintAddStr [17:30:55]wPrintStart [17:30:55]Write to MH i2c: 01 00 00 07 0E 15 [17:30:55]Write i2c OK [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: 01 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: 01 07 00 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: 01 07 00 07 0E 00 00 00 00 00 FF 0F 2A [17:30:55]RasterBufferAndPrint [17:30:55]line Счет N : (1)190974 [17:30:55]line ИНН: 02508201610067 [17:30:55]line Контрольно-Кассовый Чек [17:30:55]line ПРОДАЖА [17:30:55]line ТРК (МРК, ГНК) : 71 [17:30:55]line Товар: 2711190000 [17:30:55]line ГАЗ-К-5 [17:30:55]line 15.300 * 32.70 [17:30:55]line = 500.31 [17:30:55]line НДС 12% НСП 1% [17:30:55]line > о реализуемом товаре [17:30:55]line ОКРУГЛЕНИЕ: -0.31 [17:30:55]line ИТОГО: 500.00 [17:30:55]line Внесено: 500.00 [17:30:55]line СДАЧА: 0.00 [17:30:55]line НСП 1% : 4.43 [17:30:55]line НДС 12% : 53.13 [17:30:55]line Наличными: 500.00 [17:30:55]line Безнал.: 0.00 [17:30:55]line Место: АЗС № 106 "Партнер Нефть" [17:30:55]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:30:55]line СНО: Общий режим [17:30:55]line Чек 114 19.04.2024 17:30 [17:30:55]line Смена: 370 ФФД: 1.0 [17:30:55]line ЗНМ: 0300000141 [17:30:55]line РНМ: 0000000000091573 [17:30:55]line Версия ККМ: 001 [17:30:55]line ФМ: 0000000000874652 [17:30:55]line ФД: 76494 [17:30:55]line ФПД: 97296135095188 [17:30:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T173055&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76494&fm=97296135095188&tin=02508201610067®Number=0000000000091573&sum=50000 [17:30:55]OFD Sender: Processing packet 76494 [packets to send 128, broken 127] [17:30:55]ProducePacketName [17:30:55]name=ofd_packets/00076494 [17:30:55]OFD Sender: To server: pG, [17:30:55]CommunicateWithHost lk.salyk.kg:30040 [17:30:55]ConnectInit lk.salyk.kg [17:30:55]written 0, free lines is 4095 [17:30:55]Connected sock=10 [17:30:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 8B 45 06 01 C2 D8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 72 00 00 00 F4 03 04 00 4F AA 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CE 2A 01 00 35 04 06 00 58 7D 85 92 03 94 9E 8F 41 93 2F 13 AA B9 [17:30:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A7 04 47 00 0A 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CE 2A 01 00 F4 03 04 00 DA 51 22 66 B6 04 01 00 00 D4 71 23 79 22 6B F1 DA [17:30:56]CommunicateWithHost err = 0 [17:30:56]CheckOFDResponse [17:30:56]1017 (14) - 77093643461234 [17:30:56]1041 (16) - 0000000000874652 [17:30:56]1040 (4) - 76494 [17:30:56]1012 (4) - 19.04.2024 11:13 [17:30:56]1206 (1) - 0 [17:30:56]OFD Sender: Remove packet 76494 [17:30:56]ProducePacketName [17:30:56]name=ofd_packets/00076494 [17:30:56]NVStorageDeleteData [17:30:56]Write to MH i2c: 01 00 00 31 0E 3F [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: 01 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: 01 07 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: 01 07 00 31 0E 00 00 00 00 00 DC 0C 2E [17:30:56]RasterBufferAndPrint [17:30:56]line [17:30:56]line [17:30:56]line [17:30:56]line [17:30:56]line [17:30:56]written 0, free lines is 3298 [17:30:56]MH_Cut [17:30:56]Write to MH i2c: D1 01 00 38 0E 01 18 [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: D1 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: D1 01 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: D1 01 00 38 0E 00 17 [17:30:56]Write to MH i2c: 01 00 00 39 0E 47 [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]OFD Sender: No OFD packet to send [17:30:56]*** Cut start [17:30:56]*** Partial cut [17:30:56]*** CUTSNS_PIN = 1 [17:30:57]*** CUTSNS_PIN = 0 [17:30:57]*** Brake cut motor [17:30:57]Read from MH i2c: 01 [17:30:57]MH_I2C_Read... [17:30:57]*** Stop cut motor [17:30:57]*** Cut end [17:30:57]Read from MH i2c: 01 07 00 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: 01 07 00 39 0E 00 00 00 00 00 FF 0F 5C [17:30:57]process_action close_receipt done [17:30:57]requested_data is exist [17:30:57]produce_requested_data [17:30:57]requested_item fm.sn is exist - process it [17:30:57]wFMCommunicate request_size=4 [17:30:57]MH_SAM_APDU [17:30:57]CAPDU: 80 11 00 00 [17:30:57]Write to MH i2c: E2 08 00 3A 0E 80 11 00 00 00 00 00 00 C2 [17:30:57]Write i2c OK [17:30:57]MH_I2C_Read... [17:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:57]Read from MH i2c: E2 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: E2 17 00 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: E2 17 00 3A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 15 [17:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:30:57]wFMCommunicate OK [17:30:57]requested_item fd.num is exist - process it [17:30:57]SAM_PROTO_GetFieldsCounters [17:30:57]wFMCommunicate request_size=4 [17:30:57]MH_SAM_APDU [17:30:57]CAPDU: 80 13 00 00 [17:30:57]Write to MH i2c: E2 08 00 3B 0E 80 13 00 00 00 00 00 00 C5 [17:30:57]Write i2c OK [17:30:57]MH_I2C_Read... [17:30:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:57]Read from MH i2c: E2 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: E2 62 00 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: E2 62 00 3B 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CE 2A 01 00 0E 04 04 00 72 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 A8 [17:30:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CE 2A 01 00 0E 04 04 00 72 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 [17:30:57]wFMCommunicate OK [17:30:57]SAM_PROTO_GetFieldsCounters done [17:30:57]requested_item shift.num is exist - process it [17:30:57]requested_item shift.opened is exist - process it [17:30:57]req_shift_opened [17:30:57]FM_GetShiftState [17:30:57]SAM_PROTO_GetShiftState [17:30:57]wFMCommunicate request_size=4 [17:30:57]MH_SAM_APDU [17:30:57]CAPDU: 80 13 01 00 [17:30:57]Write to MH i2c: E2 08 00 3C 0E 80 13 01 00 00 00 00 00 C7 [17:30:57]Write i2c OK [17:30:57]MH_I2C_Read... [17:30:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:57]Read from MH i2c: E2 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: E2 0E 00 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: E2 0E 00 3C 0E 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 AC [17:30:57]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:30:57]wFMCommunicate OK [17:30:57]SAM_PROTO_GetShiftState done [17:30:57]FM_GetShiftState done [17:30:57]req_shift_opened done [17:30:57]requested_item shift.open_date is exist - process it [17:30:57]req_shift_open_date [17:30:57]req_shift_open_date done [17:30:57]produce_requested_data done [17:30:57]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76494,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [17:30:57]process_action_free close_receipt [17:30:57]json_value_free [17:30:57]json_value_free done [17:30:57]process_json_proto returns [17:30:57]Send response to host [17:30:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76494,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [17:30:57]free response buf [17:30:57]execute_script done [17:30:57]execute_script returns [17:30:57]free content buf [17:30:57]Sock 7.Close socket [17:30:57]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [17:32:51]OFD Sender: No OFD packet to send [17:32:56]OFD Sender: No OFD packet to send [17:33:01]OFD Sender: No OFD packet to send [17:33:06]OFD Sender: No OFD packet to send [17:33:11]OFD Sender: No OFD packet to send [17:33:16]OFD Sender: No OFD packet to send [17:33:21]OFD Sender: No OFD packet to send [17:33:26]OFD Sender: No OFD packet to send [17:33:31]OFD Sender: No OFD packet to send [17:33:36]OFD Sender: No OFD packet to send [17:33:41]OFD Sender: No OFD packet to send [17:33:46]OFD Sender: No OFD packet to send [17:33:51]OFD Sender: No OFD packet to send [17:33:56]OFD Sender: No OFD packet to send [17:34:01]OFD Sender: No OFD packet to send [17:34:06]OFD Sender: No OFD packet to send [17:34:11]OFD Sender: No OFD packet to send [17:34:16]OFD Sender: No OFD packet to send [17:34:21]OFD Sender: No OFD packet to send [17:34:26]OFD Sender: No OFD packet to send [17:34:31]OFD Sender: No OFD packet to send [17:34:36]OFD Sender: No OFD packet to send [17:34:41]OFD Sender: No OFD packet to send [17:34:46]OFD Sender: No OFD packet to send [17:34:51]OFD Sender: No OFD packet to send [17:34:56]OFD Sender: No OFD packet to send [17:35:01]OFD Sender: No OFD packet to send [17:35:06]OFD Sender: No OFD packet to send [17:35:11]OFD Sender: No OFD packet to send [17:35:16]OFD Sender: No OFD packet to send [17:35:21]OFD Sender: No OFD packet to send [17:35:26]OFD Sender: No OFD packet to send [17:35:31]OFD Sender: No OFD packet to send [17:35:36]OFD Sender: No OFD packet to send [17:35:41]OFD Sender: No OFD packet to send [17:35:46]OFD Sender: No OFD packet to send [17:35:51]OFD Sender: No OFD packet to send [17:35:56]OFD Sender: No OFD packet to send [17:36:01]OFD Sender: No OFD packet to send [17:36:06]OFD Sender: No OFD packet to send [17:36:11]OFD Sender: No OFD packet to send [17:36:12]accept exits with 9 [17:36:12]New connection [17:36:12]New thread 3067080036 created [17:36:12]Thread 3066936676 joined [17:36:12]Waiting for new connection... [17:36:12] Sock 9.Parse request [17:36:12]Sock 9.Check first char [17:36:12]Sock 9.First char is OK [17:36:12]request: POST /json_proto HTTP/1.0 [17:36:12]Method: POST [17:36:12]URL: /json_proto [17:36:12]Method is POST - this is cgi request [17:36:12]url: /json_proto [17:36:12]query_string will be loaded in cgi processing [17:36:12]execute_cgi json_proto POST (null) [17:36:12]execute_cgi path=json_proto method=POST [17:36:12]POST find Content-Length [17:36:12]Host: 172.17.62.5:8080 [17:36:12]Content-Length: 681 [17:36:12]Content-Type: application/json [17:36:12] [17:36:12]POST finish read [17:36:12]Found Content-Length = 681 [17:36:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 10.100, "sum" : 330.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:12]execute_script... [17:36: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)190975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 10.100, "sum" : 330.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:12]POST & json_proto [17:36:12]process_json_proto [17:36:12]json parsed OK: [17:36:12]protocol is kg_v1.0 [17:36:12]action value=close_receipt [17:36:12]process_action close_receipt [17:36:12]cmd_close_receipt [17:36:12]MH_GetDate [17:36:12]Write to MH i2c: F0 00 00 3D 0E 3A [17:36:12]Write i2c OK [17:36:12]MH_I2C_Read... [17:36:12]Read from MH i2c: F0 [17:36:12]MH_I2C_Read... [17:36:12]Read from MH i2c: F0 09 00 [17:36:12]MH_I2C_Read... [17:36:12]Read from MH i2c: F0 09 00 3D 0E 00 8D AB 22 66 F4 E9 65 64 A9 [17:36:12]GetLastDocTimeStamp 1713547855 [17:36:12]current date 1713548173 [17:36:12]FM_GetShiftState [17:36:12]SAM_PROTO_GetShiftState [17:36:12]wFMCommunicate request_size=4 [17:36:12]MH_SAM_APDU [17:36:12]CAPDU: 80 13 01 00 [17:36:12]Write to MH i2c: E2 08 00 3E 0E 80 13 01 00 00 00 00 00 C9 [17:36:12]Write i2c OK [17:36:12]MH_I2C_Read... [17:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:12]Read from MH i2c: E2 [17:36:12]MH_I2C_Read... [17:36:12]Read from MH i2c: E2 0E 00 [17:36:12]MH_I2C_Read... [17:36:12]Read from MH i2c: E2 0E 00 3E 0E 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 AE [17:36:12]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:36:12]wFMCommunicate OK [17:36:12]SAM_PROTO_GetShiftState done [17:36:12]FM_GetShiftState done [17:36:12]opened in 1713486233 [17:36:12]opened+sec_in_day 1713572633 [17:36:12]quantity*price = 33027 [17:36:12]sum+1 = 33028 [17:36:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.07 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 115 19.04.2024 17:36 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76495 ФПД: 15047099588670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T173613&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76495&fm=15047099588670&tin=02508201610067®Number=0000000000091573&sum=33000 [17:36:13]StoreToDocumentArchive [17:36:13]shift 370 fd 76495 [17:36:13]save to /storage/0370/doc_00076495 [17:36:13]save last doc name /storage/0370/doc_00076495 to /storage/kkm_last_doc_name [17:36:13]save OK [17:36:13]Clear old archive folders... [17:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:36:13]tlvbuf is 00A04D70 [17:36:13]SAM_PROTO_ClearQueue [17:36:13]wFMCommunicate request_size=4 [17:36:13]MH_SAM_APDU [17:36:13]CAPDU: 80 09 00 00 [17:36:13]Write to MH i2c: E2 08 00 4B 0E 80 09 00 00 00 00 00 00 CB [17:36:13]Write i2c OK [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 [17:36:13]MH_I2C_Read... [17:36:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:13]Read from MH i2c: E2 03 00 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 03 00 4B 0E 00 90 00 CD [17:36:13]RAPDU: 90 00 [17:36:13]wFMCommunicate OK [17:36:13]SAM_PROTO_ClearQueue done [17:36:13]KKMCreateOFDPacket [17:36:13]OFDProtocolAddRootSTLVToBuf [17:36:13]FM_MakeSignedData [17:36:13]FM_MakeSignedData [17:36:13]SAM_PROTO_SignData [17:36:13]wFMCommunicate request_size=4 [17:36:13]MH_SAM_APDU [17:36:13]CAPDU: 80 0D 01 02 [17:36:13]Write to MH i2c: E2 08 00 4C 0E 80 0D 01 02 00 00 00 00 D3 [17:36:13]Write i2c OK [17:36:13]MH_I2C_Read... [17:36:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:13]Read from MH i2c: E2 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 03 00 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 03 00 4C 0E 00 90 00 CE [17:36:13]RAPDU: 90 00 [17:36:13]wFMCommunicate OK [17:36:13]wFMCommunicate request_size=255 [17:36:13]MH_SAM_APDU [17:36:13]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 03 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0D 00 00 00 00 07 04 06 00 E8 80 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 8D AB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CF 2A 01 00 35 04 06 00 0D AF [17:36:13]Write to MH i2c: E2 02 01 4D 0E 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 03 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0D 00 00 00 00 07 04 06 00 E8 80 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 8D AB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CF 2A 01 00 35 04 06 00 0D AF 00 00 86 [17:36:13]Write i2c OK [17:36:13]MH_I2C_Read... [17:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:13]Read from MH i2c: E2 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 03 00 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 03 00 4D 0E 00 90 00 CF [17:36:13]RAPDU: 90 00 [17:36:13]wFMCommunicate OK [17:36:13]wFMCommunicate request_size=9 [17:36:13]MH_SAM_APDU [17:36:13]CAPDU: 80 0D 02 02 04 6D 06 A0 3E [17:36:13]Write to MH i2c: E2 0C 00 4E 0E 80 0D 02 02 04 00 6D 06 A0 3E 00 00 2F [17:36:13]Write i2c OK [17:36:13]MH_I2C_Read... [17:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:13]Read from MH i2c: E2 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 03 00 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 03 00 4E 0E 00 90 00 D0 [17:36:13]RAPDU: 90 00 [17:36:13]wFMCommunicate OK [17:36:13]wFMCommunicate request_size=4 [17:36:13]MH_SAM_APDU [17:36:13]CAPDU: 80 0D 03 02 [17:36:13]Write to MH i2c: E2 08 00 4F 0E 80 0D 03 02 00 00 00 00 D8 [17:36:13]Write i2c OK [17:36:13]MH_I2C_Read... [17:36:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:13]Read from MH i2c: E2 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 0B 00 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 0B 00 4F 0E 00 2A 3D E5 FC D7 F0 08 B3 90 00 A3 [17:36:13]RAPDU: 2A 3D E5 FC D7 F0 08 B3 90 00 [17:36:13]wFMCommunicate OK [17:36:13]SAM_PROTO_SignData done [17:36:13]FM_MakeSignedData done [17:36:13]CreateOFDProtocolMessage [17:36:13]wFMCommunicate request_size=4 [17:36:13]MH_SAM_APDU [17:36:13]CAPDU: 80 11 00 00 [17:36:13]Write to MH i2c: E2 08 00 50 0E 80 11 00 00 00 00 00 00 D8 [17:36:13]Write i2c OK [17:36:13]MH_I2C_Read... [17:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:13]Read from MH i2c: E2 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 17 00 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 17 00 50 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2B [17:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:36:13]wFMCommunicate OK [17:36:13]CreateOFDProtocolMessage done [17:36:13]OFDSenderStorePacket 76495 [17:36:13]StoreOFDPacket docnum=76495 [17:36:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 DC 2B 06 01 97 74 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 03 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0D 00 00 00 00 07 04 06 00 E8 80 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 8D AB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CF 2A 01 00 35 04 06 00 0D AF 6D 06 A0 3E 2A 3D E5 FC D7 F0 08 B3 [17:36:13]CheckFolder [17:36:13]dirname=/storage/ofd_packets [17:36:13]CheckFolder done [17:36:13]ProducePacketName [17:36:13]name=ofd_packets/00076495 [17:36:13]NVStorageSaveData ofd_packets/00076495 [17:36:13]File name is /storage/ofd_packets/00076495 [17:36:13]Write 300 bytes [17:36:13]NVStorageSaveData done [17:36:13]OFDSenderStorePacket done [17:36:13]KKMCreateOFDPacket done [17:36:13]NVStorageSaveData kkm_last_timestamp [17:36:13]File name is /storage/kkm_last_timestamp [17:36:13]Write 4 bytes [17:36:13]NVStorageSaveData done [17:36:13]ExternCall_PrintAddStr [17:36:13]wPrintStart [17:36:13]Write to MH i2c: 01 00 00 51 0E 5F [17:36:13]Write i2c OK [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: 01 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: 01 07 00 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: 01 07 00 51 0E 00 00 00 00 00 FF 0F 74 [17:36:13]RasterBufferAndPrint [17:36:13]line Счет N : (1)190975 [17:36:13]line ИНН: 02508201610067 [17:36:13]line Контрольно-Кассовый Чек [17:36:13]line ПРОДАЖА [17:36:13]line ТРК (МРК, ГНК) : 71 [17:36:13]line Товар: 2711190000 [17:36:13]line ГАЗ-К-5 [17:36:13]line 10.100 * 32.70 [17:36:13]line = 330.27 [17:36:13]line НДС 12% НСП 1% [17:36:13]line > о реализуемом товаре [17:36:13]line ОКРУГЛЕНИЕ: -0.27 [17:36:13]line ИТОГО: 330.00 [17:36:13]line Внесено: 330.00 [17:36:13]line СДАЧА: 0.00 [17:36:13]line НСП 1% : 2.92 [17:36:13]line НДС 12% : 35.07 [17:36:13]line Наличными: 330.00 [17:36:13]line Безнал.: 0.00 [17:36:13]line Место: АЗС № 106 "Партнер Нефть" [17:36:13]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:36:13]line СНО: Общий режим [17:36:13]line Чек 115 19.04.2024 17:36 [17:36:13]line Смена: 370 ФФД: 1.0 [17:36:13]line ЗНМ: 0300000141 [17:36:14]line РНМ: 0000000000091573 [17:36:14]line Версия ККМ: 001 [17:36:14]line ФМ: 0000000000874652 [17:36:14]line ФД: 76495 [17:36:14]line ФПД: 15047099588670 [17:36:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T173613&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76495&fm=15047099588670&tin=02508201610067®Number=0000000000091573&sum=33000 [17:36:14]OFD Sender: Processing packet 76495 [packets to send 128, broken 127] [17:36:14]ProducePacketName [17:36:14]name=ofd_packets/00076495 [17:36:14]OFD Sender: To server: pG, [17:36:14]CommunicateWithHost lk.salyk.kg:30040 [17:36:14]ConnectInit lk.salyk.kg [17:36:14]written 0, free lines is 4095 [17:36:14]Connected sock=10 [17:36:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 DC 2B 06 01 97 74 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 03 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0D 00 00 00 00 07 04 06 00 E8 80 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 8D AB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CF 2A 01 00 35 04 06 00 0D AF 6D 06 A0 3E 2A 3D E5 FC D7 F0 08 B3 [17:36:14]Write to MH i2c: 01 00 00 7B 0E 89 [17:36:14]Write i2c OK [17:36:14]MH_I2C_Read... [17:36:14]Read from MH i2c: 01 [17:36:14]MH_I2C_Read... [17:36:14]Read from MH i2c: 01 07 00 [17:36:14]MH_I2C_Read... [17:36:14]Read from MH i2c: 01 07 00 7B 0E 00 00 00 00 00 E4 0C 80 [17:36:14]RasterBufferAndPrint [17:36:14]line [17:36:14]line [17:36:14]line [17:36:14]line [17:36:14]line [17:36:14]written 0, free lines is 3306 [17:36:14]MH_Cut [17:36:14]Write to MH i2c: D1 01 00 82 0E 01 62 [17:36:14]Write i2c OK [17:36:14]MH_I2C_Read... [17:36:14]Read from MH i2c: D1 [17:36:14]MH_I2C_Read... [17:36:14]Read from MH i2c: D1 01 00 [17:36:14]MH_I2C_Read... [17:36:14]Read from MH i2c: D1 01 00 82 0E 00 61 [17:36:14]Write to MH i2c: 01 00 00 83 0E 91 [17:36:14]Write i2c OK [17:36:14]MH_I2C_Read... [17:36:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 B2 A6 47 00 FD 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CF 2A 01 00 F4 03 04 00 18 53 22 66 B6 04 01 00 00 13 6A 00 29 D4 55 71 B1 [17:36:14]CommunicateWithHost err = 0 [17:36:14]CheckOFDResponse [17:36:14]1017 (14) - 77093643461234 [17:36:14]1041 (16) - 0000000000874652 [17:36:14]1040 (4) - 76495 [17:36:14]1012 (4) - 19.04.2024 11:18 [17:36:14]1206 (1) - 0 [17:36:14]OFD Sender: Remove packet 76495 [17:36:14]ProducePacketName [17:36:14]name=ofd_packets/00076495 [17:36:14]NVStorageDeleteData [17:36:15]OFD Sender: No OFD packet to send [17:36:15]*** Cut start [17:36:15]*** Partial cut [17:36:15]*** CUTSNS_PIN = 1 [17:36:15]*** CUTSNS_PIN = 0 [17:36:15]*** Brake cut motor [17:36:15]Read from MH i2c: 01 [17:36:15]MH_I2C_Read... [17:36:15]*** Stop cut motor [17:36:15]*** Cut end [17:36:15]Read from MH i2c: 01 07 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: 01 07 00 83 0E 00 00 00 00 00 FF 0F A6 [17:36:15]process_action close_receipt done [17:36:15]requested_data is exist [17:36:15]produce_requested_data [17:36:15]requested_item fm.sn is exist - process it [17:36:15]wFMCommunicate request_size=4 [17:36:15]MH_SAM_APDU [17:36:15]CAPDU: 80 11 00 00 [17:36:15]Write to MH i2c: E2 08 00 84 0E 80 11 00 00 00 00 00 00 0C [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:15]Read from MH i2c: E2 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 17 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 17 00 84 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5F [17:36:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:36:15]wFMCommunicate OK [17:36:15]requested_item fd.num is exist - process it [17:36:15]SAM_PROTO_GetFieldsCounters [17:36:15]wFMCommunicate request_size=4 [17:36:15]MH_SAM_APDU [17:36:15]CAPDU: 80 13 00 00 [17:36:15]Write to MH i2c: E2 08 00 85 0E 80 13 00 00 00 00 00 00 0F [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:16]Read from MH i2c: E2 [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: E2 62 00 [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: E2 62 00 85 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CF 2A 01 00 0E 04 04 00 72 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 F6 [17:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CF 2A 01 00 0E 04 04 00 72 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 [17:36:16]wFMCommunicate OK [17:36:16]SAM_PROTO_GetFieldsCounters done [17:36:16]requested_item shift.num is exist - process it [17:36:16]requested_item shift.opened is exist - process it [17:36:16]req_shift_opened [17:36:16]FM_GetShiftState [17:36:16]SAM_PROTO_GetShiftState [17:36:16]wFMCommunicate request_size=4 [17:36:16]MH_SAM_APDU [17:36:16]CAPDU: 80 13 01 00 [17:36:16]Write to MH i2c: E2 08 00 86 0E 80 13 01 00 00 00 00 00 11 [17:36:16]Write i2c OK [17:36:16]MH_I2C_Read... [17:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:16]Read from MH i2c: E2 [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: E2 0E 00 [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: E2 0E 00 86 0E 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 F6 [17:36:16]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:36:16]wFMCommunicate OK [17:36:16]SAM_PROTO_GetShiftState done [17:36:16]FM_GetShiftState done [17:36:16]req_shift_opened done [17:36:16]requested_item shift.open_date is exist - process it [17:36:16]req_shift_open_date [17:36:16]req_shift_open_date done [17:36:16]produce_requested_data done [17:36:16]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76495,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [17:36:16]process_action_free close_receipt [17:36:16]json_value_free [17:36:16]json_value_free done [17:36:16]process_json_proto returns [17:36:16]Send response to host [17:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76495,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [17:36:16]free response buf [17:36:16]execute_script done [17:36:16]execute_script returns [17:36:16]free content buf [17:36:16]Sock 9.Close socket [17:36:16]Sock 9.Thread stoped [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:13]accept exits with 7 [17:37:13]New connection [17:37:13]New thread 3066936676 created [17:37:13]Thread 3067080036 joined [17:37:13]Waiting for new connection... [17:37:13] Sock 7.Parse request [17:37:13]Sock 7.Check first char [17:37:13]Sock 7.First char is OK [17:37:13]request: POST /json_proto HTTP/1.0 [17:37:13]Method: POST [17:37:13]URL: /json_proto [17:37:13]Method is POST - this is cgi request [17:37:13]url: /json_proto [17:37:13]query_string will be loaded in cgi processing [17:37:13]execute_cgi json_proto POST (null) [17:37:13]execute_cgi path=json_proto method=POST [17:37:13]POST find Content-Length [17:37:13]Host: 172.17.62.5:8080 [17:37:13]Content-Length: 675 [17:37:13]Content-Type: application/json [17:37:13] [17:37:13]POST finish read [17:37:13]Found Content-Length = 675 [17:37:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:13]execute_script... [17:37:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:13]POST & json_proto [17:37:13]process_json_proto [17:37:13]json parsed OK: [17:37:13]protocol is kg_v1.0 [17:37:13]action value=close_receipt [17:37:13]process_action close_receipt [17:37:13]cmd_close_receipt [17:37:13]MH_GetDate [17:37:13]Write to MH i2c: F0 00 00 87 0E 84 [17:37:13]Write i2c OK [17:37:13]MH_I2C_Read... [17:37:13]Read from MH i2c: F0 [17:37:13]MH_I2C_Read... [17:37:13]Read from MH i2c: F0 09 00 [17:37:13]MH_I2C_Read... [17:37:13]Read from MH i2c: F0 09 00 87 0E 00 CB AB 22 66 F4 E9 65 64 31 [17:37:13]GetLastDocTimeStamp 1713548173 [17:37:13]current date 1713548235 [17:37:13]FM_GetShiftState [17:37:13]SAM_PROTO_GetShiftState [17:37:13]wFMCommunicate request_size=4 [17:37:13]MH_SAM_APDU [17:37:13]CAPDU: 80 13 01 00 [17:37:13]Write to MH i2c: E2 08 00 88 0E 80 13 01 00 00 00 00 00 13 [17:37:13]Write i2c OK [17:37:13]MH_I2C_Read... [17:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:13]Read from MH i2c: E2 [17:37:13]MH_I2C_Read... [17:37:13]Read from MH i2c: E2 0E 00 [17:37:13]MH_I2C_Read... [17:37:13]Read from MH i2c: E2 0E 00 88 0E 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 F8 [17:37:13]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:37:13]wFMCommunicate OK [17:37:13]SAM_PROTO_GetShiftState done [17:37:13]FM_GetShiftState done [17:37:13]opened in 1713486233 [17:37:13]opened+sec_in_day 1713572633 [17:37:13]quantity*price = 100062 [17:37:13]sum+1 = 100063 [17:37:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 116 19.04.2024 17:37 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76496 ФПД: 268666337585451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T173715&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76496&fm=268666337585451&tin=02508201610067®Number=0000000000091573&sum=100000 [17:37:14]StoreToDocumentArchive [17:37:14]shift 370 fd 76496 [17:37:14]save to /storage/0370/doc_00076496 [17:37:14]save last doc name /storage/0370/doc_00076496 to /storage/kkm_last_doc_name [17:37:14]save OK [17:37:14]Clear old archive folders... [17:37:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:37:14]tlvbuf is 009E9370 [17:37:14]SAM_PROTO_ClearQueue [17:37:14]wFMCommunicate request_size=4 [17:37:14]MH_SAM_APDU [17:37:14]CAPDU: 80 09 00 00 [17:37:14]Write to MH i2c: E2 08 00 95 0E 80 09 00 00 00 00 00 00 15 [17:37:14]Write i2c OK [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: E2 [17:37:14]MH_I2C_Read... [17:37:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:14]Read from MH i2c: E2 03 00 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: E2 03 00 95 0E 00 90 00 17 [17:37:14]RAPDU: 90 00 [17:37:14]wFMCommunicate OK [17:37:14]SAM_PROTO_ClearQueue done [17:37:14]KKMCreateOFDPacket [17:37:14]OFDProtocolAddRootSTLVToBuf [17:37:14]FM_MakeSignedData [17:37:14]FM_MakeSignedData [17:37:14]SAM_PROTO_SignData [17:37:14]wFMCommunicate request_size=4 [17:37:14]MH_SAM_APDU [17:37:14]CAPDU: 80 0D 01 02 [17:37:14]Write to MH i2c: E2 08 00 96 0E 80 0D 01 02 00 00 00 00 1D [17:37:14]Write i2c OK [17:37:14]MH_I2C_Read... [17:37:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:14]Read from MH i2c: E2 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: E2 03 00 [17:37:14]MH_I2C_Read... [17:37:14]Read from MH i2c: E2 03 00 96 0E 00 90 00 18 [17:37:14]RAPDU: 90 00 [17:37:14]wFMCommunicate OK [17:37:14]wFMCommunicate request_size=255 [17:37:14]MH_SAM_APDU [17:37: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 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 74 00 00 00 F4 03 04 00 CB AB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D0 2A 01 00 35 04 06 00 [17:37:14]Write to MH i2c: E2 02 01 97 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 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 74 00 00 00 F4 03 04 00 CB AB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D0 2A 01 00 35 04 06 00 00 00 1E [17:37:14]Write i2c OK [17:37:14]MH_I2C_Read... [17:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:15]Read from MH i2c: E2 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 03 00 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 03 00 97 0E 00 90 00 19 [17:37:15]RAPDU: 90 00 [17:37:15]wFMCommunicate OK [17:37:15]wFMCommunicate request_size=11 [17:37:15]MH_SAM_APDU [17:37:15]CAPDU: 80 0D 02 02 06 F4 59 C1 9D 69 2B [17:37:15]Write to MH i2c: E2 0E 00 98 0E 80 0D 02 02 06 00 F4 59 C1 9D 69 2B 00 00 6B [17:37:15]Write i2c OK [17:37:15]MH_I2C_Read... [17:37:15]OFD Sender: No OFD packet to send [17:37:15]Read from MH i2c: E2 [17:37:15]MH_I2C_Read... [17:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:15]Read from MH i2c: E2 03 00 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 03 00 98 0E 00 90 00 1A [17:37:15]RAPDU: 90 00 [17:37:15]wFMCommunicate OK [17:37:15]wFMCommunicate request_size=4 [17:37:15]MH_SAM_APDU [17:37:15]CAPDU: 80 0D 03 02 [17:37:15]Write to MH i2c: E2 08 00 99 0E 80 0D 03 02 00 00 00 00 22 [17:37:15]Write i2c OK [17:37:15]MH_I2C_Read... [17:37:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:15]Read from MH i2c: E2 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 0B 00 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 0B 00 99 0E 00 7E A2 D8 FC 1B 27 E8 A5 90 00 E6 [17:37:15]RAPDU: 7E A2 D8 FC 1B 27 E8 A5 90 00 [17:37:15]wFMCommunicate OK [17:37:15]SAM_PROTO_SignData done [17:37:15]FM_MakeSignedData done [17:37:15]CreateOFDProtocolMessage [17:37:15]wFMCommunicate request_size=4 [17:37:15]MH_SAM_APDU [17:37:15]CAPDU: 80 11 00 00 [17:37:15]Write to MH i2c: E2 08 00 9A 0E 80 11 00 00 00 00 00 00 22 [17:37:15]Write i2c OK [17:37:15]MH_I2C_Read... [17:37:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:15]Read from MH i2c: E2 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 17 00 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: E2 17 00 9A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 75 [17:37:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:37:15]wFMCommunicate OK [17:37:15]CreateOFDProtocolMessage done [17:37:15]OFDSenderStorePacket 76496 [17:37:15]StoreOFDPacket docnum=76496 [17:37:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 E9 C6 08 01 0C 98 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 74 00 00 00 F4 03 04 00 CB AB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D0 2A 01 00 35 04 06 00 F4 59 C1 9D 69 2B 7E A2 D8 FC 1B 27 E8 A5 [17:37:15]CheckFolder [17:37:15]dirname=/storage/ofd_packets [17:37:15]CheckFolder done [17:37:15]ProducePacketName [17:37:15]name=ofd_packets/00076496 [17:37:15]NVStorageSaveData ofd_packets/00076496 [17:37:15]File name is /storage/ofd_packets/00076496 [17:37:15]Write 302 bytes [17:37:15]NVStorageSaveData done [17:37:15]OFDSenderStorePacket done [17:37:15]KKMCreateOFDPacket done [17:37:15]NVStorageSaveData kkm_last_timestamp [17:37:15]File name is /storage/kkm_last_timestamp [17:37:15]Write 4 bytes [17:37:15]NVStorageSaveData done [17:37:15]ExternCall_PrintAddStr [17:37:15]wPrintStart [17:37:15]Write to MH i2c: 01 00 00 9B 0E A9 [17:37:15]Write i2c OK [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: 01 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: 01 07 00 [17:37:15]MH_I2C_Read... [17:37:15]Read from MH i2c: 01 07 00 9B 0E 00 00 00 00 00 FF 0F BE [17:37:15]RasterBufferAndPrint [17:37:15]line Счет N : (1)190976 [17:37:15]line ИНН: 02508201610067 [17:37:15]line Контрольно-Кассовый Чек [17:37:15]line ПРОДАЖА [17:37:15]line ТРК (МРК, ГНК) : 31 [17:37:15]line Товар: 2710124130 [17:37:15]line SUPER 92-К-5 [17:37:15]line 15.300 * 65.40 [17:37:15]line = 1000.62 [17:37:15]line НДС 12% НСП 1% [17:37:15]line > о реализуемом товаре [17:37:15]line ОКРУГЛЕНИЕ: -0.62 [17:37:15]line ИТОГО: 1000.00 [17:37:15]line Внесено: 1000.00 [17:37:15]line СДАЧА: 0.00 [17:37:15]line НСП 1% : 8.85 [17:37:15]line НДС 12% : 106.26 [17:37:15]line Наличными: 1000.00 [17:37:15]line Безнал.: 0.00 [17:37:15]line Место: АЗС № 106 "Партнер Нефть" [17:37:15]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:37:15]line СНО: Общий режим [17:37:15]line Чек 116 19.04.2024 17:37 [17:37:15]line Смена: 370 ФФД: 1.0 [17:37:15]line ЗНМ: 0300000141 [17:37:15]line РНМ: 0000000000091573 [17:37:15]line Версия ККМ: 001 [17:37:15]line ФМ: 0000000000874652 [17:37:15]line ФД: 76496 [17:37:15]line ФПД: 268666337585451 [17:37:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T173715&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76496&fm=268666337585451&tin=02508201610067®Number=0000000000091573&sum=100000 [17:37:15]OFD Sender: Processing packet 76496 [packets to send 128, broken 127] [17:37:15]ProducePacketName [17:37:15]name=ofd_packets/00076496 [17:37:15]OFD Sender: To server: pG, [17:37:15]CommunicateWithHost lk.salyk.kg:30040 [17:37:15]ConnectInit lk.salyk.kg [17:37:15]written 0, free lines is 4095 [17:37:15]Connected sock=10 [17:37:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 E9 C6 08 01 0C 98 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 74 00 00 00 F4 03 04 00 CB AB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D0 2A 01 00 35 04 06 00 F4 59 C1 9D 69 2B 7E A2 D8 FC 1B 27 E8 A5 [17:37:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A5 36 47 00 06 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D0 2A 01 00 F4 03 04 00 56 53 22 66 B6 04 01 00 00 F0 0D 1A 1C C2 C0 7A 31 [17:37:15]CommunicateWithHost err = 0 [17:37:15]CheckOFDResponse [17:37:15]1017 (14) - 77093643461234 [17:37:15]1041 (16) - 0000000000874652 [17:37:15]1040 (4) - 76496 [17:37:15]1012 (4) - 19.04.2024 11:19 [17:37:15]1206 (1) - 0 [17:37:15]OFD Sender: Remove packet 76496 [17:37:15]ProducePacketName [17:37:15]name=ofd_packets/00076496 [17:37:15]NVStorageDeleteData [17:37:16]Write to MH i2c: 01 00 00 C5 0E D3 [17:37:16]Write i2c OK [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: 01 [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: 01 07 00 [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: 01 07 00 C5 0E 00 00 00 00 00 00 0D E7 [17:37:16]RasterBufferAndPrint [17:37:16]line [17:37:16]line [17:37:16]line [17:37:16]line [17:37:16]line [17:37:16]written 0, free lines is 3334 [17:37:16]MH_Cut [17:37:16]Write to MH i2c: D1 01 00 CC 0E 01 AC [17:37:16]Write i2c OK [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: D1 [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: D1 01 00 [17:37:16]MH_I2C_Read... [17:37:16]Read from MH i2c: D1 01 00 CC 0E 00 AB [17:37:16]Write to MH i2c: 01 00 00 CD 0E DB [17:37:16]Write i2c OK [17:37:16]MH_I2C_Read... [17:37:16]OFD Sender: No OFD packet to send [17:37:16]*** Cut start [17:37:16]*** Partial cut [17:37:16]*** CUTSNS_PIN = 1 [17:37:16]*** CUTSNS_PIN = 0 [17:37:17]*** Brake cut motor [17:37:17]Read from MH i2c: 01 [17:37:17]MH_I2C_Read... [17:37:17]*** Stop cut motor [17:37:17]*** Cut end [17:37:17]Read from MH i2c: 01 07 00 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: 01 07 00 CD 0E 00 00 00 00 00 FF 0F F0 [17:37:17]process_action close_receipt done [17:37:17]requested_data is exist [17:37:17]produce_requested_data [17:37:17]requested_item fm.sn is exist - process it [17:37:17]wFMCommunicate request_size=4 [17:37:17]MH_SAM_APDU [17:37:17]CAPDU: 80 11 00 00 [17:37:17]Write to MH i2c: E2 08 00 CE 0E 80 11 00 00 00 00 00 00 56 [17:37:17]Write i2c OK [17:37:17]MH_I2C_Read... [17:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:17]Read from MH i2c: E2 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 17 00 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 17 00 CE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A9 [17:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:37:17]wFMCommunicate OK [17:37:17]requested_item fd.num is exist - process it [17:37:17]SAM_PROTO_GetFieldsCounters [17:37:17]wFMCommunicate request_size=4 [17:37:17]MH_SAM_APDU [17:37:17]CAPDU: 80 13 00 00 [17:37:17]Write to MH i2c: E2 08 00 CF 0E 80 13 00 00 00 00 00 00 59 [17:37:17]Write i2c OK [17:37:17]MH_I2C_Read... [17:37:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:17]Read from MH i2c: E2 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 62 00 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 62 00 CF 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D0 2A 01 00 0E 04 04 00 72 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 44 [17: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D0 2A 01 00 0E 04 04 00 72 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 [17:37:17]wFMCommunicate OK [17:37:17]SAM_PROTO_GetFieldsCounters done [17:37:17]requested_item shift.num is exist - process it [17:37:17]requested_item shift.opened is exist - process it [17:37:17]req_shift_opened [17:37:17]FM_GetShiftState [17:37:17]SAM_PROTO_GetShiftState [17:37:17]wFMCommunicate request_size=4 [17:37:17]MH_SAM_APDU [17:37:17]CAPDU: 80 13 01 00 [17:37:17]Write to MH i2c: E2 08 00 D0 0E 80 13 01 00 00 00 00 00 5B [17:37:17]Write i2c OK [17:37:17]MH_I2C_Read... [17:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:17]Read from MH i2c: E2 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 0E 00 [17:37:17]MH_I2C_Read... [17:37:17]Read from MH i2c: E2 0E 00 D0 0E 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 40 [17:37:17]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:37:17]wFMCommunicate OK [17:37:17]SAM_PROTO_GetShiftState done [17:37:17]FM_GetShiftState done [17:37:17]req_shift_opened done [17:37:17]requested_item shift.open_date is exist - process it [17:37:17]req_shift_open_date [17:37:17]req_shift_open_date done [17:37:17]produce_requested_data done [17:37:17]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76496,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [17:37:17]process_action_free close_receipt [17:37:17]json_value_free [17:37:17]json_value_free done [17:37:17]process_json_proto returns [17:37:17]Send response to host [17:37:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76496,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [17:37:17]free response buf [17:37:17]execute_script done [17:37:17]execute_script returns [17:37:17]free content buf [17:37:17]Sock 7.Close socket [17:37:17]Sock 7.Thread stoped [17:37:21]OFD Sender: No OFD packet to send [17:37:26]OFD Sender: No OFD packet to send [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:27]OFD Sender: No OFD packet to send [17:44:32]OFD Sender: No OFD packet to send [17:44:37]OFD Sender: No OFD packet to send [17:44:42]OFD Sender: No OFD packet to send [17:44:47]OFD Sender: No OFD packet to send [17:44:52]OFD Sender: No OFD packet to send [17:44:57]OFD Sender: No OFD packet to send [17:45:02]OFD Sender: No OFD packet to send [17:45:07]OFD Sender: No OFD packet to send [17:45:12]OFD Sender: No OFD packet to send [17:45:17]OFD Sender: No OFD packet to send [17:45:22]OFD Sender: No OFD packet to send [17:45:27]OFD Sender: No OFD packet to send [17:45:32]OFD Sender: No OFD packet to send [17:45:37]OFD Sender: No OFD packet to send [17:45:42]OFD Sender: No OFD packet to send [17:45:47]OFD Sender: No OFD packet to send [17:45:52]OFD Sender: No OFD packet to send [17:45:57]OFD Sender: No OFD packet to send [17:46:02]OFD Sender: No OFD packet to send [17:46:07]OFD Sender: No OFD packet to send [17:46:12]OFD Sender: No OFD packet to send [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]OFD Sender: No OFD packet to send [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:07]OFD Sender: No OFD packet to send [17:48:12]OFD Sender: No OFD packet to send [17:48:17]OFD Sender: No OFD packet to send [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:37]OFD Sender: No OFD packet to send [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49:42]OFD Sender: No OFD packet to send [17:49:47]OFD Sender: No OFD packet to send [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:50:58]accept exits with 9 [17:50:58]New connection [17:50:58]New thread 3067080036 created [17:50:58]Thread 3066936676 joined [17:50:58]Waiting for new connection... [17:50:58] Sock 9.Parse request [17:50:58]Sock 9.Check first char [17:50:58]Sock 9.First char is OK [17:50:58]request: POST /json_proto HTTP/1.0 [17:50:58]Method: POST [17:50:58]URL: /json_proto [17:50:58]Method is POST - this is cgi request [17:50:58]url: /json_proto [17:50:58]query_string will be loaded in cgi processing [17:50:58]execute_cgi json_proto POST (null) [17:50:58]execute_cgi path=json_proto method=POST [17:50:58]POST find Content-Length [17:50:58]Host: 172.17.62.5:8080 [17:50:58]Content-Length: 978 [17:50:58]Content-Type: application/json [17:50:58] [17:50:58]POST finish read [17:50:58]Found Content-Length = 978 [17:50:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.82 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:58]execute_script... [17:50: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)190977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.82 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:58]POST & json_proto [17:50:58]process_json_proto [17:50:58]json parsed OK: [17:50:58]protocol is kg_v1.0 [17:50:58]action value=close_receipt [17:50:58]process_action close_receipt [17:50:58]cmd_close_receipt [17:50:58]MH_GetDate [17:50:58]Write to MH i2c: F0 00 00 D1 0E CE [17:50:58]Write i2c OK [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: F0 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: F0 09 00 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: F0 09 00 D1 0E 00 04 AF 22 66 F4 E9 65 64 B8 [17:50:58]GetLastDocTimeStamp 1713548235 [17:50:58]current date 1713549060 [17:50:58]FM_GetShiftState [17:50:58]SAM_PROTO_GetShiftState [17:50:58]wFMCommunicate request_size=4 [17:50:58]MH_SAM_APDU [17:50:58]CAPDU: 80 13 01 00 [17:50:58]Write to MH i2c: E2 08 00 D2 0E 80 13 01 00 00 00 00 00 5D [17:50:58]Write i2c OK [17:50:58]MH_I2C_Read... [17:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:58]Read from MH i2c: E2 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: E2 0E 00 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: E2 0E 00 D2 0E 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 42 [17:50:58]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:50:58]wFMCommunicate OK [17:50:58]SAM_PROTO_GetShiftState done [17:50:58]FM_GetShiftState done [17:50:58]opened in 1713486233 [17:50:58]opened+sec_in_day 1713572633 [17:50:58]quantity*price = 200025 [17:50:58]sum+1 = 200027 [17:50:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 117 19.04.2024 17:51 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 27.82 сом ФМ: 0000000000874652 ФД: 76497 ФПД: 72592787801054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T175100&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76497&fm=72592787801054&tin=02508201610067®Number=0000000000091573&sum=200000 [17:50:59]StoreToDocumentArchive [17:50:59]shift 370 fd 76497 [17:50:59]save to /storage/0370/doc_00076497 [17:50:59]save last doc name /storage/0370/doc_00076497 to /storage/kkm_last_doc_name [17:50:59]save OK [17:50:59]Clear old archive folders... [17:50:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:50:59]tlvbuf is 009B3420 [17:50:59]SAM_PROTO_ClearQueue [17:50:59]wFMCommunicate request_size=4 [17:50:59]MH_SAM_APDU [17:50:59]CAPDU: 80 09 00 00 [17:50:59]Write to MH i2c: E2 08 00 DF 0E 80 09 00 00 00 00 00 00 5F [17:50:59]Write i2c OK [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: E2 [17:50:59]MH_I2C_Read... [17:50:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:59]Read from MH i2c: E2 03 00 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: E2 03 00 DF 0E 00 90 00 61 [17:50:59]RAPDU: 90 00 [17:50:59]wFMCommunicate OK [17:50:59]SAM_PROTO_ClearQueue done [17:50:59]KKMCreateOFDPacket [17:50:59]OFDProtocolAddRootSTLVToBuf [17:50:59]FM_MakeSignedData [17:50:59]FM_MakeSignedData [17:50:59]SAM_PROTO_SignData [17:50:59]wFMCommunicate request_size=4 [17:50:59]MH_SAM_APDU [17:50:59]CAPDU: 80 0D 01 02 [17:50:59]Write to MH i2c: E2 08 00 E0 0E 80 0D 01 02 00 00 00 00 67 [17:50:59]Write i2c OK [17:50:59]MH_I2C_Read... [17:50:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:59]Read from MH i2c: E2 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: E2 03 00 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: E2 03 00 E0 0E 00 90 00 62 [17:50:59]RAPDU: 90 00 [17:50:59]wFMCommunicate OK [17:50:59]wFMCommunicate request_size=255 [17:50:59]MH_SAM_APDU [17:50:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 04 AF 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D1 2A 01 00 35 04 06 00 42 05 D3 54 [17:50:59]Write to MH i2c: E2 02 01 E1 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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 04 AF 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D1 2A 01 00 35 04 06 00 42 05 D3 54 00 00 E1 [17:50:59]Write i2c OK [17:50:59]MH_I2C_Read... [17:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:00]Read from MH i2c: E2 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 03 00 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 03 00 E1 0E 00 90 00 63 [17:51:00]RAPDU: 90 00 [17:51:00]wFMCommunicate OK [17:51:00]wFMCommunicate request_size=7 [17:51:00]MH_SAM_APDU [17:51:00]CAPDU: 80 0D 02 02 02 83 DE [17:51:00]Write to MH i2c: E2 0A 00 E2 0E 80 0D 02 02 02 00 83 DE 00 00 CF [17:51:00]Write i2c OK [17:51:00]MH_I2C_Read... [17:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:00]Read from MH i2c: E2 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 03 00 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 03 00 E2 0E 00 90 00 64 [17:51:00]RAPDU: 90 00 [17:51:00]wFMCommunicate OK [17:51:00]wFMCommunicate request_size=4 [17:51:00]MH_SAM_APDU [17:51:00]CAPDU: 80 0D 03 02 [17:51:00]Write to MH i2c: E2 08 00 E3 0E 80 0D 03 02 00 00 00 00 6C [17:51:00]Write i2c OK [17:51:00]MH_I2C_Read... [17:51:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:00]Read from MH i2c: E2 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 0B 00 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 0B 00 E3 0E 00 BE BB 03 47 1E 9C 89 88 90 00 FB [17:51:00]RAPDU: BE BB 03 47 1E 9C 89 88 90 00 [17:51:00]wFMCommunicate OK [17:51:00]SAM_PROTO_SignData done [17:51:00]FM_MakeSignedData done [17:51:00]CreateOFDProtocolMessage [17:51:00]wFMCommunicate request_size=4 [17:51:00]MH_SAM_APDU [17:51:00]CAPDU: 80 11 00 00 [17:51:00]Write to MH i2c: E2 08 00 E4 0E 80 11 00 00 00 00 00 00 6C [17:51:00]Write i2c OK [17:51:00]MH_I2C_Read... [17:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:00]Read from MH i2c: E2 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 17 00 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 17 00 E4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BF [17:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:51:00]wFMCommunicate OK [17:51:00]CreateOFDProtocolMessage done [17:51:00]OFDSenderStorePacket 76497 [17:51:00]StoreOFDPacket docnum=76497 [17:51:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 20 EA 04 01 7E DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 04 AF 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D1 2A 01 00 35 04 06 00 42 05 D3 54 83 DE BE BB 03 47 1E 9C 89 88 [17:51:00]CheckFolder [17:51:00]dirname=/storage/ofd_packets [17:51:00]CheckFolder done [17:51:00]ProducePacketName [17:51:00]name=ofd_packets/00076497 [17:51:00]NVStorageSaveData ofd_packets/00076497 [17:51:00]File name is /storage/ofd_packets/00076497 [17:51:00]Write 298 bytes [17:51:00]NVStorageSaveData done [17:51:00]OFDSenderStorePacket done [17:51:00]KKMCreateOFDPacket done [17:51:00]NVStorageSaveData kkm_last_timestamp [17:51:00]File name is /storage/kkm_last_timestamp [17:51:00]Write 4 bytes [17:51:00]NVStorageSaveData done [17:51:00]ExternCall_PrintAddStr [17:51:00]wPrintStart [17:51:00]Write to MH i2c: 01 00 00 E5 0E F3 [17:51:00]Write i2c OK [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: 01 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: 01 07 00 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: 01 07 00 E5 0E 00 00 00 00 00 FF 0F 08 [17:51:00]RasterBufferAndPrint [17:51:00]line Счет N : (1)190977 [17:51:00]line ИНН: 02508201610067 [17:51:00]line Контрольно-Кассовый Чек [17:51:00]line ПРОДАЖА [17:51:00]line ТРК (МРК, ГНК) : 23 [17:51:00]line Товар: 2710194210 [17:51:00]line ДТ-К-5 [17:51:00]line 27.820 * 71.90 [17:51:00]line = 2000.26 [17:51:00]line НДС 12% НСП 1% [17:51:00]line > о реализуемом товаре [17:51:00]line ОКРУГЛЕНИЕ: -0.26 [17:51:00]line ИТОГО: 2000.00 [17:51:00]line Внесено: 2000.00 [17:51:00]line СДАЧА: 0.00 [17:51:00]line НСП 1% : 17.70 [17:51:00]line НДС 12% : 212.42 [17:51:00]line Наличными: 2000.00 [17:51:00]line Безнал.: 0.00 [17:51:00]line Место: АЗС № 106 "Партнер Нефть" [17:51:00]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:51:00]line СНО: Общий режим [17:51:00]line Чек 117 19.04.2024 17:51 [17:51:00]line Смена: 370 ФФД: 1.0 [17:51:00]line ЗНМ: 0300000141 [17:51:00]line РНМ: 0000000000091573 [17:51:00]line Версия ККМ: 001 [17:51:00]line [17:51:00]line Дисконтная программа [17:51:00]line ДТ [17:51:00]line номер 106 [17:51:00]line сэкономлено 27.82 сом [17:51:00]line ФМ: 0000000000874652 [17:51:00]line ФД: 76497 [17:51:00]line ФПД: 72592787801054 [17:51:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T175100&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76497&fm=72592787801054&tin=02508201610067®Number=0000000000091573&sum=200000 [17:51:00]OFD Sender: Processing packet 76497 [packets to send 128, broken 127] [17:51:00]ProducePacketName [17:51:00]name=ofd_packets/00076497 [17:51:00]OFD Sender: To server: pG, [17:51:00]CommunicateWithHost lk.salyk.kg:30040 [17:51:00]ConnectInit lk.salyk.kg [17:51:00]written 0, free lines is 4095 [17:51:00]Connected sock=10 [17:51:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 20 EA 04 01 7E DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 04 AF 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D1 2A 01 00 35 04 06 00 42 05 D3 54 83 DE BE BB 03 47 1E 9C 89 88 [17:51:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 54 3D 47 00 A6 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D1 2A 01 00 F4 03 04 00 8F 56 22 66 B6 04 01 00 00 48 A6 74 43 CF CD 62 14 [17:51:01]CommunicateWithHost err = 0 [17:51:01]CheckOFDResponse [17:51:01]1017 (14) - 77093643461234 [17:51:01]1041 (16) - 0000000000874652 [17:51:01]1040 (4) - 76497 [17:51:01]1012 (4) - 19.04.2024 11:33 [17:51:01]1206 (1) - 0 [17:51:01]OFD Sender: Remove packet 76497 [17:51:01]ProducePacketName [17:51:01]name=ofd_packets/00076497 [17:51:01]NVStorageDeleteData [17:51:01]Write to MH i2c: 01 00 00 14 0F 23 [17:51:01]Write i2c OK [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: 01 [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: 01 07 00 [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: 01 07 00 14 0F 00 00 00 00 00 A3 0C D9 [17:51:01]RasterBufferAndPrint [17:51:01]line [17:51:01]line [17:51:01]line [17:51:01]line [17:51:01]line [17:51:01]written 0, free lines is 3242 [17:51:01]MH_Cut [17:51:01]Write to MH i2c: D1 01 00 1B 0F 01 FC [17:51:01]Write i2c OK [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: D1 [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: D1 01 00 [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: D1 01 00 1B 0F 00 FB [17:51:01]Write to MH i2c: 01 00 00 1C 0F 2B [17:51:01]Write i2c OK [17:51:01]MH_I2C_Read... [17:51:01]OFD Sender: No OFD packet to send [17:51:01]*** Cut start [17:51:01]*** Partial cut [17:51:01]*** CUTSNS_PIN = 1 [17:51:01]*** CUTSNS_PIN = 0 [17:51:02]*** Brake cut motor [17:51:02]Read from MH i2c: 01 [17:51:02]MH_I2C_Read... [17:51:02]*** Stop cut motor [17:51:02]*** Cut end [17:51:02]Read from MH i2c: 01 07 00 [17:51:02]MH_I2C_Read... [17:51:02]Read from MH i2c: 01 07 00 1C 0F 00 00 00 00 00 FF 0F 40 [17:51:02]process_action close_receipt done [17:51:02]requested_data is exist [17:51:02]produce_requested_data [17:51:02]requested_item fm.sn is exist - process it [17:51:02]wFMCommunicate request_size=4 [17:51:02]MH_SAM_APDU [17:51:02]CAPDU: 80 11 00 00 [17:51:02]Write to MH i2c: E2 08 00 1D 0F 80 11 00 00 00 00 00 00 A6 [17:51:02]Write i2c OK [17:51:02]MH_I2C_Read... [17:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:02]Read from MH i2c: E2 [17:51:02]MH_I2C_Read... [17:51:02]Read from MH i2c: E2 17 00 [17:51:02]MH_I2C_Read... [17:51:02]Read from MH i2c: E2 17 00 1D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F9 [17:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:51:02]wFMCommunicate OK [17:51:02]requested_item fd.num is exist - process it [17:51:02]SAM_PROTO_GetFieldsCounters [17:51:02]wFMCommunicate request_size=4 [17:51:02]MH_SAM_APDU [17:51:02]CAPDU: 80 13 00 00 [17:51:02]Write to MH i2c: E2 08 00 1E 0F 80 13 00 00 00 00 00 00 A9 [17:51:02]Write i2c OK [17:51:02]MH_I2C_Read... [17:51:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:02]Read from MH i2c: E2 [17:51:02]MH_I2C_Read... [17:51:02]Read from MH i2c: E2 62 00 [17:51:02]MH_I2C_Read... [17:51:02]Read from MH i2c: E2 62 00 1E 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D1 2A 01 00 0E 04 04 00 72 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 98 [17:51:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D1 2A 01 00 0E 04 04 00 72 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 [17:51:02]wFMCommunicate OK [17:51:02]SAM_PROTO_GetFieldsCounters done [17:51:02]requested_item shift.num is exist - process it [17:51:02]requested_item shift.opened is exist - process it [17:51:02]req_shift_opened [17:51:02]FM_GetShiftState [17:51:02]SAM_PROTO_GetShiftState [17:51:02]wFMCommunicate request_size=4 [17:51:02]MH_SAM_APDU [17:51:02]CAPDU: 80 13 01 00 [17:51:02]Write to MH i2c: E2 08 00 1F 0F 80 13 01 00 00 00 00 00 AB [17:51:02]Write i2c OK [17:51:02]MH_I2C_Read... [17:51:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:02]Read from MH i2c: E2 [17:51:02]MH_I2C_Read... [17:51:02]Read from MH i2c: E2 0E 00 [17:51:02]MH_I2C_Read... [17:51:02]Read from MH i2c: E2 0E 00 1F 0F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 90 [17:51:02]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:51:02]wFMCommunicate OK [17:51:02]SAM_PROTO_GetShiftState done [17:51:02]FM_GetShiftState done [17:51:02]req_shift_opened done [17:51:02]requested_item shift.open_date is exist - process it [17:51:02]req_shift_open_date [17:51:02]req_shift_open_date done [17:51:02]produce_requested_data done [17:51:02]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76497,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [17:51:02]process_action_free close_receipt [17:51:02]json_value_free [17:51:02]json_value_free done [17:51:02]process_json_proto returns [17:51:02]Send response to host [17:51:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76497,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [17:51:02]free response buf [17:51:02]execute_script done [17:51:02]execute_script returns [17:51:02]free content buf [17:51:02]Sock 9.Close socket [17:51:02]Sock 9.Thread stoped [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:49]accept exits with 7 [17:51:49]New connection [17:51:49]New thread 3066936676 created [17:51:49]Thread 3067080036 joined [17:51:49]Waiting for new connection... [17:51:49] Sock 7.Parse request [17:51:49]Sock 7.Check first char [17:51:49]Sock 7.First char is OK [17:51:49]request: POST /json_proto HTTP/1.0 [17:51:49]Method: POST [17:51:49]URL: /json_proto [17:51:49]Method is POST - this is cgi request [17:51:49]url: /json_proto [17:51:49]query_string will be loaded in cgi processing [17:51:49]execute_cgi json_proto POST (null) [17:51:49]execute_cgi path=json_proto method=POST [17:51:49]POST find Content-Length [17:51:49]Host: 172.17.62.5:8080 [17:51:49]Content-Length: 678 [17:51:49]Content-Type: application/json [17:51:49] [17:51:49]POST finish read [17:51:49]Found Content-Length = 678 [17:51:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190978", "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" : 64.40, "quantity" : 13.980, "sum" : 900.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:49]execute_script... [17:51: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)190978", "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" : 64.40, "quantity" : 13.980, "sum" : 900.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:49]POST & json_proto [17:51:49]process_json_proto [17:51:49]json parsed OK: [17:51:49]protocol is kg_v1.0 [17:51:49]action value=close_receipt [17:51:49]process_action close_receipt [17:51:49]cmd_close_receipt [17:51:49]MH_GetDate [17:51:49]Write to MH i2c: F0 00 00 20 0F 1E [17:51:49]Write i2c OK [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: F0 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: F0 09 00 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: F0 09 00 20 0F 00 36 AF 22 66 F4 E9 65 64 3A [17:51:49]GetLastDocTimeStamp 1713549060 [17:51:49]current date 1713549110 [17:51:49]FM_GetShiftState [17:51:49]SAM_PROTO_GetShiftState [17:51:49]wFMCommunicate request_size=4 [17:51:49]MH_SAM_APDU [17:51:49]CAPDU: 80 13 01 00 [17:51:49]Write to MH i2c: E2 08 00 21 0F 80 13 01 00 00 00 00 00 AD [17:51:49]Write i2c OK [17:51:49]MH_I2C_Read... [17:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:49]Read from MH i2c: E2 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: E2 0E 00 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: E2 0E 00 21 0F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 92 [17:51:49]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:51:49]wFMCommunicate OK [17:51:49]SAM_PROTO_GetShiftState done [17:51:49]FM_GetShiftState done [17:51:49]opened in 1713486233 [17:51:49]opened+sec_in_day 1713572633 [17:51:49]quantity*price = 90031 [17:51:49]sum+1 = 90032 [17:51:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.61 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 118 19.04.2024 17:51 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76498 ФПД: 256772802401391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T175150&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76498&fm=256772802401391&tin=02508201610067®Number=0000000000091573&sum=90000 [17:51:50]StoreToDocumentArchive [17:51:50]shift 370 fd 76498 [17:51:50]save to /storage/0370/doc_00076498 [17:51:50]save last doc name /storage/0370/doc_00076498 to /storage/kkm_last_doc_name [17:51:50]save OK [17:51:50]Clear old archive folders... [17:51:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:50]tlvbuf is 009C6A00 [17:51:50]SAM_PROTO_ClearQueue [17:51:50]wFMCommunicate request_size=4 [17:51:50]MH_SAM_APDU [17:51:50]CAPDU: 80 09 00 00 [17:51:50]Write to MH i2c: E2 08 00 2E 0F 80 09 00 00 00 00 00 00 AF [17:51:50]Write i2c OK [17:51:50]MH_I2C_Read... [17:51:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:50]Read from MH i2c: E2 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: E2 03 00 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: E2 03 00 2E 0F 00 90 00 B1 [17:51:50]RAPDU: 90 00 [17:51:50]wFMCommunicate OK [17:51:50]SAM_PROTO_ClearQueue done [17:51:50]KKMCreateOFDPacket [17:51:50]OFDProtocolAddRootSTLVToBuf [17:51:50]FM_MakeSignedData [17:51:50]FM_MakeSignedData [17:51:50]SAM_PROTO_SignData [17:51:50]wFMCommunicate request_size=4 [17:51:50]MH_SAM_APDU [17:51:50]CAPDU: 80 0D 01 02 [17:51:50]Write to MH i2c: E2 08 00 2F 0F 80 0D 01 02 00 00 00 00 B7 [17:51:50]Write i2c OK [17:51:50]MH_I2C_Read... [17:51:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:50]Read from MH i2c: E2 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: E2 03 00 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: E2 03 00 2F 0F 00 90 00 B2 [17:51:50]RAPDU: 90 00 [17:51:50]wFMCommunicate OK [17:51:50]wFMCommunicate request_size=255 [17:51:50]MH_SAM_APDU [17:51: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 9C 36 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 36 AF 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D2 2A 01 00 35 04 06 00 E9 [17:51:50]Write to MH i2c: E2 02 01 30 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 9C 36 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 36 AF 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D2 2A 01 00 35 04 06 00 E9 00 00 9D [17:51:50]Write i2c OK [17:51:50]MH_I2C_Read... [17:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:50]Read from MH i2c: E2 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: E2 03 00 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: E2 03 00 30 0F 00 90 00 B3 [17:51:50]RAPDU: 90 00 [17:51:50]wFMCommunicate OK [17:51:50]wFMCommunicate request_size=10 [17:51:50]MH_SAM_APDU [17:51:50]CAPDU: 80 0D 02 02 05 88 93 AC D4 6F [17:51:50]Write to MH i2c: E2 0D 00 31 0F 80 0D 02 02 05 00 88 93 AC D4 6F 00 00 CE [17:51:50]Write i2c OK [17:51:50]MH_I2C_Read... [17:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:50]Read from MH i2c: E2 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: E2 03 00 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: E2 03 00 31 0F 00 90 00 B4 [17:51:50]RAPDU: 90 00 [17:51:50]wFMCommunicate OK [17:51:50]wFMCommunicate request_size=4 [17:51:50]MH_SAM_APDU [17:51:50]CAPDU: 80 0D 03 02 [17:51:50]Write to MH i2c: E2 08 00 32 0F 80 0D 03 02 00 00 00 00 BC [17:51:50]Write i2c OK [17:51:50]MH_I2C_Read... [17:51:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:50]Read from MH i2c: E2 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: E2 0B 00 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: E2 0B 00 32 0F 00 55 C0 59 5A CD E9 C5 FF 90 00 FF [17:51:50]RAPDU: 55 C0 59 5A CD E9 C5 FF 90 00 [17:51:50]wFMCommunicate OK [17:51:50]SAM_PROTO_SignData done [17:51:50]FM_MakeSignedData done [17:51:50]CreateOFDProtocolMessage [17:51:50]wFMCommunicate request_size=4 [17:51:50]MH_SAM_APDU [17:51:50]CAPDU: 80 11 00 00 [17:51:50]Write to MH i2c: E2 08 00 33 0F 80 11 00 00 00 00 00 00 BC [17:51:50]Write i2c OK [17:51:50]MH_I2C_Read... [17:51:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:50]Read from MH i2c: E2 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: E2 17 00 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: E2 17 00 33 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0F [17:51:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:51:50]wFMCommunicate OK [17:51:50]CreateOFDProtocolMessage done [17:51:50]OFDSenderStorePacket 76498 [17:51:50]StoreOFDPacket docnum=76498 [17:51:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 A2 AB 07 01 F8 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 36 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 36 AF 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D2 2A 01 00 35 04 06 00 E9 88 93 AC D4 6F 55 C0 59 5A CD E9 C5 FF [17:51:50]CheckFolder [17:51:50]dirname=/storage/ofd_packets [17:51:50]CheckFolder done [17:51:50]ProducePacketName [17:51:50]name=ofd_packets/00076498 [17:51:50]NVStorageSaveData ofd_packets/00076498 [17:51:50]File name is /storage/ofd_packets/00076498 [17:51:50]Write 301 bytes [17:51:50]NVStorageSaveData done [17:51:50]OFDSenderStorePacket done [17:51:50]KKMCreateOFDPacket done [17:51:50]NVStorageSaveData kkm_last_timestamp [17:51:50]File name is /storage/kkm_last_timestamp [17:51:50]Write 4 bytes [17:51:50]NVStorageSaveData done [17:51:50]ExternCall_PrintAddStr [17:51:50]wPrintStart [17:51:50]Write to MH i2c: 01 00 00 34 0F 43 [17:51:50]Write i2c OK [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: 01 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: 01 07 00 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: 01 07 00 34 0F 00 00 00 00 00 FF 0F 58 [17:51:50]RasterBufferAndPrint [17:51:50]line Счет N : (1)190978 [17:51:50]line ИНН: 02508201610067 [17:51:50]line Контрольно-Кассовый Чек [17:51:50]line ПРОДАЖА [17:51:50]line ТРК (МРК, ГНК) : 12 [17:51:50]line Товар: 2710124130 [17:51:50]line Аи-92-К-5 [17:51:50]line 13.980 * 64.40 [17:51:50]line = 900.31 [17:51:50]line НДС 12% НСП 1% [17:51:50]line > о реализуемом товаре [17:51:50]line ОКРУГЛЕНИЕ: -0.31 [17:51:50]line ИТОГО: 900.00 [17:51:50]line Внесено: 900.00 [17:51:50]line СДАЧА: 0.00 [17:51:50]line НСП 1% : 7.97 [17:51:50]line НДС 12% : 95.61 [17:51:50]line Наличными: 900.00 [17:51:50]line Безнал.: 0.00 [17:51:50]line Место: АЗС № 106 "Партнер Нефть" [17:51:50]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:51:50]line СНО: Общий режим [17:51:50]line Чек 118 19.04.2024 17:51 [17:51:50]line Смена: 370 ФФД: 1.0 [17:51:50]line ЗНМ: 0300000141 [17:51:50]line РНМ: 0000000000091573 [17:51:50]line Версия ККМ: 001 [17:51:50]line ФМ: 0000000000874652 [17:51:50]line ФД: 76498 [17:51:50]line ФПД: 256772802401391 [17:51:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T175150&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76498&fm=256772802401391&tin=02508201610067®Number=0000000000091573&sum=90000 [17:51:51]written 0, free lines is 4095 [17:51:51]OFD Sender: Processing packet 76498 [packets to send 128, broken 127] [17:51:51]ProducePacketName [17:51:51]name=ofd_packets/00076498 [17:51:51]OFD Sender: To server: pG, [17:51:51]CommunicateWithHost lk.salyk.kg:30040 [17:51:51]ConnectInit lk.salyk.kg [17:51:51]Connected sock=10 [17:51:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 A2 AB 07 01 F8 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 36 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 36 AF 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D2 2A 01 00 35 04 06 00 E9 88 93 AC D4 6F 55 C0 59 5A CD E9 C5 FF [17:51:51]Write to MH i2c: 01 00 00 5E 0F 6D [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: 01 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: 01 07 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: 01 07 00 5E 0F 00 00 00 00 00 F6 0C 76 [17:51:51]RasterBufferAndPrint [17:51:51]line [17:51:51]line [17:51:51]line [17:51:51]line [17:51:51]line [17:51:51]written 0, free lines is 3326 [17:51:51]MH_Cut [17:51:51]Write to MH i2c: D1 01 00 65 0F 01 46 [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: D1 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: D1 01 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: D1 01 00 65 0F 00 45 [17:51:51]Write to MH i2c: 01 00 00 66 0F 75 [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 0F 81 47 00 8B 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D2 2A 01 00 F4 03 04 00 C2 56 22 66 B6 04 01 00 00 B6 02 54 B7 83 2C 72 83 [17:51:51]CommunicateWithHost err = 0 [17:51:51]CheckOFDResponse [17:51:51]1017 (14) - 77093643461234 [17:51:51]1041 (16) - 0000000000874652 [17:51:51]1040 (4) - 76498 [17:51:51]1012 (4) - 19.04.2024 11:34 [17:51:51]1206 (1) - 0 [17:51:51]OFD Sender: Remove packet 76498 [17:51:51]ProducePacketName [17:51:51]name=ofd_packets/00076498 [17:51:52]NVStorageDeleteData [17:51:52]*** Cut start [17:51:52]*** Partial cut [17:51:52]*** CUTSNS_PIN = 1 [17:51:52]*** CUTSNS_PIN = 0 [17:51:52]OFD Sender: No OFD packet to send [17:51:52]*** Brake cut motor [17:51:52]Read from MH i2c: 01 [17:51:52]MH_I2C_Read... [17:51:52]*** Stop cut motor [17:51:52]*** Cut end [17:51:52]Read from MH i2c: 01 07 00 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: 01 07 00 66 0F 00 00 00 00 00 FF 0F 8A [17:51:52]process_action close_receipt done [17:51:52]requested_data is exist [17:51:52]produce_requested_data [17:51:52]requested_item fm.sn is exist - process it [17:51:52]wFMCommunicate request_size=4 [17:51:52]MH_SAM_APDU [17:51:52]CAPDU: 80 11 00 00 [17:51:52]Write to MH i2c: E2 08 00 67 0F 80 11 00 00 00 00 00 00 F0 [17:51:52]Write i2c OK [17:51:52]MH_I2C_Read... [17:51:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:52]Read from MH i2c: E2 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: E2 17 00 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: E2 17 00 67 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 43 [17:51:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:51:52]wFMCommunicate OK [17:51:52]requested_item fd.num is exist - process it [17:51:52]SAM_PROTO_GetFieldsCounters [17:51:52]wFMCommunicate request_size=4 [17:51:52]MH_SAM_APDU [17:51:52]CAPDU: 80 13 00 00 [17:51:52]Write to MH i2c: E2 08 00 68 0F 80 13 00 00 00 00 00 00 F3 [17:51:52]Write i2c OK [17:51:52]MH_I2C_Read... [17:51:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:53]Read from MH i2c: E2 [17:51:53]MH_I2C_Read... [17:51:53]Read from MH i2c: E2 62 00 [17:51:53]MH_I2C_Read... [17:51:53]Read from MH i2c: E2 62 00 68 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D2 2A 01 00 0E 04 04 00 72 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 E6 [17:51:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D2 2A 01 00 0E 04 04 00 72 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 [17:51:53]wFMCommunicate OK [17:51:53]SAM_PROTO_GetFieldsCounters done [17:51:53]requested_item shift.num is exist - process it [17:51:53]requested_item shift.opened is exist - process it [17:51:53]req_shift_opened [17:51:53]FM_GetShiftState [17:51:53]SAM_PROTO_GetShiftState [17:51:53]wFMCommunicate request_size=4 [17:51:53]MH_SAM_APDU [17:51:53]CAPDU: 80 13 01 00 [17:51:53]Write to MH i2c: E2 08 00 69 0F 80 13 01 00 00 00 00 00 F5 [17:51:53]Write i2c OK [17:51:53]MH_I2C_Read... [17:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:53]Read from MH i2c: E2 [17:51:53]MH_I2C_Read... [17:51:53]Read from MH i2c: E2 0E 00 [17:51:53]MH_I2C_Read... [17:51:53]Read from MH i2c: E2 0E 00 69 0F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 DA [17:51:53]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:51:53]wFMCommunicate OK [17:51:53]SAM_PROTO_GetShiftState done [17:51:53]FM_GetShiftState done [17:51:53]req_shift_opened done [17:51:53]requested_item shift.open_date is exist - process it [17:51:53]req_shift_open_date [17:51:53]req_shift_open_date done [17:51:53]produce_requested_data done [17:51:53]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76498,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [17:51:53]process_action_free close_receipt [17:51:53]json_value_free [17:51:53]json_value_free done [17:51:53]process_json_proto returns [17:51:53]Send response to host [17:51:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76498,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [17:51:53]free response buf [17:51:53]execute_script done [17:51:53]execute_script returns [17:51:53]free content buf [17:51:53]Sock 7.Close socket [17:51:53]Sock 7.Thread stoped [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:15]accept exits with 9 [17:57:15]New connection [17:57:15]New thread 3067080036 created [17:57:15]Thread 3066936676 joined [17:57:15]Waiting for new connection... [17:57:15] Sock 9.Parse request [17:57:15]Sock 9.Check first char [17:57:15]Sock 9.First char is OK [17:57:15]request: POST /json_proto HTTP/1.0 [17:57:15]Method: POST [17:57:15]URL: /json_proto [17:57:15]Method is POST - this is cgi request [17:57:15]url: /json_proto [17:57:15]query_string will be loaded in cgi processing [17:57:15]execute_cgi json_proto POST (null) [17:57:15]execute_cgi path=json_proto method=POST [17:57:15]POST find Content-Length [17:57:15]Host: 172.17.62.5:8080 [17:57:15]Content-Length: 682 [17:57:15]Content-Type: application/json [17:57:15] [17:57:15]POST finish read [17:57:15]Found Content-Length = 682 [17:57:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:15]execute_script... [17:57: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)190980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:15]POST & json_proto [17:57:15]process_json_proto [17:57:15]json parsed OK: [17:57:15]protocol is kg_v1.0 [17:57:15]action value=close_receipt [17:57:15]process_action close_receipt [17:57:15]cmd_close_receipt [17:57:15]MH_GetDate [17:57:15]Write to MH i2c: F0 00 00 6A 0F 68 [17:57:15]Write i2c OK [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: F0 [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: F0 09 00 [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: F0 09 00 6A 0F 00 7D B0 22 66 F4 E9 65 64 CC [17:57:15]GetLastDocTimeStamp 1713549110 [17:57:15]current date 1713549437 [17:57:15]FM_GetShiftState [17:57:15]SAM_PROTO_GetShiftState [17:57:15]wFMCommunicate request_size=4 [17:57:15]MH_SAM_APDU [17:57:15]CAPDU: 80 13 01 00 [17:57:15]Write to MH i2c: E2 08 00 6B 0F 80 13 01 00 00 00 00 00 F7 [17:57:15]Write i2c OK [17:57:15]MH_I2C_Read... [17:57:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:15]Read from MH i2c: E2 [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: E2 0E 00 [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: E2 0E 00 6B 0F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 DC [17:57:15]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:57:15]wFMCommunicate OK [17:57:15]SAM_PROTO_GetShiftState done [17:57:15]FM_GetShiftState done [17:57:15]opened in 1713486233 [17:57:15]opened+sec_in_day 1713572633 [17:57:15]quantity*price = 100013 [17:57:15]sum+1 = 100014 [17:57:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 119 19.04.2024 17:57 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76499 ФПД: 188492210699144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T175717&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76499&fm=188492210699144&tin=02508201610067®Number=0000000000091573&sum=100000 [17:57:16]StoreToDocumentArchive [17:57:16]shift 370 fd 76499 [17:57:16]save to /storage/0370/doc_00076499 [17:57:16]save last doc name /storage/0370/doc_00076499 to /storage/kkm_last_doc_name [17:57:16]save OK [17:57:16]Clear old archive folders... [17:57:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:57:16]tlvbuf is 00993D50 [17:57:16]SAM_PROTO_ClearQueue [17:57:16]wFMCommunicate request_size=4 [17:57:16]MH_SAM_APDU [17:57:16]CAPDU: 80 09 00 00 [17:57:16]Write to MH i2c: E2 08 00 78 0F 80 09 00 00 00 00 00 00 F9 [17:57:16]Write i2c OK [17:57:16]MH_I2C_Read... [17:57:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:16]Read from MH i2c: E2 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: E2 03 00 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: E2 03 00 78 0F 00 90 00 FB [17:57:16]RAPDU: 90 00 [17:57:16]wFMCommunicate OK [17:57:16]SAM_PROTO_ClearQueue done [17:57:16]KKMCreateOFDPacket [17:57:16]OFDProtocolAddRootSTLVToBuf [17:57:16]FM_MakeSignedData [17:57:16]FM_MakeSignedData [17:57:16]SAM_PROTO_SignData [17:57:16]wFMCommunicate request_size=4 [17:57:16]MH_SAM_APDU [17:57:16]CAPDU: 80 0D 01 02 [17:57:16]Write to MH i2c: E2 08 00 79 0F 80 0D 01 02 00 00 00 00 01 [17:57:16]Write i2c OK [17:57:16]MH_I2C_Read... [17:57:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:16]Read from MH i2c: E2 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: E2 03 00 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: E2 03 00 79 0F 00 90 00 FC [17:57:16]RAPDU: 90 00 [17:57:16]wFMCommunicate OK [17:57:16]wFMCommunicate request_size=255 [17:57:16]MH_SAM_APDU [17:57: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 7D B0 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D3 2A 01 00 35 04 06 00 AB [17:57:16]Write to MH i2c: E2 02 01 7A 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 7D B0 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D3 2A 01 00 35 04 06 00 AB 00 00 1A [17:57:16]Write i2c OK [17:57:16]MH_I2C_Read... [17:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:16]Read from MH i2c: E2 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: E2 03 00 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: E2 03 00 7A 0F 00 90 00 FD [17:57:16]RAPDU: 90 00 [17:57:16]wFMCommunicate OK [17:57:16]wFMCommunicate request_size=10 [17:57:16]MH_SAM_APDU [17:57:16]CAPDU: 80 0D 02 02 05 6E C3 42 FB 88 [17:57:16]Write to MH i2c: E2 0D 00 7B 0F 80 0D 02 02 05 00 6E C3 42 FB 88 00 00 04 [17:57:16]Write i2c OK [17:57:16]MH_I2C_Read... [17:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:16]Read from MH i2c: E2 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: E2 03 00 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: E2 03 00 7B 0F 00 90 00 FE [17:57:16]RAPDU: 90 00 [17:57:16]wFMCommunicate OK [17:57:16]wFMCommunicate request_size=4 [17:57:16]MH_SAM_APDU [17:57:16]CAPDU: 80 0D 03 02 [17:57:16]Write to MH i2c: E2 08 00 7C 0F 80 0D 03 02 00 00 00 00 06 [17:57:16]Write i2c OK [17:57:16]MH_I2C_Read... [17:57:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:16]Read from MH i2c: E2 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: E2 0B 00 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: E2 0B 00 7C 0F 00 8E E8 C2 51 85 D3 E2 3F 90 00 09 [17:57:16]RAPDU: 8E E8 C2 51 85 D3 E2 3F 90 00 [17:57:16]wFMCommunicate OK [17:57:16]SAM_PROTO_SignData done [17:57:16]FM_MakeSignedData done [17:57:16]CreateOFDProtocolMessage [17:57:16]wFMCommunicate request_size=4 [17:57:16]MH_SAM_APDU [17:57:16]CAPDU: 80 11 00 00 [17:57:16]Write to MH i2c: E2 08 00 7D 0F 80 11 00 00 00 00 00 00 06 [17:57:16]Write i2c OK [17:57:16]MH_I2C_Read... [17:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:17]Read from MH i2c: E2 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: E2 17 00 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: E2 17 00 7D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 59 [17:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:57:17]wFMCommunicate OK [17:57:17]CreateOFDProtocolMessage done [17:57:17]OFDSenderStorePacket 76499 [17:57:17]StoreOFDPacket docnum=76499 [17:57:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 2C E5 07 01 61 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 7D B0 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D3 2A 01 00 35 04 06 00 AB 6E C3 42 FB 88 8E E8 C2 51 85 D3 E2 3F [17:57:17]CheckFolder [17:57:17]dirname=/storage/ofd_packets [17:57:17]CheckFolder done [17:57:17]ProducePacketName [17:57:17]name=ofd_packets/00076499 [17:57:17]NVStorageSaveData ofd_packets/00076499 [17:57:17]File name is /storage/ofd_packets/00076499 [17:57:17]Write 301 bytes [17:57:17]NVStorageSaveData done [17:57:17]OFDSenderStorePacket done [17:57:17]KKMCreateOFDPacket done [17:57:17]NVStorageSaveData kkm_last_timestamp [17:57:17]File name is /storage/kkm_last_timestamp [17:57:17]Write 4 bytes [17:57:17]NVStorageSaveData done [17:57:17]ExternCall_PrintAddStr [17:57:17]wPrintStart [17:57:17]Write to MH i2c: 01 00 00 7E 0F 8D [17:57:17]Write i2c OK [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: 01 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: 01 07 00 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: 01 07 00 7E 0F 00 00 00 00 00 FF 0F A2 [17:57:17]RasterBufferAndPrint [17:57:17]line Счет N : (1)190980 [17:57:17]line ИНН: 02508201610067 [17:57:17]line Контрольно-Кассовый Чек [17:57:17]line ПРОДАЖА [17:57:17]line ТРК (МРК, ГНК) : 33 [17:57:17]line Товар: 2710124130 [17:57:17]line Аи-92-К-5 [17:57:17]line 15.530 * 64.40 [17:57:17]line = 1000.13 [17:57:17]line НДС 12% НСП 1% [17:57:17]line > о реализуемом товаре [17:57:17]line ОКРУГЛЕНИЕ: -0.13 [17:57:17]line ИТОГО: 1000.00 [17:57:17]line Внесено: 1000.00 [17:57:17]line СДАЧА: 0.00 [17:57:17]line НСП 1% : 8.85 [17:57:17]line НДС 12% : 106.21 [17:57:17]line Наличными: 1000.00 [17:57:17]line Безнал.: 0.00 [17:57:17]line Место: АЗС № 106 "Партнер Нефть" [17:57:17]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [17:57:17]line СНО: Общий режим [17:57:17]line Чек 119 19.04.2024 17:57 [17:57:17]line Смена: 370 ФФД: 1.0 [17:57:17]line ЗНМ: 0300000141 [17:57:17]line РНМ: 0000000000091573 [17:57:17]line Версия ККМ: 001 [17:57:17]line ФМ: 0000000000874652 [17:57:17]line ФД: 76499 [17:57:17]line ФПД: 188492210699144 [17:57:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T175717&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76499&fm=188492210699144&tin=02508201610067®Number=0000000000091573&sum=100000 [17:57:17]OFD Sender: Processing packet 76499 [packets to send 128, broken 127] [17:57:17]ProducePacketName [17:57:17]name=ofd_packets/00076499 [17:57:17]OFD Sender: To server: pG, [17:57:17]CommunicateWithHost lk.salyk.kg:30040 [17:57:17]ConnectInit lk.salyk.kg [17:57:17]written 0, free lines is 4095 [17:57:17]Connected sock=10 [17:57:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 2C E5 07 01 61 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 7D B0 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D3 2A 01 00 35 04 06 00 AB 6E C3 42 FB 88 8E E8 C2 51 85 D3 E2 3F [17:57:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 90 DB 47 00 04 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D3 2A 01 00 F4 03 04 00 08 58 22 66 B6 04 01 00 00 B5 0F 95 E8 6B 9E 8C 28 [17:57:17]CommunicateWithHost err = 0 [17:57:17]CheckOFDResponse [17:57:17]1017 (14) - 77093643461234 [17:57:17]1041 (16) - 0000000000874652 [17:57:17]1040 (4) - 76499 [17:57:17]1012 (4) - 19.04.2024 11:39 [17:57:17]1206 (1) - 0 [17:57:17]OFD Sender: Remove packet 76499 [17:57:17]ProducePacketName [17:57:17]name=ofd_packets/00076499 [17:57:17]NVStorageDeleteData [17:57:17]Write to MH i2c: 01 00 00 A8 0F B7 [17:57:17]Write i2c OK [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: 01 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: 01 07 00 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: 01 07 00 A8 0F 00 00 00 00 00 E4 0C AE [17:57:17]RasterBufferAndPrint [17:57:17]line [17:57:17]line [17:57:17]line [17:57:17]line [17:57:17]line [17:57:17]written 0, free lines is 3306 [17:57:17]MH_Cut [17:57:17]Write to MH i2c: D1 01 00 AF 0F 01 90 [17:57:17]Write i2c OK [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: D1 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: D1 01 00 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: D1 01 00 AF 0F 00 8F [17:57:17]Write to MH i2c: 01 00 00 B0 0F BF [17:57:17]Write i2c OK [17:57:17]MH_I2C_Read... [17:57:18]OFD Sender: No OFD packet to send [17:57:18]*** Cut start [17:57:18]*** Partial cut [17:57:18]*** CUTSNS_PIN = 1 [17:57:18]*** CUTSNS_PIN = 0 [17:57:18]*** Brake cut motor [17:57:19]Read from MH i2c: 01 [17:57:19]MH_I2C_Read... [17:57:19]*** Stop cut motor [17:57:19]*** Cut end [17:57:19]Read from MH i2c: 01 07 00 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: 01 07 00 B0 0F 00 00 00 00 00 FF 0F D4 [17:57:19]process_action close_receipt done [17:57:19]requested_data is exist [17:57:19]produce_requested_data [17:57:19]requested_item fm.sn is exist - process it [17:57:19]wFMCommunicate request_size=4 [17:57:19]MH_SAM_APDU [17:57:19]CAPDU: 80 11 00 00 [17:57:19]Write to MH i2c: E2 08 00 B1 0F 80 11 00 00 00 00 00 00 3A [17:57:19]Write i2c OK [17:57:19]MH_I2C_Read... [17:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:19]Read from MH i2c: E2 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 17 00 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 17 00 B1 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8D [17:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:57:19]wFMCommunicate OK [17:57:19]requested_item fd.num is exist - process it [17:57:19]SAM_PROTO_GetFieldsCounters [17:57:19]wFMCommunicate request_size=4 [17:57:19]MH_SAM_APDU [17:57:19]CAPDU: 80 13 00 00 [17:57:19]Write to MH i2c: E2 08 00 B2 0F 80 13 00 00 00 00 00 00 3D [17:57:19]Write i2c OK [17:57:19]MH_I2C_Read... [17:57:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:19]Read from MH i2c: E2 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 62 00 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 62 00 B2 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D3 2A 01 00 0E 04 04 00 72 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 34 [17:57:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D3 2A 01 00 0E 04 04 00 72 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 [17:57:19]wFMCommunicate OK [17:57:19]SAM_PROTO_GetFieldsCounters done [17:57:19]requested_item shift.num is exist - process it [17:57:19]requested_item shift.opened is exist - process it [17:57:19]req_shift_opened [17:57:19]FM_GetShiftState [17:57:19]SAM_PROTO_GetShiftState [17:57:19]wFMCommunicate request_size=4 [17:57:19]MH_SAM_APDU [17:57:19]CAPDU: 80 13 01 00 [17:57:19]Write to MH i2c: E2 08 00 B3 0F 80 13 01 00 00 00 00 00 3F [17:57:19]Write i2c OK [17:57:19]MH_I2C_Read... [17:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:19]Read from MH i2c: E2 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 0E 00 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 0E 00 B3 0F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 24 [17:57:19]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:57:19]wFMCommunicate OK [17:57:19]SAM_PROTO_GetShiftState done [17:57:19]FM_GetShiftState done [17:57:19]req_shift_opened done [17:57:19]requested_item shift.open_date is exist - process it [17:57:19]req_shift_open_date [17:57:19]req_shift_open_date done [17:57:19]produce_requested_data done [17:57:19]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76499,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [17:57:19]process_action_free close_receipt [17:57:19]json_value_free [17:57:19]json_value_free done [17:57:19]process_json_proto returns [17:57:19]Send response to host [17:57:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76499,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [17:57:19]free response buf [17:57:19]execute_script done [17:57:19]execute_script returns [17:57:19]free content buf [17:57:19]Sock 9.Close socket [17:57:19]Sock 9.Thread stoped [17:57:23]OFD Sender: No OFD packet to send [17:57:28]OFD Sender: No OFD packet to send [17:57:33]OFD Sender: No OFD packet to send [17:57:38]OFD Sender: No OFD packet to send [17:57:43]OFD Sender: No OFD packet to send [17:57:48]OFD Sender: No OFD packet to send [17:57:53]OFD Sender: No OFD packet to send [17:57:58]OFD Sender: No OFD packet to send [17:58:03]OFD Sender: No OFD packet to send [17:58:08]OFD Sender: No OFD packet to send [17:58:13]OFD Sender: No OFD packet to send [17:58:18]OFD Sender: No OFD packet to send [17:58:23]OFD Sender: No OFD packet to send [17:58:28]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:42]accept exits with 7 [17:59:42]New connection [17:59:42]New thread 3066936676 created [17:59:42]Thread 3067080036 joined [17:59:42]Waiting for new connection... [17:59:42] Sock 7.Parse request [17:59:42]Sock 7.Check first char [17:59:42]Sock 7.First char is OK [17:59:42]request: POST /json_proto HTTP/1.0 [17:59:42]Method: POST [17:59:42]URL: /json_proto [17:59:42]Method is POST - this is cgi request [17:59:42]url: /json_proto [17:59:42]query_string will be loaded in cgi processing [17:59:42]execute_cgi json_proto POST (null) [17:59:42]execute_cgi path=json_proto method=POST [17:59:42]POST find Content-Length [17:59:42]Host: 172.17.62.5:8080 [17:59:42]Content-Length: 1168 [17:59:42]Content-Type: application/json [17:59:42] [17:59:42]POST finish read [17:59:42]Found Content-Length = 1168 [17:59:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190979\u000A19.04.2024 17:41\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 140.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 10206.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30054359\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:42]execute_script... [17:59:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190979\u000A19.04.2024 17:41\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 140.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 10206.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30054359\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:42]POST & json_proto [17:59:42]process_json_proto [17:59:42]json parsed OK: [17:59:42]protocol is kg_v1.0 [17:59:42]action value=print_text [17:59:42]process_action print_text [17:59:42]cmd_print_text [17:59:42]ExternCall_PrintAddStr [17:59:42]wPrintStart [17:59:42]Write to MH i2c: 01 00 00 B4 0F C3 [17:59:42]Write i2c OK [17:59:42]MH_I2C_Read... [17:59:42]Read from MH i2c: 01 [17:59:42]MH_I2C_Read... [17:59:42]Read from MH i2c: 01 07 00 [17:59:42]MH_I2C_Read... [17:59:42]Read from MH i2c: 01 07 00 B4 0F 00 00 00 00 00 FF 0F D8 [17:59:42]RasterBufferAndPrint [17:59:42]line *****ТОВАРНЫЙ ЧЕК***** [17:59:42]line АЗС 106 [17:59:42]line Партнер нефть [17:59:42]line 02508201610067 [17:59:42]line Кассир : Табалдиева М. [17:59:42]line Счет N : (1)190979 [17:59:42]line 19.04.2024 17:41 [17:59:42]line ПРОДАЖА [17:59:42]line ТРК (МРК, ГНК): 51 [17:59:42]line Вид ГСМ : 2710194210 [17:59:42]line ДТ-К-5 [17:59:42]line 140.000 x 72.90 [17:59:42]line ИТОГ: 10206.00 [17:59:42]line Тип оплаты: Талоны: ТК ГПНА Online [17:59:42]line 30054359 [17:59:42]line ______________________ [17:59:42]line (подпись) [17:59:42]written 0, free lines is 4095 [17:59:42]Write to MH i2c: 01 00 00 C8 0F D7 [17:59:42]Write i2c OK [17:59:42]MH_I2C_Read... [17:59:42]Read from MH i2c: 01 [17:59:42]MH_I2C_Read... [17:59:42]Read from MH i2c: 01 07 00 [17:59:42]MH_I2C_Read... [17:59:42]Read from MH i2c: 01 07 00 C8 0F 00 00 00 00 00 10 0E FC [17:59:42]RasterBufferAndPrint [17:59:42]line [17:59:42]line [17:59:42]line [17:59:42]line [17:59:42]line [17:59:42]written 0, free lines is 3601 [17:59:42]MH_Cut [17:59:42]Write to MH i2c: D1 01 00 CF 0F 01 B0 [17:59:42]Write i2c OK [17:59:42]MH_I2C_Read... [17:59:42]Read from MH i2c: D1 [17:59:42]MH_I2C_Read... [17:59:42]Read from MH i2c: D1 01 00 [17:59:42]MH_I2C_Read... [17:59:42]Read from MH i2c: D1 01 00 CF 0F 00 AF [17:59:42]Write to MH i2c: 01 00 00 D0 0F DF [17:59:42]Write i2c OK [17:59:42]MH_I2C_Read... [17:59:43]*** Cut start [17:59:43]*** Partial cut [17:59:43]*** CUTSNS_PIN = 1 [17:59:43]*** CUTSNS_PIN = 0 [17:59:43]*** Brake cut motor [17:59:43]OFD Sender: No OFD packet to send [17:59:43]Read from MH i2c: 01 [17:59:43]MH_I2C_Read... [17:59:43]*** Stop cut motor [17:59:43]*** Cut end [17:59:43]Read from MH i2c: 01 07 00 [17:59:43]MH_I2C_Read... [17:59:43]Read from MH i2c: 01 07 00 D0 0F 00 00 00 00 00 FF 0F F4 [17:59:43]process_action print_text done [17:59:43]requested_data is exist [17:59:43]produce_requested_data [17:59:43]requested_item fm.sn is exist - process it [17:59:43]wFMCommunicate request_size=4 [17:59:43]MH_SAM_APDU [17:59:43]CAPDU: 80 11 00 00 [17:59:43]Write to MH i2c: E2 08 00 D1 0F 80 11 00 00 00 00 00 00 5A [17:59:43]Write i2c OK [17:59:43]MH_I2C_Read... [17:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:43]Read from MH i2c: E2 [17:59:43]MH_I2C_Read... [17:59:43]Read from MH i2c: E2 17 00 [17:59:43]MH_I2C_Read... [17:59:43]Read from MH i2c: E2 17 00 D1 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AD [17:59:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [17:59:43]wFMCommunicate OK [17:59:43]requested_item fd.num is exist - process it [17:59:43]SAM_PROTO_GetFieldsCounters [17:59:43]wFMCommunicate request_size=4 [17:59:43]MH_SAM_APDU [17:59:43]CAPDU: 80 13 00 00 [17:59:43]Write to MH i2c: E2 08 00 D2 0F 80 13 00 00 00 00 00 00 5D [17:59:43]Write i2c OK [17:59:43]MH_I2C_Read... [17:59:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:43]Read from MH i2c: E2 [17:59:43]MH_I2C_Read... [17:59:43]Read from MH i2c: E2 62 00 [17:59:43]MH_I2C_Read... [17:59:43]Read from MH i2c: E2 62 00 D2 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D3 2A 01 00 0E 04 04 00 72 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 54 [17: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D3 2A 01 00 0E 04 04 00 72 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 [17:59:43]wFMCommunicate OK [17:59:43]SAM_PROTO_GetFieldsCounters done [17:59:43]requested_item shift.num is exist - process it [17:59:43]requested_item shift.opened is exist - process it [17:59:43]req_shift_opened [17:59:43]FM_GetShiftState [17:59:43]SAM_PROTO_GetShiftState [17:59:43]wFMCommunicate request_size=4 [17:59:43]MH_SAM_APDU [17:59:43]CAPDU: 80 13 01 00 [17:59:43]Write to MH i2c: E2 08 00 D3 0F 80 13 01 00 00 00 00 00 5F [17:59:43]Write i2c OK [17:59:43]MH_I2C_Read... [17:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:43]Read from MH i2c: E2 [17:59:43]MH_I2C_Read... [17:59:43]Read from MH i2c: E2 0E 00 [17:59:43]MH_I2C_Read... [17:59:43]Read from MH i2c: E2 0E 00 D3 0F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 44 [17:59:43]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [17:59:43]wFMCommunicate OK [17:59:43]SAM_PROTO_GetShiftState done [17:59:43]FM_GetShiftState done [17:59:43]req_shift_opened done [17:59:43]requested_item shift.open_date is exist - process it [17:59:43]req_shift_open_date [17:59:43]req_shift_open_date done [17:59:43]produce_requested_data done [17:59:43]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76499,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [17:59:43]process_action_free print_text [17:59:43]json_value_free [17:59:43]json_value_free done [17:59:43]process_json_proto returns [17:59:43]Send response to host [17:59:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76499,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [17:59:43]free response buf [17:59:43]execute_script done [17:59:43]execute_script returns [17:59:43]free content buf [17:59:43]Sock 7.Close socket [17:59:43]Sock 7.Thread stoped [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:44]accept exits with 9 [18:02:44]New connection [18:02:44]New thread 3067080036 created [18:02:44]Thread 3066936676 joined [18:02:44]Waiting for new connection... [18:02:44] Sock 9.Parse request [18:02:44]Sock 9.Check first char [18:02:44]Sock 9.First char is OK [18:02:44]request: POST /json_proto HTTP/1.0 [18:02:44]Method: POST [18:02:44]URL: /json_proto [18:02:44]Method is POST - this is cgi request [18:02:44]url: /json_proto [18:02:44]query_string will be loaded in cgi processing [18:02:44]execute_cgi json_proto POST (null) [18:02:44]execute_cgi path=json_proto method=POST [18:02:44]POST find Content-Length [18:02:44]Host: 172.17.62.5:8080 [18:02:44]Content-Length: 978 [18:02:44]Content-Type: application/json [18:02:44] [18:02:44]POST finish read [18:02:44]Found Content-Length = 978 [18:02:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 81.120, "sum" : 5832.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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 81.12 \u0441\u043E\u043C", "deposit" : 5832.00, "total" : 5832.00, "payments": [ { "type": 0, "sum" : 5832.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:44]execute_script... [18:02:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 81.120, "sum" : 5832.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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 81.12 \u0441\u043E\u043C", "deposit" : 5832.00, "total" : 5832.00, "payments": [ { "type": 0, "sum" : 5832.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:44]POST & json_proto [18:02:44]process_json_proto [18:02:44]json parsed OK: [18:02:44]protocol is kg_v1.0 [18:02:44]action value=close_receipt [18:02:44]process_action close_receipt [18:02:44]cmd_close_receipt [18:02:44]MH_GetDate [18:02:44]Write to MH i2c: F0 00 00 D4 0F D2 [18:02:44]Write i2c OK [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: F0 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: F0 09 00 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: F0 09 00 D4 0F 00 C6 B1 22 66 F4 E9 65 64 80 [18:02:44]GetLastDocTimeStamp 1713549437 [18:02:44]current date 1713549766 [18:02:44]FM_GetShiftState [18:02:44]SAM_PROTO_GetShiftState [18:02:44]wFMCommunicate request_size=4 [18:02:44]MH_SAM_APDU [18:02:44]CAPDU: 80 13 01 00 [18:02:44]Write to MH i2c: E2 08 00 D5 0F 80 13 01 00 00 00 00 00 61 [18:02:44]Write i2c OK [18:02:44]MH_I2C_Read... [18:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:44]Read from MH i2c: E2 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: E2 0E 00 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: E2 0E 00 D5 0F 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 46 [18:02:44]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:02:44]wFMCommunicate OK [18:02:44]SAM_PROTO_GetShiftState done [18:02:44]FM_GetShiftState done [18:02:44]opened in 1713486233 [18:02:44]opened+sec_in_day 1713572633 [18:02:44]quantity*price = 583252 [18:02:44]sum+1 = 583254 [18:02:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 5832.00 Внесено: 5832.00 СДАЧА: 0.00 НСП 1% : 51.61 НДС 12% : 619.38 Наличными: 5832.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 120 19.04.2024 18:02 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 81.12 сом ФМ: 0000000000874652 ФД: 76500 ФПД: 57500952496493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T180246&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76500&fm=57500952496493&tin=02508201610067®Number=0000000000091573&sum=583200 [18:02:45]StoreToDocumentArchive [18:02:45]shift 370 fd 76500 [18:02:45]save to /storage/0370/doc_00076500 [18:02:45]save last doc name /storage/0370/doc_00076500 to /storage/kkm_last_doc_name [18:02:45]save OK [18:02:45]Clear old archive folders... [18:02:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:02:45]tlvbuf is 009EB900 [18:02:45]SAM_PROTO_ClearQueue [18:02:45]wFMCommunicate request_size=4 [18:02:45]MH_SAM_APDU [18:02:45]CAPDU: 80 09 00 00 [18:02:45]Write to MH i2c: E2 08 00 E2 0F 80 09 00 00 00 00 00 00 63 [18:02:45]Write i2c OK [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: E2 [18:02:45]MH_I2C_Read... [18:02:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:45]Read from MH i2c: E2 03 00 [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: E2 03 00 E2 0F 00 90 00 65 [18:02:45]RAPDU: 90 00 [18:02:45]wFMCommunicate OK [18:02:45]SAM_PROTO_ClearQueue done [18:02:45]KKMCreateOFDPacket [18:02:45]OFDProtocolAddRootSTLVToBuf [18:02:45]FM_MakeSignedData [18:02:45]FM_MakeSignedData [18:02:45]SAM_PROTO_SignData [18:02:45]wFMCommunicate request_size=4 [18:02:45]MH_SAM_APDU [18:02:45]CAPDU: 80 0D 01 02 [18:02:45]Write to MH i2c: E2 08 00 E3 0F 80 0D 01 02 00 00 00 00 6B [18:02:45]Write i2c OK [18:02:45]MH_I2C_Read... [18:02:46]Read from MH i2c: E2 [18:02:46]MH_I2C_Read... [18:02:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:46]Read from MH i2c: E2 03 00 [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: E2 03 00 E3 0F 00 90 00 66 [18:02:46]RAPDU: 90 00 [18:02:46]wFMCommunicate OK [18:02:46]wFMCommunicate request_size=255 [18:02:46]MH_SAM_APDU [18:02: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 E0 3C 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 55 E6 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 E6 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 F1 00 00 00 00 07 04 06 00 20 E6 08 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 C6 B1 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D4 2A 01 00 35 04 06 00 34 4B FB D9 [18:02:46]Write to MH i2c: E2 02 01 E4 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 E0 3C 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 55 E6 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 E6 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 F1 00 00 00 00 07 04 06 00 20 E6 08 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 C6 B1 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D4 2A 01 00 35 04 06 00 34 4B FB D9 00 00 D2 [18:02:46]Write i2c OK [18:02:46]MH_I2C_Read... [18:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:46]Read from MH i2c: E2 [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: E2 03 00 [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: E2 03 00 E4 0F 00 90 00 67 [18:02:46]RAPDU: 90 00 [18:02:46]wFMCommunicate OK [18:02:46]wFMCommunicate request_size=7 [18:02:46]MH_SAM_APDU [18:02:46]CAPDU: 80 0D 02 02 02 09 6D [18:02:46]Write to MH i2c: E2 0A 00 E5 0F 80 0D 02 02 02 00 09 6D 00 00 E8 [18:02:46]Write i2c OK [18:02:46]MH_I2C_Read... [18:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:46]Read from MH i2c: E2 [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: E2 03 00 [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: E2 03 00 E5 0F 00 90 00 68 [18:02:46]RAPDU: 90 00 [18:02:46]wFMCommunicate OK [18:02:46]wFMCommunicate request_size=4 [18:02:46]MH_SAM_APDU [18:02:46]CAPDU: 80 0D 03 02 [18:02:46]Write to MH i2c: E2 08 00 E6 0F 80 0D 03 02 00 00 00 00 70 [18:02:46]Write i2c OK [18:02:46]MH_I2C_Read... [18:02:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:46]Read from MH i2c: E2 [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: E2 0B 00 [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: E2 0B 00 E6 0F 00 2B C0 6C 05 7F 0B 00 34 90 00 8B [18:02:46]RAPDU: 2B C0 6C 05 7F 0B 00 34 90 00 [18:02:46]wFMCommunicate OK [18:02:46]SAM_PROTO_SignData done [18:02:46]FM_MakeSignedData done [18:02:46]CreateOFDProtocolMessage [18:02:46]wFMCommunicate request_size=4 [18:02:46]MH_SAM_APDU [18:02:46]CAPDU: 80 11 00 00 [18:02:46]Write to MH i2c: E2 08 00 E7 0F 80 11 00 00 00 00 00 00 70 [18:02:46]Write i2c OK [18:02:46]MH_I2C_Read... [18:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:46]Read from MH i2c: E2 [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: E2 17 00 [18:02:46]MH_I2C_Read... [18:02:46]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 34 36 35 32 90 00 C3 [18:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:02:46]wFMCommunicate OK [18:02:46]CreateOFDProtocolMessage done [18:02:46]OFDSenderStorePacket 76500 [18:02:46]StoreOFDPacket docnum=76500 [18:02:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 65 1D 04 01 02 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 3C 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 55 E6 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 E6 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 F1 00 00 00 00 07 04 06 00 20 E6 08 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 C6 B1 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D4 2A 01 00 35 04 06 00 34 4B FB D9 09 6D 2B C0 6C 05 7F 0B 00 34 [18:02:46]CheckFolder [18:02:46]dirname=/storage/ofd_packets [18:02:46]CheckFolder done [18:02:46]ProducePacketName [18:02:46]name=ofd_packets/00076500 [18:02:46]NVStorageSaveData ofd_packets/00076500 [18:02:46]File name is /storage/ofd_packets/00076500 [18:02:46]Write 298 bytes [18:02:46]NVStorageSaveData done [18:02:46]OFDSenderStorePacket done [18:02:46]KKMCreateOFDPacket done [18:02:46]NVStorageSaveData kkm_last_timestamp [18:02:46]File name is /storage/kkm_last_timestamp [18:02:46]Write 4 bytes [18:02:46]NVStorageSaveData done [18:02:46]ExternCall_PrintAddStr [18:02:46]wPrintStart [18:02:46]Write to MH i2c: 01 00 00 E8 0F F7 [18:02:46]Write i2c OK [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: 01 [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: 01 07 00 [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: 01 07 00 E8 0F 00 00 00 00 00 FF 0F 0C [18:02:46]RasterBufferAndPrint [18:02:46]line Счет N : (1)190981 [18:02:46]line ИНН: 02508201610067 [18:02:46]line Контрольно-Кассовый Чек [18:02:46]line ПРОДАЖА [18:02:46]line ТРК (МРК, ГНК) : 61 [18:02:46]line Товар: 2710194210 [18:02:46]line ДТ-К-5 [18:02:46]line 81.120 * 71.90 [18:02:46]line = 5832.53 [18:02:46]line НДС 12% НСП 1% [18:02:46]line > о реализуемом товаре [18:02:46]line ОКРУГЛЕНИЕ: -0.53 [18:02:46]line ИТОГО: 5832.00 [18:02:46]line Внесено: 5832.00 [18:02:46]line СДАЧА: 0.00 [18:02:46]line НСП 1% : 51.61 [18:02:46]line НДС 12% : 619.38 [18:02:46]line Наличными: 5832.00 [18:02:46]line Безнал.: 0.00 [18:02:46]line Место: АЗС № 106 "Партнер Нефть" [18:02:46]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [18:02:46]line СНО: Общий режим [18:02:46]line Чек 120 19.04.2024 18:02 [18:02:46]line Смена: 370 ФФД: 1.0 [18:02:46]line ЗНМ: 0300000141 [18:02:46]line РНМ: 0000000000091573 [18:02:46]line Версия ККМ: 001 [18:02:46]line [18:02:46]line Дисконтная программа [18:02:46]line ДТ [18:02:46]line номер 106 [18:02:46]line сэкономлено 81.12 сом [18:02:46]line ФМ: 0000000000874652 [18:02:46]line ФД: 76500 [18:02:46]line ФПД: 57500952496493 [18:02:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T180246&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76500&fm=57500952496493&tin=02508201610067®Number=0000000000091573&sum=583200 [18:02:46]OFD Sender: Processing packet 76500 [packets to send 128, broken 127] [18:02:46]ProducePacketName [18:02:46]name=ofd_packets/00076500 [18:02:46]OFD Sender: To server: pG, [18:02:46]CommunicateWithHost lk.salyk.kg:30040 [18:02:46]ConnectInit lk.salyk.kg [18:02:46]written 0, free lines is 4095 [18:02:46]Connected sock=10 [18:02:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 65 1D 04 01 02 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 3C 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 55 E6 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 E6 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 F1 00 00 00 00 07 04 06 00 20 E6 08 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 C6 B1 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D4 2A 01 00 35 04 06 00 34 4B FB D9 09 6D 2B C0 6C 05 7F 0B 00 34 [18:02:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C1 CD 47 00 0E 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 34 36 35 32 10 04 04 00 D4 2A 01 00 F4 03 04 00 51 59 22 66 B6 04 01 00 00 E3 A6 DA 35 E0 E2 6D 37 [18:02:47]CommunicateWithHost err = 0 [18:02:47]CheckOFDResponse [18:02:47]1017 (14) - 77093643461234 [18:02:47]1041 (16) - 0000000000874652 [18:02:47]1040 (4) - 76500 [18:02:47]1012 (4) - 19.04.2024 11:45 [18:02:47]1206 (1) - 0 [18:02:47]OFD Sender: Remove packet 76500 [18:02:47]ProducePacketName [18:02:47]name=ofd_packets/00076500 [18:02:47]NVStorageDeleteData [18:02:47]Write to MH i2c: 01 00 00 17 10 27 [18:02:47]Write i2c OK [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: 01 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: 01 07 00 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: 01 07 00 17 10 00 00 00 00 00 91 0C CB [18:02:47]RasterBufferAndPrint [18:02:47]line [18:02:47]line [18:02:47]line [18:02:47]line [18:02:47]line [18:02:47]written 0, free lines is 3223 [18:02:47]MH_Cut [18:02:47]Write to MH i2c: D1 01 00 1E 10 01 00 [18:02:47]Write i2c OK [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: D1 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: D1 01 00 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: D1 01 00 1E 10 00 FF [18:02:47]Write to MH i2c: 01 00 00 1F 10 2F [18:02:47]Write i2c OK [18:02:47]MH_I2C_Read... [18:02:47]OFD Sender: No OFD packet to send [18:02:48]*** Cut start [18:02:48]*** Partial cut [18:02:48]*** CUTSNS_PIN = 1 [18:02:48]*** CUTSNS_PIN = 0 [18:02:48]*** Brake cut motor [18:02:48]Read from MH i2c: 01 [18:02:48]MH_I2C_Read... [18:02:48]*** Stop cut motor [18:02:48]*** Cut end [18:02:48]Read from MH i2c: 01 07 00 [18:02:48]MH_I2C_Read... [18:02:48]Read from MH i2c: 01 07 00 1F 10 00 00 00 00 00 FF 0F 44 [18:02:48]process_action close_receipt done [18:02:48]requested_data is exist [18:02:48]produce_requested_data [18:02:48]requested_item fm.sn is exist - process it [18:02:48]wFMCommunicate request_size=4 [18:02:48]MH_SAM_APDU [18:02:48]CAPDU: 80 11 00 00 [18:02:48]Write to MH i2c: E2 08 00 20 10 80 11 00 00 00 00 00 00 AA [18:02:48]Write i2c OK [18:02:48]MH_I2C_Read... [18:02:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:48]Read from MH i2c: E2 [18:02:48]MH_I2C_Read... [18:02:48]Read from MH i2c: E2 17 00 [18:02:48]MH_I2C_Read... [18:02:48]Read from MH i2c: E2 17 00 20 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FD [18:02:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:02:48]wFMCommunicate OK [18:02:48]requested_item fd.num is exist - process it [18:02:48]SAM_PROTO_GetFieldsCounters [18:02:48]wFMCommunicate request_size=4 [18:02:48]MH_SAM_APDU [18:02:48]CAPDU: 80 13 00 00 [18:02:48]Write to MH i2c: E2 08 00 21 10 80 13 00 00 00 00 00 00 AD [18:02:48]Write i2c OK [18:02:48]MH_I2C_Read... [18:02:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:48]Read from MH i2c: E2 [18:02:48]MH_I2C_Read... [18:02:48]Read from MH i2c: E2 62 00 [18:02:48]MH_I2C_Read... [18:02:48]Read from MH i2c: E2 62 00 21 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D4 2A 01 00 0E 04 04 00 72 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 A8 [18:02: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D4 2A 01 00 0E 04 04 00 72 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 [18:02:48]wFMCommunicate OK [18:02:48]SAM_PROTO_GetFieldsCounters done [18:02:48]requested_item shift.num is exist - process it [18:02:48]requested_item shift.opened is exist - process it [18:02:48]req_shift_opened [18:02:48]FM_GetShiftState [18:02:48]SAM_PROTO_GetShiftState [18:02:48]wFMCommunicate request_size=4 [18:02:48]MH_SAM_APDU [18:02:48]CAPDU: 80 13 01 00 [18:02:48]Write to MH i2c: E2 08 00 22 10 80 13 01 00 00 00 00 00 AF [18:02:48]Write i2c OK [18:02:48]MH_I2C_Read... [18:02:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:48]Read from MH i2c: E2 [18:02:48]MH_I2C_Read... [18:02:48]Read from MH i2c: E2 0E 00 [18:02:48]MH_I2C_Read... [18:02:48]Read from MH i2c: E2 0E 00 22 10 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 94 [18:02:48]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:02:48]wFMCommunicate OK [18:02:48]SAM_PROTO_GetShiftState done [18:02:48]FM_GetShiftState done [18:02:48]req_shift_opened done [18:02:48]requested_item shift.open_date is exist - process it [18:02:48]req_shift_open_date [18:02:48]req_shift_open_date done [18:02:48]produce_requested_data done [18:02:48]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76500,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [18:02:48]process_action_free close_receipt [18:02:48]json_value_free [18:02:48]json_value_free done [18:02:48]process_json_proto returns [18:02:48]Send response to host [18:02:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76500,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [18:02:48]free response buf [18:02:48]execute_script done [18:02:48]execute_script returns [18:02:48]free content buf [18:02:48]Sock 9.Close socket [18:02:48]Sock 9.Thread stoped [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:19]accept exits with 7 [18:04:19]New connection [18:04:19]New thread 3066936676 created [18:04:19]Thread 3067080036 joined [18:04:19]Waiting for new connection... [18:04:19] Sock 7.Parse request [18:04:19]Sock 7.Check first char [18:04:19]Sock 7.First char is OK [18:04:19]request: POST /json_proto HTTP/1.0 [18:04:19]Method: POST [18:04:19]URL: /json_proto [18:04:19]Method is POST - this is cgi request [18:04:19]url: /json_proto [18:04:19]query_string will be loaded in cgi processing [18:04:19]execute_cgi json_proto POST (null) [18:04:19]execute_cgi path=json_proto method=POST [18:04:19]POST find Content-Length [18:04:19]Host: 172.17.62.5:8080 [18:04:19]Content-Length: 1166 [18:04:19]Content-Type: application/json [18:04:19] [18:04:19]POST finish read [18:04:19]Found Content-Length = 1166 [18:04: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190982\u000A19.04.2024 17:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 68.040 x 72.90\u000A\u0418\u0422\u041E\u0413: 4960.12\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30146841\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:19]execute_script... [18:04: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190982\u000A19.04.2024 17:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 68.040 x 72.90\u000A\u0418\u0422\u041E\u0413: 4960.12\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30146841\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:19]POST & json_proto [18:04:19]process_json_proto [18:04:19]json parsed OK: [18:04:19]protocol is kg_v1.0 [18:04:19]action value=print_text [18:04:19]process_action print_text [18:04:19]cmd_print_text [18:04:19]ExternCall_PrintAddStr [18:04:19]wPrintStart [18:04:19]Write to MH i2c: 01 00 00 23 10 33 [18:04:19]Write i2c OK [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: 01 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: 01 07 00 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: 01 07 00 23 10 00 00 00 00 00 FF 0F 48 [18:04:19]RasterBufferAndPrint [18:04:19]line *****ТОВАРНЫЙ ЧЕК***** [18:04:19]line АЗС 106 [18:04:19]line Партнер нефть [18:04:19]line 02508201610067 [18:04:19]line Кассир : Табалдиева М. [18:04:19]line Счет N : (1)190982 [18:04:19]line 19.04.2024 17:45 [18:04:19]line ПРОДАЖА [18:04:19]line ТРК (МРК, ГНК): 23 [18:04:19]line Вид ГСМ : 2710194210 [18:04:19]line ДТ-К-5 [18:04:19]line 68.040 x 72.90 [18:04:19]line ИТОГ: 4960.12 [18:04:19]line Тип оплаты: Талоны: ТК ГПНА Online [18:04:19]line 30146841 [18:04:19]line ______________________ [18:04:19]line (подпись) [18:04:19]written 0, free lines is 4095 [18:04:19]Write to MH i2c: 01 00 00 37 10 47 [18:04:19]Write i2c OK [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: 01 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: 01 07 00 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: 01 07 00 37 10 00 00 00 00 00 10 0E 6C [18:04:19]RasterBufferAndPrint [18:04:19]line [18:04:19]line [18:04:19]line [18:04:19]line [18:04:19]line [18:04:19]written 0, free lines is 3601 [18:04:19]MH_Cut [18:04:19]Write to MH i2c: D1 01 00 3E 10 01 20 [18:04:19]Write i2c OK [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: D1 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: D1 01 00 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: D1 01 00 3E 10 00 1F [18:04:19]Write to MH i2c: 01 00 00 3F 10 4F [18:04:19]Write i2c OK [18:04:19]MH_I2C_Read... [18:04:20]*** Cut start [18:04:20]*** Partial cut [18:04:20]*** CUTSNS_PIN = 1 [18:04:20]*** CUTSNS_PIN = 0 [18:04:20]*** Brake cut motor [18:04:20]Read from MH i2c: 01 [18:04:20]MH_I2C_Read... [18:04:20]*** Stop cut motor [18:04:20]*** Cut end [18:04:20]Read from MH i2c: 01 07 00 [18:04:20]MH_I2C_Read... [18:04:20]Read from MH i2c: 01 07 00 3F 10 00 00 00 00 00 FF 0F 64 [18:04:20]process_action print_text done [18:04:20]requested_data is exist [18:04:20]produce_requested_data [18:04:20]requested_item fm.sn is exist - process it [18:04:20]wFMCommunicate request_size=4 [18:04:20]MH_SAM_APDU [18:04:20]CAPDU: 80 11 00 00 [18:04:20]Write to MH i2c: E2 08 00 40 10 80 11 00 00 00 00 00 00 CA [18:04:20]Write i2c OK [18:04:20]MH_I2C_Read... [18:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:20]Read from MH i2c: E2 [18:04:20]MH_I2C_Read... [18:04:20]Read from MH i2c: E2 17 00 [18:04:20]MH_I2C_Read... [18:04:20]Read from MH i2c: E2 17 00 40 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 1D [18:04:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:04:20]wFMCommunicate OK [18:04:20]requested_item fd.num is exist - process it [18:04:20]SAM_PROTO_GetFieldsCounters [18:04:20]wFMCommunicate request_size=4 [18:04:20]MH_SAM_APDU [18:04:20]CAPDU: 80 13 00 00 [18:04:20]Write to MH i2c: E2 08 00 41 10 80 13 00 00 00 00 00 00 CD [18:04:20]Write i2c OK [18:04:20]MH_I2C_Read... [18:04:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:20]Read from MH i2c: E2 [18:04:20]MH_I2C_Read... [18:04:20]Read from MH i2c: E2 62 00 [18:04:20]MH_I2C_Read... [18:04:21]Read from MH i2c: E2 62 00 41 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D4 2A 01 00 0E 04 04 00 72 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 C8 [18:04:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D4 2A 01 00 0E 04 04 00 72 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 [18:04:21]wFMCommunicate OK [18:04:21]SAM_PROTO_GetFieldsCounters done [18:04:21]requested_item shift.num is exist - process it [18:04:21]requested_item shift.opened is exist - process it [18:04:21]req_shift_opened [18:04:21]FM_GetShiftState [18:04:21]SAM_PROTO_GetShiftState [18:04:21]wFMCommunicate request_size=4 [18:04:21]MH_SAM_APDU [18:04:21]CAPDU: 80 13 01 00 [18:04:21]Write to MH i2c: E2 08 00 42 10 80 13 01 00 00 00 00 00 CF [18:04:21]Write i2c OK [18:04:21]MH_I2C_Read... [18:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:21]Read from MH i2c: E2 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: E2 0E 00 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: E2 0E 00 42 10 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 B4 [18:04:21]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:04:21]wFMCommunicate OK [18:04:21]SAM_PROTO_GetShiftState done [18:04:21]FM_GetShiftState done [18:04:21]req_shift_opened done [18:04:21]requested_item shift.open_date is exist - process it [18:04:21]req_shift_open_date [18:04:21]req_shift_open_date done [18:04:21]produce_requested_data done [18:04:21]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76500,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [18:04:21]process_action_free print_text [18:04:21]json_value_free [18:04:21]json_value_free done [18:04:21]process_json_proto returns [18:04:21]Send response to host [18:04:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76500,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [18:04:21]free response buf [18:04:21]execute_script done [18:04:21]execute_script returns [18:04:21]free content buf [18:04:21]Sock 7.Close socket [18:04:21]Sock 7.Thread stoped [18:04:22]OFD Sender: No OFD packet to send [18:04:27]OFD Sender: No OFD packet to send [18:04:32]OFD Sender: No OFD packet to send [18:04:37]OFD Sender: No OFD packet to send [18:04:42]OFD Sender: No OFD packet to send [18:04:47]OFD Sender: No OFD packet to send [18:04:52]OFD Sender: No OFD packet to send [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:45]accept exits with 9 [18:05:45]New connection [18:05:45]New thread 3067080036 created [18:05:45]Thread 3066936676 joined [18:05:45]Waiting for new connection... [18:05:45] Sock 9.Parse request [18:05:45]Sock 9.Check first char [18:05:45]Sock 9.First char is OK [18:05:45]request: POST /json_proto HTTP/1.0 [18:05:45]Method: POST [18:05:45]URL: /json_proto [18:05:45]Method is POST - this is cgi request [18:05:45]url: /json_proto [18:05:45]query_string will be loaded in cgi processing [18:05:45]execute_cgi json_proto POST (null) [18:05:45]execute_cgi path=json_proto method=POST [18:05:45]POST find Content-Length [18:05:45]Host: 172.17.62.5:8080 [18:05:45]Content-Length: 1165 [18:05:45]Content-Type: application/json [18:05:45] [18:05:45]POST finish read [18:05:45]Found Content-Length = 1165 [18:05:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190985\u000A19.04.2024 17:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 11.960 x 72.90\u000A\u0418\u0422\u041E\u0413: 871.88\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30146841\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:45]execute_script... [18:05:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190985\u000A19.04.2024 17:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 11.960 x 72.90\u000A\u0418\u0422\u041E\u0413: 871.88\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30146841\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:45]POST & json_proto [18:05:45]process_json_proto [18:05:45]json parsed OK: [18:05:45]protocol is kg_v1.0 [18:05:45]action value=print_text [18:05:45]process_action print_text [18:05:45]cmd_print_text [18:05:45]ExternCall_PrintAddStr [18:05:45]wPrintStart [18:05:45]Write to MH i2c: 01 00 00 43 10 53 [18:05:45]Write i2c OK [18:05:45]MH_I2C_Read... [18:05:45]Read from MH i2c: 01 [18:05:45]MH_I2C_Read... [18:05:45]Read from MH i2c: 01 07 00 [18:05:45]MH_I2C_Read... [18:05:45]Read from MH i2c: 01 07 00 43 10 00 00 00 00 00 FF 0F 68 [18:05:45]RasterBufferAndPrint [18:05:45]line *****ТОВАРНЫЙ ЧЕК***** [18:05:45]line АЗС 106 [18:05:45]line Партнер нефть [18:05:45]line 02508201610067 [18:05:45]line Кассир : Табалдиева М. [18:05:45]line Счет N : (1)190985 [18:05:45]line 19.04.2024 17:47 [18:05:45]line ПРОДАЖА [18:05:45]line ТРК (МРК, ГНК): 23 [18:05:45]line Вид ГСМ : 2710194210 [18:05:45]line ДТ-К-5 [18:05:45]line 11.960 x 72.90 [18:05:45]line ИТОГ: 871.88 [18:05:45]line Тип оплаты: Талоны: ТК ГПНА Online [18:05:45]line 30146841 [18:05:45]line ______________________ [18:05:45]line (подпись) [18:05:45]written 0, free lines is 4095 [18:05:45]Write to MH i2c: 01 00 00 57 10 67 [18:05:45]Write i2c OK [18:05:45]MH_I2C_Read... [18:05:45]Read from MH i2c: 01 [18:05:45]MH_I2C_Read... [18:05:45]Read from MH i2c: 01 07 00 [18:05:45]MH_I2C_Read... [18:05:45]Read from MH i2c: 01 07 00 57 10 00 00 00 00 00 0F 0E 8B [18:05:45]RasterBufferAndPrint [18:05:45]line [18:05:45]line [18:05:45]line [18:05:45]line [18:05:45]line [18:05:45]written 0, free lines is 3601 [18:05:45]MH_Cut [18:05:45]Write to MH i2c: D1 01 00 5E 10 01 40 [18:05:45]Write i2c OK [18:05:45]MH_I2C_Read... [18:05:45]Read from MH i2c: D1 [18:05:45]MH_I2C_Read... [18:05:45]Read from MH i2c: D1 01 00 [18:05:45]MH_I2C_Read... [18:05:45]Read from MH i2c: D1 01 00 5E 10 00 3F [18:05:45]Write to MH i2c: 01 00 00 5F 10 6F [18:05:45]Write i2c OK [18:05:45]MH_I2C_Read... [18:05:46]*** Cut start [18:05:46]*** Partial cut [18:05:46]*** CUTSNS_PIN = 1 [18:05:46]*** CUTSNS_PIN = 0 [18:05:46]*** Brake cut motor [18:05:46]Read from MH i2c: 01 [18:05:46]MH_I2C_Read... [18:05:46]*** Stop cut motor [18:05:46]*** Cut end [18:05:46]Read from MH i2c: 01 07 00 [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: 01 07 00 5F 10 00 00 00 00 00 FF 0F 84 [18:05:46]process_action print_text done [18:05:46]requested_data is exist [18:05:46]produce_requested_data [18:05:46]requested_item fm.sn is exist - process it [18:05:46]wFMCommunicate request_size=4 [18:05:46]MH_SAM_APDU [18:05:46]CAPDU: 80 11 00 00 [18:05:46]Write to MH i2c: E2 08 00 60 10 80 11 00 00 00 00 00 00 EA [18:05:46]Write i2c OK [18:05:46]MH_I2C_Read... [18:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:46]Read from MH i2c: E2 [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: E2 17 00 [18:05:46]MH_I2C_Read... [18:05:46]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 34 36 35 32 90 00 3D [18:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:05:46]wFMCommunicate OK [18:05:46]requested_item fd.num is exist - process it [18:05:46]SAM_PROTO_GetFieldsCounters [18:05:46]wFMCommunicate request_size=4 [18:05:46]MH_SAM_APDU [18:05:46]CAPDU: 80 13 00 00 [18:05:46]Write to MH i2c: E2 08 00 61 10 80 13 00 00 00 00 00 00 ED [18:05:46]Write i2c OK [18:05:46]MH_I2C_Read... [18:05:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:47]Read from MH i2c: E2 [18:05:47]MH_I2C_Read... [18:05:47]Read from MH i2c: E2 62 00 [18:05:47]MH_I2C_Read... [18:05:47]Read from MH i2c: E2 62 00 61 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D4 2A 01 00 0E 04 04 00 72 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 E8 [18:05:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D4 2A 01 00 0E 04 04 00 72 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 [18:05:47]wFMCommunicate OK [18:05:47]SAM_PROTO_GetFieldsCounters done [18:05:47]requested_item shift.num is exist - process it [18:05:47]requested_item shift.opened is exist - process it [18:05:47]req_shift_opened [18:05:47]FM_GetShiftState [18:05:47]SAM_PROTO_GetShiftState [18:05:47]wFMCommunicate request_size=4 [18:05:47]MH_SAM_APDU [18:05:47]CAPDU: 80 13 01 00 [18:05:47]Write to MH i2c: E2 08 00 62 10 80 13 01 00 00 00 00 00 EF [18:05:47]Write i2c OK [18:05:47]MH_I2C_Read... [18:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:47]Read from MH i2c: E2 [18:05:47]MH_I2C_Read... [18:05:47]Read from MH i2c: E2 0E 00 [18:05:47]MH_I2C_Read... [18:05:47]Read from MH i2c: E2 0E 00 62 10 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 D4 [18:05:47]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:05:47]wFMCommunicate OK [18:05:47]SAM_PROTO_GetShiftState done [18:05:47]FM_GetShiftState done [18:05:47]req_shift_opened done [18:05:47]requested_item shift.open_date is exist - process it [18:05:47]req_shift_open_date [18:05:47]req_shift_open_date done [18:05:47]produce_requested_data done [18:05:47]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76500,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [18:05:47]process_action_free print_text [18:05:47]json_value_free [18:05:47]json_value_free done [18:05:47]process_json_proto returns [18:05:47]Send response to host [18:05:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76500,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [18:05:47]free response buf [18:05:47]execute_script done [18:05:47]execute_script returns [18:05:47]free content buf [18:05:47]Sock 9.Close socket [18:05:47]Sock 9.Thread stoped [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:18]OFD Sender: No OFD packet to send [18:08:18]recv_with_timeout no data received [18:08:23]OFD Sender: No OFD packet to send [18:08:28]OFD Sender: No OFD packet to send [18:08:33]OFD Sender: No OFD packet to send [18:08:38]OFD Sender: No OFD packet to send [18:08:43]OFD Sender: No OFD packet to send [18:08:48]OFD Sender: No OFD packet to send [18:08:53]OFD Sender: No OFD packet to send [18:08:58]OFD Sender: No OFD packet to send [18:09:03]OFD Sender: No OFD packet to send [18:09:08]OFD Sender: No OFD packet to send [18:09:13]OFD Sender: No OFD packet to send [18:09:18]OFD Sender: No OFD packet to send [18:09:23]OFD Sender: No OFD packet to send [18:09:28]OFD Sender: No OFD packet to send [18:09:33]OFD Sender: No OFD packet to send [18:09:38]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:03]OFD Sender: No OFD packet to send [18:10:08]OFD Sender: No OFD packet to send [18:10:13]OFD Sender: No OFD packet to send [18:10:18]OFD Sender: No OFD packet to send [18:10:23]OFD Sender: No OFD packet to send [18:10:28]OFD Sender: No OFD packet to send [18:10:33]OFD Sender: No OFD packet to send [18:10:38]OFD Sender: No OFD packet to send [18:10:43]OFD Sender: No OFD packet to send [18:10:48]OFD Sender: No OFD packet to send [18:10:53]OFD Sender: No OFD packet to send [18:10:55]accept exits with 7 [18:10:55]New connection [18:10:55]New thread 3066936676 created [18:10:55]Thread 3067080036 joined [18:10:55]Waiting for new connection... [18:10:55] Sock 7.Parse request [18:10:55]Sock 7.Check first char [18:10:55]Sock 7.First char is OK [18:10:55]request: POST /json_proto HTTP/1.0 [18:10:55]Method: POST [18:10:55]URL: /json_proto [18:10:55]Method is POST - this is cgi request [18:10:55]url: /json_proto [18:10:55]query_string will be loaded in cgi processing [18:10:55]execute_cgi json_proto POST (null) [18:10:55]execute_cgi path=json_proto method=POST [18:10:55]POST find Content-Length [18:10:55]Host: 172.17.62.5:8080 [18:10:55]Content-Length: 1167 [18:10:55]Content-Type: application/json [18:10:55] [18:10:55]POST finish read [18:10:55]Found Content-Length = 1167 [18:10:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190986\u000A19.04.2024 17:52\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 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30119772\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:55]execute_script... [18:10:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190986\u000A19.04.2024 17:52\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 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30119772\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:55]POST & json_proto [18:10:55]process_json_proto [18:10:55]json parsed OK: [18:10:55]protocol is kg_v1.0 [18:10:55]action value=print_text [18:10:55]process_action print_text [18:10:55]cmd_print_text [18:10:55]ExternCall_PrintAddStr [18:10:55]wPrintStart [18:10:55]Write to MH i2c: 01 00 00 63 10 73 [18:10:55]Write i2c OK [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: 01 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: 01 07 00 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: 01 07 00 63 10 00 00 00 00 00 FF 0F 88 [18:10:55]RasterBufferAndPrint [18:10:55]line *****ТОВАРНЫЙ ЧЕК***** [18:10:55]line АЗС 106 [18:10:55]line Партнер нефть [18:10:55]line 02508201610067 [18:10:55]line Кассир : Табалдиева М. [18:10:55]line Счет N : (1)190986 [18:10:55]line 19.04.2024 17:52 [18:10:55]line ПРОДАЖА [18:10:55]line ТРК (МРК, ГНК): 51 [18:10:55]line Вид ГСМ : 2710194210 [18:10:55]line ДТ-К-5 [18:10:55]line 100.000 x 72.90 [18:10:55]line ИТОГ: 7290.00 [18:10:55]line Тип оплаты: Талоны: ТК ГПНА Online [18:10:55]line 30119772 [18:10:55]line ______________________ [18:10:55]line (подпись) [18:10:55]written 0, free lines is 4095 [18:10:55]Write to MH i2c: 01 00 00 77 10 87 [18:10:55]Write i2c OK [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: 01 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: 01 07 00 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: 01 07 00 77 10 00 00 00 00 00 10 0E AC [18:10:55]RasterBufferAndPrint [18:10:55]line [18:10:55]line [18:10:55]line [18:10:55]line [18:10:55]line [18:10:55]written 0, free lines is 3601 [18:10:55]MH_Cut [18:10:55]Write to MH i2c: D1 01 00 7E 10 01 60 [18:10:55]Write i2c OK [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: D1 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: D1 01 00 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: D1 01 00 7E 10 00 5F [18:10:55]Write to MH i2c: 01 00 00 7F 10 8F [18:10:55]Write i2c OK [18:10:55]MH_I2C_Read... [18:10:56]*** Cut start [18:10:56]*** Partial cut [18:10:56]*** CUTSNS_PIN = 1 [18:10:56]*** CUTSNS_PIN = 0 [18:10:56]*** Brake cut motor [18:10:56]Read from MH i2c: 01 [18:10:56]MH_I2C_Read... [18:10:56]*** Stop cut motor [18:10:56]*** Cut end [18:10:56]Read from MH i2c: 01 07 00 [18:10:56]MH_I2C_Read... [18:10:56]Read from MH i2c: 01 07 00 7F 10 00 00 00 00 00 FF 0F A4 [18:10:56]process_action print_text done [18:10:56]requested_data is exist [18:10:56]produce_requested_data [18:10:56]requested_item fm.sn is exist - process it [18:10:56]wFMCommunicate request_size=4 [18:10:56]MH_SAM_APDU [18:10:56]CAPDU: 80 11 00 00 [18:10:56]Write to MH i2c: E2 08 00 80 10 80 11 00 00 00 00 00 00 0A [18:10:56]Write i2c OK [18:10:56]MH_I2C_Read... [18:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:56]Read from MH i2c: E2 [18:10:56]MH_I2C_Read... [18:10:56]Read from MH i2c: E2 17 00 [18:10:56]MH_I2C_Read... [18:10:56]Read from MH i2c: E2 17 00 80 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5D [18:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:10:56]wFMCommunicate OK [18:10:56]requested_item fd.num is exist - process it [18:10:56]SAM_PROTO_GetFieldsCounters [18:10:56]wFMCommunicate request_size=4 [18:10:56]MH_SAM_APDU [18:10:56]CAPDU: 80 13 00 00 [18:10:56]Write to MH i2c: E2 08 00 81 10 80 13 00 00 00 00 00 00 0D [18:10:56]Write i2c OK [18:10:56]MH_I2C_Read... [18:10:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:57]Read from MH i2c: E2 [18:10:57]MH_I2C_Read... [18:10:57]Read from MH i2c: E2 62 00 [18:10:57]MH_I2C_Read... [18:10:57]Read from MH i2c: E2 62 00 81 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D4 2A 01 00 0E 04 04 00 72 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 08 [18:10:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D4 2A 01 00 0E 04 04 00 72 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 [18:10:57]wFMCommunicate OK [18:10:57]SAM_PROTO_GetFieldsCounters done [18:10:57]requested_item shift.num is exist - process it [18:10:57]requested_item shift.opened is exist - process it [18:10:57]req_shift_opened [18:10:57]FM_GetShiftState [18:10:57]SAM_PROTO_GetShiftState [18:10:57]wFMCommunicate request_size=4 [18:10:57]MH_SAM_APDU [18:10:57]CAPDU: 80 13 01 00 [18:10:57]Write to MH i2c: E2 08 00 82 10 80 13 01 00 00 00 00 00 0F [18:10:57]Write i2c OK [18:10:57]MH_I2C_Read... [18:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:57]Read from MH i2c: E2 [18:10:57]MH_I2C_Read... [18:10:57]Read from MH i2c: E2 0E 00 [18:10:57]MH_I2C_Read... [18:10:57]Read from MH i2c: E2 0E 00 82 10 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 F4 [18:10:57]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:10:57]wFMCommunicate OK [18:10:57]SAM_PROTO_GetShiftState done [18:10:57]FM_GetShiftState done [18:10:57]req_shift_opened done [18:10:57]requested_item shift.open_date is exist - process it [18:10:57]req_shift_open_date [18:10:57]req_shift_open_date done [18:10:57]produce_requested_data done [18:10:57]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76500,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [18:10:57]process_action_free print_text [18:10:57]json_value_free [18:10:57]json_value_free done [18:10:57]process_json_proto returns [18:10:57]Send response to host [18:10:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76500,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [18:10:57]free response buf [18:10:57]execute_script done [18:10:57]execute_script returns [18:10:57]free content buf [18:10:57]Sock 7.Close socket [18:10:57]Sock 7.Thread stoped [18:10:58]OFD Sender: No OFD packet to send [18:11:03]OFD Sender: No OFD packet to send [18:11:08]OFD Sender: No OFD packet to send [18:11:13]OFD Sender: No OFD packet to send [18:11:18]OFD Sender: No OFD packet to send [18:11:23]OFD Sender: No OFD packet to send [18:11:28]OFD Sender: No OFD packet to send [18:11:33]OFD Sender: No OFD packet to send [18:11:38]OFD Sender: No OFD packet to send [18:11:43]OFD Sender: No OFD packet to send [18:11:48]OFD Sender: No OFD packet to send [18:11:53]OFD Sender: No OFD packet to send [18:11:58]OFD Sender: No OFD packet to send [18:12:03]OFD Sender: No OFD packet to send [18:12:08]OFD Sender: No OFD packet to send [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:04]accept exits with 10 [18:17:04]New connection [18:17:04]New thread 3067080036 created [18:17:04]Thread 3066936676 joined [18:17:04]Waiting for new connection... [18:17:04] Sock 10.Parse request [18:17:04]Sock 10.Check first char [18:17:04]Sock 10.First char is OK [18:17:04]request: POST /json_proto HTTP/1.0 [18:17:04]Method: POST [18:17:04]URL: /json_proto [18:17:04]Method is POST - this is cgi request [18:17:04]url: /json_proto [18:17:04]query_string will be loaded in cgi processing [18:17:04]execute_cgi json_proto POST (null) [18:17:04]execute_cgi path=json_proto method=POST [18:17:04]POST find Content-Length [18:17:04]Host: 172.17.62.5:8080 [18:17:04]Content-Length: 1206 [18:17:04]Content-Type: application/json [18:17:04] [18:17:04]POST finish read [18:17:04]Found Content-Length = 1206 [18:17:04]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190983\u000A19.04.2024 17:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 500.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 36450.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\u000A68979\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:04]execute_script... [18:17:04]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190983\u000A19.04.2024 17:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 500.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 36450.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\u000A68979\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:04]POST & json_proto [18:17:04]process_json_proto [18:17:04]json parsed OK: [18:17:04]protocol is kg_v1.0 [18:17:04]action value=print_text [18:17:04]process_action print_text [18:17:04]cmd_print_text [18:17:04]ExternCall_PrintAddStr [18:17:04]wPrintStart [18:17:04]Write to MH i2c: 01 00 00 83 10 93 [18:17:04]Write i2c OK [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: 01 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: 01 07 00 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: 01 07 00 83 10 00 00 00 00 00 FF 0F A8 [18:17:04]RasterBufferAndPrint [18:17:04]line *****ТОВАРНЫЙ ЧЕК***** [18:17:04]line АЗС 106 [18:17:04]line Партнер нефть [18:17:04]line 02508201610067 [18:17:04]line Кассир : Табалдиева М. [18:17:04]line Счет N : (1)190983 [18:17:04]line 19.04.2024 17:58 [18:17:04]line ПРОДАЖА [18:17:04]line ТРК (МРК, ГНК): 13 [18:17:04]line Вид ГСМ : 2710194210 [18:17:04]line ДТ-К-5 [18:17:04]line 500.000 x 72.90 [18:17:04]line ИТОГ: 36450.00 [18:17:04]line Тип оплаты: Талоны: Топливная Карта [18:17:04]line 68979 [18:17:04]line ______________________ [18:17:04]line (подпись) [18:17:04]written 0, free lines is 4095 [18:17:04]Write to MH i2c: 01 00 00 97 10 A7 [18:17:04]Write i2c OK [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: 01 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: 01 07 00 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: 01 07 00 97 10 00 00 00 00 00 11 0E CD [18:17:04]RasterBufferAndPrint [18:17:04]line [18:17:04]line [18:17:04]line [18:17:04]line [18:17:04]line [18:17:04]written 0, free lines is 3603 [18:17:04]MH_Cut [18:17:04]Write to MH i2c: D1 01 00 9E 10 01 80 [18:17:04]Write i2c OK [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: D1 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: D1 01 00 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: D1 01 00 9E 10 00 7F [18:17:04]Write to MH i2c: 01 00 00 9F 10 AF [18:17:04]Write i2c OK [18:17:04]MH_I2C_Read... [18:17:04]*** Cut start [18:17:04]*** Partial cut [18:17:04]*** CUTSNS_PIN = 1 [18:17:04]*** CUTSNS_PIN = 0 [18:17:05]*** Brake cut motor [18:17:05]Read from MH i2c: 01 [18:17:05]MH_I2C_Read... [18:17:05]*** Stop cut motor [18:17:05]*** Cut end [18:17:05]Read from MH i2c: 01 07 00 [18:17:05]MH_I2C_Read... [18:17:05]Read from MH i2c: 01 07 00 9F 10 00 00 00 00 00 FF 0F C4 [18:17:05]process_action print_text done [18:17:05]requested_data is exist [18:17:05]produce_requested_data [18:17:05]requested_item fm.sn is exist - process it [18:17:05]wFMCommunicate request_size=4 [18:17:05]MH_SAM_APDU [18:17:05]CAPDU: 80 11 00 00 [18:17:05]Write to MH i2c: E2 08 00 A0 10 80 11 00 00 00 00 00 00 2A [18:17:05]Write i2c OK [18:17:05]MH_I2C_Read... [18:17:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:05]Read from MH i2c: E2 [18:17:05]MH_I2C_Read... [18:17:05]Read from MH i2c: E2 17 00 [18:17:05]MH_I2C_Read... [18:17:05]Read from MH i2c: E2 17 00 A0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7D [18:17:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:17:05]wFMCommunicate OK [18:17:05]requested_item fd.num is exist - process it [18:17:05]SAM_PROTO_GetFieldsCounters [18:17:05]wFMCommunicate request_size=4 [18:17:05]MH_SAM_APDU [18:17:05]CAPDU: 80 13 00 00 [18:17:05]Write to MH i2c: E2 08 00 A1 10 80 13 00 00 00 00 00 00 2D [18:17:05]Write i2c OK [18:17:05]MH_I2C_Read... [18:17:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:05]Read from MH i2c: E2 [18:17:05]MH_I2C_Read... [18:17:05]Read from MH i2c: E2 62 00 [18:17:05]MH_I2C_Read... [18:17:05]Read from MH i2c: E2 62 00 A1 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D4 2A 01 00 0E 04 04 00 72 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 28 [18:17: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D4 2A 01 00 0E 04 04 00 72 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 [18:17:05]wFMCommunicate OK [18:17:05]SAM_PROTO_GetFieldsCounters done [18:17:05]requested_item shift.num is exist - process it [18:17:05]requested_item shift.opened is exist - process it [18:17:05]req_shift_opened [18:17:05]FM_GetShiftState [18:17:05]SAM_PROTO_GetShiftState [18:17:05]wFMCommunicate request_size=4 [18:17:05]MH_SAM_APDU [18:17:05]CAPDU: 80 13 01 00 [18:17:05]Write to MH i2c: E2 08 00 A2 10 80 13 01 00 00 00 00 00 2F [18:17:05]Write i2c OK [18:17:05]MH_I2C_Read... [18:17:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:05]Read from MH i2c: E2 [18:17:05]MH_I2C_Read... [18:17:05]Read from MH i2c: E2 0E 00 [18:17:05]MH_I2C_Read... [18:17:05]Read from MH i2c: E2 0E 00 A2 10 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 14 [18:17:05]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:17:05]wFMCommunicate OK [18:17:05]SAM_PROTO_GetShiftState done [18:17:05]FM_GetShiftState done [18:17:05]req_shift_opened done [18:17:05]requested_item shift.open_date is exist - process it [18:17:05]req_shift_open_date [18:17:05]req_shift_open_date done [18:17:05]produce_requested_data done [18:17:05]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76500,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [18:17:05]process_action_free print_text [18:17:05]json_value_free [18:17:05]json_value_free done [18:17:05]process_json_proto returns [18:17:05]Send response to host [18:17:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76500,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [18:17:05]free response buf [18:17:05]execute_script done [18:17:05]execute_script returns [18:17:05]free content buf [18:17:05]Sock 10.Close socket [18:17:05]Sock 10.Thread stoped [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:28]OFD Sender: No OFD packet to send [18:19:33]OFD Sender: No OFD packet to send [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:33]OFD Sender: No OFD packet to send [18:20:38]OFD Sender: No OFD packet to send [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:29]OFD Sender: No OFD packet to send [18:21:34]OFD Sender: No OFD packet to send [18:21:39]OFD Sender: No OFD packet to send [18:21:44]OFD Sender: No OFD packet to send [18:21:49]OFD Sender: No OFD packet to send [18:21:54]OFD Sender: No OFD packet to send [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:44]OFD Sender: No OFD packet to send [18:26:49]OFD Sender: No OFD packet to send [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:55]accept exits with 7 [18:27:55]New connection [18:27:55]New thread 3066936676 created [18:27:55]Thread 3067080036 joined [18:27:55]Waiting for new connection... [18:27:55] Sock 7.Parse request [18:27:55]Sock 7.Check first char [18:27:55]Sock 7.First char is OK [18:27:55]request: POST /json_proto HTTP/1.0 [18:27:55]Method: POST [18:27:55]URL: /json_proto [18:27:55]Method is POST - this is cgi request [18:27:55]url: /json_proto [18:27:55]query_string will be loaded in cgi processing [18:27:55]execute_cgi json_proto POST (null) [18:27:55]execute_cgi path=json_proto method=POST [18:27:55]POST find Content-Length [18:27:55]Host: 172.17.62.5:8080 [18:27:55]Content-Length: 640 [18:27:55]Content-Type: application/json [18:27:55] [18:27:55]POST finish read [18:27:55]Found Content-Length = 640 [18:27:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.000, "sum" : 644.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 644.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:55]execute_script... [18:27: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)190988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.000, "sum" : 644.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 644.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:55]POST & json_proto [18:27:55]process_json_proto [18:27:55]json parsed OK: [18:27:55]protocol is kg_v1.0 [18:27:55]action value=close_receipt [18:27:55]process_action close_receipt [18:27:55]cmd_close_receipt [18:27:55]MH_GetDate [18:27:55]Write to MH i2c: F0 00 00 A3 10 A2 [18:27:55]Write i2c OK [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: F0 [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: F0 09 00 [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: F0 09 00 A3 10 00 AD B7 22 66 F4 E9 65 64 3D [18:27:55]GetLastDocTimeStamp 1713549766 [18:27:55]current date 1713551277 [18:27:55]FM_GetShiftState [18:27:55]SAM_PROTO_GetShiftState [18:27:55]wFMCommunicate request_size=4 [18:27:55]MH_SAM_APDU [18:27:55]CAPDU: 80 13 01 00 [18:27:55]Write to MH i2c: E2 08 00 A4 10 80 13 01 00 00 00 00 00 31 [18:27:55]Write i2c OK [18:27:55]MH_I2C_Read... [18:27:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:55]Read from MH i2c: E2 [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: E2 0E 00 [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: E2 0E 00 A4 10 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 16 [18:27:55]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:27:55]wFMCommunicate OK [18:27:55]SAM_PROTO_GetShiftState done [18:27:55]FM_GetShiftState done [18:27:55]opened in 1713486233 [18:27:55]opened+sec_in_day 1713572633 [18:27:55]quantity*price = 64400 [18:27:55]sum+1 = 64401 [18:27:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 644.00 НСП 1% : 5.70 НДС 12% : 68.39 Наличными: 644.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 121 19.04.2024 18:27 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76501 ФПД: 250094215606150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T182757&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76501&fm=250094215606150&tin=02508201610067®Number=0000000000091573&sum=64400 [18:27:56]StoreToDocumentArchive [18:27:56]shift 370 fd 76501 [18:27:56]save to /storage/0370/doc_00076501 [18:27:56]save last doc name /storage/0370/doc_00076501 to /storage/kkm_last_doc_name [18:27:56]save OK [18:27:56]Clear old archive folders... [18:27:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:56]tlvbuf is 009C68A0 [18:27:56]SAM_PROTO_ClearQueue [18:27:56]wFMCommunicate request_size=4 [18:27:56]MH_SAM_APDU [18:27:56]CAPDU: 80 09 00 00 [18:27:56]Write to MH i2c: E2 08 00 B1 10 80 09 00 00 00 00 00 00 33 [18:27:56]Write i2c OK [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: E2 [18:27:56]MH_I2C_Read... [18:27:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:56]Read from MH i2c: E2 03 00 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: E2 03 00 B1 10 00 90 00 35 [18:27:56]RAPDU: 90 00 [18:27:56]wFMCommunicate OK [18:27:56]SAM_PROTO_ClearQueue done [18:27:56]KKMCreateOFDPacket [18:27:56]OFDProtocolAddRootSTLVToBuf [18:27:56]FM_MakeSignedData [18:27:56]FM_MakeSignedData [18:27:56]SAM_PROTO_SignData [18:27:56]wFMCommunicate request_size=4 [18:27:56]MH_SAM_APDU [18:27:56]CAPDU: 80 0D 01 02 [18:27:56]Write to MH i2c: E2 08 00 B2 10 80 0D 01 02 00 00 00 00 3B [18:27:56]Write i2c OK [18:27:56]MH_I2C_Read... [18:27:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:56]Read from MH i2c: E2 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: E2 03 00 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: E2 03 00 B2 10 00 90 00 36 [18:27:56]RAPDU: 90 00 [18:27:56]wFMCommunicate OK [18:27:56]wFMCommunicate request_size=255 [18:27:56]MH_SAM_APDU [18:27: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 10 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 90 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 90 FB 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 AD B7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D5 2A 01 00 35 04 06 00 E3 [18:27:56]Write to MH i2c: E2 02 01 B3 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 10 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 90 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 90 FB 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 AD B7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D5 2A 01 00 35 04 06 00 E3 00 00 26 [18:27:56]Write i2c OK [18:27:56]MH_I2C_Read... [18:27:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:56]Read from MH i2c: E2 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: E2 03 00 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: E2 03 00 B3 10 00 90 00 37 [18:27:56]RAPDU: 90 00 [18:27:56]wFMCommunicate OK [18:27:56]wFMCommunicate request_size=10 [18:27:56]MH_SAM_APDU [18:27:56]CAPDU: 80 0D 02 02 05 75 98 E1 AF 86 [18:27:56]Write to MH i2c: E2 0D 00 B4 10 80 0D 02 02 05 00 75 98 E1 AF 86 00 00 6B [18:27:56]Write i2c OK [18:27:56]MH_I2C_Read... [18:27:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:56]Read from MH i2c: E2 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: E2 03 00 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: E2 03 00 B4 10 00 90 00 38 [18:27:56]RAPDU: 90 00 [18:27:56]wFMCommunicate OK [18:27:56]wFMCommunicate request_size=4 [18:27:56]MH_SAM_APDU [18:27:56]CAPDU: 80 0D 03 02 [18:27:56]Write to MH i2c: E2 08 00 B5 10 80 0D 03 02 00 00 00 00 40 [18:27:56]Write i2c OK [18:27:56]MH_I2C_Read... [18:27:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:56]Read from MH i2c: E2 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: E2 0B 00 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: E2 0B 00 B5 10 00 D2 A7 D5 8A 02 9A 44 4C 90 00 45 [18:27:56]RAPDU: D2 A7 D5 8A 02 9A 44 4C 90 00 [18:27:56]wFMCommunicate OK [18:27:56]SAM_PROTO_SignData done [18:27:56]FM_MakeSignedData done [18:27:56]CreateOFDProtocolMessage [18:27:56]wFMCommunicate request_size=4 [18:27:56]MH_SAM_APDU [18:27:56]CAPDU: 80 11 00 00 [18:27:56]Write to MH i2c: E2 08 00 B6 10 80 11 00 00 00 00 00 00 40 [18:27:56]Write i2c OK [18:27:56]MH_I2C_Read... [18:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:56]Read from MH i2c: E2 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: E2 17 00 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: E2 17 00 B6 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 93 [18:27:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:27:56]wFMCommunicate OK [18:27:56]CreateOFDProtocolMessage done [18:27:56]OFDSenderStorePacket 76501 [18:27:56]StoreOFDPacket docnum=76501 [18:27:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E3 EA 07 01 7C C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 19 00 00 00 00 13 04 06 00 90 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 90 FB 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 AD B7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D5 2A 01 00 35 04 06 00 E3 75 98 E1 AF 86 D2 A7 D5 8A 02 9A 44 4C [18:27:56]CheckFolder [18:27:56]dirname=/storage/ofd_packets [18:27:56]CheckFolder done [18:27:56]ProducePacketName [18:27:56]name=ofd_packets/00076501 [18:27:56]NVStorageSaveData ofd_packets/00076501 [18:27:56]File name is /storage/ofd_packets/00076501 [18:27:56]Write 301 bytes [18:27:56]NVStorageSaveData done [18:27:56]OFDSenderStorePacket done [18:27:56]KKMCreateOFDPacket done [18:27:56]NVStorageSaveData kkm_last_timestamp [18:27:56]File name is /storage/kkm_last_timestamp [18:27:56]Write 4 bytes [18:27:56]NVStorageSaveData done [18:27:56]ExternCall_PrintAddStr [18:27:56]wPrintStart [18:27:56]Write to MH i2c: 01 00 00 B7 10 C7 [18:27:56]Write i2c OK [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: 01 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: 01 07 00 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: 01 07 00 B7 10 00 00 00 00 00 FF 0F DC [18:27:56]RasterBufferAndPrint [18:27:56]line Счет N : (1)190988 [18:27:56]line ИНН: 02508201610067 [18:27:56]line Контрольно-Кассовый Чек [18:27:56]line ПРОДАЖА [18:27:56]line ТРК (МРК, ГНК) : 43 [18:27:56]line Товар: 2710124130 [18:27:56]line Аи-92-К-5 [18:27:56]line 10.000 * 64.40 [18:27:56]line = 644.00 [18:27:56]line НДС 12% НСП 1% [18:27:56]line > о реализуемом товаре [18:27:56]line ИТОГО: 644.00 [18:27:56]line НСП 1% : 5.70 [18:27:56]line НДС 12% : 68.39 [18:27:56]line Наличными: 644.00 [18:27:56]line Безнал.: 0.00 [18:27:56]line Место: АЗС № 106 "Партнер Нефть" [18:27:56]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [18:27:56]line СНО: Общий режим [18:27:56]line Чек 121 19.04.2024 18:27 [18:27:56]line Смена: 370 ФФД: 1.0 [18:27:56]line ЗНМ: 0300000141 [18:27:56]line РНМ: 0000000000091573 [18:27:56]line Версия ККМ: 001 [18:27:56]line ФМ: 0000000000874652 [18:27:56]line ФД: 76501 [18:27:56]line ФПД: 250094215606150 [18:27:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T182757&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76501&fm=250094215606150&tin=02508201610067®Number=0000000000091573&sum=64400 [18:27:57]written 0, free lines is 4095 [18:27:57]OFD Sender: Processing packet 76501 [packets to send 128, broken 127] [18:27:57]ProducePacketName [18:27:57]name=ofd_packets/00076501 [18:27:57]OFD Sender: To server: pG, [18:27:57]CommunicateWithHost lk.salyk.kg:30040 [18:27:57]ConnectInit lk.salyk.kg [18:27:57]Connected sock=10 [18:27:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E3 EA 07 01 7C C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 19 00 00 00 00 13 04 06 00 90 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 90 FB 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 AD B7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D5 2A 01 00 35 04 06 00 E3 75 98 E1 AF 86 D2 A7 D5 8A 02 9A 44 4C [18:27:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 72 ED 47 00 F0 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 34 36 35 32 10 04 04 00 D5 2A 01 00 F4 03 04 00 37 5F 22 66 B6 04 01 00 00 39 B8 08 5D E4 C5 3C 6F [18:27:57]CommunicateWithHost err = 0 [18:27:57]CheckOFDResponse [18:27:57]1017 (14) - 77093643461234 [18:27:57]1041 (16) - 0000000000874652 [18:27:57]1040 (4) - 76501 [18:27:57]1012 (4) - 19.04.2024 12:10 [18:27:57]1206 (1) - 0 [18:27:57]OFD Sender: Remove packet 76501 [18:27:57]ProducePacketName [18:27:57]name=ofd_packets/00076501 [18:27:57]NVStorageDeleteData [18:27:57]Write to MH i2c: 01 00 00 DE 10 EE [18:27:57]Write i2c OK [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: 01 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: 01 07 00 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: 01 07 00 DE 10 00 00 00 00 00 27 0D 29 [18:27:57]RasterBufferAndPrint [18:27:57]line [18:27:57]line [18:27:57]line [18:27:57]line [18:27:57]line [18:27:57]written 0, free lines is 3373 [18:27:57]MH_Cut [18:27:57]Write to MH i2c: D1 01 00 E5 10 01 C7 [18:27:57]Write i2c OK [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: D1 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: D1 01 00 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: D1 01 00 E5 10 00 C6 [18:27:57]Write to MH i2c: 01 00 00 E6 10 F6 [18:27:57]Write i2c OK [18:27:57]MH_I2C_Read... [18:27:58]OFD Sender: No OFD packet to send [18:27:58]*** Cut start [18:27:58]*** Partial cut [18:27:58]*** CUTSNS_PIN = 1 [18:27:58]*** CUTSNS_PIN = 0 [18:27:58]*** Brake cut motor [18:27:58]Read from MH i2c: 01 [18:27:58]MH_I2C_Read... [18:27:58]*** Stop cut motor [18:27:58]*** Cut end [18:27:58]Read from MH i2c: 01 07 00 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: 01 07 00 E6 10 00 00 00 00 00 FF 0F 0B [18:27:58]process_action close_receipt done [18:27:58]requested_data is exist [18:27:58]produce_requested_data [18:27:58]requested_item fm.sn is exist - process it [18:27:58]wFMCommunicate request_size=4 [18:27:58]MH_SAM_APDU [18:27:58]CAPDU: 80 11 00 00 [18:27:58]Write to MH i2c: E2 08 00 E7 10 80 11 00 00 00 00 00 00 71 [18:27:58]Write i2c OK [18:27:58]MH_I2C_Read... [18:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:58]Read from MH i2c: E2 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: E2 17 00 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: E2 17 00 E7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C4 [18:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:27:58]wFMCommunicate OK [18:27:58]requested_item fd.num is exist - process it [18:27:58]SAM_PROTO_GetFieldsCounters [18:27:58]wFMCommunicate request_size=4 [18:27:58]MH_SAM_APDU [18:27:58]CAPDU: 80 13 00 00 [18:27:58]Write to MH i2c: E2 08 00 E8 10 80 13 00 00 00 00 00 00 74 [18:27:58]Write i2c OK [18:27:58]MH_I2C_Read... [18:27:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:59]Read from MH i2c: E2 [18:27:59]MH_I2C_Read... [18:27:59]Read from MH i2c: E2 62 00 [18:27:59]MH_I2C_Read... [18:27:59]Read from MH i2c: E2 62 00 E8 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D5 2A 01 00 0E 04 04 00 72 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 73 [18:27: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D5 2A 01 00 0E 04 04 00 72 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 [18:27:59]wFMCommunicate OK [18:27:59]SAM_PROTO_GetFieldsCounters done [18:27:59]requested_item shift.num is exist - process it [18:27:59]requested_item shift.opened is exist - process it [18:27:59]req_shift_opened [18:27:59]FM_GetShiftState [18:27:59]SAM_PROTO_GetShiftState [18:27:59]wFMCommunicate request_size=4 [18:27:59]MH_SAM_APDU [18:27:59]CAPDU: 80 13 01 00 [18:27:59]Write to MH i2c: E2 08 00 E9 10 80 13 01 00 00 00 00 00 76 [18:27:59]Write i2c OK [18:27:59]MH_I2C_Read... [18:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:59]Read from MH i2c: E2 [18:27:59]MH_I2C_Read... [18:27:59]Read from MH i2c: E2 0E 00 [18:27:59]MH_I2C_Read... [18:27:59]Read from MH i2c: E2 0E 00 E9 10 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 5B [18:27:59]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:27:59]wFMCommunicate OK [18:27:59]SAM_PROTO_GetShiftState done [18:27:59]FM_GetShiftState done [18:27:59]req_shift_opened done [18:27:59]requested_item shift.open_date is exist - process it [18:27:59]req_shift_open_date [18:27:59]req_shift_open_date done [18:27:59]produce_requested_data done [18:27:59]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76501,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [18:27:59]process_action_free close_receipt [18:27:59]json_value_free [18:27:59]json_value_free done [18:27:59]process_json_proto returns [18:27:59]Send response to host [18:27:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76501,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [18:27:59]free response buf [18:27:59]execute_script done [18:27:59]execute_script returns [18:27:59]free content buf [18:27:59]Sock 7.Close socket [18:27:59]Sock 7.Thread stoped [18:28:03]OFD Sender: No OFD packet to send [18:28:08]OFD Sender: No OFD packet to send [18:28:13]OFD Sender: No OFD packet to send [18:28:18]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:38]accept exits with 9 [18:29:38]New connection [18:29:38]New thread 3067080036 created [18:29:38]Thread 3066936676 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.62.5:8080 [18:29:38]Content-Length: 682 [18:29:38]Content-Type: application/json [18:29:38] [18:29:38]POST finish read [18:29:38]Found Content-Length = 682 [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)190989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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)190989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 EA 10 E9 [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 EA 10 00 14 B8 22 66 F4 E9 65 64 EC [18:29:38]GetLastDocTimeStamp 1713551277 [18:29:38]current date 1713551380 [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 EB 10 80 13 01 00 00 00 00 00 78 [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 EB 10 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 5D [18:29:38]RAPDU: 09 00 01 99 B9 21 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 1713486233 [18:29:38]opened+sec_in_day 1713572633 [18:29:38]quantity*price = 100013 [18:29:38]sum+1 = 100014 [18:29:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 122 19.04.2024 18:29 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76502 ФПД: 260762407142356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T182940&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76502&fm=260762407142356&tin=02508201610067®Number=0000000000091573&sum=100000 [18:29:39]StoreToDocumentArchive [18:29:39]shift 370 fd 76502 [18:29:39]save to /storage/0370/doc_00076502 [18:29:39]save last doc name /storage/0370/doc_00076502 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=251 [18:29:39]tlvbuf is B6EE0430 [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 F8 10 80 09 00 00 00 00 00 00 7A [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 F8 10 00 90 00 7C [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 F9 10 80 0D 01 02 00 00 00 00 82 [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 F9 10 00 90 00 7D [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 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 14 B8 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D6 2A 01 00 35 04 06 00 ED [18:29:39]Write to MH i2c: E2 02 01 FA 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 14 B8 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D6 2A 01 00 35 04 06 00 ED 00 00 82 [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 FA 10 00 90 00 7E [18:29:40]RAPDU: 90 00 [18:29:40]wFMCommunicate OK [18:29:40]wFMCommunicate request_size=10 [18:29:40]MH_SAM_APDU [18:29:40]CAPDU: 80 0D 02 02 05 29 7A A6 03 D4 [18:29:40]Write to MH i2c: E2 0D 00 FB 10 80 0D 02 02 05 00 29 7A A6 03 D4 00 00 AF [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 FB 10 00 90 00 7F [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 FC 10 80 0D 03 02 00 00 00 00 87 [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 FC 10 00 CF 3C EF EE C4 70 4F DB 90 00 CE [18:29:40]RAPDU: CF 3C EF EE C4 70 4F DB 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 FD 10 80 11 00 00 00 00 00 00 87 [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 FD 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DA [18:29:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:29:40]wFMCommunicate OK [18:29:40]CreateOFDProtocolMessage done [18:29:40]OFDSenderStorePacket 76502 [18:29:40]StoreOFDPacket docnum=76502 [18:29:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 65 F9 07 01 4B 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 14 B8 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D6 2A 01 00 35 04 06 00 ED 29 7A A6 03 D4 CF 3C EF EE C4 70 4F DB [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/00076502 [18:29:40]NVStorageSaveData ofd_packets/00076502 [18:29:40]File name is /storage/ofd_packets/00076502 [18:29:40]Write 301 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 FE 10 0E [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 FE 10 00 00 00 00 00 FF 0F 23 [18:29:40]RasterBufferAndPrint [18:29:40]line Счет N : (1)190989 [18:29:40]line ИНН: 02508201610067 [18:29:40]line Контрольно-Кассовый Чек [18:29:40]line ПРОДАЖА [18:29:40]line ТРК (МРК, ГНК) : 43 [18:29:40]line Товар: 2710124130 [18:29:40]line Аи-92-К-5 [18:29:40]line 15.530 * 64.40 [18:29:40]line = 1000.13 [18:29:40]line НДС 12% НСП 1% [18:29:40]line > о реализуемом товаре [18:29:40]line ОКРУГЛЕНИЕ: -0.13 [18:29:40]line ИТОГО: 1000.00 [18:29:40]line Внесено: 1000.00 [18:29:40]line СДАЧА: 0.00 [18:29:40]line НСП 1% : 8.85 [18:29:40]line НДС 12% : 106.21 [18:29:40]line Наличными: 1000.00 [18:29:40]line Безнал.: 0.00 [18:29:40]line Место: АЗС № 106 "Партнер Нефть" [18:29:40]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [18:29:40]line СНО: Общий режим [18:29:40]line Чек 122 19.04.2024 18:29 [18:29:40]line Смена: 370 ФФД: 1.0 [18:29:40]line ЗНМ: 0300000141 [18:29:40]line РНМ: 0000000000091573 [18:29:40]line Версия ККМ: 001 [18:29:40]line ФМ: 0000000000874652 [18:29:40]line ФД: 76502 [18:29:40]line ФПД: 260762407142356 [18:29:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T182940&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76502&fm=260762407142356&tin=02508201610067®Number=0000000000091573&sum=100000 [18:29:40]OFD Sender: Processing packet 76502 [packets to send 128, broken 127] [18:29:40]ProducePacketName [18:29:40]name=ofd_packets/00076502 [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]written 0, free lines is 4095 [18:29:40]Write to MH i2c: 01 00 00 28 11 39 [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 28 11 00 00 00 00 00 E3 0C 2F [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 3302 [18:29:40]MH_Cut [18:29:40]Write to MH i2c: D1 01 00 2F 11 01 12 [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 2F 11 00 11 [18:29:40]Write to MH i2c: 01 00 00 30 11 41 [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:41]*** Cut start [18:29:41]*** Partial cut [18:29:41]*** CUTSNS_PIN = 1 [18:29:41]*** CUTSNS_PIN = 0 [18:29:41]*** 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 30 11 00 00 00 00 00 FF 0F 56 [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 31 11 80 11 00 00 00 00 00 00 BC [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 31 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0F [18:29:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 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 32 11 80 13 00 00 00 00 00 00 BF [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 32 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D6 2A 01 00 0E 04 04 00 72 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 C2 [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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D6 2A 01 00 0E 04 04 00 72 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 [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 33 11 80 13 01 00 00 00 00 00 C1 [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 33 11 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 A6 [18:29:42]RAPDU: 09 00 01 99 B9 21 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":"0000000000874652","fd.num":76502,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [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":"0000000000874652","fd.num":76502,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [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:44]Connected sock=11 [18:29:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 65 F9 07 01 4B 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 14 B8 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D6 2A 01 00 35 04 06 00 ED 29 7A A6 03 D4 CF 3C EF EE C4 70 4F DB [18:29:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 56 BE 47 00 D0 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 34 36 35 32 10 04 04 00 D6 2A 01 00 F4 03 04 00 A3 5F 22 66 B6 04 01 00 00 5C 4D 05 E4 46 A4 48 51 [18:29:45]CommunicateWithHost err = 0 [18:29:45]CheckOFDResponse [18:29:45]1017 (14) - 77093643461234 [18:29:45]1041 (16) - 0000000000874652 [18:29:45]1040 (4) - 76502 [18:29:45]1012 (4) - 19.04.2024 12:12 [18:29:45]1206 (1) - 0 [18:29:45]OFD Sender: Remove packet 76502 [18:29:45]ProducePacketName [18:29:45]name=ofd_packets/00076502 [18:29:45]NVStorageDeleteData [18:29:45]OFD Sender: No OFD packet to send [18:29:50]OFD Sender: No OFD packet to send [18:29:55]OFD Sender: No OFD packet to send [18:30:00]OFD Sender: No OFD packet to send [18:30:05]OFD Sender: No OFD packet to send [18:30:10]OFD Sender: No OFD packet to send [18:30:15]OFD Sender: No OFD packet to send [18:30:20]OFD Sender: No OFD packet to send [18:30:25]OFD Sender: No OFD packet to send [18:30:30]OFD Sender: No OFD packet to send [18:30:35]OFD Sender: No OFD packet to send [18:30:40]OFD Sender: No OFD packet to send [18:30:45]OFD Sender: No OFD packet to send [18:30:50]OFD Sender: No OFD packet to send [18:30:55]OFD Sender: No OFD packet to send [18:31:00]OFD Sender: No OFD packet to send [18:31:05]OFD Sender: No OFD packet to send [18:31:10]OFD Sender: No OFD packet to send [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:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:08]accept exits with 7 [18:34:08]New connection [18:34:08]New thread 3066936676 created [18:34:08]Thread 3067080036 joined [18:34:08]Waiting for new connection... [18:34:08] Sock 7.Parse request [18:34:08]Sock 7.Check first char [18:34:08]Sock 7.First char is OK [18:34:08]request: POST /json_proto HTTP/1.0 [18:34:08]Method: POST [18:34:08]URL: /json_proto [18:34:08]Method is POST - this is cgi request [18:34:08]url: /json_proto [18:34:08]query_string will be loaded in cgi processing [18:34:08]execute_cgi json_proto POST (null) [18:34:08]execute_cgi path=json_proto method=POST [18:34:08]POST find Content-Length [18:34:08]Host: 172.17.62.5:8080 [18:34:08]Content-Length: 1206 [18:34:08]Content-Type: application/json [18:34:08] [18:34:08]POST finish read [18:34:08]Found Content-Length = 1206 [18:34:08]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190987\u000A19.04.2024 18:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 500.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 36450.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\u000A68979\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:08]execute_script... [18:34:08]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190987\u000A19.04.2024 18:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 500.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 36450.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\u000A68979\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:08]POST & json_proto [18:34:08]process_json_proto [18:34:08]json parsed OK: [18:34:08]protocol is kg_v1.0 [18:34:08]action value=print_text [18:34:08]process_action print_text [18:34:08]cmd_print_text [18:34:08]ExternCall_PrintAddStr [18:34:08]wPrintStart [18:34:08]Write to MH i2c: 01 00 00 34 11 45 [18:34:08]Write i2c OK [18:34:08]MH_I2C_Read... [18:34:08]Read from MH i2c: 01 [18:34:08]MH_I2C_Read... [18:34:08]Read from MH i2c: 01 07 00 [18:34:08]MH_I2C_Read... [18:34:08]Read from MH i2c: 01 07 00 34 11 00 00 00 00 00 FF 0F 5A [18:34:08]RasterBufferAndPrint [18:34:08]line *****ТОВАРНЫЙ ЧЕК***** [18:34:08]line АЗС 106 [18:34:08]line Партнер нефть [18:34:08]line 02508201610067 [18:34:08]line Кассир : Табалдиева М. [18:34:08]line Счет N : (1)190987 [18:34:08]line 19.04.2024 18:15 [18:34:08]line ПРОДАЖА [18:34:08]line ТРК (МРК, ГНК): 13 [18:34:08]line Вид ГСМ : 2710194210 [18:34:08]line ДТ-К-5 [18:34:08]line 500.000 x 72.90 [18:34:08]line ИТОГ: 36450.00 [18:34:08]line Тип оплаты: Талоны: Топливная Карта [18:34:08]line 68979 [18:34:08]line ______________________ [18:34:08]line (подпись) [18:34:08]written 0, free lines is 4095 [18:34:08]Write to MH i2c: 01 00 00 48 11 59 [18:34:08]Write i2c OK [18:34:08]MH_I2C_Read... [18:34:08]Read from MH i2c: 01 [18:34:08]MH_I2C_Read... [18:34:08]Read from MH i2c: 01 07 00 [18:34:08]MH_I2C_Read... [18:34:08]Read from MH i2c: 01 07 00 48 11 00 00 00 00 00 11 0E 7F [18:34:08]RasterBufferAndPrint [18:34:08]line [18:34:08]line [18:34:08]line [18:34:08]line [18:34:08]line [18:34:08]written 0, free lines is 3603 [18:34:08]MH_Cut [18:34:08]Write to MH i2c: D1 01 00 4F 11 01 32 [18:34:08]Write i2c OK [18:34:08]MH_I2C_Read... [18:34:08]Read from MH i2c: D1 [18:34:08]MH_I2C_Read... [18:34:08]Read from MH i2c: D1 01 00 [18:34:08]MH_I2C_Read... [18:34:08]Read from MH i2c: D1 01 00 4F 11 00 31 [18:34:08]Write to MH i2c: 01 00 00 50 11 61 [18:34:08]Write i2c OK [18:34:08]MH_I2C_Read... [18:34:09]*** Cut start [18:34:09]*** Partial cut [18:34:09]*** CUTSNS_PIN = 1 [18:34:09]*** CUTSNS_PIN = 0 [18:34:09]*** Brake cut motor [18:34:09]Read from MH i2c: 01 [18:34:09]MH_I2C_Read... [18:34:09]*** Stop cut motor [18:34:09]*** Cut end [18:34:09]Read from MH i2c: 01 07 00 [18:34:09]MH_I2C_Read... [18:34:09]Read from MH i2c: 01 07 00 50 11 00 00 00 00 00 FF 0F 76 [18:34:09]process_action print_text done [18:34:09]requested_data is exist [18:34:09]produce_requested_data [18:34:09]requested_item fm.sn is exist - process it [18:34:09]wFMCommunicate request_size=4 [18:34:09]MH_SAM_APDU [18:34:09]CAPDU: 80 11 00 00 [18:34:09]Write to MH i2c: E2 08 00 51 11 80 11 00 00 00 00 00 00 DC [18:34:09]Write i2c OK [18:34:09]MH_I2C_Read... [18:34:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:09]Read from MH i2c: E2 [18:34:09]MH_I2C_Read... [18:34:09]Read from MH i2c: E2 17 00 [18:34:09]MH_I2C_Read... [18:34:09]Read from MH i2c: E2 17 00 51 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2F [18:34:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:34:09]wFMCommunicate OK [18:34:09]requested_item fd.num is exist - process it [18:34:09]SAM_PROTO_GetFieldsCounters [18:34:09]wFMCommunicate request_size=4 [18:34:09]MH_SAM_APDU [18:34:09]CAPDU: 80 13 00 00 [18:34:09]Write to MH i2c: E2 08 00 52 11 80 13 00 00 00 00 00 00 DF [18:34:09]Write i2c OK [18:34:09]MH_I2C_Read... [18:34:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:10]Read from MH i2c: E2 [18:34:10]MH_I2C_Read... [18:34:10]Read from MH i2c: E2 62 00 [18:34:10]MH_I2C_Read... [18:34:10]Read from MH i2c: E2 62 00 52 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D6 2A 01 00 0E 04 04 00 72 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 E2 [18: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D6 2A 01 00 0E 04 04 00 72 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 [18:34:10]wFMCommunicate OK [18:34:10]SAM_PROTO_GetFieldsCounters done [18:34:10]requested_item shift.num is exist - process it [18:34:10]requested_item shift.opened is exist - process it [18:34:10]req_shift_opened [18:34:10]FM_GetShiftState [18:34:10]SAM_PROTO_GetShiftState [18:34:10]wFMCommunicate request_size=4 [18:34:10]MH_SAM_APDU [18:34:10]CAPDU: 80 13 01 00 [18:34:10]Write to MH i2c: E2 08 00 53 11 80 13 01 00 00 00 00 00 E1 [18:34:10]Write i2c OK [18:34:10]MH_I2C_Read... [18:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:10]Read from MH i2c: E2 [18:34:10]MH_I2C_Read... [18:34:10]Read from MH i2c: E2 0E 00 [18:34:10]MH_I2C_Read... [18:34:10]Read from MH i2c: E2 0E 00 53 11 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 C6 [18:34:10]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:34:10]wFMCommunicate OK [18:34:10]SAM_PROTO_GetShiftState done [18:34:10]FM_GetShiftState done [18:34:10]req_shift_opened done [18:34:10]requested_item shift.open_date is exist - process it [18:34:10]req_shift_open_date [18:34:10]req_shift_open_date done [18:34:10]produce_requested_data done [18:34:10]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76502,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [18:34:10]process_action_free print_text [18:34:10]json_value_free [18:34:10]json_value_free done [18:34:10]process_json_proto returns [18:34:10]Send response to host [18:34:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76502,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [18:34:10]free response buf [18:34:10]execute_script done [18:34:10]execute_script returns [18:34:10]free content buf [18:34:10]Sock 7.Close socket [18:34:10]Sock 7.Thread stoped [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37:41]OFD Sender: No OFD packet to send [18:37:46]OFD Sender: No OFD packet to send [18:37:51]OFD Sender: No OFD packet to send [18:37:56]OFD Sender: No OFD packet to send [18:38:01]OFD Sender: No OFD packet to send [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:41]OFD Sender: No OFD packet to send [18:38:46]OFD Sender: No OFD packet to send [18:38:51]OFD Sender: No OFD packet to send [18:38:56]OFD Sender: No OFD packet to send [18:39:01]OFD Sender: No OFD packet to send [18:39:06]OFD Sender: No OFD packet to send [18:39:11]OFD Sender: No OFD packet to send [18:39:16]OFD Sender: No OFD packet to send [18:39:21]OFD Sender: No OFD packet to send [18:39:26]OFD Sender: No OFD packet to send [18:39:31]OFD Sender: No OFD packet to send [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:46]OFD Sender: No OFD packet to send [18:42:51]OFD Sender: No OFD packet to send [18:42:56]OFD Sender: No OFD packet to send [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:31]OFD Sender: No OFD packet to send [18:45:36]accept exits with 9 [18:45:36]New connection [18:45:36]New thread 3067080036 created [18:45:36]Thread 3066936676 joined [18:45:36]Waiting for new connection... [18:45:36] Sock 9.Parse request [18:45:36]Sock 9.Check first char [18:45:36]Sock 9.First char is OK [18:45:36]request: POST /json_proto HTTP/1.0 [18:45:36]Method: POST [18:45:36]URL: /json_proto [18:45:36]Method is POST - this is cgi request [18:45:36]url: /json_proto [18:45:36]query_string will be loaded in cgi processing [18:45:36]execute_cgi json_proto POST (null) [18:45:36]execute_cgi path=json_proto method=POST [18:45:36]POST find Content-Length [18:45:36]Host: 172.17.62.5:8080 [18:45:36]Content-Length: 805 [18:45:36]Content-Type: application/json [18:45:36] [18:45:36]POST finish read [18:45:36]Found Content-Length = 805 [18:45:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 6.810, "sum" : 438.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 438.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:36]execute_script... [18:45: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)190992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 6.810, "sum" : 438.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 438.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:36]POST & json_proto [18:45:36]process_json_proto [18:45:36]json parsed OK: [18:45:36]protocol is kg_v1.0 [18:45:36]action value=close_receipt [18:45:36]process_action close_receipt [18:45:36]cmd_close_receipt [18:45:36]MH_GetDate [18:45:36]Write to MH i2c: F0 00 00 54 11 54 [18:45:36]Write i2c OK [18:45:36]MH_I2C_Read... [18:45:36]Read from MH i2c: F0 [18:45:36]MH_I2C_Read... [18:45:36]Read from MH i2c: F0 09 00 [18:45:36]MH_I2C_Read... [18:45:36]Read from MH i2c: F0 09 00 54 11 00 D2 BB 22 66 F4 E9 65 64 18 [18:45:36]GetLastDocTimeStamp 1713551380 [18:45:36]current date 1713552338 [18:45:36]FM_GetShiftState [18:45:36]SAM_PROTO_GetShiftState [18:45:36]wFMCommunicate request_size=4 [18:45:36]MH_SAM_APDU [18:45:36]CAPDU: 80 13 01 00 [18:45:36]Write to MH i2c: E2 08 00 55 11 80 13 01 00 00 00 00 00 E3 [18:45:36]Write i2c OK [18:45:36]MH_I2C_Read... [18:45:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:36]Read from MH i2c: E2 [18:45:36]MH_I2C_Read... [18:45:36]Read from MH i2c: E2 0E 00 [18:45:36]MH_I2C_Read... [18:45:36]Read from MH i2c: E2 0E 00 55 11 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 C8 [18:45:36]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:45:36]wFMCommunicate OK [18:45:36]SAM_PROTO_GetShiftState done [18:45:36]FM_GetShiftState done [18:45:36]opened in 1713486233 [18:45:36]opened+sec_in_day 1713572633 [18:45:36]quantity*price = 43856 [18:45:36]sum+1 = 43857 [18:45:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 438.56 НСП 1% : 3.88 НДС 12% : 46.57 Наличными: 0.00 Безнал.: 438.56 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 123 19.04.2024 18:45 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76503 ФПД: 65934499703719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T184538&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76503&fm=65934499703719&tin=02508201610067®Number=0000000000091573&sum=43856 [18:45:37]StoreToDocumentArchive [18:45:37]shift 370 fd 76503 [18:45:37]save to /storage/0370/doc_00076503 [18:45:37]save last doc name /storage/0370/doc_00076503 to /storage/kkm_last_doc_name [18:45:37]save OK [18:45:37]Clear old archive folders... [18:45:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:37]tlvbuf is 009F9DA0 [18:45:37]SAM_PROTO_ClearQueue [18:45:37]wFMCommunicate request_size=4 [18:45:37]MH_SAM_APDU [18:45:37]CAPDU: 80 09 00 00 [18:45:37]Write to MH i2c: E2 08 00 62 11 80 09 00 00 00 00 00 00 E5 [18:45:37]Write i2c OK [18:45:37]MH_I2C_Read... [18:45:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:37]Read from MH i2c: E2 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 03 00 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 03 00 62 11 00 90 00 E7 [18:45:37]RAPDU: 90 00 [18:45:37]wFMCommunicate OK [18:45:37]SAM_PROTO_ClearQueue done [18:45:37]KKMCreateOFDPacket [18:45:37]OFDProtocolAddRootSTLVToBuf [18:45:37]FM_MakeSignedData [18:45:37]FM_MakeSignedData [18:45:37]SAM_PROTO_SignData [18:45:37]wFMCommunicate request_size=4 [18:45:37]MH_SAM_APDU [18:45:37]CAPDU: 80 0D 01 02 [18:45:37]Write to MH i2c: E2 08 00 63 11 80 0D 01 02 00 00 00 00 ED [18:45:37]Write i2c OK [18:45:37]MH_I2C_Read... [18:45:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:37]Read from MH i2c: E2 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 03 00 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 03 00 63 11 00 90 00 E8 [18:45:37]RAPDU: 90 00 [18:45:37]wFMCommunicate OK [18:45:37]wFMCommunicate request_size=255 [18:45:37]MH_SAM_APDU [18:45: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 9A 1A 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 50 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 AB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D2 BB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D7 2A 01 00 35 04 06 00 3B [18:45:37]Write to MH i2c: E2 02 01 64 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 9A 1A 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 50 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 AB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D2 BB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D7 2A 01 00 35 04 06 00 3B 00 00 E5 [18:45:37]Write i2c OK [18:45:37]MH_I2C_Read... [18:45:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:37]Read from MH i2c: E2 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 03 00 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 03 00 64 11 00 90 00 E9 [18:45:37]RAPDU: 90 00 [18:45:37]wFMCommunicate OK [18:45:37]wFMCommunicate request_size=10 [18:45:37]MH_SAM_APDU [18:45:37]CAPDU: 80 0D 02 02 05 F7 92 6E EB A7 [18:45:37]Write to MH i2c: E2 0D 00 65 11 80 0D 02 02 05 00 F7 92 6E EB A7 00 00 83 [18:45:37]Write i2c OK [18:45:37]MH_I2C_Read... [18:45:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:37]Read from MH i2c: E2 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 03 00 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 03 00 65 11 00 90 00 EA [18:45:37]RAPDU: 90 00 [18:45:37]wFMCommunicate OK [18:45:37]wFMCommunicate request_size=4 [18:45:37]MH_SAM_APDU [18:45:37]CAPDU: 80 0D 03 02 [18:45:37]Write to MH i2c: E2 08 00 66 11 80 0D 03 02 00 00 00 00 F2 [18:45:37]Write i2c OK [18:45:37]MH_I2C_Read... [18:45:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:37]Read from MH i2c: E2 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 0B 00 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 0B 00 66 11 00 FC 09 C8 B4 DA B5 92 0B 90 00 A0 [18:45:37]RAPDU: FC 09 C8 B4 DA B5 92 0B 90 00 [18:45:37]wFMCommunicate OK [18:45:37]SAM_PROTO_SignData done [18:45:37]FM_MakeSignedData done [18:45:37]CreateOFDProtocolMessage [18:45:37]wFMCommunicate request_size=4 [18:45:37]MH_SAM_APDU [18:45:37]CAPDU: 80 11 00 00 [18:45:37]Write to MH i2c: E2 08 00 67 11 80 11 00 00 00 00 00 00 F2 [18:45:37]Write i2c OK [18:45:37]MH_I2C_Read... [18:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:37]Read from MH i2c: E2 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 17 00 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 17 00 67 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 45 [18:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:45:37]wFMCommunicate OK [18:45:37]CreateOFDProtocolMessage done [18:45:37]OFDSenderStorePacket 76503 [18:45:37]StoreOFDPacket docnum=76503 [18:45:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 9E 16 07 01 30 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 1A 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 50 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 AB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D2 BB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D7 2A 01 00 35 04 06 00 3B F7 92 6E EB A7 FC 09 C8 B4 DA B5 92 0B [18:45:37]CheckFolder [18:45:37]dirname=/storage/ofd_packets [18:45:37]CheckFolder done [18:45:37]ProducePacketName [18:45:37]name=ofd_packets/00076503 [18:45:37]NVStorageSaveData ofd_packets/00076503 [18:45:37]File name is /storage/ofd_packets/00076503 [18:45:37]Write 301 bytes [18:45:37]NVStorageSaveData done [18:45:37]OFDSenderStorePacket done [18:45:37]KKMCreateOFDPacket done [18:45:37]NVStorageSaveData kkm_last_timestamp [18:45:37]File name is /storage/kkm_last_timestamp [18:45:37]Write 4 bytes [18:45:37]NVStorageSaveData done [18:45:37]ExternCall_PrintAddStr [18:45:37]wPrintStart [18:45:37]Write to MH i2c: 01 00 00 68 11 79 [18:45:37]Write i2c OK [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: 01 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: 01 07 00 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: 01 07 00 68 11 00 00 00 00 00 FF 0F 8E [18:45:37]RasterBufferAndPrint [18:45:37]line Счет N : (1)190992 [18:45:37]line ИНН: 02508201610067 [18:45:37]line Контрольно-Кассовый Чек [18:45:37]line ПРОДАЖА [18:45:37]line ТРК (МРК, ГНК) : 43 [18:45:37]line Товар: 2710124130 [18:45:37]line Аи-92-К-5 [18:45:37]line 6.810 * 64.40 [18:45:37]line = 438.56 [18:45:37]line НДС 12% НСП 1% [18:45:37]line > о реализуемом товаре [18:45:37]line ИТОГО: 438.56 [18:45:37]line НСП 1% : 3.88 [18:45:37]line НДС 12% : 46.57 [18:45:37]line Наличными: 0.00 [18:45:37]line Безнал.: 438.56 [18:45:37]line Место: АЗС № 106 "Партнер Нефть" [18:45:37]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [18:45:37]line СНО: Общий режим [18:45:37]line Чек 123 19.04.2024 18:45 [18:45:37]line Смена: 370 ФФД: 1.0 [18:45:37]line ЗНМ: 0300000141 [18:45:37]line РНМ: 0000000000091573 [18:45:37]line Версия ККМ: 001 [18:45:37]line Платежная система: О! деньги [18:45:37]line ФМ: 0000000000874652 [18:45:37]line ФД: 76503 [18:45:37]line ФПД: 65934499703719 [18:45:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T184538&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76503&fm=65934499703719&tin=02508201610067®Number=0000000000091573&sum=43856 [18:45:37]OFD Sender: Processing packet 76503 [packets to send 128, broken 127] [18:45:37]ProducePacketName [18:45:37]name=ofd_packets/00076503 [18:45:37]OFD Sender: To server: pG, [18:45:37]CommunicateWithHost lk.salyk.kg:30040 [18:45:37]ConnectInit lk.salyk.kg [18:45:37]written 0, free lines is 4095 [18:45:38]Connected sock=11 [18:45:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 9E 16 07 01 30 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 1A 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 50 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 AB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D2 BB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D7 2A 01 00 35 04 06 00 3B F7 92 6E EB A7 FC 09 C8 B4 DA B5 92 0B [18:45:38]Write to MH i2c: 01 00 00 91 11 A2 [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: 01 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: 01 07 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: 01 07 00 91 11 00 00 00 00 00 FC 0C B1 [18:45:38]RasterBufferAndPrint [18:45:38]line [18:45:38]line [18:45:38]line [18:45:38]line [18:45:38]line [18:45:38]written 0, free lines is 3331 [18:45:38]MH_Cut [18:45:38]Write to MH i2c: D1 01 00 98 11 01 7B [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: D1 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: D1 01 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: D1 01 00 98 11 00 7A [18:45:38]Write to MH i2c: 01 00 00 99 11 AA [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 98 9D 47 00 24 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 34 36 35 32 10 04 04 00 D7 2A 01 00 F4 03 04 00 5C 63 22 66 B6 04 01 00 00 25 19 88 97 65 2D 07 26 [18:45:38]CommunicateWithHost err = 0 [18:45:38]CheckOFDResponse [18:45:38]1017 (14) - 77093643461234 [18:45:38]1041 (16) - 0000000000874652 [18:45:38]1040 (4) - 76503 [18:45:38]1012 (4) - 19.04.2024 12:28 [18:45:38]1206 (1) - 0 [18:45:38]OFD Sender: Remove packet 76503 [18:45:38]ProducePacketName [18:45:38]name=ofd_packets/00076503 [18:45:38]NVStorageDeleteData [18:45:38]OFD Sender: No OFD packet to send [18:45:39]*** Cut start [18:45:39]*** Partial cut [18:45:39]*** CUTSNS_PIN = 1 [18:45:39]*** CUTSNS_PIN = 0 [18:45:39]*** Brake cut motor [18:45:39]Read from MH i2c: 01 [18:45:39]MH_I2C_Read... [18:45:39]*** Stop cut motor [18:45:39]*** Cut end [18:45:39]Read from MH i2c: 01 07 00 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: 01 07 00 99 11 00 00 00 00 00 FF 0F BF [18:45:39]process_action close_receipt done [18:45:39]requested_data is exist [18:45:39]produce_requested_data [18:45:39]requested_item fm.sn is exist - process it [18:45:39]wFMCommunicate request_size=4 [18:45:39]MH_SAM_APDU [18:45:39]CAPDU: 80 11 00 00 [18:45:39]Write to MH i2c: E2 08 00 9A 11 80 11 00 00 00 00 00 00 25 [18:45:39]Write i2c OK [18:45:39]MH_I2C_Read... [18:45:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:39]Read from MH i2c: E2 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: E2 17 00 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: E2 17 00 9A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 78 [18:45:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:45:39]wFMCommunicate OK [18:45:39]requested_item fd.num is exist - process it [18:45:39]SAM_PROTO_GetFieldsCounters [18:45:39]wFMCommunicate request_size=4 [18:45:39]MH_SAM_APDU [18:45:39]CAPDU: 80 13 00 00 [18:45:39]Write to MH i2c: E2 08 00 9B 11 80 13 00 00 00 00 00 00 28 [18:45:39]Write i2c OK [18:45:39]MH_I2C_Read... [18:45:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:39]Read from MH i2c: E2 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: E2 62 00 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: E2 62 00 9B 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D7 2A 01 00 0E 04 04 00 72 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 2F [18:45:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D7 2A 01 00 0E 04 04 00 72 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 [18:45:39]wFMCommunicate OK [18:45:39]SAM_PROTO_GetFieldsCounters done [18:45:39]requested_item shift.num is exist - process it [18:45:39]requested_item shift.opened is exist - process it [18:45:39]req_shift_opened [18:45:39]FM_GetShiftState [18:45:39]SAM_PROTO_GetShiftState [18:45:39]wFMCommunicate request_size=4 [18:45:39]MH_SAM_APDU [18:45:39]CAPDU: 80 13 01 00 [18:45:39]Write to MH i2c: E2 08 00 9C 11 80 13 01 00 00 00 00 00 2A [18:45:39]Write i2c OK [18:45:39]MH_I2C_Read... [18:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:39]Read from MH i2c: E2 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: E2 0E 00 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: E2 0E 00 9C 11 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 0F [18:45:39]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:45:39]wFMCommunicate OK [18:45:39]SAM_PROTO_GetShiftState done [18:45:39]FM_GetShiftState done [18:45:39]req_shift_opened done [18:45:39]requested_item shift.open_date is exist - process it [18:45:39]req_shift_open_date [18:45:39]req_shift_open_date done [18:45:39]produce_requested_data done [18:45:39]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76503,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [18:45:39]process_action_free close_receipt [18:45:39]json_value_free [18:45:39]json_value_free done [18:45:39]process_json_proto returns [18:45:39]Send response to host [18:45:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76503,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [18:45:39]free response buf [18:45:39]execute_script done [18:45:39]execute_script returns [18:45:39]free content buf [18:45:39]Sock 9.Close socket [18:45:39]Sock 9.Thread stoped [18:45:43]OFD Sender: No OFD packet to send [18:45:48]OFD Sender: No OFD packet to send [18:45:53]OFD Sender: No OFD packet to send [18:45:58]OFD Sender: No OFD packet to send [18:46:03]OFD Sender: No OFD packet to send [18:46:08]OFD Sender: No OFD packet to send [18:46:13]OFD Sender: No OFD packet to send [18:46:18]OFD Sender: No OFD packet to send [18:46:23]OFD Sender: No OFD packet to send [18:46:28]OFD Sender: No OFD packet to send [18:46:33]OFD Sender: No OFD packet to send [18:46:38]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:09]OFD Sender: No OFD packet to send [18:47:14]OFD Sender: No OFD packet to send [18:47:19]OFD Sender: No OFD packet to send [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:34]OFD Sender: No OFD packet to send [18:47:36]accept exits with 7 [18:47:36]New connection [18:47:36]New thread 3066936676 created [18:47:36]Thread 3067080036 joined [18:47:36]Waiting for new connection... [18:47:36] Sock 7.Parse request [18:47:36]Sock 7.Check first char [18:47:36]Sock 7.First char is OK [18:47:36]request: POST /json_proto HTTP/1.0 [18:47:36]Method: POST [18:47:36]URL: /json_proto [18:47:36]Method is POST - this is cgi request [18:47:36]url: /json_proto [18:47:36]query_string will be loaded in cgi processing [18:47:36]execute_cgi json_proto POST (null) [18:47:36]execute_cgi path=json_proto method=POST [18:47:36]POST find Content-Length [18:47:36]Host: 172.17.62.5:8080 [18:47:36]Content-Length: 1206 [18:47:36]Content-Type: application/json [18:47:36] [18:47:36]POST finish read [18:47:36]Found Content-Length = 1206 [18:47:36]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190990\u000A19.04.2024 18:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 500.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 36450.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\u000A68979\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:36]execute_script... [18:47:36]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190990\u000A19.04.2024 18:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 500.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 36450.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\u000A68979\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:36]POST & json_proto [18:47:36]process_json_proto [18:47:36]json parsed OK: [18:47:36]protocol is kg_v1.0 [18:47:36]action value=print_text [18:47:36]process_action print_text [18:47:36]cmd_print_text [18:47:36]ExternCall_PrintAddStr [18:47:36]wPrintStart [18:47:36]Write to MH i2c: 01 00 00 9D 11 AE [18:47:36]Write i2c OK [18:47:36]MH_I2C_Read... [18:47:36]Read from MH i2c: 01 [18:47:36]MH_I2C_Read... [18:47:36]Read from MH i2c: 01 07 00 [18:47:36]MH_I2C_Read... [18:47:36]Read from MH i2c: 01 07 00 9D 11 00 00 00 00 00 FF 0F C3 [18:47:36]RasterBufferAndPrint [18:47:36]line *****ТОВАРНЫЙ ЧЕК***** [18:47:36]line АЗС 106 [18:47:36]line Партнер нефть [18:47:36]line 02508201610067 [18:47:36]line Кассир : Табалдиева М. [18:47:36]line Счет N : (1)190990 [18:47:36]line 19.04.2024 18:29 [18:47:36]line ПРОДАЖА [18:47:36]line ТРК (МРК, ГНК): 13 [18:47:36]line Вид ГСМ : 2710194210 [18:47:36]line ДТ-К-5 [18:47:36]line 500.000 x 72.90 [18:47:36]line ИТОГ: 36450.00 [18:47:36]line Тип оплаты: Талоны: Топливная Карта [18:47:36]line 68979 [18:47:36]line ______________________ [18:47:36]line (подпись) [18:47:36]written 0, free lines is 4095 [18:47:36]Write to MH i2c: 01 00 00 B1 11 C2 [18:47:36]Write i2c OK [18:47:36]MH_I2C_Read... [18:47:36]Read from MH i2c: 01 [18:47:36]MH_I2C_Read... [18:47:36]Read from MH i2c: 01 07 00 [18:47:36]MH_I2C_Read... [18:47:36]Read from MH i2c: 01 07 00 B1 11 00 00 00 00 00 11 0E E8 [18:47:36]RasterBufferAndPrint [18:47:36]line [18:47:36]line [18:47:36]line [18:47:36]line [18:47:36]line [18:47:36]written 0, free lines is 3603 [18:47:36]MH_Cut [18:47:36]Write to MH i2c: D1 01 00 B8 11 01 9B [18:47:36]Write i2c OK [18:47:36]MH_I2C_Read... [18:47:36]Read from MH i2c: D1 [18:47:36]MH_I2C_Read... [18:47:36]Read from MH i2c: D1 01 00 [18:47:36]MH_I2C_Read... [18:47:36]Read from MH i2c: D1 01 00 B8 11 00 9A [18:47:36]Write to MH i2c: 01 00 00 B9 11 CA [18:47:36]Write i2c OK [18:47:36]MH_I2C_Read... [18:47:37]*** Cut start [18:47:37]*** Partial cut [18:47:37]*** CUTSNS_PIN = 1 [18:47:37]*** CUTSNS_PIN = 0 [18:47:37]*** Brake cut motor [18:47:38]Read from MH i2c: 01 [18:47:38]MH_I2C_Read... [18:47:38]*** Stop cut motor [18:47:38]*** Cut end [18:47:38]Read from MH i2c: 01 07 00 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: 01 07 00 B9 11 00 00 00 00 00 FF 0F DF [18:47:38]process_action print_text done [18:47:38]requested_data is exist [18:47:38]produce_requested_data [18:47:38]requested_item fm.sn is exist - process it [18:47:38]wFMCommunicate request_size=4 [18:47:38]MH_SAM_APDU [18:47:38]CAPDU: 80 11 00 00 [18:47:38]Write to MH i2c: E2 08 00 BA 11 80 11 00 00 00 00 00 00 45 [18:47:38]Write i2c OK [18:47:38]MH_I2C_Read... [18:47:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:38]Read from MH i2c: E2 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: E2 17 00 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: E2 17 00 BA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 98 [18:47:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:47:38]wFMCommunicate OK [18:47:38]requested_item fd.num is exist - process it [18:47:38]SAM_PROTO_GetFieldsCounters [18:47:38]wFMCommunicate request_size=4 [18:47:38]MH_SAM_APDU [18:47:38]CAPDU: 80 13 00 00 [18:47:38]Write to MH i2c: E2 08 00 BB 11 80 13 00 00 00 00 00 00 48 [18:47:38]Write i2c OK [18:47:38]MH_I2C_Read... [18:47:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:38]Read from MH i2c: E2 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: E2 62 00 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: E2 62 00 BB 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D7 2A 01 00 0E 04 04 00 72 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 4F [18:47:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D7 2A 01 00 0E 04 04 00 72 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 [18:47:38]wFMCommunicate OK [18:47:38]SAM_PROTO_GetFieldsCounters done [18:47:38]requested_item shift.num is exist - process it [18:47:38]requested_item shift.opened is exist - process it [18:47:38]req_shift_opened [18:47:38]FM_GetShiftState [18:47:38]SAM_PROTO_GetShiftState [18:47:38]wFMCommunicate request_size=4 [18:47:38]MH_SAM_APDU [18:47:38]CAPDU: 80 13 01 00 [18:47:38]Write to MH i2c: E2 08 00 BC 11 80 13 01 00 00 00 00 00 4A [18:47:38]Write i2c OK [18:47:38]MH_I2C_Read... [18:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:38]Read from MH i2c: E2 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: E2 0E 00 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: E2 0E 00 BC 11 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 2F [18:47:38]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:47:38]wFMCommunicate OK [18:47:38]SAM_PROTO_GetShiftState done [18:47:38]FM_GetShiftState done [18:47:38]req_shift_opened done [18:47:38]requested_item shift.open_date is exist - process it [18:47:38]req_shift_open_date [18:47:38]req_shift_open_date done [18:47:38]produce_requested_data done [18:47:38]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76503,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [18:47:38]process_action_free print_text [18:47:38]json_value_free [18:47:38]json_value_free done [18:47:38]process_json_proto returns [18:47:38]Send response to host [18:47:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76503,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [18:47:38]free response buf [18:47:38]execute_script done [18:47:38]execute_script returns [18:47:38]free content buf [18:47:38]Sock 7.Close socket [18:47:38]Sock 7.Thread stoped [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:04]OFD Sender: No OFD packet to send [18:48:09]OFD Sender: No OFD packet to send [18:48:14]OFD Sender: No OFD packet to send [18:48:19]OFD Sender: No OFD packet to send [18:48:24]OFD Sender: No OFD packet to send [18:48:29]OFD Sender: No OFD packet to send [18:48:34]OFD Sender: No OFD packet to send [18:48:39]OFD Sender: No OFD packet to send [18:48:44]OFD Sender: No OFD packet to send [18:48:49]OFD Sender: No OFD packet to send [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:14]OFD Sender: No OFD packet to send [18:49:19]OFD Sender: No OFD packet to send [18:49:24]OFD Sender: No OFD packet to send [18:49:29]OFD Sender: No OFD packet to send [18:49:34]OFD Sender: No OFD packet to send [18:49:39]OFD Sender: No OFD packet to send [18:49:44]OFD Sender: No OFD packet to send [18:49:49]OFD Sender: No OFD packet to send [18:49:54]OFD Sender: No OFD packet to send [18:49:59]OFD Sender: No OFD packet to send [18:50:04]OFD Sender: No OFD packet to send [18:50:09]OFD Sender: No OFD packet to send [18:50:14]OFD Sender: No OFD packet to send [18:50:19]OFD Sender: No OFD packet to send [18:50:24]OFD Sender: No OFD packet to send [18:50:29]OFD Sender: No OFD packet to send [18:50:34]OFD Sender: No OFD packet to send [18:50:39]OFD Sender: No OFD packet to send [18:50:44]OFD Sender: No OFD packet to send [18:50:49]OFD Sender: No OFD packet to send [18:50:54]OFD Sender: No OFD packet to send [18:50:59]OFD Sender: No OFD packet to send [18:51:04]OFD Sender: No OFD packet to send [18:51:09]OFD Sender: No OFD packet to send [18:51:14]OFD Sender: No OFD packet to send [18:51:19]OFD Sender: No OFD packet to send [18:51:23]accept exits with 9 [18:51:23]New connection [18:51:23]New thread 3067080036 created [18:51:23]Thread 3066936676 joined [18:51:23]Waiting for new connection... [18:51:23] Sock 9.Parse request [18:51:23]Sock 9.Check first char [18:51:23]Sock 9.First char is OK [18:51:23]request: POST /json_proto HTTP/1.0 [18:51:23]Method: POST [18:51:23]URL: /json_proto [18:51:23]Method is POST - this is cgi request [18:51:23]url: /json_proto [18:51:23]query_string will be loaded in cgi processing [18:51:23]execute_cgi json_proto POST (null) [18:51:23]execute_cgi path=json_proto method=POST [18:51:23]POST find Content-Length [18:51:23]Host: 172.17.62.5:8080 [18:51:23]Content-Length: 990 [18:51:23]Content-Type: application/json [18:51:23] [18:51:23]POST finish read [18:51:23]Found Content-Length = 990 [18:51:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 41.020, "sum" : 1300.33, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 41.02 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:23]execute_script... [18:51: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)190991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 41.020, "sum" : 1300.33, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 41.02 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:23]POST & json_proto [18:51:23]process_json_proto [18:51:23]json parsed OK: [18:51:23]protocol is kg_v1.0 [18:51:23]action value=close_receipt [18:51:23]process_action close_receipt [18:51:23]cmd_close_receipt [18:51:23]MH_GetDate [18:51:23]Write to MH i2c: F0 00 00 BD 11 BD [18:51:23]Write i2c OK [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: F0 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: F0 09 00 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: F0 09 00 BD 11 00 2D BD 22 66 F4 E9 65 64 DE [18:51:23]GetLastDocTimeStamp 1713552338 [18:51:23]current date 1713552685 [18:51:23]FM_GetShiftState [18:51:23]SAM_PROTO_GetShiftState [18:51:23]wFMCommunicate request_size=4 [18:51:23]MH_SAM_APDU [18:51:23]CAPDU: 80 13 01 00 [18:51:23]Write to MH i2c: E2 08 00 BE 11 80 13 01 00 00 00 00 00 4C [18:51:23]Write i2c OK [18:51:23]MH_I2C_Read... [18:51:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:23]Read from MH i2c: E2 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: E2 0E 00 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: E2 0E 00 BE 11 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 31 [18:51:23]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:51:23]wFMCommunicate OK [18:51:23]SAM_PROTO_GetShiftState done [18:51:23]FM_GetShiftState done [18:51:23]opened in 1713486233 [18:51:23]opened+sec_in_day 1713572633 [18:51:23]quantity*price = 130033 [18:51:23]sum+1 = 130034 [18:51:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1300.00 Внесено: 1500.00 СДАЧА: 200.00 НСП 1% : 11.51 НДС 12% : 138.09 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 124 19.04.2024 18:51 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 41.02 сом ФМ: 0000000000874652 ФД: 76504 ФПД: 227976263656038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T185125&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76504&fm=227976263656038&tin=02508201610067®Number=0000000000091573&sum=130000 [18:51:24]StoreToDocumentArchive [18:51:24]shift 370 fd 76504 [18:51:24]save to /storage/0370/doc_00076504 [18:51:24]save last doc name /storage/0370/doc_00076504 to /storage/kkm_last_doc_name [18:51:24]save OK [18:51:24]Clear old archive folders... [18:51:24]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:51:24]tlvbuf is B6F74830 [18:51:24]SAM_PROTO_ClearQueue [18:51:24]wFMCommunicate request_size=4 [18:51:24]MH_SAM_APDU [18:51:24]CAPDU: 80 09 00 00 [18:51:24]Write to MH i2c: E2 08 00 CB 11 80 09 00 00 00 00 00 00 4E [18:51:24]Write i2c OK [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 [18:51:24]MH_I2C_Read... [18:51:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:24]Read from MH i2c: E2 03 00 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 03 00 CB 11 00 90 00 50 [18:51:24]RAPDU: 90 00 [18:51:24]wFMCommunicate OK [18:51:24]SAM_PROTO_ClearQueue done [18:51:24]KKMCreateOFDPacket [18:51:24]OFDProtocolAddRootSTLVToBuf [18:51:24]FM_MakeSignedData [18:51:24]FM_MakeSignedData [18:51:24]SAM_PROTO_SignData [18:51:24]wFMCommunicate request_size=4 [18:51:24]MH_SAM_APDU [18:51:24]CAPDU: 80 0D 01 02 [18:51:24]Write to MH i2c: E2 08 00 CC 11 80 0D 01 02 00 00 00 00 56 [18:51:24]Write i2c OK [18:51:24]MH_I2C_Read... [18:51:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:24]Read from MH i2c: E2 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 03 00 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 03 00 CC 11 00 90 00 51 [18:51:24]RAPDU: 90 00 [18:51:24]wFMCommunicate OK [18:51:24]wFMCommunicate request_size=255 [18:51:24]MH_SAM_APDU [18:51:24]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3C A0 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 F1 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 2D BD 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D8 2A 01 00 35 04 06 00 CF 57 [18:51:24]Write to MH i2c: E2 02 01 CD 11 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3C A0 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 F1 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 2D BD 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D8 2A 01 00 35 04 06 00 CF 57 00 00 09 [18:51:24]Write i2c OK [18:51:24]MH_I2C_Read... [18:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:24]Read from MH i2c: E2 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 03 00 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 03 00 CD 11 00 90 00 52 [18:51:24]RAPDU: 90 00 [18:51:24]wFMCommunicate OK [18:51:24]wFMCommunicate request_size=9 [18:51:24]MH_SAM_APDU [18:51:24]CAPDU: 80 0D 02 02 04 DC 36 62 66 [18:51:24]Write to MH i2c: E2 0C 00 CE 11 80 0D 02 02 04 00 DC 36 62 66 00 00 3B [18:51:24]Write i2c OK [18:51:24]MH_I2C_Read... [18:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:24]Read from MH i2c: E2 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 03 00 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 03 00 CE 11 00 90 00 53 [18:51:24]RAPDU: 90 00 [18:51:24]wFMCommunicate OK [18:51:24]wFMCommunicate request_size=4 [18:51:24]MH_SAM_APDU [18:51:24]CAPDU: 80 0D 03 02 [18:51:24]Write to MH i2c: E2 08 00 CF 11 80 0D 03 02 00 00 00 00 5B [18:51:24]Write i2c OK [18:51:24]MH_I2C_Read... [18:51:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:24]Read from MH i2c: E2 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 0B 00 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 0B 00 CF 11 00 4E FA 6A CC BD E7 6C 4D 90 00 37 [18:51:24]RAPDU: 4E FA 6A CC BD E7 6C 4D 90 00 [18:51:24]wFMCommunicate OK [18:51:24]SAM_PROTO_SignData done [18:51:24]FM_MakeSignedData done [18:51:24]CreateOFDProtocolMessage [18:51:24]wFMCommunicate request_size=4 [18:51:24]MH_SAM_APDU [18:51:24]CAPDU: 80 11 00 00 [18:51:24]Write to MH i2c: E2 08 00 D0 11 80 11 00 00 00 00 00 00 5B [18:51:24]Write i2c OK [18:51:24]MH_I2C_Read... [18:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:24]Read from MH i2c: E2 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 17 00 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 17 00 D0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AE [18:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:51:24]wFMCommunicate OK [18:51:24]CreateOFDProtocolMessage done [18:51:24]OFDSenderStorePacket 76504 [18:51:24]StoreOFDPacket docnum=76504 [18:51:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 CF A2 06 01 9C C1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3C A0 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 F1 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 2D BD 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D8 2A 01 00 35 04 06 00 CF 57 DC 36 62 66 4E FA 6A CC BD E7 6C 4D [18:51:24]CheckFolder [18:51:24]dirname=/storage/ofd_packets [18:51:24]CheckFolder done [18:51:24]ProducePacketName [18:51:24]name=ofd_packets/00076504 [18:51:24]NVStorageSaveData ofd_packets/00076504 [18:51:24]File name is /storage/ofd_packets/00076504 [18:51:24]Write 300 bytes [18:51:24]NVStorageSaveData done [18:51:24]OFDSenderStorePacket done [18:51:24]KKMCreateOFDPacket done [18:51:24]NVStorageSaveData kkm_last_timestamp [18:51:24]File name is /storage/kkm_last_timestamp [18:51:24]Write 4 bytes [18:51:24]NVStorageSaveData done [18:51:24]ExternCall_PrintAddStr [18:51:24]wPrintStart [18:51:24]Write to MH i2c: 01 00 00 D1 11 E2 [18:51:24]Write i2c OK [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: 01 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: 01 07 00 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: 01 07 00 D1 11 00 00 00 00 00 FF 0F F7 [18:51:24]RasterBufferAndPrint [18:51:24]line Счет N : (1)190991 [18:51:24]line ИНН: 02508201610067 [18:51:24]line Контрольно-Кассовый Чек [18:51:24]line ПРОДАЖА [18:51:24]line ТРК (МРК, ГНК) : 71 [18:51:24]line Товар: 2711190000 [18:51:24]line ГАЗ-К-5 [18:51:24]line 41.020 * 31.70 [18:51:24]line = 1300.33 [18:51:24]line НДС 12% НСП 1% [18:51:24]line > о реализуемом товаре [18:51:24]line ОКРУГЛЕНИЕ: -0.33 [18:51:24]line ИТОГО: 1300.00 [18:51:24]line Внесено: 1500.00 [18:51:24]line СДАЧА: 200.00 [18:51:24]line НСП 1% : 11.51 [18:51:24]line НДС 12% : 138.09 [18:51:24]line Наличными: 1300.00 [18:51:24]line Безнал.: 0.00 [18:51:24]line Место: АЗС № 106 "Партнер Нефть" [18:51:24]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [18:51:24]line СНО: Общий режим [18:51:24]line Чек 124 19.04.2024 18:51 [18:51:24]line Смена: 370 ФФД: 1.0 [18:51:24]line ЗНМ: 0300000141 [18:51:24]line РНМ: 0000000000091573 [18:51:24]line Версия ККМ: 001 [18:51:24]line [18:51:24]line Дисконтная программа [18:51:24]line СУГ [18:51:24]line номер 106 [18:51:24]line сэкономлено 41.02 сом [18:51:24]line ФМ: 0000000000874652 [18:51:24]line ФД: 76504 [18:51:24]line ФПД: 227976263656038 [18:51:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T185125&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76504&fm=227976263656038&tin=02508201610067®Number=0000000000091573&sum=130000 [18:51:25]OFD Sender: Processing packet 76504 [packets to send 128, broken 127] [18:51:25]ProducePacketName [18:51:25]name=ofd_packets/00076504 [18:51:25]OFD Sender: To server: pG, [18:51:25]CommunicateWithHost lk.salyk.kg:30040 [18:51:25]ConnectInit lk.salyk.kg [18:51:25]written 0, free lines is 4095 [18:51:25]Connected sock=10 [18:51:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 CF A2 06 01 9C C1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3C A0 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 F1 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 2D BD 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D8 2A 01 00 35 04 06 00 CF 57 DC 36 62 66 4E FA 6A CC BD E7 6C 4D [18:51:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 09 90 47 00 F2 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D8 2A 01 00 F4 03 04 00 B8 64 22 66 B6 04 01 00 00 77 FA A4 E6 0A 1E 8D 89 [18:51:25]CommunicateWithHost err = 0 [18:51:25]CheckOFDResponse [18:51:25]1017 (14) - 77093643461234 [18:51:25]1041 (16) - 0000000000874652 [18:51:25]1040 (4) - 76504 [18:51:25]1012 (4) - 19.04.2024 12:34 [18:51:25]1206 (1) - 0 [18:51:25]OFD Sender: Remove packet 76504 [18:51:25]ProducePacketName [18:51:25]name=ofd_packets/00076504 [18:51:25]NVStorageDeleteData [18:51:25]Write to MH i2c: 01 00 00 00 12 12 [18:51:25]Write i2c OK [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: 01 [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: 01 07 00 [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: 01 07 00 00 12 00 00 00 00 00 A5 0C CA [18:51:25]RasterBufferAndPrint [18:51:25]line [18:51:25]line [18:51:25]line [18:51:25]line [18:51:25]line [18:51:25]written 0, free lines is 3247 [18:51:25]MH_Cut [18:51:25]Write to MH i2c: D1 01 00 07 12 01 EB [18:51:25]Write i2c OK [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: D1 [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: D1 01 00 [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: D1 01 00 07 12 00 EA [18:51:25]Write to MH i2c: 01 00 00 08 12 1A [18:51:25]Write i2c OK [18:51:25]MH_I2C_Read... [18:51:26]OFD Sender: No OFD packet to send [18:51:26]*** Cut start [18:51:26]*** Partial cut [18:51:26]*** CUTSNS_PIN = 1 [18:51:26]*** CUTSNS_PIN = 0 [18:51:26]*** Brake cut motor [18:51:27]Read from MH i2c: 01 [18:51:27]MH_I2C_Read... [18:51:27]*** Stop cut motor [18:51:27]*** Cut end [18:51:27]Read from MH i2c: 01 07 00 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: 01 07 00 08 12 00 00 00 00 00 FF 0F 2F [18:51:27]process_action close_receipt done [18:51:27]requested_data is exist [18:51:27]produce_requested_data [18:51:27]requested_item fm.sn is exist - process it [18:51:27]wFMCommunicate request_size=4 [18:51:27]MH_SAM_APDU [18:51:27]CAPDU: 80 11 00 00 [18:51:27]Write to MH i2c: E2 08 00 09 12 80 11 00 00 00 00 00 00 95 [18:51:27]Write i2c OK [18:51:27]MH_I2C_Read... [18:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:27]Read from MH i2c: E2 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: E2 17 00 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: E2 17 00 09 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E8 [18:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:51:27]wFMCommunicate OK [18:51:27]requested_item fd.num is exist - process it [18:51:27]SAM_PROTO_GetFieldsCounters [18:51:27]wFMCommunicate request_size=4 [18:51:27]MH_SAM_APDU [18:51:27]CAPDU: 80 13 00 00 [18:51:27]Write to MH i2c: E2 08 00 0A 12 80 13 00 00 00 00 00 00 98 [18:51:27]Write i2c OK [18:51:27]MH_I2C_Read... [18:51:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:27]Read from MH i2c: E2 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: E2 62 00 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: E2 62 00 0A 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D8 2A 01 00 0E 04 04 00 72 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 A3 [18:51:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D8 2A 01 00 0E 04 04 00 72 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 [18:51:27]wFMCommunicate OK [18:51:27]SAM_PROTO_GetFieldsCounters done [18:51:27]requested_item shift.num is exist - process it [18:51:27]requested_item shift.opened is exist - process it [18:51:27]req_shift_opened [18:51:27]FM_GetShiftState [18:51:27]SAM_PROTO_GetShiftState [18:51:27]wFMCommunicate request_size=4 [18:51:27]MH_SAM_APDU [18:51:27]CAPDU: 80 13 01 00 [18:51:27]Write to MH i2c: E2 08 00 0B 12 80 13 01 00 00 00 00 00 9A [18:51:27]Write i2c OK [18:51:27]MH_I2C_Read... [18:51:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:27]Read from MH i2c: E2 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: E2 0E 00 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: E2 0E 00 0B 12 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 7F [18:51:27]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:51:27]wFMCommunicate OK [18:51:27]SAM_PROTO_GetShiftState done [18:51:27]FM_GetShiftState done [18:51:27]req_shift_opened done [18:51:27]requested_item shift.open_date is exist - process it [18:51:27]req_shift_open_date [18:51:27]req_shift_open_date done [18:51:27]produce_requested_data done [18:51:27]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76504,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [18:51:27]process_action_free close_receipt [18:51:27]json_value_free [18:51:27]json_value_free done [18:51:27]process_json_proto returns [18:51:27]Send response to host [18:51:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76504,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [18:51:27]free response buf [18:51:27]execute_script done [18:51:27]execute_script returns [18:51:27]free content buf [18:51:27]Sock 9.Close socket [18:51:27]Sock 9.Thread stoped [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:23]accept exits with 7 [18:56:23]New connection [18:56:23]New thread 3066936676 created [18:56:23]Thread 3067080036 joined [18:56:23]Waiting for new connection... [18:56:23] Sock 7.Parse request [18:56:23]Sock 7.Check first char [18:56:23]Sock 7.First char is OK [18:56:23]request: POST /json_proto HTTP/1.0 [18:56:23]Method: POST [18:56:23]URL: /json_proto [18:56:23]Method is POST - this is cgi request [18:56:23]url: /json_proto [18:56:23]query_string will be loaded in cgi processing [18:56:23]execute_cgi json_proto POST (null) [18:56:23]execute_cgi path=json_proto method=POST [18:56:23]POST find Content-Length [18:56:23]Host: 172.17.62.5:8080 [18:56:23]Content-Length: 670 [18:56:23]Content-Type: application/json [18:56:23] [18:56:23]POST finish read [18:56:23]Found Content-Length = 670 [18:56:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 7.650, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:23]execute_script... [18:56: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)190995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 7.650, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:23]POST & json_proto [18:56:23]process_json_proto [18:56:23]json parsed OK: [18:56:23]protocol is kg_v1.0 [18:56:23]action value=close_receipt [18:56:23]process_action close_receipt [18:56:23]cmd_close_receipt [18:56:23]MH_GetDate [18:56:23]Write to MH i2c: F0 00 00 0C 12 0D [18:56:23]Write i2c OK [18:56:23]MH_I2C_Read... [18:56:23]Read from MH i2c: F0 [18:56:23]MH_I2C_Read... [18:56:23]Read from MH i2c: F0 09 00 [18:56:23]MH_I2C_Read... [18:56:23]Read from MH i2c: F0 09 00 0C 12 00 59 BE 22 66 F4 E9 65 64 5B [18:56:23]GetLastDocTimeStamp 1713552685 [18:56:23]current date 1713552985 [18:56:23]FM_GetShiftState [18:56:23]SAM_PROTO_GetShiftState [18:56:23]wFMCommunicate request_size=4 [18:56:23]MH_SAM_APDU [18:56:23]CAPDU: 80 13 01 00 [18:56:23]Write to MH i2c: E2 08 00 0D 12 80 13 01 00 00 00 00 00 9C [18:56:23]Write i2c OK [18:56:23]MH_I2C_Read... [18:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:23]Read from MH i2c: E2 [18:56:23]MH_I2C_Read... [18:56:23]Read from MH i2c: E2 0E 00 [18:56:23]MH_I2C_Read... [18:56:23]Read from MH i2c: E2 0E 00 0D 12 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 81 [18:56:23]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:56:23]wFMCommunicate OK [18:56:23]SAM_PROTO_GetShiftState done [18:56:23]FM_GetShiftState done [18:56:23]opened in 1713486233 [18:56:23]opened+sec_in_day 1713572633 [18:56:23]quantity*price = 50031 [18:56:23]sum+1 = 50032 [18:56:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 125 19.04.2024 18:56 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76505 ФПД: 185211295565464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T185625&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76505&fm=185211295565464&tin=02508201610067®Number=0000000000091573&sum=50000 [18:56:24]StoreToDocumentArchive [18:56:24]shift 370 fd 76505 [18:56:24]save to /storage/0370/doc_00076505 [18:56:24]save last doc name /storage/0370/doc_00076505 to /storage/kkm_last_doc_name [18:56:24]save OK [18:56:24]Clear old archive folders... [18:56:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:56:24]tlvbuf is B6F77970 [18:56:24]SAM_PROTO_ClearQueue [18:56:24]wFMCommunicate request_size=4 [18:56:24]MH_SAM_APDU [18:56:24]CAPDU: 80 09 00 00 [18:56:24]Write to MH i2c: E2 08 00 1A 12 80 09 00 00 00 00 00 00 9E [18:56:24]Write i2c OK [18:56:24]MH_I2C_Read... [18:56:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:24]Read from MH i2c: E2 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 03 00 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 03 00 1A 12 00 90 00 A0 [18:56:24]RAPDU: 90 00 [18:56:24]wFMCommunicate OK [18:56:24]SAM_PROTO_ClearQueue done [18:56:24]KKMCreateOFDPacket [18:56:24]OFDProtocolAddRootSTLVToBuf [18:56:24]FM_MakeSignedData [18:56:24]FM_MakeSignedData [18:56:24]SAM_PROTO_SignData [18:56:24]wFMCommunicate request_size=4 [18:56:24]MH_SAM_APDU [18:56:24]CAPDU: 80 0D 01 02 [18:56:24]Write to MH i2c: E2 08 00 1B 12 80 0D 01 02 00 00 00 00 A6 [18:56:24]Write i2c OK [18:56:24]MH_I2C_Read... [18:56:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:24]Read from MH i2c: E2 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 03 00 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 03 00 1B 12 00 90 00 A1 [18:56:24]RAPDU: 90 00 [18:56:24]wFMCommunicate OK [18:56:24]wFMCommunicate request_size=255 [18:56:24]MH_SAM_APDU [18:56:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7D 00 00 00 F4 03 04 00 59 BE 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D9 2A 01 00 35 04 06 00 [18:56:24]Write to MH i2c: E2 02 01 1C 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 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7D 00 00 00 F4 03 04 00 59 BE 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D9 2A 01 00 35 04 06 00 00 00 6D [18:56:24]Write i2c OK [18:56:24]MH_I2C_Read... [18:56:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:25]Read from MH i2c: E2 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: E2 03 00 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: E2 03 00 1C 12 00 90 00 A2 [18:56:25]RAPDU: 90 00 [18:56:25]wFMCommunicate OK [18:56:25]wFMCommunicate request_size=11 [18:56:25]MH_SAM_APDU [18:56:25]CAPDU: 80 0D 02 02 06 A8 72 DD 7B 06 98 [18:56:25]Write to MH i2c: E2 0E 00 1D 12 80 0D 02 02 06 00 A8 72 DD 7B 06 98 00 00 C5 [18:56:25]Write i2c OK [18:56:25]MH_I2C_Read... [18:56:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:25]Read from MH i2c: E2 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: E2 03 00 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: E2 03 00 1D 12 00 90 00 A3 [18:56:25]RAPDU: 90 00 [18:56:25]wFMCommunicate OK [18:56:25]wFMCommunicate request_size=4 [18:56:25]MH_SAM_APDU [18:56:25]CAPDU: 80 0D 03 02 [18:56:25]Write to MH i2c: E2 08 00 1E 12 80 0D 03 02 00 00 00 00 AB [18:56:25]Write i2c OK [18:56:25]MH_I2C_Read... [18:56:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:25]Read from MH i2c: E2 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: E2 0B 00 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: E2 0B 00 1E 12 00 E5 1D 6A 5E 57 B9 93 C3 90 00 DC [18:56:25]RAPDU: E5 1D 6A 5E 57 B9 93 C3 90 00 [18:56:25]wFMCommunicate OK [18:56:25]SAM_PROTO_SignData done [18:56:25]FM_MakeSignedData done [18:56:25]CreateOFDProtocolMessage [18:56:25]wFMCommunicate request_size=4 [18:56:25]MH_SAM_APDU [18:56:25]CAPDU: 80 11 00 00 [18:56:25]Write to MH i2c: E2 08 00 1F 12 80 11 00 00 00 00 00 00 AB [18:56:25]Write i2c OK [18:56:25]MH_I2C_Read... [18:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:25]Read from MH i2c: E2 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: E2 17 00 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: E2 17 00 1F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FE [18:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:56:25]wFMCommunicate OK [18:56:25]CreateOFDProtocolMessage done [18:56:25]OFDSenderStorePacket 76505 [18:56:25]StoreOFDPacket docnum=76505 [18:56:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 08 96 08 01 B3 24 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7D 00 00 00 F4 03 04 00 59 BE 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D9 2A 01 00 35 04 06 00 A8 72 DD 7B 06 98 E5 1D 6A 5E 57 B9 93 C3 [18:56:25]CheckFolder [18:56:25]dirname=/storage/ofd_packets [18:56:25]CheckFolder done [18:56:25]ProducePacketName [18:56:25]name=ofd_packets/00076505 [18:56:25]NVStorageSaveData ofd_packets/00076505 [18:56:25]File name is /storage/ofd_packets/00076505 [18:56:25]Write 302 bytes [18:56:25]NVStorageSaveData done [18:56:25]OFDSenderStorePacket done [18:56:25]KKMCreateOFDPacket done [18:56:25]NVStorageSaveData kkm_last_timestamp [18:56:25]File name is /storage/kkm_last_timestamp [18:56:25]Write 4 bytes [18:56:25]NVStorageSaveData done [18:56:25]ExternCall_PrintAddStr [18:56:25]wPrintStart [18:56:25]Write to MH i2c: 01 00 00 20 12 32 [18:56:25]Write i2c OK [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: 01 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: 01 07 00 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: 01 07 00 20 12 00 00 00 00 00 FF 0F 47 [18:56:25]RasterBufferAndPrint [18:56:25]line Счет N : (1)190995 [18:56:25]line ИНН: 02508201610067 [18:56:25]line Контрольно-Кассовый Чек [18:56:25]line ПРОДАЖА [18:56:25]line ТРК (МРК, ГНК) : 41 [18:56:25]line Товар: 2710124130 [18:56:25]line SUPER 92-К-5 [18:56:25]line 7.650 * 65.40 [18:56:25]line = 500.31 [18:56:25]line НДС 12% НСП 1% [18:56:25]line > о реализуемом товаре [18:56:25]line ОКРУГЛЕНИЕ: -0.31 [18:56:25]line ИТОГО: 500.00 [18:56:25]line Внесено: 500.00 [18:56:25]line СДАЧА: 0.00 [18:56:25]line НСП 1% : 4.43 [18:56:25]line НДС 12% : 53.13 [18:56:25]line Наличными: 500.00 [18:56:25]line Безнал.: 0.00 [18:56:25]line Место: АЗС № 106 "Партнер Нефть" [18:56:25]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [18:56:25]line СНО: Общий режим [18:56:25]line Чек 125 19.04.2024 18:56 [18:56:25]line Смена: 370 ФФД: 1.0 [18:56:25]line ЗНМ: 0300000141 [18:56:25]line РНМ: 0000000000091573 [18:56:25]line Версия ККМ: 001 [18:56:25]line ФМ: 0000000000874652 [18:56:25]line ФД: 76505 [18:56:25]line ФПД: 185211295565464 [18:56:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T185625&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76505&fm=185211295565464&tin=02508201610067®Number=0000000000091573&sum=50000 [18:56:25]OFD Sender: Processing packet 76505 [packets to send 128, broken 127] [18:56:25]ProducePacketName [18:56:25]name=ofd_packets/00076505 [18:56:25]OFD Sender: To server: pG, [18:56:25]CommunicateWithHost lk.salyk.kg:30040 [18:56:25]ConnectInit lk.salyk.kg [18:56:25]written 0, free lines is 4095 [18:56:25]Connected sock=10 [18:56:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 08 96 08 01 B3 24 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7D 00 00 00 F4 03 04 00 59 BE 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D9 2A 01 00 35 04 06 00 A8 72 DD 7B 06 98 E5 1D 6A 5E 57 B9 93 C3 [18:56:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 39 00 47 00 CD 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D9 2A 01 00 F4 03 04 00 E4 65 22 66 B6 04 01 00 00 96 DD 13 EB 8D 6B 1F 3B [18:56:25]CommunicateWithHost err = 0 [18:56:25]CheckOFDResponse [18:56:25]1017 (14) - 77093643461234 [18:56:25]1041 (16) - 0000000000874652 [18:56:25]1040 (4) - 76505 [18:56:25]1012 (4) - 19.04.2024 12:39 [18:56:25]1206 (1) - 0 [18:56:25]OFD Sender: Remove packet 76505 [18:56:25]ProducePacketName [18:56:25]name=ofd_packets/00076505 [18:56:25]NVStorageDeleteData [18:56:26]Write to MH i2c: 01 00 00 4A 12 5C [18:56:26]Write i2c OK [18:56:26]MH_I2C_Read... [18:56:26]Read from MH i2c: 01 [18:56:26]MH_I2C_Read... [18:56:26]Read from MH i2c: 01 07 00 [18:56:26]MH_I2C_Read... [18:56:26]Read from MH i2c: 01 07 00 4A 12 00 00 00 00 00 F6 0C 65 [18:56:26]RasterBufferAndPrint [18:56:26]line [18:56:26]line [18:56:26]line [18:56:26]line [18:56:26]line [18:56:26]written 0, free lines is 3325 [18:56:26]MH_Cut [18:56:26]Write to MH i2c: D1 01 00 51 12 01 35 [18:56:26]Write i2c OK [18:56:26]MH_I2C_Read... [18:56:26]Read from MH i2c: D1 [18:56:26]MH_I2C_Read... [18:56:26]Read from MH i2c: D1 01 00 [18:56:26]MH_I2C_Read... [18:56:26]Read from MH i2c: D1 01 00 51 12 00 34 [18:56:26]Write to MH i2c: 01 00 00 52 12 64 [18:56:26]Write i2c OK [18:56:26]MH_I2C_Read... [18:56:26]OFD Sender: No OFD packet to send [18:56:26]*** Cut start [18:56:26]*** Partial cut [18:56:26]*** CUTSNS_PIN = 1 [18:56:26]*** CUTSNS_PIN = 0 [18:56:27]*** Brake cut motor [18:56:27]Read from MH i2c: 01 [18:56:27]MH_I2C_Read... [18:56:27]*** Stop cut motor [18:56:27]*** Cut end [18:56:27]Read from MH i2c: 01 07 00 [18:56:27]MH_I2C_Read... [18:56:27]Read from MH i2c: 01 07 00 52 12 00 00 00 00 00 FF 0F 79 [18:56:27]process_action close_receipt done [18:56:27]requested_data is exist [18:56:27]produce_requested_data [18:56:27]requested_item fm.sn is exist - process it [18:56:27]wFMCommunicate request_size=4 [18:56:27]MH_SAM_APDU [18:56:27]CAPDU: 80 11 00 00 [18:56:27]Write to MH i2c: E2 08 00 53 12 80 11 00 00 00 00 00 00 DF [18:56:27]Write i2c OK [18:56:27]MH_I2C_Read... [18:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:27]Read from MH i2c: E2 [18:56:27]MH_I2C_Read... [18:56:27]Read from MH i2c: E2 17 00 [18:56:27]MH_I2C_Read... [18:56:27]Read from MH i2c: E2 17 00 53 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 32 [18:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:56:27]wFMCommunicate OK [18:56:27]requested_item fd.num is exist - process it [18:56:27]SAM_PROTO_GetFieldsCounters [18:56:27]wFMCommunicate request_size=4 [18:56:27]MH_SAM_APDU [18:56:27]CAPDU: 80 13 00 00 [18:56:27]Write to MH i2c: E2 08 00 54 12 80 13 00 00 00 00 00 00 E2 [18:56:27]Write i2c OK [18:56:27]MH_I2C_Read... [18:56:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:27]Read from MH i2c: E2 [18:56:27]MH_I2C_Read... [18:56:27]Read from MH i2c: E2 62 00 [18:56:27]MH_I2C_Read... [18:56:27]Read from MH i2c: E2 62 00 54 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D9 2A 01 00 0E 04 04 00 72 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 F1 [18:56:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D9 2A 01 00 0E 04 04 00 72 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 [18:56:27]wFMCommunicate OK [18:56:27]SAM_PROTO_GetFieldsCounters done [18:56:27]requested_item shift.num is exist - process it [18:56:27]requested_item shift.opened is exist - process it [18:56:27]req_shift_opened [18:56:27]FM_GetShiftState [18:56:27]SAM_PROTO_GetShiftState [18:56:27]wFMCommunicate request_size=4 [18:56:27]MH_SAM_APDU [18:56:27]CAPDU: 80 13 01 00 [18:56:27]Write to MH i2c: E2 08 00 55 12 80 13 01 00 00 00 00 00 E4 [18:56:27]Write i2c OK [18:56:27]MH_I2C_Read... [18:56:27]Read from MH i2c: E2 [18:56:27]MH_I2C_Read... [18:56:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:27]Read from MH i2c: E2 0E 00 [18:56:27]MH_I2C_Read... [18:56:27]Read from MH i2c: E2 0E 00 55 12 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 C9 [18:56:27]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:56:27]wFMCommunicate OK [18:56:27]SAM_PROTO_GetShiftState done [18:56:27]FM_GetShiftState done [18:56:27]req_shift_opened done [18:56:27]requested_item shift.open_date is exist - process it [18:56:27]req_shift_open_date [18:56:27]req_shift_open_date done [18:56:27]produce_requested_data done [18:56:27]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76505,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [18:56:27]process_action_free close_receipt [18:56:27]json_value_free [18:56:27]json_value_free done [18:56:27]process_json_proto returns [18:56:27]Send response to host [18:56:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76505,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [18:56:27]free response buf [18:56:27]execute_script done [18:56:27]execute_script returns [18:56:27]free content buf [18:56:27]Sock 7.Close socket [18:56:27]Sock 7.Thread stoped [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:38]accept exits with 9 [18:56:38]New connection [18:56:38]New thread 3067080036 created [18:56:38]Thread 3066936676 joined [18:56:38]Waiting for new connection... [18:56:38] Sock 9.Parse request [18:56:38]Sock 9.Check first char [18:56:38]Sock 9.First char is OK [18:56:38]request: POST /json_proto HTTP/1.0 [18:56:38]Method: POST [18:56:38]URL: /json_proto [18:56:38]Method is POST - this is cgi request [18:56:38]url: /json_proto [18:56:38]query_string will be loaded in cgi processing [18:56:38]execute_cgi json_proto POST (null) [18:56:38]execute_cgi path=json_proto method=POST [18:56:38]POST find Content-Length [18:56:38]Host: 172.17.62.5:8080 [18:56:38]Content-Length: 978 [18:56:38]Content-Type: application/json [18:56:38] [18:56:38]POST finish read [18:56:38]Found Content-Length = 978 [18:56:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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 106\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" ] } } [18:56:38]execute_script... [18:56: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)190994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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 106\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" ] } } [18:56:38]POST & json_proto [18:56:38]process_json_proto [18:56:38]json parsed OK: [18:56:38]protocol is kg_v1.0 [18:56:38]action value=close_receipt [18:56:38]process_action close_receipt [18:56:38]cmd_close_receipt [18:56:38]MH_GetDate [18:56:38]Write to MH i2c: F0 00 00 56 12 57 [18:56:38]Write i2c OK [18:56:38]MH_I2C_Read... [18:56:38]Read from MH i2c: F0 [18:56:38]MH_I2C_Read... [18:56:38]Read from MH i2c: F0 09 00 [18:56:38]MH_I2C_Read... [18:56:38]Read from MH i2c: F0 09 00 56 12 00 68 BE 22 66 F4 E9 65 64 B4 [18:56:38]GetLastDocTimeStamp 1713552985 [18:56:38]current date 1713553000 [18:56:38]FM_GetShiftState [18:56:38]SAM_PROTO_GetShiftState [18:56:38]wFMCommunicate request_size=4 [18:56:38]MH_SAM_APDU [18:56:38]CAPDU: 80 13 01 00 [18:56:38]Write to MH i2c: E2 08 00 57 12 80 13 01 00 00 00 00 00 E6 [18:56:38]Write i2c OK [18:56:38]MH_I2C_Read... [18:56:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:38]Read from MH i2c: E2 [18:56:38]MH_I2C_Read... [18:56:38]Read from MH i2c: E2 0E 00 [18:56:38]MH_I2C_Read... [18:56:38]Read from MH i2c: E2 0E 00 57 12 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 CB [18:56:38]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:56:38]wFMCommunicate OK [18:56:38]SAM_PROTO_GetShiftState done [18:56:38]FM_GetShiftState done [18:56:38]opened in 1713486233 [18:56:38]opened+sec_in_day 1713572633 [18:56:38]quantity*price = 400051 [18:56:38]sum+1 = 400053 [18:56:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 126 19.04.2024 18:56 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 55.64 сом ФМ: 0000000000874652 ФД: 76506 ФПД: 129397400384092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T185640&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76506&fm=129397400384092&tin=02508201610067®Number=0000000000091573&sum=400000 [18:56:39]StoreToDocumentArchive [18:56:39]shift 370 fd 76506 [18:56:39]save to /storage/0370/doc_00076506 [18:56:39]save last doc name /storage/0370/doc_00076506 to /storage/kkm_last_doc_name [18:56:39]save OK [18:56:39]Clear old archive folders... [18:56:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:56:39]tlvbuf is 009E5E60 [18:56:39]SAM_PROTO_ClearQueue [18:56:39]wFMCommunicate request_size=4 [18:56:39]MH_SAM_APDU [18:56:39]CAPDU: 80 09 00 00 [18:56:39]Write to MH i2c: E2 08 00 64 12 80 09 00 00 00 00 00 00 E8 [18:56:39]Write i2c OK [18:56:39]MH_I2C_Read... [18:56:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:39]Read from MH i2c: E2 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: E2 03 00 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: E2 03 00 64 12 00 90 00 EA [18:56:39]RAPDU: 90 00 [18:56:39]wFMCommunicate OK [18:56:39]SAM_PROTO_ClearQueue done [18:56:39]KKMCreateOFDPacket [18:56:39]OFDProtocolAddRootSTLVToBuf [18:56:39]FM_MakeSignedData [18:56:39]FM_MakeSignedData [18:56:39]SAM_PROTO_SignData [18:56:39]wFMCommunicate request_size=4 [18:56:39]MH_SAM_APDU [18:56:39]CAPDU: 80 0D 01 02 [18:56:39]Write to MH i2c: E2 08 00 65 12 80 0D 01 02 00 00 00 00 F0 [18:56:39]Write i2c OK [18:56:39]MH_I2C_Read... [18:56:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:39]Read from MH i2c: E2 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: E2 03 00 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: E2 03 00 65 12 00 90 00 EB [18:56:39]RAPDU: 90 00 [18:56:39]wFMCommunicate OK [18:56:39]wFMCommunicate request_size=255 [18:56:39]MH_SAM_APDU [18:56: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 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 7E 00 00 00 F4 03 04 00 68 BE 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DA 2A 01 00 35 04 06 00 75 AF AE 15 [18:56:39]Write to MH i2c: E2 02 01 66 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 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 7E 00 00 00 F4 03 04 00 68 BE 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DA 2A 01 00 35 04 06 00 75 AF AE 15 00 00 C8 [18:56:39]Write i2c OK [18:56:39]MH_I2C_Read... [18:56:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:39]Read from MH i2c: E2 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: E2 03 00 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: E2 03 00 66 12 00 90 00 EC [18:56:39]RAPDU: 90 00 [18:56:39]wFMCommunicate OK [18:56:39]wFMCommunicate request_size=7 [18:56:39]MH_SAM_APDU [18:56:39]CAPDU: 80 0D 02 02 02 B2 5C [18:56:39]Write to MH i2c: E2 0A 00 67 12 80 0D 02 02 02 00 B2 5C 00 00 05 [18:56:39]Write i2c OK [18:56:39]MH_I2C_Read... [18:56:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:39]Read from MH i2c: E2 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: E2 03 00 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: E2 03 00 67 12 00 90 00 ED [18:56:39]RAPDU: 90 00 [18:56:39]wFMCommunicate OK [18:56:39]wFMCommunicate request_size=4 [18:56:39]MH_SAM_APDU [18:56:39]CAPDU: 80 0D 03 02 [18:56:39]Write to MH i2c: E2 08 00 68 12 80 0D 03 02 00 00 00 00 F5 [18:56:39]Write i2c OK [18:56:39]MH_I2C_Read... [18:56:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:39]Read from MH i2c: E2 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: E2 0B 00 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: E2 0B 00 68 12 00 AB B2 B2 B8 E8 A2 A1 79 90 00 61 [18:56:39]RAPDU: AB B2 B2 B8 E8 A2 A1 79 90 00 [18:56:39]wFMCommunicate OK [18:56:39]SAM_PROTO_SignData done [18:56:39]FM_MakeSignedData done [18:56:39]CreateOFDProtocolMessage [18:56:39]wFMCommunicate request_size=4 [18:56:39]MH_SAM_APDU [18:56:39]CAPDU: 80 11 00 00 [18:56:39]Write to MH i2c: E2 08 00 69 12 80 11 00 00 00 00 00 00 F5 [18:56:39]Write i2c OK [18:56:39]MH_I2C_Read... [18:56:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:39]Read from MH i2c: E2 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: E2 17 00 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: E2 17 00 69 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 48 [18:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:56:39]wFMCommunicate OK [18:56:39]CreateOFDProtocolMessage done [18:56:39]OFDSenderStorePacket 76506 [18:56:39]StoreOFDPacket docnum=76506 [18:56:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 5C 0F 04 01 B2 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 7E 00 00 00 F4 03 04 00 68 BE 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DA 2A 01 00 35 04 06 00 75 AF AE 15 B2 5C AB B2 B2 B8 E8 A2 A1 79 [18:56:39]CheckFolder [18:56:39]dirname=/storage/ofd_packets [18:56:39]CheckFolder done [18:56:39]ProducePacketName [18:56:39]name=ofd_packets/00076506 [18:56:39]NVStorageSaveData ofd_packets/00076506 [18:56:39]File name is /storage/ofd_packets/00076506 [18:56:39]Write 298 bytes [18:56:39]NVStorageSaveData done [18:56:39]OFDSenderStorePacket done [18:56:39]KKMCreateOFDPacket done [18:56:39]NVStorageSaveData kkm_last_timestamp [18:56:39]File name is /storage/kkm_last_timestamp [18:56:39]Write 4 bytes [18:56:39]NVStorageSaveData done [18:56:39]ExternCall_PrintAddStr [18:56:39]wPrintStart [18:56:39]Write to MH i2c: 01 00 00 6A 12 7C [18:56:39]Write i2c OK [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: 01 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: 01 07 00 [18:56:39]MH_I2C_Read... [18:56:39]Read from MH i2c: 01 07 00 6A 12 00 00 00 00 00 FF 0F 91 [18:56:39]RasterBufferAndPrint [18:56:39]line Счет N : (1)190994 [18:56:39]line ИНН: 02508201610067 [18:56:39]line Контрольно-Кассовый Чек [18:56:39]line ПРОДАЖА [18:56:39]line ТРК (МРК, ГНК) : 23 [18:56:39]line Товар: 2710194210 [18:56:39]line ДТ-К-5 [18:56:39]line 55.640 * 71.90 [18:56:39]line = 4000.52 [18:56:39]line НДС 12% НСП 1% [18:56:39]line > о реализуемом товаре [18:56:39]line ОКРУГЛЕНИЕ: -0.52 [18:56:39]line ИТОГО: 4000.00 [18:56:39]line Внесено: 4000.00 [18:56:39]line СДАЧА: 0.00 [18:56:39]line НСП 1% : 35.40 [18:56:39]line НДС 12% : 424.83 [18:56:39]line Наличными: 4000.00 [18:56:39]line Безнал.: 0.00 [18:56:39]line Место: АЗС № 106 "Партнер Нефть" [18:56:39]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [18:56:39]line СНО: Общий режим [18:56:39]line Чек 126 19.04.2024 18:56 [18:56:39]line Смена: 370 ФФД: 1.0 [18:56:39]line ЗНМ: 0300000141 [18:56:39]line РНМ: 0000000000091573 [18:56:39]line Версия ККМ: 001 [18:56:39]line [18:56:39]line Дисконтная программа [18:56:39]line ДТ [18:56:39]line номер 106 [18:56:39]line сэкономлено 55.64 сом [18:56:39]line ФМ: 0000000000874652 [18:56:39]line ФД: 76506 [18:56:39]line ФПД: 129397400384092 [18:56:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T185640&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76506&fm=129397400384092&tin=02508201610067®Number=0000000000091573&sum=400000 [18:56:40]OFD Sender: Processing packet 76506 [packets to send 128, broken 127] [18:56:40]ProducePacketName [18:56:40]name=ofd_packets/00076506 [18:56:40]OFD Sender: To server: pG, [18:56:40]CommunicateWithHost lk.salyk.kg:30040 [18:56:40]ConnectInit lk.salyk.kg [18:56:40]written 0, free lines is 4095 [18:56:40]Connected sock=10 [18:56:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 5C 0F 04 01 B2 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 7E 00 00 00 F4 03 04 00 68 BE 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DA 2A 01 00 35 04 06 00 75 AF AE 15 B2 5C AB B2 B2 B8 E8 A2 A1 79 [18:56:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 F4 64 47 00 B6 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 34 36 35 32 10 04 04 00 DA 2A 01 00 F4 03 04 00 F3 65 22 66 B6 04 01 00 00 E7 2B BE 49 A7 F0 F7 E6 [18:56:40]CommunicateWithHost err = 0 [18:56:40]CheckOFDResponse [18:56:40]1017 (14) - 77093643461234 [18:56:40]1041 (16) - 0000000000874652 [18:56:40]1040 (4) - 76506 [18:56:40]1012 (4) - 19.04.2024 12:39 [18:56:40]1206 (1) - 0 [18:56:40]OFD Sender: Remove packet 76506 [18:56:40]ProducePacketName [18:56:40]name=ofd_packets/00076506 [18:56:40]NVStorageDeleteData [18:56:40]Write to MH i2c: 01 00 00 99 12 AB [18:56:40]Write i2c OK [18:56:40]MH_I2C_Read... [18:56:40]Read from MH i2c: 01 [18:56:40]MH_I2C_Read... [18:56:40]Read from MH i2c: 01 07 00 [18:56:40]MH_I2C_Read... [18:56:40]Read from MH i2c: 01 07 00 99 12 00 00 00 00 00 A1 0C 5F [18:56:40]RasterBufferAndPrint [18:56:40]line [18:56:40]line [18:56:40]line [18:56:40]line [18:56:40]line [18:56:40]written 0, free lines is 3239 [18:56:40]MH_Cut [18:56:40]Write to MH i2c: D1 01 00 A0 12 01 84 [18:56:40]Write i2c OK [18:56:40]MH_I2C_Read... [18:56:40]Read from MH i2c: D1 [18:56:40]MH_I2C_Read... [18:56:40]Read from MH i2c: D1 01 00 [18:56:40]MH_I2C_Read... [18:56:40]Read from MH i2c: D1 01 00 A0 12 00 83 [18:56:40]Write to MH i2c: 01 00 00 A1 12 B3 [18:56:40]Write i2c OK [18:56:40]MH_I2C_Read... [18:56:41]OFD Sender: No OFD packet to send [18:56:41]*** Cut start [18:56:41]*** Partial cut [18:56:41]*** CUTSNS_PIN = 1 [18:56:41]*** CUTSNS_PIN = 0 [18:56:41]*** Brake cut motor [18:56:42]Read from MH i2c: 01 [18:56:42]MH_I2C_Read... [18:56:42]*** Stop cut motor [18:56:42]*** Cut end [18:56:42]Read from MH i2c: 01 07 00 [18:56:42]MH_I2C_Read... [18:56:42]Read from MH i2c: 01 07 00 A1 12 00 00 00 00 00 FF 0F C8 [18:56:42]process_action close_receipt done [18:56:42]requested_data is exist [18:56:42]produce_requested_data [18:56:42]requested_item fm.sn is exist - process it [18:56:42]wFMCommunicate request_size=4 [18:56:42]MH_SAM_APDU [18:56:42]CAPDU: 80 11 00 00 [18:56:42]Write to MH i2c: E2 08 00 A2 12 80 11 00 00 00 00 00 00 2E [18:56:42]Write i2c OK [18:56:42]MH_I2C_Read... [18:56:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:42]Read from MH i2c: E2 [18:56:42]MH_I2C_Read... [18:56:42]Read from MH i2c: E2 17 00 [18:56:42]MH_I2C_Read... [18:56:42]Read from MH i2c: E2 17 00 A2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 81 [18:56:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:56:42]wFMCommunicate OK [18:56:42]requested_item fd.num is exist - process it [18:56:42]SAM_PROTO_GetFieldsCounters [18:56:42]wFMCommunicate request_size=4 [18:56:42]MH_SAM_APDU [18:56:42]CAPDU: 80 13 00 00 [18:56:42]Write to MH i2c: E2 08 00 A3 12 80 13 00 00 00 00 00 00 31 [18:56:42]Write i2c OK [18:56:42]MH_I2C_Read... [18:56:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:42]Read from MH i2c: E2 [18:56:42]MH_I2C_Read... [18:56:42]Read from MH i2c: E2 62 00 [18:56:42]MH_I2C_Read... [18:56:42]Read from MH i2c: E2 62 00 A3 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DA 2A 01 00 0E 04 04 00 72 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 44 [18:56: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DA 2A 01 00 0E 04 04 00 72 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 [18:56:42]wFMCommunicate OK [18:56:42]SAM_PROTO_GetFieldsCounters done [18:56:42]requested_item shift.num is exist - process it [18:56:42]requested_item shift.opened is exist - process it [18:56:42]req_shift_opened [18:56:42]FM_GetShiftState [18:56:42]SAM_PROTO_GetShiftState [18:56:42]wFMCommunicate request_size=4 [18:56:42]MH_SAM_APDU [18:56:42]CAPDU: 80 13 01 00 [18:56:42]Write to MH i2c: E2 08 00 A4 12 80 13 01 00 00 00 00 00 33 [18:56:42]Write i2c OK [18:56:42]MH_I2C_Read... [18:56:42]Read from MH i2c: E2 [18:56:42]MH_I2C_Read... [18:56:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:42]Read from MH i2c: E2 0E 00 [18:56:42]MH_I2C_Read... [18:56:42]Read from MH i2c: E2 0E 00 A4 12 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 18 [18:56:42]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:56:42]wFMCommunicate OK [18:56:42]SAM_PROTO_GetShiftState done [18:56:42]FM_GetShiftState done [18:56:42]req_shift_opened done [18:56:42]requested_item shift.open_date is exist - process it [18:56:42]req_shift_open_date [18:56:42]req_shift_open_date done [18:56:42]produce_requested_data done [18:56:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76506,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [18:56:42]process_action_free close_receipt [18:56:42]json_value_free [18:56:42]json_value_free done [18:56:42]process_json_proto returns [18:56:42]Send response to host [18:56:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76506,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [18:56:42]free response buf [18:56:42]execute_script done [18:56:42]execute_script returns [18:56:42]free content buf [18:56:42]Sock 9.Close socket [18:56:42]Sock 9.Thread stoped [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:39]accept exits with 7 [18:57:39]New connection [18:57:39]New thread 3066936676 created [18:57:39]Thread 3067080036 joined [18:57:39]Waiting for new connection... [18:57:39] Sock 7.Parse request [18:57:39]Sock 7.Check first char [18:57:39]Sock 7.First char is OK [18:57:39]request: POST /json_proto HTTP/1.0 [18:57:39]Method: POST [18:57:39]URL: /json_proto [18:57:39]Method is POST - this is cgi request [18:57:39]url: /json_proto [18:57:39]query_string will be loaded in cgi processing [18:57:39]execute_cgi json_proto POST (null) [18:57:39]execute_cgi path=json_proto method=POST [18:57:39]POST find Content-Length [18:57:39]Host: 172.17.62.5:8080 [18:57:39]Content-Length: 670 [18:57:39]Content-Type: application/json [18:57:39] [18:57:39]POST finish read [18:57:39]Found Content-Length = 670 [18:57:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 4.590, "sum" : 300.19, "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:57:39]execute_script... [18:57: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)190996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 4.590, "sum" : 300.19, "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:57:39]POST & json_proto [18:57:39]process_json_proto [18:57:39]json parsed OK: [18:57:39]protocol is kg_v1.0 [18:57:39]action value=close_receipt [18:57:39]process_action close_receipt [18:57:39]cmd_close_receipt [18:57:39]MH_GetDate [18:57:39]Write to MH i2c: F0 00 00 A5 12 A6 [18:57:39]Write i2c OK [18:57:39]MH_I2C_Read... [18:57:39]Read from MH i2c: F0 [18:57:39]MH_I2C_Read... [18:57:39]Read from MH i2c: F0 09 00 [18:57:39]MH_I2C_Read... [18:57:39]Read from MH i2c: F0 09 00 A5 12 00 A5 BE 22 66 F4 E9 65 64 40 [18:57:39]GetLastDocTimeStamp 1713553000 [18:57:39]current date 1713553061 [18:57:39]FM_GetShiftState [18:57:39]SAM_PROTO_GetShiftState [18:57:39]wFMCommunicate request_size=4 [18:57:39]MH_SAM_APDU [18:57:39]CAPDU: 80 13 01 00 [18:57:39]Write to MH i2c: E2 08 00 A6 12 80 13 01 00 00 00 00 00 35 [18:57:39]Write i2c OK [18:57:39]MH_I2C_Read... [18:57:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:39]Read from MH i2c: E2 [18:57:39]MH_I2C_Read... [18:57:39]Read from MH i2c: E2 0E 00 [18:57:39]MH_I2C_Read... [18:57:39]Read from MH i2c: E2 0E 00 A6 12 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 1A [18:57:39]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:57:39]wFMCommunicate OK [18:57:39]SAM_PROTO_GetShiftState done [18:57:39]FM_GetShiftState done [18:57:39]opened in 1713486233 [18:57:39]opened+sec_in_day 1713572633 [18:57:39]quantity*price = 30018 [18:57:39]sum+1 = 30020 [18:57:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 127 19.04.2024 18:57 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76507 ФПД: 188340122875134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T185741&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76507&fm=188340122875134&tin=02508201610067®Number=0000000000091573&sum=30000 [18:57:40]StoreToDocumentArchive [18:57:40]shift 370 fd 76507 [18:57:40]save to /storage/0370/doc_00076507 [18:57:40]save last doc name /storage/0370/doc_00076507 to /storage/kkm_last_doc_name [18:57:40]save OK [18:57:40]Clear old archive folders... [18:57:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:57:40]tlvbuf is B6F74690 [18:57:40]SAM_PROTO_ClearQueue [18:57:40]wFMCommunicate request_size=4 [18:57:40]MH_SAM_APDU [18:57:40]CAPDU: 80 09 00 00 [18:57:40]Write to MH i2c: E2 08 00 B3 12 80 09 00 00 00 00 00 00 37 [18:57:40]Write i2c OK [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: E2 [18:57:40]MH_I2C_Read... [18:57:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:40]Read from MH i2c: E2 03 00 [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: E2 03 00 B3 12 00 90 00 39 [18:57:40]RAPDU: 90 00 [18:57:40]wFMCommunicate OK [18:57:40]SAM_PROTO_ClearQueue done [18:57:40]KKMCreateOFDPacket [18:57:40]OFDProtocolAddRootSTLVToBuf [18:57:40]FM_MakeSignedData [18:57:40]FM_MakeSignedData [18:57:40]SAM_PROTO_SignData [18:57:40]wFMCommunicate request_size=4 [18:57:40]MH_SAM_APDU [18:57:40]CAPDU: 80 0D 01 02 [18:57:40]Write to MH i2c: E2 08 00 B4 12 80 0D 01 02 00 00 00 00 3F [18:57:40]Write i2c OK [18:57:40]MH_I2C_Read... [18:57:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:40]Read from MH i2c: E2 [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: E2 03 00 [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: E2 03 00 B4 12 00 90 00 3A [18:57:40]RAPDU: 90 00 [18:57:40]wFMCommunicate OK [18:57:40]wFMCommunicate request_size=255 [18:57:40]MH_SAM_APDU [18:57:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 EE 11 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 43 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 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 00 00 00 F4 03 04 00 A5 BE 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DB 2A 01 00 35 04 06 00 [18:57:40]Write to MH i2c: E2 02 01 B5 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 EE 11 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 43 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 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 00 00 00 F4 03 04 00 A5 BE 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DB 2A 01 00 35 04 06 00 00 00 FA [18:57:40]Write i2c OK [18:57:40]MH_I2C_Read... [18:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:40]Read from MH i2c: E2 [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: E2 03 00 [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: E2 03 00 B5 12 00 90 00 3B [18:57:40]RAPDU: 90 00 [18:57:40]wFMCommunicate OK [18:57:40]wFMCommunicate request_size=11 [18:57:40]MH_SAM_APDU [18:57:40]CAPDU: 80 0D 02 02 06 AB 4B 5A 1E F4 FE [18:57:40]Write to MH i2c: E2 0E 00 B6 12 80 0D 02 02 06 00 AB 4B 5A 1E F4 FE 00 00 AE [18:57:40]Write i2c OK [18:57:40]MH_I2C_Read... [18:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:40]Read from MH i2c: E2 [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: E2 03 00 [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: E2 03 00 B6 12 00 90 00 3C [18:57:40]RAPDU: 90 00 [18:57:40]wFMCommunicate OK [18:57:40]wFMCommunicate request_size=4 [18:57:40]MH_SAM_APDU [18:57:40]CAPDU: 80 0D 03 02 [18:57:40]Write to MH i2c: E2 08 00 B7 12 80 0D 03 02 00 00 00 00 44 [18:57:40]Write i2c OK [18:57:40]MH_I2C_Read... [18:57:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:40]Read from MH i2c: E2 [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: E2 0B 00 [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: E2 0B 00 B7 12 00 86 4D F1 F4 C4 05 D6 35 90 00 D1 [18:57:40]RAPDU: 86 4D F1 F4 C4 05 D6 35 90 00 [18:57:40]wFMCommunicate OK [18:57:40]SAM_PROTO_SignData done [18:57:40]FM_MakeSignedData done [18:57:40]CreateOFDProtocolMessage [18:57:40]wFMCommunicate request_size=4 [18:57:40]MH_SAM_APDU [18:57:40]CAPDU: 80 11 00 00 [18:57:40]Write to MH i2c: E2 08 00 B8 12 80 11 00 00 00 00 00 00 44 [18:57:40]Write i2c OK [18:57:40]MH_I2C_Read... [18:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:40]Read from MH i2c: E2 [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: E2 17 00 [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: E2 17 00 B8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 97 [18:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:57:40]wFMCommunicate OK [18:57:40]CreateOFDProtocolMessage done [18:57:40]OFDSenderStorePacket 76507 [18:57:40]StoreOFDPacket docnum=76507 [18:57:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 4A E7 08 01 71 05 5A 03 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 EE 11 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 43 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 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 00 00 00 F4 03 04 00 A5 BE 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DB 2A 01 00 35 04 06 00 AB 4B 5A 1E F4 FE 86 4D F1 F4 C4 05 D6 35 [18:57:40]CheckFolder [18:57:40]dirname=/storage/ofd_packets [18:57:40]CheckFolder done [18:57:40]ProducePacketName [18:57:40]name=ofd_packets/00076507 [18:57:40]NVStorageSaveData ofd_packets/00076507 [18:57:40]File name is /storage/ofd_packets/00076507 [18:57:40]Write 302 bytes [18:57:40]NVStorageSaveData done [18:57:40]OFDSenderStorePacket done [18:57:40]KKMCreateOFDPacket done [18:57:40]NVStorageSaveData kkm_last_timestamp [18:57:40]File name is /storage/kkm_last_timestamp [18:57:40]Write 4 bytes [18:57:40]NVStorageSaveData done [18:57:40]ExternCall_PrintAddStr [18:57:40]wPrintStart [18:57:40]Write to MH i2c: 01 00 00 B9 12 CB [18:57:40]Write i2c OK [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: 01 [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: 01 07 00 [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: 01 07 00 B9 12 00 00 00 00 00 FF 0F E0 [18:57:40]RasterBufferAndPrint [18:57:40]line Счет N : (1)190996 [18:57:40]line ИНН: 02508201610067 [18:57:40]line Контрольно-Кассовый Чек [18:57:40]line ПРОДАЖА [18:57:40]line ТРК (МРК, ГНК) : 31 [18:57:40]line Товар: 2710124130 [18:57:40]line SUPER 92-К-5 [18:57:40]line 4.590 * 65.40 [18:57:40]line = 300.19 [18:57:40]line НДС 12% НСП 1% [18:57:40]line > о реализуемом товаре [18:57:40]line ОКРУГЛЕНИЕ: -0.19 [18:57:40]line ИТОГО: 300.00 [18:57:40]line Внесено: 300.00 [18:57:40]line СДАЧА: 0.00 [18:57:40]line НСП 1% : 2.66 [18:57:40]line НДС 12% : 31.88 [18:57:40]line Наличными: 300.00 [18:57:40]line Безнал.: 0.00 [18:57:40]line Место: АЗС № 106 "Партнер Нефть" [18:57:40]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [18:57:40]line СНО: Общий режим [18:57:40]line Чек 127 19.04.2024 18:57 [18:57:40]line Смена: 370 ФФД: 1.0 [18:57:40]line ЗНМ: 0300000141 [18:57:40]line РНМ: 0000000000091573 [18:57:40]line Версия ККМ: 001 [18:57:40]line ФМ: 0000000000874652 [18:57:40]line ФД: 76507 [18:57:40]line ФПД: 188340122875134 [18:57:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T185741&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76507&fm=188340122875134&tin=02508201610067®Number=0000000000091573&sum=30000 [18:57:40]written 0, free lines is 4095 [18:57:40]OFD Sender: Processing packet 76507 [packets to send 128, broken 127] [18:57:40]ProducePacketName [18:57:40]name=ofd_packets/00076507 [18:57:40]OFD Sender: To server: pG, [18:57:40]CommunicateWithHost lk.salyk.kg:30040 [18:57:40]ConnectInit lk.salyk.kg [18:57:41]Connected sock=10 [18:57:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 4A E7 08 01 71 05 5A 03 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 EE 11 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 43 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 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 00 00 00 F4 03 04 00 A5 BE 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DB 2A 01 00 35 04 06 00 AB 4B 5A 1E F4 FE 86 4D F1 F4 C4 05 D6 35 [18:57:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C8 9E 47 00 10 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 34 36 35 32 10 04 04 00 DB 2A 01 00 F4 03 04 00 2F 66 22 66 B6 04 01 00 00 74 92 96 6B 45 E1 DD 38 [18:57:41]CommunicateWithHost err = 0 [18:57:41]CheckOFDResponse [18:57:41]1017 (14) - 77093643461234 [18:57:41]1041 (16) - 0000000000874652 [18:57:41]1040 (4) - 76507 [18:57:41]1012 (4) - 19.04.2024 12:40 [18:57:41]1206 (1) - 0 [18:57:41]OFD Sender: Remove packet 76507 [18:57:41]ProducePacketName [18:57:41]name=ofd_packets/00076507 [18:57:41]NVStorageDeleteData [18:57:41]Write to MH i2c: 01 00 00 E3 12 F5 [18:57:41]Write i2c OK [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: 01 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: 01 07 00 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: 01 07 00 E3 12 00 00 00 00 00 FC 0C 04 [18:57:41]RasterBufferAndPrint [18:57:41]line [18:57:41]line [18:57:41]line [18:57:41]line [18:57:41]line [18:57:41]written 0, free lines is 3330 [18:57:41]MH_Cut [18:57:41]Write to MH i2c: D1 01 00 EA 12 01 CE [18:57:41]Write i2c OK [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: D1 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: D1 01 00 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: D1 01 00 EA 12 00 CD [18:57:41]Write to MH i2c: 01 00 00 EB 12 FD [18:57:41]Write i2c OK [18:57:41]MH_I2C_Read... [18:57:41]OFD Sender: No OFD packet to send [18:57:42]*** Cut start [18:57:42]*** Partial cut [18:57:42]*** CUTSNS_PIN = 1 [18:57:42]*** CUTSNS_PIN = 0 [18:57:42]*** Brake cut motor [18:57:42]Read from MH i2c: 01 [18:57:42]MH_I2C_Read... [18:57:42]*** Stop cut motor [18:57:42]*** Cut end [18:57:42]Read from MH i2c: 01 07 00 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: 01 07 00 EB 12 00 00 00 00 00 FF 0F 12 [18:57:42]process_action close_receipt done [18:57:42]requested_data is exist [18:57:42]produce_requested_data [18:57:42]requested_item fm.sn is exist - process it [18:57:42]wFMCommunicate request_size=4 [18:57:42]MH_SAM_APDU [18:57:42]CAPDU: 80 11 00 00 [18:57:42]Write to MH i2c: E2 08 00 EC 12 80 11 00 00 00 00 00 00 78 [18:57:42]Write i2c OK [18:57:42]MH_I2C_Read... [18:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:42]Read from MH i2c: E2 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: E2 17 00 [18:57:42]MH_I2C_Read... [18:57:42]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 34 36 35 32 90 00 CB [18:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:57:42]wFMCommunicate OK [18:57:42]requested_item fd.num is exist - process it [18:57:42]SAM_PROTO_GetFieldsCounters [18:57:42]wFMCommunicate request_size=4 [18:57:42]MH_SAM_APDU [18:57:42]CAPDU: 80 13 00 00 [18:57:42]Write to MH i2c: E2 08 00 ED 12 80 13 00 00 00 00 00 00 7B [18:57:42]Write i2c OK [18:57:42]MH_I2C_Read... [18:57:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:42]Read from MH i2c: E2 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: E2 62 00 [18:57:42]MH_I2C_Read... [18:57:42]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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DB 2A 01 00 0E 04 04 00 72 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 92 [18:57: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DB 2A 01 00 0E 04 04 00 72 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 [18:57:42]wFMCommunicate OK [18:57:42]SAM_PROTO_GetFieldsCounters done [18:57:42]requested_item shift.num is exist - process it [18:57:42]requested_item shift.opened is exist - process it [18:57:42]req_shift_opened [18:57:42]FM_GetShiftState [18:57:42]SAM_PROTO_GetShiftState [18:57:42]wFMCommunicate request_size=4 [18:57:42]MH_SAM_APDU [18:57:42]CAPDU: 80 13 01 00 [18:57:42]Write to MH i2c: E2 08 00 EE 12 80 13 01 00 00 00 00 00 7D [18:57:42]Write i2c OK [18:57:42]MH_I2C_Read... [18:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:42]Read from MH i2c: E2 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: E2 0E 00 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: E2 0E 00 EE 12 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 62 [18:57:42]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:57:42]wFMCommunicate OK [18:57:42]SAM_PROTO_GetShiftState done [18:57:42]FM_GetShiftState done [18:57:42]req_shift_opened done [18:57:42]requested_item shift.open_date is exist - process it [18:57:42]req_shift_open_date [18:57:42]req_shift_open_date done [18:57:42]produce_requested_data done [18:57:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76507,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [18:57:42]process_action_free close_receipt [18:57:42]json_value_free [18:57:42]json_value_free done [18:57:42]process_json_proto returns [18:57:42]Send response to host [18:57:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76507,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [18:57:42]free response buf [18:57:42]execute_script done [18:57:42]execute_script returns [18:57:42]free content buf [18:57:42]Sock 7.Close socket [18:57:42]Sock 7.Thread stoped [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:01]accept exits with 9 [18:58:01]New connection [18:58:01]New thread 3067080036 created [18:58:01]Thread 3066936676 joined [18:58:01]Waiting for new connection... [18:58:01] Sock 9.Parse request [18:58:01]Sock 9.Check first char [18:58:01]Sock 9.First char is OK [18:58:01]request: POST /json_proto HTTP/1.0 [18:58:01]Method: POST [18:58:01]URL: /json_proto [18:58:01]Method is POST - this is cgi request [18:58:01]url: /json_proto [18:58:01]query_string will be loaded in cgi processing [18:58:01]execute_cgi json_proto POST (null) [18:58:01]execute_cgi path=json_proto method=POST [18:58:01]POST find Content-Length [18:58:01]Host: 172.17.62.5:8080 [18:58:01]Content-Length: 1206 [18:58:01]Content-Type: application/json [18:58:01] [18:58:01]POST finish read [18:58:01]Found Content-Length = 1206 [18:58:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190993\u000A19.04.2024 18:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 350.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 25515.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\u000A68979\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:01]execute_script... [18:58:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)190993\u000A19.04.2024 18:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 350.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 25515.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\u000A68979\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:01]POST & json_proto [18:58:01]process_json_proto [18:58:01]json parsed OK: [18:58:01]protocol is kg_v1.0 [18:58:01]action value=print_text [18:58:01]process_action print_text [18:58:01]cmd_print_text [18:58:01]ExternCall_PrintAddStr [18:58:01]wPrintStart [18:58:01]Write to MH i2c: 01 00 00 EF 12 01 [18:58:01]Write i2c OK [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: 01 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: 01 07 00 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: 01 07 00 EF 12 00 00 00 00 00 FF 0F 16 [18:58:01]RasterBufferAndPrint [18:58:01]line *****ТОВАРНЫЙ ЧЕК***** [18:58:01]line АЗС 106 [18:58:01]line Партнер нефть [18:58:01]line 02508201610067 [18:58:01]line Кассир : Табалдиева М. [18:58:01]line Счет N : (1)190993 [18:58:01]line 19.04.2024 18:39 [18:58:01]line ПРОДАЖА [18:58:01]line ТРК (МРК, ГНК): 13 [18:58:01]line Вид ГСМ : 2710194210 [18:58:01]line ДТ-К-5 [18:58:01]line 350.000 x 72.90 [18:58:01]line ИТОГ: 25515.00 [18:58:01]line Тип оплаты: Талоны: Топливная Карта [18:58:01]line 68979 [18:58:01]line ______________________ [18:58:01]line (подпись) [18:58:01]written 0, free lines is 4095 [18:58:02]Write to MH i2c: 01 00 00 03 13 16 [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: 01 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: 01 07 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: 01 07 00 03 13 00 00 00 00 00 10 0E 3B [18:58:02]RasterBufferAndPrint [18:58:02]line [18:58:02]line [18:58:02]line [18:58:02]line [18:58:02]line [18:58:02]written 0, free lines is 3601 [18:58:02]MH_Cut [18:58:02]Write to MH i2c: D1 01 00 0A 13 01 EF [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: D1 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: D1 01 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: D1 01 00 0A 13 00 EE [18:58:02]Write to MH i2c: 01 00 00 0B 13 1E [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]*** Cut start [18:58:02]*** Partial cut [18:58:02]*** CUTSNS_PIN = 1 [18:58:02]*** CUTSNS_PIN = 0 [18:58:02]*** Brake cut motor [18:58:03]Read from MH i2c: 01 [18:58:03]MH_I2C_Read... [18:58:03]*** Stop cut motor [18:58:03]*** Cut end [18:58:03]Read from MH i2c: 01 07 00 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: 01 07 00 0B 13 00 00 00 00 00 FF 0F 33 [18:58:03]process_action print_text done [18:58:03]requested_data is exist [18:58:03]produce_requested_data [18:58:03]requested_item fm.sn is exist - process it [18:58:03]wFMCommunicate request_size=4 [18:58:03]MH_SAM_APDU [18:58:03]CAPDU: 80 11 00 00 [18:58:03]Write to MH i2c: E2 08 00 0C 13 80 11 00 00 00 00 00 00 99 [18:58:03]Write i2c OK [18:58:03]MH_I2C_Read... [18:58:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:03]Read from MH i2c: E2 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: E2 17 00 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: E2 17 00 0C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EC [18:58:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [18:58:03]wFMCommunicate OK [18:58:03]requested_item fd.num is exist - process it [18:58:03]SAM_PROTO_GetFieldsCounters [18:58:03]wFMCommunicate request_size=4 [18:58:03]MH_SAM_APDU [18:58:03]CAPDU: 80 13 00 00 [18:58:03]Write to MH i2c: E2 08 00 0D 13 80 13 00 00 00 00 00 00 9C [18:58:03]Write i2c OK [18:58:03]MH_I2C_Read... [18:58:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:03]Read from MH i2c: E2 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: E2 62 00 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: E2 62 00 0D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DB 2A 01 00 0E 04 04 00 72 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 B3 [18:58:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DB 2A 01 00 0E 04 04 00 72 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 [18:58:03]wFMCommunicate OK [18:58:03]SAM_PROTO_GetFieldsCounters done [18:58:03]requested_item shift.num is exist - process it [18:58:03]requested_item shift.opened is exist - process it [18:58:03]req_shift_opened [18:58:03]FM_GetShiftState [18:58:03]SAM_PROTO_GetShiftState [18:58:03]wFMCommunicate request_size=4 [18:58:03]MH_SAM_APDU [18:58:03]CAPDU: 80 13 01 00 [18:58:03]Write to MH i2c: E2 08 00 0E 13 80 13 01 00 00 00 00 00 9E [18:58:03]Write i2c OK [18:58:03]MH_I2C_Read... [18:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:03]Read from MH i2c: E2 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: E2 0E 00 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: E2 0E 00 0E 13 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 83 [18:58:03]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [18:58:03]wFMCommunicate OK [18:58:03]SAM_PROTO_GetShiftState done [18:58:03]FM_GetShiftState done [18:58:03]req_shift_opened done [18:58:03]requested_item shift.open_date is exist - process it [18:58:03]req_shift_open_date [18:58:03]req_shift_open_date done [18:58:03]produce_requested_data done [18:58:03]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76507,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [18:58:03]process_action_free print_text [18:58:03]json_value_free [18:58:03]json_value_free done [18:58:03]process_json_proto returns [18:58:03]Send response to host [18:58:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76507,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [18:58:03]free response buf [18:58:03]execute_script done [18:58:03]execute_script returns [18:58:03]free content buf [18:58:03]Sock 9.Close socket [18:58:03]Sock 9.Thread stoped [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:16]OFD Sender: No OFD packet to send [18:59:21]OFD Sender: No OFD packet to send [18:59:26]OFD Sender: No OFD packet to send [18:59:31]OFD Sender: No OFD packet to send [18:59:36]OFD Sender: No OFD packet to send [18:59:41]OFD Sender: No OFD packet to send [18:59:46]OFD Sender: No OFD packet to send [18:59:51]OFD Sender: No OFD packet to send [18:59:56]OFD Sender: No OFD packet to send [19:00:01]OFD Sender: No OFD packet to send [19:00:06]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:16]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]OFD Sender: No OFD packet to send [19:00:36]OFD Sender: No OFD packet to send [19:00:41]OFD Sender: No OFD packet to send [19:00:46]OFD Sender: No OFD packet to send [19:00:51]OFD Sender: No OFD packet to send [19:00:56]OFD Sender: No OFD packet to send [19:01:02]OFD Sender: No OFD packet to send [19:01:07]OFD Sender: No OFD packet to send [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]OFD Sender: No OFD packet to send [19:01:42]OFD Sender: No OFD packet to send [19:01:47]OFD Sender: No OFD packet to send [19:01:52]OFD Sender: No OFD packet to send [19:01:57]OFD Sender: No OFD packet to send [19:02:02]OFD Sender: No OFD packet to send [19:02:07]OFD Sender: No OFD packet to send [19:02:12]OFD Sender: No OFD packet to send [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:07]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:12]OFD Sender: No OFD packet to send [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:32]OFD Sender: No OFD packet to send [19:04:37]OFD Sender: No OFD packet to send [19:04:42]OFD Sender: No OFD packet to send [19:04:47]OFD Sender: No OFD packet to send [19:04:52]OFD Sender: No OFD packet to send [19:04:57]OFD Sender: No OFD packet to send [19:05:02]OFD Sender: No OFD packet to send [19:05:05]accept exits with 7 [19:05:05]New connection [19:05:05]New thread 3066936676 created [19:05:05]Thread 3067080036 joined [19:05:05]Waiting for new connection... [19:05:05] Sock 7.Parse request [19:05:05]Sock 7.Check first char [19:05:05]Sock 7.First char is OK [19:05:05]request: POST /json_proto HTTP/1.0 [19:05:05]Method: POST [19:05:05]URL: /json_proto [19:05:05]Method is POST - this is cgi request [19:05:05]url: /json_proto [19:05:05]query_string will be loaded in cgi processing [19:05:05]execute_cgi json_proto POST (null) [19:05:05]execute_cgi path=json_proto method=POST [19:05:05]POST find Content-Length [19:05:05]Host: 172.17.62.5:8080 [19:05:05]Content-Length: 990 [19:05:05]Content-Type: application/json [19:05:05] [19:05:05]POST finish read [19:05:05]Found Content-Length = 990 [19:05:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:05:05]execute_script... [19:05: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)190997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:05:05]POST & json_proto [19:05:05]process_json_proto [19:05:05]json parsed OK: [19:05:05]protocol is kg_v1.0 [19:05:05]action value=close_receipt [19:05:05]process_action close_receipt [19:05:05]cmd_close_receipt [19:05:05]MH_GetDate [19:05:05]Write to MH i2c: F0 00 00 0F 13 11 [19:05:05]Write i2c OK [19:05:05]MH_I2C_Read... [19:05:05]Read from MH i2c: F0 [19:05:05]MH_I2C_Read... [19:05:05]Read from MH i2c: F0 09 00 [19:05:05]MH_I2C_Read... [19:05:05]Read from MH i2c: F0 09 00 0F 13 00 63 C0 22 66 F4 E9 65 64 6B [19:05:05]GetLastDocTimeStamp 1713553061 [19:05:05]current date 1713553507 [19:05:05]FM_GetShiftState [19:05:05]SAM_PROTO_GetShiftState [19:05:05]wFMCommunicate request_size=4 [19:05:05]MH_SAM_APDU [19:05:05]CAPDU: 80 13 01 00 [19:05:05]Write to MH i2c: E2 08 00 10 13 80 13 01 00 00 00 00 00 A0 [19:05:05]Write i2c OK [19:05:05]MH_I2C_Read... [19:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:05]Read from MH i2c: E2 [19:05:05]MH_I2C_Read... [19:05:05]Read from MH i2c: E2 0E 00 [19:05:05]MH_I2C_Read... [19:05:05]Read from MH i2c: E2 0E 00 10 13 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 85 [19:05:05]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:05:05]wFMCommunicate OK [19:05:05]SAM_PROTO_GetShiftState done [19:05:05]FM_GetShiftState done [19:05:05]opened in 1713486233 [19:05:05]opened+sec_in_day 1713572633 [19:05:05]quantity*price = 100013 [19:05:05]sum+1 = 100015 [19:05:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 128 19.04.2024 19:05 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 31.55 сом ФМ: 0000000000874652 ФД: 76508 ФПД: 226507552578868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T190507&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76508&fm=226507552578868&tin=02508201610067®Number=0000000000091573&sum=100000 [19:05:06]StoreToDocumentArchive [19:05:06]shift 370 fd 76508 [19:05:06]save to /storage/0370/doc_00076508 [19:05:06]save last doc name /storage/0370/doc_00076508 to /storage/kkm_last_doc_name [19:05:06]save OK [19:05:06]Clear old archive folders... [19:05:06]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:05:06]tlvbuf is B6EC7690 [19:05:06]SAM_PROTO_ClearQueue [19:05:06]wFMCommunicate request_size=4 [19:05:06]MH_SAM_APDU [19:05:06]CAPDU: 80 09 00 00 [19:05:06]Write to MH i2c: E2 08 00 1D 13 80 09 00 00 00 00 00 00 A2 [19:05:06]Write i2c OK [19:05:06]MH_I2C_Read... [19:05:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:06]Read from MH i2c: E2 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: E2 03 00 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: E2 03 00 1D 13 00 90 00 A4 [19:05:06]RAPDU: 90 00 [19:05:06]wFMCommunicate OK [19:05:06]SAM_PROTO_ClearQueue done [19:05:06]KKMCreateOFDPacket [19:05:06]OFDProtocolAddRootSTLVToBuf [19:05:06]FM_MakeSignedData [19:05:06]FM_MakeSignedData [19:05:06]SAM_PROTO_SignData [19:05:06]wFMCommunicate request_size=4 [19:05:06]MH_SAM_APDU [19:05:06]CAPDU: 80 0D 01 02 [19:05:06]Write to MH i2c: E2 08 00 1E 13 80 0D 01 02 00 00 00 00 AA [19:05:06]Write i2c OK [19:05:06]MH_I2C_Read... [19:05:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:06]Read from MH i2c: E2 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: E2 03 00 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: E2 03 00 1E 13 00 90 00 A5 [19:05:06]RAPDU: 90 00 [19:05:06]wFMCommunicate OK [19:05:06]wFMCommunicate request_size=255 [19:05:06]MH_SAM_APDU [19:05:06]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 63 C0 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DC 2A 01 00 35 04 06 00 CE 01 [19:05:06]Write to MH i2c: E2 02 01 1F 13 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 63 C0 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DC 2A 01 00 35 04 06 00 CE 01 00 00 97 [19:05:06]Write i2c OK [19:05:06]MH_I2C_Read... [19:05:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:06]Read from MH i2c: E2 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: E2 03 00 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: E2 03 00 1F 13 00 90 00 A6 [19:05:06]RAPDU: 90 00 [19:05:06]wFMCommunicate OK [19:05:06]wFMCommunicate request_size=9 [19:05:06]MH_SAM_APDU [19:05:06]CAPDU: 80 0D 02 02 04 E6 35 DD 34 [19:05:06]Write to MH i2c: E2 0C 00 20 13 80 0D 02 02 04 00 E6 35 DD 34 00 00 E1 [19:05:06]Write i2c OK [19:05:06]MH_I2C_Read... [19:05:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:06]Read from MH i2c: E2 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: E2 03 00 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: E2 03 00 20 13 00 90 00 A7 [19:05:06]RAPDU: 90 00 [19:05:06]wFMCommunicate OK [19:05:06]wFMCommunicate request_size=4 [19:05:06]MH_SAM_APDU [19:05:06]CAPDU: 80 0D 03 02 [19:05:06]Write to MH i2c: E2 08 00 21 13 80 0D 03 02 00 00 00 00 AF [19:05:06]Write i2c OK [19:05:06]MH_I2C_Read... [19:05:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:06]Read from MH i2c: E2 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: E2 0B 00 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: E2 0B 00 21 13 00 C9 15 D3 85 C6 7F 2B 9F 90 00 F5 [19:05:06]RAPDU: C9 15 D3 85 C6 7F 2B 9F 90 00 [19:05:06]wFMCommunicate OK [19:05:06]SAM_PROTO_SignData done [19:05:06]FM_MakeSignedData done [19:05:06]CreateOFDProtocolMessage [19:05:06]wFMCommunicate request_size=4 [19:05:06]MH_SAM_APDU [19:05:06]CAPDU: 80 11 00 00 [19:05:06]Write to MH i2c: E2 08 00 22 13 80 11 00 00 00 00 00 00 AF [19:05:06]Write i2c OK [19:05:06]MH_I2C_Read... [19:05:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:06]Read from MH i2c: E2 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: E2 17 00 [19:05:06]MH_I2C_Read... [19:05:06]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 34 36 35 32 90 00 02 [19:05:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:05:06]wFMCommunicate OK [19:05:06]CreateOFDProtocolMessage done [19:05:06]OFDSenderStorePacket 76508 [19:05:06]StoreOFDPacket docnum=76508 [19:05:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 02 DD 06 01 11 DC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 63 C0 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DC 2A 01 00 35 04 06 00 CE 01 E6 35 DD 34 C9 15 D3 85 C6 7F 2B 9F [19:05:06]CheckFolder [19:05:06]dirname=/storage/ofd_packets [19:05:06]CheckFolder done [19:05:06]ProducePacketName [19:05:06]name=ofd_packets/00076508 [19:05:06]NVStorageSaveData ofd_packets/00076508 [19:05:06]File name is /storage/ofd_packets/00076508 [19:05:06]Write 300 bytes [19:05:06]NVStorageSaveData done [19:05:06]OFDSenderStorePacket done [19:05:06]KKMCreateOFDPacket done [19:05:06]NVStorageSaveData kkm_last_timestamp [19:05:06]File name is /storage/kkm_last_timestamp [19:05:06]Write 4 bytes [19:05:06]NVStorageSaveData done [19:05:06]ExternCall_PrintAddStr [19:05:06]wPrintStart [19:05:06]Write to MH i2c: 01 00 00 23 13 36 [19:05:06]Write i2c OK [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: 01 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: 01 07 00 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: 01 07 00 23 13 00 00 00 00 00 FF 0F 4B [19:05:06]RasterBufferAndPrint [19:05:06]line Счет N : (1)190997 [19:05:06]line ИНН: 02508201610067 [19:05:06]line Контрольно-Кассовый Чек [19:05:06]line ПРОДАЖА [19:05:06]line ТРК (МРК, ГНК) : 71 [19:05:06]line Товар: 2711190000 [19:05:06]line ГАЗ-К-5 [19:05:06]line 31.550 * 31.70 [19:05:06]line = 1000.14 [19:05:06]line НДС 12% НСП 1% [19:05:06]line > о реализуемом товаре [19:05:06]line ОКРУГЛЕНИЕ: -0.14 [19:05:06]line ИТОГО: 1000.00 [19:05:06]line Внесено: 1000.00 [19:05:06]line СДАЧА: 0.00 [19:05:06]line НСП 1% : 8.85 [19:05:06]line НДС 12% : 106.21 [19:05:06]line Наличными: 1000.00 [19:05:06]line Безнал.: 0.00 [19:05:06]line Место: АЗС № 106 "Партнер Нефть" [19:05:06]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:05:06]line СНО: Общий режим [19:05:06]line Чек 128 19.04.2024 19:05 [19:05:06]line Смена: 370 ФФД: 1.0 [19:05:06]line ЗНМ: 0300000141 [19:05:06]line РНМ: 0000000000091573 [19:05:06]line Версия ККМ: 001 [19:05:06]line [19:05:06]line Дисконтная программа [19:05:06]line СУГ [19:05:06]line номер 106 [19:05:06]line сэкономлено 31.55 сом [19:05:06]line ФМ: 0000000000874652 [19:05:06]line ФД: 76508 [19:05:06]line ФПД: 226507552578868 [19:05:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T190507&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76508&fm=226507552578868&tin=02508201610067®Number=0000000000091573&sum=100000 [19:05:07]OFD Sender: Processing packet 76508 [packets to send 128, broken 127] [19:05:07]ProducePacketName [19:05:07]name=ofd_packets/00076508 [19:05:07]OFD Sender: To server: pG, [19:05:07]CommunicateWithHost lk.salyk.kg:30040 [19:05:07]ConnectInit lk.salyk.kg [19:05:07]written 0, free lines is 4095 [19:05:07]Connected sock=11 [19:05:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 02 DD 06 01 11 DC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 63 C0 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DC 2A 01 00 35 04 06 00 CE 01 E6 35 DD 34 C9 15 D3 85 C6 7F 2B 9F [19:05:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 B5 38 47 00 28 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DC 2A 01 00 F4 03 04 00 EE 67 22 66 B6 04 01 00 00 0C 45 1B 0F 26 E4 B5 3F [19:05:07]CommunicateWithHost err = 0 [19:05:07]CheckOFDResponse [19:05:07]1017 (14) - 77093643461234 [19:05:07]1041 (16) - 0000000000874652 [19:05:07]1040 (4) - 76508 [19:05:07]1012 (4) - 19.04.2024 12:47 [19:05:07]1206 (1) - 0 [19:05:07]OFD Sender: Remove packet 76508 [19:05:07]ProducePacketName [19:05:07]name=ofd_packets/00076508 [19:05:07]NVStorageDeleteData [19:05:07]Write to MH i2c: 01 00 00 52 13 65 [19:05:07]Write i2c OK [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: 01 [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: 01 07 00 [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: 01 07 00 52 13 00 00 00 00 00 92 0C 0A [19:05:07]RasterBufferAndPrint [19:05:07]line [19:05:07]line [19:05:07]line [19:05:07]line [19:05:07]line [19:05:07]written 0, free lines is 3224 [19:05:07]MH_Cut [19:05:07]Write to MH i2c: D1 01 00 59 13 01 3E [19:05:07]Write i2c OK [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: D1 [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: D1 01 00 [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: D1 01 00 59 13 00 3D [19:05:07]Write to MH i2c: 01 00 00 5A 13 6D [19:05:07]Write i2c OK [19:05:07]MH_I2C_Read... [19:05:08]OFD Sender: No OFD packet to send [19:05:08]*** Cut start [19:05:08]*** Partial cut [19:05:08]*** CUTSNS_PIN = 1 [19:05:08]*** CUTSNS_PIN = 0 [19:05:08]*** Brake cut motor [19:05:09]Read from MH i2c: 01 [19:05:09]MH_I2C_Read... [19:05:09]*** Stop cut motor [19:05:09]*** Cut end [19:05:09]Read from MH i2c: 01 07 00 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: 01 07 00 5A 13 00 00 00 00 00 FF 0F 82 [19:05:09]process_action close_receipt done [19:05:09]requested_data is exist [19:05:09]produce_requested_data [19:05:09]requested_item fm.sn is exist - process it [19:05:09]wFMCommunicate request_size=4 [19:05:09]MH_SAM_APDU [19:05:09]CAPDU: 80 11 00 00 [19:05:09]Write to MH i2c: E2 08 00 5B 13 80 11 00 00 00 00 00 00 E8 [19:05:09]Write i2c OK [19:05:09]MH_I2C_Read... [19:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:09]Read from MH i2c: E2 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 17 00 [19:05:09]MH_I2C_Read... [19:05:09]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 34 36 35 32 90 00 3B [19:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:05:09]wFMCommunicate OK [19:05:09]requested_item fd.num is exist - process it [19:05:09]SAM_PROTO_GetFieldsCounters [19:05:09]wFMCommunicate request_size=4 [19:05:09]MH_SAM_APDU [19:05:09]CAPDU: 80 13 00 00 [19:05:09]Write to MH i2c: E2 08 00 5C 13 80 13 00 00 00 00 00 00 EB [19:05:09]Write i2c OK [19:05:09]MH_I2C_Read... [19:05:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:09]Read from MH i2c: E2 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 62 00 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 62 00 5C 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DC 2A 01 00 0E 04 04 00 72 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 06 [19:05:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DC 2A 01 00 0E 04 04 00 72 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 [19:05:09]wFMCommunicate OK [19:05:09]SAM_PROTO_GetFieldsCounters done [19:05:09]requested_item shift.num is exist - process it [19:05:09]requested_item shift.opened is exist - process it [19:05:09]req_shift_opened [19:05:09]FM_GetShiftState [19:05:09]SAM_PROTO_GetShiftState [19:05:09]wFMCommunicate request_size=4 [19:05:09]MH_SAM_APDU [19:05:09]CAPDU: 80 13 01 00 [19:05:09]Write to MH i2c: E2 08 00 5D 13 80 13 01 00 00 00 00 00 ED [19:05:09]Write i2c OK [19:05:09]MH_I2C_Read... [19:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:09]Read from MH i2c: E2 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 0E 00 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 0E 00 5D 13 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 D2 [19:05:09]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:05:09]wFMCommunicate OK [19:05:09]SAM_PROTO_GetShiftState done [19:05:09]FM_GetShiftState done [19:05:09]req_shift_opened done [19:05:09]requested_item shift.open_date is exist - process it [19:05:09]req_shift_open_date [19:05:09]req_shift_open_date done [19:05:09]produce_requested_data done [19:05:09]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76508,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [19:05:09]process_action_free close_receipt [19:05:09]json_value_free [19:05:09]json_value_free done [19:05:09]process_json_proto returns [19:05:09]Send response to host [19:05:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76508,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [19:05:09]free response buf [19:05:09]execute_script done [19:05:09]execute_script returns [19:05:09]free content buf [19:05:09]Sock 7.Close socket [19:05:09]Sock 7.Thread stoped [19:05:13]OFD Sender: No OFD packet to send [19:05:18]OFD Sender: No OFD packet to send [19:05:23]OFD Sender: No OFD packet to send [19:05:28]OFD Sender: No OFD packet to send [19:05:33]OFD Sender: No OFD packet to send [19:05:38]OFD Sender: No OFD packet to send [19:05:43]OFD Sender: No OFD packet to send [19:05:48]OFD Sender: No OFD packet to send [19:05:53]OFD Sender: No OFD packet to send [19:05:58]OFD Sender: No OFD packet to send [19:06:03]OFD Sender: No OFD packet to send [19:06:08]OFD Sender: No OFD packet to send [19:06:13]OFD Sender: No OFD packet to send [19:06:18]OFD Sender: No OFD packet to send [19:06:23]OFD Sender: No OFD packet to send [19:06:28]OFD Sender: No OFD packet to send [19:06:32]accept exits with 9 [19:06:32]New connection [19:06:32]New thread 3067080036 created [19:06:32]Thread 3066936676 joined [19:06:32]Waiting for new connection... [19:06:32] Sock 9.Parse request [19:06:32]Sock 9.Check first char [19:06:32]Sock 9.First char is OK [19:06:32]request: POST /json_proto HTTP/1.0 [19:06:32]Method: POST [19:06:32]URL: /json_proto [19:06:32]Method is POST - this is cgi request [19:06:32]url: /json_proto [19:06:32]query_string will be loaded in cgi processing [19:06:32]execute_cgi json_proto POST (null) [19:06:32]execute_cgi path=json_proto method=POST [19:06:32]POST find Content-Length [19:06:32]Host: 172.17.62.5:8080 [19:06:32]Content-Length: 670 [19:06:32]Content-Type: application/json [19:06:32] [19:06:32]POST finish read [19:06:32]Found Content-Length = 670 [19:06:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 4.590, "sum" : 300.19, "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:06:32]execute_script... [19: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)190998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 4.590, "sum" : 300.19, "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:06:32]POST & json_proto [19:06:32]process_json_proto [19:06:32]json parsed OK: [19:06:32]protocol is kg_v1.0 [19:06:32]action value=close_receipt [19:06:32]process_action close_receipt [19:06:32]cmd_close_receipt [19:06:32]MH_GetDate [19:06:32]Write to MH i2c: F0 00 00 5E 13 60 [19:06:32]Write i2c OK [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: F0 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: F0 09 00 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: F0 09 00 5E 13 00 BA C0 22 66 F4 E9 65 64 11 [19:06:32]GetLastDocTimeStamp 1713553507 [19:06:32]current date 1713553594 [19:06:32]FM_GetShiftState [19:06:32]SAM_PROTO_GetShiftState [19:06:32]wFMCommunicate request_size=4 [19:06:32]MH_SAM_APDU [19:06:32]CAPDU: 80 13 01 00 [19:06:32]Write to MH i2c: E2 08 00 5F 13 80 13 01 00 00 00 00 00 EF [19:06:32]Write i2c OK [19:06:32]MH_I2C_Read... [19:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:32]Read from MH i2c: E2 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 0E 00 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 0E 00 5F 13 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 D4 [19:06:32]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:06:32]wFMCommunicate OK [19:06:32]SAM_PROTO_GetShiftState done [19:06:32]FM_GetShiftState done [19:06:32]opened in 1713486233 [19:06:32]opened+sec_in_day 1713572633 [19:06:32]quantity*price = 30018 [19:06:32]sum+1 = 30020 [19:06:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 129 19.04.2024 19:06 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76509 ФПД: 57425606838957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T190634&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76509&fm=57425606838957&tin=02508201610067®Number=0000000000091573&sum=30000 [19:06:33]StoreToDocumentArchive [19:06:33]shift 370 fd 76509 [19:06:33]save to /storage/0370/doc_00076509 [19:06:33]save last doc name /storage/0370/doc_00076509 to /storage/kkm_last_doc_name [19:06:33]save OK [19:06:33]Clear old archive folders... [19:06:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:06:33]tlvbuf is 00A11AD0 [19:06:33]SAM_PROTO_ClearQueue [19:06:33]wFMCommunicate request_size=4 [19:06:33]MH_SAM_APDU [19:06:33]CAPDU: 80 09 00 00 [19:06:33]Write to MH i2c: E2 08 00 6C 13 80 09 00 00 00 00 00 00 F1 [19:06:33]Write i2c OK [19:06:33]MH_I2C_Read... [19:06:33]OFD Sender: No OFD packet to send [19:06:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:33]Read from MH i2c: E2 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: E2 03 00 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: E2 03 00 6C 13 00 90 00 F3 [19:06:33]RAPDU: 90 00 [19:06:33]wFMCommunicate OK [19:06:33]SAM_PROTO_ClearQueue done [19:06:33]KKMCreateOFDPacket [19:06:33]OFDProtocolAddRootSTLVToBuf [19:06:33]FM_MakeSignedData [19:06:33]FM_MakeSignedData [19:06:33]SAM_PROTO_SignData [19:06:33]wFMCommunicate request_size=4 [19:06:33]MH_SAM_APDU [19:06:33]CAPDU: 80 0D 01 02 [19:06:33]Write to MH i2c: E2 08 00 6D 13 80 0D 01 02 00 00 00 00 F9 [19:06:33]Write i2c OK [19:06:33]MH_I2C_Read... [19:06:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:33]Read from MH i2c: E2 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: E2 03 00 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: E2 03 00 6D 13 00 90 00 F4 [19:06:33]RAPDU: 90 00 [19:06:33]wFMCommunicate OK [19:06:33]wFMCommunicate request_size=255 [19:06:33]MH_SAM_APDU [19:06:33]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 EE 11 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 43 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 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 BA C0 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DD 2A 01 00 35 04 06 00 [19:06:33]Write to MH i2c: E2 02 01 6E 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 EE 11 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 43 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 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 BA C0 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DD 2A 01 00 35 04 06 00 00 00 CF [19:06:33]Write i2c OK [19:06:33]MH_I2C_Read... [19:06:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:33]Read from MH i2c: E2 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: E2 03 00 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: E2 03 00 6E 13 00 90 00 F5 [19:06:33]RAPDU: 90 00 [19:06:33]wFMCommunicate OK [19:06:33]wFMCommunicate request_size=11 [19:06:33]MH_SAM_APDU [19:06:33]CAPDU: 80 0D 02 02 06 34 3A 70 E5 8A AD [19:06:33]Write to MH i2c: E2 0E 00 6F 13 80 0D 02 02 06 00 34 3A 70 E5 8A AD 00 00 02 [19:06:33]Write i2c OK [19:06:33]MH_I2C_Read... [19:06:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:33]Read from MH i2c: E2 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: E2 03 00 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: E2 03 00 6F 13 00 90 00 F6 [19:06:33]RAPDU: 90 00 [19:06:33]wFMCommunicate OK [19:06:33]wFMCommunicate request_size=4 [19:06:33]MH_SAM_APDU [19:06:33]CAPDU: 80 0D 03 02 [19:06:33]Write to MH i2c: E2 08 00 70 13 80 0D 03 02 00 00 00 00 FE [19:06:33]Write i2c OK [19:06:33]MH_I2C_Read... [19:06:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:33]Read from MH i2c: E2 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: E2 0B 00 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: E2 0B 00 70 13 00 F8 5D 65 0D F5 E7 92 56 90 00 8A [19:06:33]RAPDU: F8 5D 65 0D F5 E7 92 56 90 00 [19:06:33]wFMCommunicate OK [19:06:33]SAM_PROTO_SignData done [19:06:33]FM_MakeSignedData done [19:06:33]CreateOFDProtocolMessage [19:06:33]wFMCommunicate request_size=4 [19:06:33]MH_SAM_APDU [19:06:33]CAPDU: 80 11 00 00 [19:06:33]Write to MH i2c: E2 08 00 71 13 80 11 00 00 00 00 00 00 FE [19:06:33]Write i2c OK [19:06:33]MH_I2C_Read... [19:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:33]Read from MH i2c: E2 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: E2 17 00 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: E2 17 00 71 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 51 [19:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:06:33]wFMCommunicate OK [19:06:33]CreateOFDProtocolMessage done [19:06:33]OFDSenderStorePacket 76509 [19:06:33]StoreOFDPacket docnum=76509 [19:06:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 0A B5 08 01 53 07 5A 03 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 EE 11 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 43 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 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 BA C0 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DD 2A 01 00 35 04 06 00 34 3A 70 E5 8A AD F8 5D 65 0D F5 E7 92 56 [19:06:33]CheckFolder [19:06:33]dirname=/storage/ofd_packets [19:06:33]CheckFolder done [19:06:33]ProducePacketName [19:06:33]name=ofd_packets/00076509 [19:06:33]NVStorageSaveData ofd_packets/00076509 [19:06:33]File name is /storage/ofd_packets/00076509 [19:06:33]Write 302 bytes [19:06:33]NVStorageSaveData done [19:06:33]OFDSenderStorePacket done [19:06:33]KKMCreateOFDPacket done [19:06:33]NVStorageSaveData kkm_last_timestamp [19:06:33]File name is /storage/kkm_last_timestamp [19:06:33]Write 4 bytes [19:06:33]NVStorageSaveData done [19:06:33]ExternCall_PrintAddStr [19:06:33]wPrintStart [19:06:33]Write to MH i2c: 01 00 00 72 13 85 [19:06:33]Write i2c OK [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: 01 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: 01 07 00 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: 01 07 00 72 13 00 00 00 00 00 FF 0F 9A [19:06:33]RasterBufferAndPrint [19:06:33]line Счет N : (1)190998 [19:06:33]line ИНН: 02508201610067 [19:06:33]line Контрольно-Кассовый Чек [19:06:33]line ПРОДАЖА [19:06:33]line ТРК (МРК, ГНК) : 41 [19:06:33]line Товар: 2710124130 [19:06:33]line SUPER 92-К-5 [19:06:33]line 4.590 * 65.40 [19:06:33]line = 300.19 [19:06:33]line НДС 12% НСП 1% [19:06:33]line > о реализуемом товаре [19:06:33]line ОКРУГЛЕНИЕ: -0.19 [19:06:33]line ИТОГО: 300.00 [19:06:33]line Внесено: 300.00 [19:06:33]line СДАЧА: 0.00 [19:06:33]line НСП 1% : 2.66 [19:06:33]line НДС 12% : 31.88 [19:06:33]line Наличными: 300.00 [19:06:33]line Безнал.: 0.00 [19:06:33]line Место: АЗС № 106 "Партнер Нефть" [19:06:33]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:06:33]line СНО: Общий режим [19:06:33]line Чек 129 19.04.2024 19:06 [19:06:33]line Смена: 370 ФФД: 1.0 [19:06:33]line ЗНМ: 0300000141 [19:06:33]line РНМ: 0000000000091573 [19:06:33]line Версия ККМ: 001 [19:06:33]line ФМ: 0000000000874652 [19:06:33]line ФД: 76509 [19:06:33]line ФПД: 57425606838957 [19:06:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T190634&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76509&fm=57425606838957&tin=02508201610067®Number=0000000000091573&sum=30000 [19:06:34]OFD Sender: Processing packet 76509 [packets to send 128, broken 127] [19:06:34]ProducePacketName [19:06:34]name=ofd_packets/00076509 [19:06:34]OFD Sender: To server: pG, [19:06:34]CommunicateWithHost lk.salyk.kg:30040 [19:06:34]ConnectInit lk.salyk.kg [19:06:34]written 0, free lines is 4095 [19:06:34]Write to MH i2c: 01 00 00 9C 13 AF [19:06:34]Write i2c OK [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: 01 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: 01 07 00 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: 01 07 00 9C 13 00 00 00 00 00 ED 0C AF [19:06:34]RasterBufferAndPrint [19:06:34]line [19:06:34]line [19:06:34]line [19:06:34]line [19:06:34]line [19:06:34]written 0, free lines is 3313 [19:06:34]MH_Cut [19:06:34]Write to MH i2c: D1 01 00 A3 13 01 88 [19:06:34]Write i2c OK [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: D1 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: D1 01 00 [19:06:34]MH_I2C_Read... [19:06:34]Read from MH i2c: D1 01 00 A3 13 00 87 [19:06:34]Write to MH i2c: 01 00 00 A4 13 B7 [19:06:34]Write i2c OK [19:06:34]MH_I2C_Read... [19:06:35]*** Cut start [19:06:35]*** Partial cut [19:06:35]*** CUTSNS_PIN = 1 [19:06:35]*** CUTSNS_PIN = 0 [19:06:35]Connected sock=11 [19: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 34 36 35 32 10 01 00 00 0A B5 08 01 53 07 5A 03 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 EE 11 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 43 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 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 BA C0 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DD 2A 01 00 35 04 06 00 34 3A 70 E5 8A AD F8 5D 65 0D F5 E7 92 56 [19:06:35]*** Brake cut motor [19:06:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 9C B2 47 00 0C 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DD 2A 01 00 F4 03 04 00 46 68 22 66 B6 04 01 00 00 0F 98 26 01 4B AB 0E C9 [19:06:35]CommunicateWithHost err = 0 [19:06:35]CheckOFDResponse [19:06:35]1017 (14) - 77093643461234 [19:06:35]1041 (16) - 0000000000874652 [19:06:35]1040 (4) - 76509 [19:06:35]1012 (4) - 19.04.2024 12:49 [19:06:35]1206 (1) - 0 [19:06:35]OFD Sender: Remove packet 76509 [19:06:35]ProducePacketName [19:06:35]name=ofd_packets/00076509 [19:06:35]NVStorageDeleteData [19:06:35]Read from MH i2c: 01 [19:06:35]MH_I2C_Read... [19:06:35]*** Stop cut motor [19:06:35]*** Cut end [19:06:35]Read from MH i2c: 01 07 00 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: 01 07 00 A4 13 00 00 00 00 00 FF 0F CC [19:06:35]process_action close_receipt done [19:06:35]requested_data is exist [19:06:35]produce_requested_data [19:06:35]requested_item fm.sn is exist - process it [19:06:35]wFMCommunicate request_size=4 [19:06:35]MH_SAM_APDU [19:06:35]CAPDU: 80 11 00 00 [19:06:35]Write to MH i2c: E2 08 00 A5 13 80 11 00 00 00 00 00 00 32 [19:06:35]Write i2c OK [19:06:35]MH_I2C_Read... [19:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:36]Read from MH i2c: E2 [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: E2 17 00 [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: E2 17 00 A5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 85 [19:06:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:06:36]wFMCommunicate OK [19:06:36]requested_item fd.num is exist - process it [19:06:36]SAM_PROTO_GetFieldsCounters [19:06:36]wFMCommunicate request_size=4 [19:06:36]MH_SAM_APDU [19:06:36]CAPDU: 80 13 00 00 [19:06:36]Write to MH i2c: E2 08 00 A6 13 80 13 00 00 00 00 00 00 35 [19:06:36]Write i2c OK [19:06:36]MH_I2C_Read... [19:06:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:36]Read from MH i2c: E2 [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: E2 62 00 [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: E2 62 00 A6 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DD 2A 01 00 0E 04 04 00 72 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 54 [19: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DD 2A 01 00 0E 04 04 00 72 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 [19:06:36]wFMCommunicate OK [19:06:36]SAM_PROTO_GetFieldsCounters done [19:06:36]requested_item shift.num is exist - process it [19:06:36]requested_item shift.opened is exist - process it [19:06:36]req_shift_opened [19:06:36]FM_GetShiftState [19:06:36]SAM_PROTO_GetShiftState [19:06:36]wFMCommunicate request_size=4 [19:06:36]MH_SAM_APDU [19:06:36]CAPDU: 80 13 01 00 [19:06:36]Write to MH i2c: E2 08 00 A7 13 80 13 01 00 00 00 00 00 37 [19:06:36]Write i2c OK [19:06:36]MH_I2C_Read... [19:06:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:36]Read from MH i2c: E2 [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: E2 0E 00 [19:06:36]MH_I2C_Read... [19:06:36]Read from MH i2c: E2 0E 00 A7 13 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 1C [19:06:36]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:06:36]wFMCommunicate OK [19:06:36]SAM_PROTO_GetShiftState done [19:06:36]FM_GetShiftState done [19:06:36]req_shift_opened done [19:06:36]requested_item shift.open_date is exist - process it [19:06:36]req_shift_open_date [19:06:36]req_shift_open_date done [19:06:36]produce_requested_data done [19:06:36]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76509,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [19:06:36]process_action_free close_receipt [19:06:36]json_value_free [19:06:36]json_value_free done [19:06:36]process_json_proto returns [19:06:36]Send response to host [19:06:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76509,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [19:06:36]free response buf [19:06:36]execute_script done [19:06:36]execute_script returns [19:06:36]free content buf [19:06:36]Sock 9.Close socket [19:06:36]Sock 9.Thread stoped [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11: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:09]accept exits with 7 [19:12:09]New connection [19:12:09]New thread 3066936676 created [19:12:09]Thread 3067080036 joined [19:12:09]Waiting for new connection... [19:12:09] Sock 7.Parse request [19:12:09]Sock 7.Check first char [19:12:09]Sock 7.First char is OK [19:12:09]request: POST /json_proto HTTP/1.0 [19:12:09]Method: POST [19:12:09]URL: /json_proto [19:12:09]Method is POST - this is cgi request [19:12:09]url: /json_proto [19:12:09]query_string will be loaded in cgi processing [19:12:09]execute_cgi json_proto POST (null) [19:12:09]execute_cgi path=json_proto method=POST [19:12:09]POST find Content-Length [19:12:09]Host: 172.17.62.5:8080 [19:12:09]Content-Length: 978 [19:12:09]Content-Type: application/json [19:12:09] [19:12:09]POST finish read [19:12:09]Found Content-Length = 978 [19:12:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)190999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.82 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:09]execute_script... [19:12: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)190999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.82 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:09]POST & json_proto [19:12:09]process_json_proto [19:12:09]json parsed OK: [19:12:09]protocol is kg_v1.0 [19:12:09]action value=close_receipt [19:12:09]process_action close_receipt [19:12:09]cmd_close_receipt [19:12:09]MH_GetDate [19:12:09]Write to MH i2c: F0 00 00 A8 13 AA [19:12:09]Write i2c OK [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: F0 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: F0 09 00 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: F0 09 00 A8 13 00 0B C2 22 66 F4 E9 65 64 AE [19:12:09]GetLastDocTimeStamp 1713553594 [19:12:09]current date 1713553931 [19:12:09]FM_GetShiftState [19:12:09]SAM_PROTO_GetShiftState [19:12:09]wFMCommunicate request_size=4 [19:12:09]MH_SAM_APDU [19:12:09]CAPDU: 80 13 01 00 [19:12:09]Write to MH i2c: E2 08 00 A9 13 80 13 01 00 00 00 00 00 39 [19:12:09]Write i2c OK [19:12:09]MH_I2C_Read... [19:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:09]Read from MH i2c: E2 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: E2 0E 00 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: E2 0E 00 A9 13 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 1E [19:12:09]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:12:09]wFMCommunicate OK [19:12:09]SAM_PROTO_GetShiftState done [19:12:09]FM_GetShiftState done [19:12:09]opened in 1713486233 [19:12:09]opened+sec_in_day 1713572633 [19:12:09]quantity*price = 200025 [19:12:09]sum+1 = 200027 [19:12:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 130 19.04.2024 19:12 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 27.82 сом ФМ: 0000000000874652 ФД: 76510 ФПД: 175080416517023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T191211&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76510&fm=175080416517023&tin=02508201610067®Number=0000000000091573&sum=200000 [19:12:10]StoreToDocumentArchive [19:12:10]shift 370 fd 76510 [19:12:10]save to /storage/0370/doc_00076510 [19:12:10]save last doc name /storage/0370/doc_00076510 to /storage/kkm_last_doc_name [19:12:10]save OK [19:12:10]Clear old archive folders... [19:12:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:12:10]tlvbuf is 00A04B30 [19:12:10]SAM_PROTO_ClearQueue [19:12:10]wFMCommunicate request_size=4 [19:12:10]MH_SAM_APDU [19:12:10]CAPDU: 80 09 00 00 [19:12:10]Write to MH i2c: E2 08 00 B6 13 80 09 00 00 00 00 00 00 3B [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 B6 13 00 90 00 3D [19:12:10]RAPDU: 90 00 [19:12:10]wFMCommunicate OK [19:12:10]SAM_PROTO_ClearQueue done [19:12:10]KKMCreateOFDPacket [19:12:10]OFDProtocolAddRootSTLVToBuf [19:12:10]FM_MakeSignedData [19:12:10]FM_MakeSignedData [19:12:10]SAM_PROTO_SignData [19:12:10]wFMCommunicate request_size=4 [19:12:10]MH_SAM_APDU [19:12:10]CAPDU: 80 0D 01 02 [19:12:10]Write to MH i2c: E2 08 00 B7 13 80 0D 01 02 00 00 00 00 43 [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 B7 13 00 90 00 3E [19:12:10]RAPDU: 90 00 [19:12:10]wFMCommunicate OK [19:12:10]wFMCommunicate request_size=255 [19:12:10]MH_SAM_APDU [19:12: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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 0B C2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DE 2A 01 00 35 04 06 00 9F 3C 16 08 [19:12:10]Write to MH i2c: E2 02 01 B8 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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 0B C2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DE 2A 01 00 35 04 06 00 9F 3C 16 08 00 00 7C [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 B8 13 00 90 00 3F [19:12:10]RAPDU: 90 00 [19:12:10]wFMCommunicate OK [19:12:10]wFMCommunicate request_size=7 [19:12:10]MH_SAM_APDU [19:12:10]CAPDU: 80 0D 02 02 02 9B 9F [19:12:10]Write to MH i2c: E2 0A 00 B9 13 80 0D 02 02 02 00 9B 9F 00 00 84 [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 B9 13 00 90 00 40 [19:12:10]RAPDU: 90 00 [19:12:10]wFMCommunicate OK [19:12:10]wFMCommunicate request_size=4 [19:12:10]MH_SAM_APDU [19:12:10]CAPDU: 80 0D 03 02 [19:12:10]Write to MH i2c: E2 08 00 BA 13 80 0D 03 02 00 00 00 00 48 [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 0B 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 0B 00 BA 13 00 31 F5 06 8D DC C9 77 2B 90 00 49 [19:12:10]RAPDU: 31 F5 06 8D DC C9 77 2B 90 00 [19:12:10]wFMCommunicate OK [19:12:10]SAM_PROTO_SignData done [19:12:10]FM_MakeSignedData done [19:12:10]CreateOFDProtocolMessage [19:12:10]wFMCommunicate request_size=4 [19:12:10]MH_SAM_APDU [19:12:10]CAPDU: 80 11 00 00 [19:12:10]Write to MH i2c: E2 08 00 BB 13 80 11 00 00 00 00 00 00 48 [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 17 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 17 00 BB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9B [19:12:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:12:10]wFMCommunicate OK [19:12:10]CreateOFDProtocolMessage done [19:12:10]OFDSenderStorePacket 76510 [19:12:10]StoreOFDPacket docnum=76510 [19:12:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 50 F0 04 01 DC 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 0B C2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DE 2A 01 00 35 04 06 00 9F 3C 16 08 9B 9F 31 F5 06 8D DC C9 77 2B [19:12:10]CheckFolder [19:12:10]dirname=/storage/ofd_packets [19:12:10]CheckFolder done [19:12:10]ProducePacketName [19:12:10]name=ofd_packets/00076510 [19:12:10]NVStorageSaveData ofd_packets/00076510 [19:12:10]File name is /storage/ofd_packets/00076510 [19:12:10]Write 298 bytes [19:12:10]NVStorageSaveData done [19:12:10]OFDSenderStorePacket done [19:12:10]KKMCreateOFDPacket done [19:12:10]NVStorageSaveData kkm_last_timestamp [19:12:10]File name is /storage/kkm_last_timestamp [19:12:10]Write 4 bytes [19:12:10]NVStorageSaveData done [19:12:10]ExternCall_PrintAddStr [19:12:10]wPrintStart [19:12:10]Write to MH i2c: 01 00 00 BC 13 CF [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: 01 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: 01 07 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: 01 07 00 BC 13 00 00 00 00 00 FF 0F E4 [19:12:10]RasterBufferAndPrint [19:12:10]line Счет N : (1)190999 [19:12:10]line ИНН: 02508201610067 [19:12:10]line Контрольно-Кассовый Чек [19:12:10]line ПРОДАЖА [19:12:10]line ТРК (МРК, ГНК) : 13 [19:12:10]line Товар: 2710194210 [19:12:10]line ДТ-К-5 [19:12:10]line 27.820 * 71.90 [19:12:10]line = 2000.26 [19:12:10]line НДС 12% НСП 1% [19:12:10]line > о реализуемом товаре [19:12:10]line ОКРУГЛЕНИЕ: -0.26 [19:12:10]line ИТОГО: 2000.00 [19:12:10]line Внесено: 2000.00 [19:12:10]line СДАЧА: 0.00 [19:12:10]line НСП 1% : 17.70 [19:12:10]line НДС 12% : 212.42 [19:12:10]line Наличными: 2000.00 [19:12:10]line Безнал.: 0.00 [19:12:10]line Место: АЗС № 106 "Партнер Нефть" [19:12:10]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:12:10]line СНО: Общий режим [19:12:10]line Чек 130 19.04.2024 19:12 [19:12:10]line Смена: 370 ФФД: 1.0 [19:12:10]line ЗНМ: 0300000141 [19:12:10]line РНМ: 0000000000091573 [19:12:10]line Версия ККМ: 001 [19:12:10]line [19:12:10]line Дисконтная программа [19:12:10]line ДТ [19:12:10]line номер 106 [19:12:10]line сэкономлено 27.82 сом [19:12:10]line ФМ: 0000000000874652 [19:12:10]line ФД: 76510 [19:12:10]line ФПД: 175080416517023 [19:12:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T191211&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76510&fm=175080416517023&tin=02508201610067®Number=0000000000091573&sum=200000 [19:12:11]OFD Sender: Processing packet 76510 [packets to send 128, broken 127] [19:12:11]ProducePacketName [19:12:11]name=ofd_packets/00076510 [19:12:11]OFD Sender: To server: pG, [19:12:11]CommunicateWithHost lk.salyk.kg:30040 [19:12:11]ConnectInit lk.salyk.kg [19:12:11]written 0, free lines is 4095 [19:12:11]Connected sock=10 [19:12:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 50 F0 04 01 DC 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 0B C2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DE 2A 01 00 35 04 06 00 9F 3C 16 08 9B 9F 31 F5 06 8D DC C9 77 2B [19:12:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 9C 0F 47 00 08 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 34 36 35 32 10 04 04 00 DE 2A 01 00 F4 03 04 00 95 69 22 66 B6 04 01 00 00 2E 91 17 E9 ED 5A 6A C7 [19:12:11]CommunicateWithHost err = 0 [19:12:11]CheckOFDResponse [19:12:11]1017 (14) - 77093643461234 [19:12:11]1041 (16) - 0000000000874652 [19:12:11]1040 (4) - 76510 [19:12:11]1012 (4) - 19.04.2024 12:54 [19:12:11]1206 (1) - 0 [19:12:11]OFD Sender: Remove packet 76510 [19:12:11]ProducePacketName [19:12:11]name=ofd_packets/00076510 [19:12:11]NVStorageDeleteData [19:12:11]Write to MH i2c: 01 00 00 EB 13 FE [19:12:11]Write i2c OK [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: 01 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: 01 07 00 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: 01 07 00 EB 13 00 00 00 00 00 A8 0C B9 [19:12:11]RasterBufferAndPrint [19:12:11]line [19:12:11]line [19:12:11]line [19:12:11]line [19:12:11]line [19:12:11]written 0, free lines is 3247 [19:12:11]MH_Cut [19:12:11]Write to MH i2c: D1 01 00 F2 13 01 D7 [19:12:11]Write i2c OK [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: D1 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: D1 01 00 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: D1 01 00 F2 13 00 D6 [19:12:11]Write to MH i2c: 01 00 00 F3 13 06 [19:12:11]Write i2c OK [19:12:11]MH_I2C_Read... [19:12:11]OFD Sender: No OFD packet to send [19:12:12]*** Cut start [19:12:12]*** Partial cut [19:12:12]*** CUTSNS_PIN = 1 [19:12:12]*** CUTSNS_PIN = 0 [19:12:12]*** Brake cut motor [19:12:13]Read from MH i2c: 01 [19:12:13]MH_I2C_Read... [19:12:13]*** Stop cut motor [19:12:13]*** Cut end [19:12:13]Read from MH i2c: 01 07 00 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: 01 07 00 F3 13 00 00 00 00 00 FF 0F 1B [19:12:13]process_action close_receipt done [19:12:13]requested_data is exist [19:12:13]produce_requested_data [19:12:13]requested_item fm.sn is exist - process it [19:12:13]wFMCommunicate request_size=4 [19:12:13]MH_SAM_APDU [19:12:13]CAPDU: 80 11 00 00 [19:12:13]Write to MH i2c: E2 08 00 F4 13 80 11 00 00 00 00 00 00 81 [19:12:13]Write i2c OK [19:12:13]MH_I2C_Read... [19:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:13]Read from MH i2c: E2 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: E2 17 00 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: E2 17 00 F4 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D4 [19:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:12:13]wFMCommunicate OK [19:12:13]requested_item fd.num is exist - process it [19:12:13]SAM_PROTO_GetFieldsCounters [19:12:13]wFMCommunicate request_size=4 [19:12:13]MH_SAM_APDU [19:12:13]CAPDU: 80 13 00 00 [19:12:13]Write to MH i2c: E2 08 00 F5 13 80 13 00 00 00 00 00 00 84 [19:12:13]Write i2c OK [19:12:13]MH_I2C_Read... [19:12:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:13]Read from MH i2c: E2 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: E2 62 00 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: E2 62 00 F5 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DE 2A 01 00 0E 04 04 00 72 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 A7 [19:12:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DE 2A 01 00 0E 04 04 00 72 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 [19:12:13]wFMCommunicate OK [19:12:13]SAM_PROTO_GetFieldsCounters done [19:12:13]requested_item shift.num is exist - process it [19:12:13]requested_item shift.opened is exist - process it [19:12:13]req_shift_opened [19:12:13]FM_GetShiftState [19:12:13]SAM_PROTO_GetShiftState [19:12:13]wFMCommunicate request_size=4 [19:12:13]MH_SAM_APDU [19:12:13]CAPDU: 80 13 01 00 [19:12:13]Write to MH i2c: E2 08 00 F6 13 80 13 01 00 00 00 00 00 86 [19:12:13]Write i2c OK [19:12:13]MH_I2C_Read... [19:12:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:13]Read from MH i2c: E2 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: E2 0E 00 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: E2 0E 00 F6 13 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 6B [19:12:13]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:12:13]wFMCommunicate OK [19:12:13]SAM_PROTO_GetShiftState done [19:12:13]FM_GetShiftState done [19:12:13]req_shift_opened done [19:12:13]requested_item shift.open_date is exist - process it [19:12:13]req_shift_open_date [19:12:13]req_shift_open_date done [19:12:13]produce_requested_data done [19:12:13]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76510,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [19:12:13]process_action_free close_receipt [19:12:13]json_value_free [19:12:13]json_value_free done [19:12:13]process_json_proto returns [19:12:13]Send response to host [19:12:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76510,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [19:12:13]free response buf [19:12:13]execute_script done [19:12:13]execute_script returns [19:12:13]free content buf [19:12:13]Sock 7.Close socket [19:12:13]Sock 7.Thread stoped [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:01]accept exits with 9 [19:14:01]New connection [19:14:01]New thread 3067080036 created [19:14:01]Thread 3066936676 joined [19:14:01]Waiting for new connection... [19:14:01] Sock 9.Parse request [19:14:01]Sock 9.Check first char [19:14:01]Sock 9.First char is OK [19:14:01]request: POST /json_proto HTTP/1.0 [19:14:01]Method: POST [19:14:01]URL: /json_proto [19:14:01]Method is POST - this is cgi request [19:14:01]url: /json_proto [19:14:01]query_string will be loaded in cgi processing [19:14:01]execute_cgi json_proto POST (null) [19:14:01]execute_cgi path=json_proto method=POST [19:14:01]POST find Content-Length [19:14:01]Host: 172.17.62.5:8080 [19:14:01]Content-Length: 978 [19:14:01]Content-Type: application/json [19:14:01] [19:14:01]POST finish read [19:14:01]Found Content-Length = 978 [19:14:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 41.73 \u0441\u043E\u043C", "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" ] } } [19:14:01]execute_script... [19:14: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)191000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 41.73 \u0441\u043E\u043C", "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" ] } } [19:14:01]POST & json_proto [19:14:01]process_json_proto [19:14:01]json parsed OK: [19:14:01]protocol is kg_v1.0 [19:14:01]action value=close_receipt [19:14:01]process_action close_receipt [19:14:01]cmd_close_receipt [19:14:01]MH_GetDate [19:14:01]Write to MH i2c: F0 00 00 F7 13 F9 [19:14:01]Write i2c OK [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: F0 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: F0 09 00 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: F0 09 00 F7 13 00 7B C2 22 66 F4 E9 65 64 6D [19:14:01]GetLastDocTimeStamp 1713553931 [19:14:01]current date 1713554043 [19:14:01]FM_GetShiftState [19:14:01]SAM_PROTO_GetShiftState [19:14:01]wFMCommunicate request_size=4 [19:14:01]MH_SAM_APDU [19:14:01]CAPDU: 80 13 01 00 [19:14:01]Write to MH i2c: E2 08 00 F8 13 80 13 01 00 00 00 00 00 88 [19:14:01]Write i2c OK [19:14:01]MH_I2C_Read... [19:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:01]Read from MH i2c: E2 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: E2 0E 00 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: E2 0E 00 F8 13 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 6D [19:14:01]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:14:01]wFMCommunicate OK [19:14:01]SAM_PROTO_GetShiftState done [19:14:01]FM_GetShiftState done [19:14:01]opened in 1713486233 [19:14:01]opened+sec_in_day 1713572633 [19:14:01]quantity*price = 300038 [19:14:01]sum+1 = 300040 [19:14:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 131 19.04.2024 19:14 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 41.73 сом ФМ: 0000000000874652 ФД: 76511 ФПД: 40783522080227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T191403&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76511&fm=40783522080227&tin=02508201610067®Number=0000000000091573&sum=300000 [19:14:02]StoreToDocumentArchive [19:14:02]shift 370 fd 76511 [19:14:02]save to /storage/0370/doc_00076511 [19:14:02]save last doc name /storage/0370/doc_00076511 to /storage/kkm_last_doc_name [19:14:02]save OK [19:14:02]Clear old archive folders... [19:14:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:14:02]tlvbuf is B6EC7830 [19:14:02]SAM_PROTO_ClearQueue [19:14:02]wFMCommunicate request_size=4 [19:14:02]MH_SAM_APDU [19:14:02]CAPDU: 80 09 00 00 [19:14:02]Write to MH i2c: E2 08 00 05 14 80 09 00 00 00 00 00 00 8B [19:14:02]Write i2c OK [19:14:02]MH_I2C_Read... [19:14:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:02]Read from MH i2c: E2 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 03 00 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 03 00 05 14 00 90 00 8D [19:14:02]RAPDU: 90 00 [19:14:02]wFMCommunicate OK [19:14:02]SAM_PROTO_ClearQueue done [19:14:02]KKMCreateOFDPacket [19:14:02]OFDProtocolAddRootSTLVToBuf [19:14:02]FM_MakeSignedData [19:14:02]FM_MakeSignedData [19:14:02]SAM_PROTO_SignData [19:14:02]wFMCommunicate request_size=4 [19:14:02]MH_SAM_APDU [19:14:02]CAPDU: 80 0D 01 02 [19:14:02]Write to MH i2c: E2 08 00 06 14 80 0D 01 02 00 00 00 00 93 [19:14:02]Write i2c OK [19:14:02]MH_I2C_Read... [19:14:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:02]Read from MH i2c: E2 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 03 00 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 03 00 06 14 00 90 00 8E [19:14:02]RAPDU: 90 00 [19:14:02]wFMCommunicate OK [19:14:02]wFMCommunicate request_size=255 [19:14:02]MH_SAM_APDU [19:14: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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 7B C2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DF 2A 01 00 35 04 06 00 25 17 A7 58 [19:14:02]Write to MH i2c: E2 02 01 07 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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 7B C2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DF 2A 01 00 35 04 06 00 25 17 A7 58 00 00 AF [19:14:02]Write i2c OK [19:14:02]MH_I2C_Read... [19:14:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:03]Read from MH i2c: E2 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: E2 03 00 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: E2 03 00 07 14 00 90 00 8F [19:14:03]RAPDU: 90 00 [19:14:03]wFMCommunicate OK [19:14:03]wFMCommunicate request_size=7 [19:14:03]MH_SAM_APDU [19:14:03]CAPDU: 80 0D 02 02 02 A5 E3 [19:14:03]Write to MH i2c: E2 0A 00 08 14 80 0D 02 02 02 00 A5 E3 00 00 22 [19:14:03]Write i2c OK [19:14:03]MH_I2C_Read... [19:14:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:03]Read from MH i2c: E2 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: E2 03 00 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: E2 03 00 08 14 00 90 00 90 [19:14:03]RAPDU: 90 00 [19:14:03]wFMCommunicate OK [19:14:03]wFMCommunicate request_size=4 [19:14:03]MH_SAM_APDU [19:14:03]CAPDU: 80 0D 03 02 [19:14:03]Write to MH i2c: E2 08 00 09 14 80 0D 03 02 00 00 00 00 98 [19:14:03]Write i2c OK [19:14:03]MH_I2C_Read... [19:14:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:03]Read from MH i2c: E2 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: E2 0B 00 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: E2 0B 00 09 14 00 90 2C 8D 5F C0 2B 20 A6 90 00 F2 [19:14:03]RAPDU: 90 2C 8D 5F C0 2B 20 A6 90 00 [19:14:03]wFMCommunicate OK [19:14:03]SAM_PROTO_SignData done [19:14:03]FM_MakeSignedData done [19:14:03]CreateOFDProtocolMessage [19:14:03]wFMCommunicate request_size=4 [19:14:03]MH_SAM_APDU [19:14:03]CAPDU: 80 11 00 00 [19:14:03]Write to MH i2c: E2 08 00 0A 14 80 11 00 00 00 00 00 00 98 [19:14:03]Write i2c OK [19:14:03]MH_I2C_Read... [19:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:03]Read from MH i2c: E2 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: E2 17 00 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: E2 17 00 0A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EB [19:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:14:03]wFMCommunicate OK [19:14:03]CreateOFDProtocolMessage done [19:14:03]OFDSenderStorePacket 76511 [19:14:03]StoreOFDPacket docnum=76511 [19:14:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 76 15 04 01 3C 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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 7B C2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DF 2A 01 00 35 04 06 00 25 17 A7 58 A5 E3 90 2C 8D 5F C0 2B 20 A6 [19:14:03]CheckFolder [19:14:03]dirname=/storage/ofd_packets [19:14:03]CheckFolder done [19:14:03]ProducePacketName [19:14:03]name=ofd_packets/00076511 [19:14:03]NVStorageSaveData ofd_packets/00076511 [19:14:03]File name is /storage/ofd_packets/00076511 [19:14:03]Write 298 bytes [19:14:03]NVStorageSaveData done [19:14:03]OFDSenderStorePacket done [19:14:03]KKMCreateOFDPacket done [19:14:03]NVStorageSaveData kkm_last_timestamp [19:14:03]File name is /storage/kkm_last_timestamp [19:14:03]Write 4 bytes [19:14:03]NVStorageSaveData done [19:14:03]ExternCall_PrintAddStr [19:14:03]wPrintStart [19:14:03]Write to MH i2c: 01 00 00 0B 14 1F [19:14:03]Write i2c OK [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: 01 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: 01 07 00 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: 01 07 00 0B 14 00 00 00 00 00 FF 0F 34 [19:14:03]RasterBufferAndPrint [19:14:03]line Счет N : (1)191000 [19:14:03]line ИНН: 02508201610067 [19:14:03]line Контрольно-Кассовый Чек [19:14:03]line ПРОДАЖА [19:14:03]line ТРК (МРК, ГНК) : 23 [19:14:03]line Товар: 2710194210 [19:14:03]line ДТ-К-5 [19:14:03]line 41.730 * 71.90 [19:14:03]line = 3000.39 [19:14:03]line НДС 12% НСП 1% [19:14:03]line > о реализуемом товаре [19:14:03]line ОКРУГЛЕНИЕ: -0.39 [19:14:03]line ИТОГО: 3000.00 [19:14:03]line Внесено: 3000.00 [19:14:03]line СДАЧА: 0.00 [19:14:03]line НСП 1% : 26.55 [19:14:03]line НДС 12% : 318.62 [19:14:03]line Наличными: 3000.00 [19:14:03]line Безнал.: 0.00 [19:14:03]line Место: АЗС № 106 "Партнер Нефть" [19:14:03]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:14:03]line СНО: Общий режим [19:14:03]line Чек 131 19.04.2024 19:14 [19:14:03]line Смена: 370 ФФД: 1.0 [19:14:03]line ЗНМ: 0300000141 [19:14:03]line РНМ: 0000000000091573 [19:14:03]line Версия ККМ: 001 [19:14:03]line [19:14:03]line Дисконтная программа [19:14:03]line ДТ [19:14:03]line номер 106 [19:14:03]line сэкономлено 41.73 сом [19:14:03]line ФМ: 0000000000874652 [19:14:03]line ФД: 76511 [19:14:03]line ФПД: 40783522080227 [19:14:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T191403&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76511&fm=40783522080227&tin=02508201610067®Number=0000000000091573&sum=300000 [19:14:03]OFD Sender: Processing packet 76511 [packets to send 128, broken 127] [19:14:03]ProducePacketName [19:14:03]name=ofd_packets/00076511 [19:14:03]OFD Sender: To server: pG, [19:14:03]CommunicateWithHost lk.salyk.kg:30040 [19:14:03]ConnectInit lk.salyk.kg [19:14:03]written 0, free lines is 4095 [19:14:03]Connected sock=10 [19:14:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 76 15 04 01 3C 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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 7B C2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DF 2A 01 00 35 04 06 00 25 17 A7 58 A5 E3 90 2C 8D 5F C0 2B 20 A6 [19:14:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A8 B0 47 00 59 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 34 36 35 32 10 04 04 00 DF 2A 01 00 F4 03 04 00 06 6A 22 66 B6 04 01 00 00 2F 6C 76 63 CE 01 C2 FE [19:14:04]CommunicateWithHost err = 0 [19:14:04]CheckOFDResponse [19:14:04]1017 (14) - 77093643461234 [19:14:04]1041 (16) - 0000000000874652 [19:14:04]1040 (4) - 76511 [19:14:04]1012 (4) - 19.04.2024 12:56 [19:14:04]1206 (1) - 0 [19:14:04]OFD Sender: Remove packet 76511 [19:14:04]ProducePacketName [19:14:04]name=ofd_packets/00076511 [19:14:04]NVStorageDeleteData [19:14:04]Write to MH i2c: 01 00 00 3A 14 4E [19:14:04]Write i2c OK [19:14:04]MH_I2C_Read... [19:14:04]Read from MH i2c: 01 [19:14:04]MH_I2C_Read... [19:14:04]Read from MH i2c: 01 07 00 [19:14:04]MH_I2C_Read... [19:14:04]Read from MH i2c: 01 07 00 3A 14 00 00 00 00 00 A9 0C 0A [19:14:04]RasterBufferAndPrint [19:14:04]line [19:14:04]line [19:14:04]line [19:14:04]line [19:14:04]line [19:14:04]written 0, free lines is 3247 [19:14:04]MH_Cut [19:14:04]Write to MH i2c: D1 01 00 41 14 01 27 [19:14:04]Write i2c OK [19:14:04]MH_I2C_Read... [19:14:04]Read from MH i2c: D1 [19:14:04]MH_I2C_Read... [19:14:04]Read from MH i2c: D1 01 00 [19:14:04]MH_I2C_Read... [19:14:04]Read from MH i2c: D1 01 00 41 14 00 26 [19:14:04]Write to MH i2c: 01 00 00 42 14 56 [19:14:04]Write i2c OK [19:14:04]MH_I2C_Read... [19:14:04]OFD Sender: No OFD packet to send [19:14:04]*** Cut start [19:14:04]*** Partial cut [19:14:04]*** CUTSNS_PIN = 1 [19:14:05]*** CUTSNS_PIN = 0 [19:14:05]*** Brake cut motor [19:14:05]Read from MH i2c: 01 [19:14:05]MH_I2C_Read... [19:14:05]*** Stop cut motor [19:14:05]*** Cut end [19:14:05]Read from MH i2c: 01 07 00 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: 01 07 00 42 14 00 00 00 00 00 FF 0F 6B [19:14:05]process_action close_receipt done [19:14:05]requested_data is exist [19:14:05]produce_requested_data [19:14:05]requested_item fm.sn is exist - process it [19:14:05]wFMCommunicate request_size=4 [19:14:05]MH_SAM_APDU [19:14:05]CAPDU: 80 11 00 00 [19:14:05]Write to MH i2c: E2 08 00 43 14 80 11 00 00 00 00 00 00 D1 [19:14:05]Write i2c OK [19:14:05]MH_I2C_Read... [19:14:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:05]Read from MH i2c: E2 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: E2 17 00 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: E2 17 00 43 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 24 [19:14:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:14:05]wFMCommunicate OK [19:14:05]requested_item fd.num is exist - process it [19:14:05]SAM_PROTO_GetFieldsCounters [19:14:05]wFMCommunicate request_size=4 [19:14:05]MH_SAM_APDU [19:14:05]CAPDU: 80 13 00 00 [19:14:05]Write to MH i2c: E2 08 00 44 14 80 13 00 00 00 00 00 00 D4 [19:14:05]Write i2c OK [19:14:05]MH_I2C_Read... [19:14:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:05]Read from MH i2c: E2 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: E2 62 00 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: E2 62 00 44 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DF 2A 01 00 0E 04 04 00 72 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 FB [19:14: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DF 2A 01 00 0E 04 04 00 72 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 [19:14:05]wFMCommunicate OK [19:14:05]SAM_PROTO_GetFieldsCounters done [19:14:05]requested_item shift.num is exist - process it [19:14:05]requested_item shift.opened is exist - process it [19:14:05]req_shift_opened [19:14:05]FM_GetShiftState [19:14:05]SAM_PROTO_GetShiftState [19:14:05]wFMCommunicate request_size=4 [19:14:05]MH_SAM_APDU [19:14:05]CAPDU: 80 13 01 00 [19:14:05]Write to MH i2c: E2 08 00 45 14 80 13 01 00 00 00 00 00 D6 [19:14:05]Write i2c OK [19:14:05]MH_I2C_Read... [19:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:05]Read from MH i2c: E2 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: E2 0E 00 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: E2 0E 00 45 14 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 BB [19:14:05]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:14:05]wFMCommunicate OK [19:14:05]SAM_PROTO_GetShiftState done [19:14:05]FM_GetShiftState done [19:14:05]req_shift_opened done [19:14:05]requested_item shift.open_date is exist - process it [19:14:05]req_shift_open_date [19:14:05]req_shift_open_date done [19:14:05]produce_requested_data done [19:14:05]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76511,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [19:14:05]process_action_free close_receipt [19:14:05]json_value_free [19:14:05]json_value_free done [19:14:05]process_json_proto returns [19:14:05]Send response to host [19:14:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76511,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [19:14:05]free response buf [19:14:05]execute_script done [19:14:05]execute_script returns [19:14:05]free content buf [19:14:05]Sock 9.Close socket [19:14:05]Sock 9.Thread stoped [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:29]OFD Sender: No OFD packet to send [19:18:34]OFD Sender: No OFD packet to send [19:18:39]OFD Sender: No OFD packet to send [19:18:44]OFD Sender: No OFD packet to send [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:49]accept exits with 7 [19:20:49]New connection [19:20:49]New thread 3066936676 created [19:20:49]Thread 3067080036 joined [19:20:49]Waiting for new connection... [19:20:49] Sock 7.Parse request [19:20:49]Sock 7.Check first char [19:20:49]Sock 7.First char is OK [19:20:49]request: POST /json_proto HTTP/1.0 [19:20:49]Method: POST [19:20:49]URL: /json_proto [19:20:49]Method is POST - this is cgi request [19:20:49]url: /json_proto [19:20:49]query_string will be loaded in cgi processing [19:20:49]execute_cgi json_proto POST (null) [19:20:49]execute_cgi path=json_proto method=POST [19:20:49]POST find Content-Length [19:20:49]Host: 172.17.62.5:8080 [19:20:49]Content-Length: 978 [19:20:49]Content-Type: application/json [19:20:49] [19:20:49]POST finish read [19:20:49]Found Content-Length = 978 [19:20:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.310, "sum" : 1460.29, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.31 \u0441\u043E\u043C", "deposit" : 1460.00, "total" : 1460.00, "payments": [ { "type": 0, "sum" : 1460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:49]execute_script... [19:20:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.310, "sum" : 1460.29, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.31 \u0441\u043E\u043C", "deposit" : 1460.00, "total" : 1460.00, "payments": [ { "type": 0, "sum" : 1460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:49]POST & json_proto [19:20:49]process_json_proto [19:20:49]json parsed OK: [19:20:49]protocol is kg_v1.0 [19:20:49]action value=close_receipt [19:20:49]process_action close_receipt [19:20:49]cmd_close_receipt [19:20:49]MH_GetDate [19:20:49]Write to MH i2c: F0 00 00 46 14 49 [19:20:49]Write i2c OK [19:20:49]MH_I2C_Read... [19:20:49]Read from MH i2c: F0 [19:20:49]MH_I2C_Read... [19:20:49]Read from MH i2c: F0 09 00 [19:20:49]MH_I2C_Read... [19:20:49]Read from MH i2c: F0 09 00 46 14 00 13 C4 22 66 F4 E9 65 64 57 [19:20:49]GetLastDocTimeStamp 1713554043 [19:20:49]current date 1713554451 [19:20:49]FM_GetShiftState [19:20:49]SAM_PROTO_GetShiftState [19:20:49]wFMCommunicate request_size=4 [19:20:49]MH_SAM_APDU [19:20:49]CAPDU: 80 13 01 00 [19:20:49]Write to MH i2c: E2 08 00 47 14 80 13 01 00 00 00 00 00 D8 [19:20:49]Write i2c OK [19:20:49]MH_I2C_Read... [19:20:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:49]Read from MH i2c: E2 [19:20:49]MH_I2C_Read... [19:20:49]Read from MH i2c: E2 0E 00 [19:20:49]MH_I2C_Read... [19:20:49]Read from MH i2c: E2 0E 00 47 14 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 BD [19:20:49]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:20:49]wFMCommunicate OK [19:20:49]SAM_PROTO_GetShiftState done [19:20:49]FM_GetShiftState done [19:20:49]opened in 1713486233 [19:20:49]opened+sec_in_day 1713572633 [19:20:49]quantity*price = 146028 [19:20:49]sum+1 = 146030 [19:20:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 1460.00 Внесено: 1460.00 СДАЧА: 0.00 НСП 1% : 12.92 НДС 12% : 155.07 Наличными: 1460.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 132 19.04.2024 19:20 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 20.31 сом ФМ: 0000000000874652 ФД: 76512 ФПД: 28556124486376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T192051&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76512&fm=28556124486376&tin=02508201610067®Number=0000000000091573&sum=146000 [19:20:50]StoreToDocumentArchive [19:20:50]shift 370 fd 76512 [19:20:50]save to /storage/0370/doc_00076512 [19:20:50]save last doc name /storage/0370/doc_00076512 to /storage/kkm_last_doc_name [19:20:50]save OK [19:20:50]Clear old archive folders... [19:20:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:20:50]tlvbuf is B6EC7990 [19:20:50]SAM_PROTO_ClearQueue [19:20:50]wFMCommunicate request_size=4 [19:20:50]MH_SAM_APDU [19:20:50]CAPDU: 80 09 00 00 [19:20:50]Write to MH i2c: E2 08 00 54 14 80 09 00 00 00 00 00 00 DA [19:20:50]Write i2c OK [19:20:50]MH_I2C_Read... [19:20:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:50]Read from MH i2c: E2 [19:20:50]MH_I2C_Read... [19:20:50]Read from MH i2c: E2 03 00 [19:20:50]MH_I2C_Read... [19:20:50]Read from MH i2c: E2 03 00 54 14 00 90 00 DC [19:20:50]RAPDU: 90 00 [19:20:50]wFMCommunicate OK [19:20:50]SAM_PROTO_ClearQueue done [19:20:50]KKMCreateOFDPacket [19:20:50]OFDProtocolAddRootSTLVToBuf [19:20:50]FM_MakeSignedData [19:20:50]FM_MakeSignedData [19:20:50]SAM_PROTO_SignData [19:20:50]wFMCommunicate request_size=4 [19:20:50]MH_SAM_APDU [19:20:50]CAPDU: 80 0D 01 02 [19:20:50]Write to MH i2c: E2 08 00 55 14 80 0D 01 02 00 00 00 00 E2 [19:20:50]Write i2c OK [19:20:50]MH_I2C_Read... [19:20:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:50]Read from MH i2c: E2 [19:20:50]MH_I2C_Read... [19:20:50]Read from MH i2c: E2 03 00 [19:20:50]MH_I2C_Read... [19:20:50]Read from MH i2c: E2 03 00 55 14 00 90 00 DD [19:20:50]RAPDU: 90 00 [19:20:50]wFMCommunicate OK [19:20:50]wFMCommunicate request_size=255 [19:20:50]MH_SAM_APDU [19:20:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 4F 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6D 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 3C 00 00 00 00 07 04 06 00 50 3A 02 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 13 C4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E0 2A 01 00 35 04 06 00 19 F8 BD A7 [19:20:50]Write to MH i2c: E2 02 01 56 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 56 4F 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6D 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 3C 00 00 00 00 07 04 06 00 50 3A 02 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 13 C4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E0 2A 01 00 35 04 06 00 19 F8 BD A7 00 00 8D [19:20:50]Write i2c OK [19:20:50]MH_I2C_Read... [19:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:50]Read from MH i2c: E2 [19:20:50]MH_I2C_Read... [19:20:50]Read from MH i2c: E2 03 00 [19:20:50]MH_I2C_Read... [19:20:50]Read from MH i2c: E2 03 00 56 14 00 90 00 DE [19:20:50]RAPDU: 90 00 [19:20:50]wFMCommunicate OK [19:20:50]wFMCommunicate request_size=7 [19:20:50]MH_SAM_APDU [19:20:50]CAPDU: 80 0D 02 02 02 FA E8 [19:20:50]Write to MH i2c: E2 0A 00 57 14 80 0D 02 02 02 00 FA E8 00 00 CB [19:20:50]Write i2c OK [19:20:50]MH_I2C_Read... [19:20:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:51]Read from MH i2c: E2 [19:20:51]MH_I2C_Read... [19:20:51]Read from MH i2c: E2 03 00 [19:20:51]MH_I2C_Read... [19:20:51]Read from MH i2c: E2 03 00 57 14 00 90 00 DF [19:20:51]RAPDU: 90 00 [19:20:51]wFMCommunicate OK [19:20:51]wFMCommunicate request_size=4 [19:20:51]MH_SAM_APDU [19:20:51]CAPDU: 80 0D 03 02 [19:20:51]Write to MH i2c: E2 08 00 58 14 80 0D 03 02 00 00 00 00 E7 [19:20:51]Write i2c OK [19:20:51]MH_I2C_Read... [19:20:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:51]Read from MH i2c: E2 [19:20:51]MH_I2C_Read... [19:20:51]Read from MH i2c: E2 0B 00 [19:20:51]MH_I2C_Read... [19:20:51]Read from MH i2c: E2 0B 00 58 14 00 F0 6C 5E 33 21 00 A2 FE 90 00 96 [19:20:51]RAPDU: F0 6C 5E 33 21 00 A2 FE 90 00 [19:20:51]wFMCommunicate OK [19:20:51]SAM_PROTO_SignData done [19:20:51]FM_MakeSignedData done [19:20:51]CreateOFDProtocolMessage [19:20:51]wFMCommunicate request_size=4 [19:20:51]MH_SAM_APDU [19:20:51]CAPDU: 80 11 00 00 [19:20:51]Write to MH i2c: E2 08 00 59 14 80 11 00 00 00 00 00 00 E7 [19:20:51]Write i2c OK [19:20:51]MH_I2C_Read... [19:20:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:51]Read from MH i2c: E2 [19:20:51]MH_I2C_Read... [19:20:51]Read from MH i2c: E2 17 00 [19:20:51]MH_I2C_Read... [19:20:51]Read from MH i2c: E2 17 00 59 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3A [19:20:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:20:51]wFMCommunicate OK [19:20:51]CreateOFDProtocolMessage done [19:20:51]OFDSenderStorePacket 76512 [19:20:51]StoreOFDPacket docnum=76512 [19:20:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 1E 17 04 01 B1 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 4F 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6D 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 3C 00 00 00 00 07 04 06 00 50 3A 02 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 13 C4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E0 2A 01 00 35 04 06 00 19 F8 BD A7 FA E8 F0 6C 5E 33 21 00 A2 FE [19:20:51]CheckFolder [19:20:51]dirname=/storage/ofd_packets [19:20:51]CheckFolder done [19:20:51]ProducePacketName [19:20:51]name=ofd_packets/00076512 [19:20:51]NVStorageSaveData ofd_packets/00076512 [19:20:51]File name is /storage/ofd_packets/00076512 [19:20:51]Write 298 bytes [19:20:51]NVStorageSaveData done [19:20:51]OFDSenderStorePacket done [19:20:51]KKMCreateOFDPacket done [19:20:51]NVStorageSaveData kkm_last_timestamp [19:20:51]File name is /storage/kkm_last_timestamp [19:20:51]Write 4 bytes [19:20:51]NVStorageSaveData done [19:20:51]ExternCall_PrintAddStr [19:20:51]wPrintStart [19:20:51]Write to MH i2c: 01 00 00 5A 14 6E [19:20:51]Write i2c OK [19:20:51]MH_I2C_Read... [19:20:51]Read from MH i2c: 01 [19:20:51]MH_I2C_Read... [19:20:51]Read from MH i2c: 01 07 00 [19:20:51]MH_I2C_Read... [19:20:51]Read from MH i2c: 01 07 00 5A 14 00 00 00 00 00 FF 0F 83 [19:20:51]RasterBufferAndPrint [19:20:51]line Счет N : (1)191001 [19:20:51]line ИНН: 02508201610067 [19:20:51]line Контрольно-Кассовый Чек [19:20:51]line ПРОДАЖА [19:20:51]line ТРК (МРК, ГНК) : 61 [19:20:51]line Товар: 2710194210 [19:20:51]line ДТ-К-5 [19:20:51]line 20.310 * 71.90 [19:20:51]line = 1460.29 [19:20:51]line НДС 12% НСП 1% [19:20:51]line > о реализуемом товаре [19:20:51]line ОКРУГЛЕНИЕ: -0.29 [19:20:51]line ИТОГО: 1460.00 [19:20:51]line Внесено: 1460.00 [19:20:51]line СДАЧА: 0.00 [19:20:51]line НСП 1% : 12.92 [19:20:51]line НДС 12% : 155.07 [19:20:51]line Наличными: 1460.00 [19:20:51]line Безнал.: 0.00 [19:20:51]line Место: АЗС № 106 "Партнер Нефть" [19:20:51]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:20:51]line СНО: Общий режим [19:20:51]line Чек 132 19.04.2024 19:20 [19:20:51]line Смена: 370 ФФД: 1.0 [19:20:51]line ЗНМ: 0300000141 [19:20:51]line РНМ: 0000000000091573 [19:20:51]line Версия ККМ: 001 [19:20:51]line [19:20:51]line Дисконтная программа [19:20:51]line ДТ [19:20:51]line номер 106 [19:20:51]line сэкономлено 20.31 сом [19:20:51]line ФМ: 0000000000874652 [19:20:51]line ФД: 76512 [19:20:51]line ФПД: 28556124486376 [19:20:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T192051&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76512&fm=28556124486376&tin=02508201610067®Number=0000000000091573&sum=146000 [19:20:51]OFD Sender: Processing packet 76512 [packets to send 128, broken 127] [19:20:51]ProducePacketName [19:20:51]name=ofd_packets/00076512 [19:20:51]OFD Sender: To server: pG, [19:20:51]CommunicateWithHost lk.salyk.kg:30040 [19:20:51]ConnectInit lk.salyk.kg [19:20:51]written 0, free lines is 4095 [19:20:51]Write to MH i2c: 01 00 00 89 14 9D [19:20:51]Write i2c OK [19:20:51]MH_I2C_Read... [19:20:51]Read from MH i2c: 01 [19:20:51]MH_I2C_Read... [19:20:51]Read from MH i2c: 01 07 00 [19:20:51]MH_I2C_Read... [19:20:51]Read from MH i2c: 01 07 00 89 14 00 00 00 00 00 94 0C 44 [19:20:51]RasterBufferAndPrint [19:20:51]line [19:20:51]line [19:20:51]line [19:20:51]line [19:20:51]line [19:20:51]written 0, free lines is 3226 [19:20:51]MH_Cut [19:20:51]Write to MH i2c: D1 01 00 90 14 01 76 [19:20:51]Write i2c OK [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [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 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 6F [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [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 54000000005725CA (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: 29154033+1684400628=1713554661 [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 = 0x33540623 [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 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 70 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [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 E5 C4 22 66 F4 E9 65 64 D6 [19:24:21]Current date/time: 19.04.2024 19:24 [19:24:21]FM_Init [19:24:21]wFMConnect [19:24:21]MH_SAM_On [19:24:21]Write to MH i2c: E0 00 00 08 00 E7 [19:24:21]Write i2c OK [19:24:21]MH_I2C_Read... [19:24:21]*** iso7816_init finished! [19:24:21]*** atr: [19:24:21]*** 0F 3B D5 18 FF 81 91 FE [19:24:21]*** 1F C3 80 73 C8 21 10 0A [19:24:21]*** 00 00 00 00 00 00 00 00 [19:24:21]*** 00 00 00 00 00 00 00 00 [19:24:21]*** 00 00 00 00 00 00 00 00 [19:24:21]*** 00 00 00 00 00 00 00 00 [19:24:21]*** 00 00 00 00 00 00 00 00 [19:24:21]*** 00 00 00 00 00 00 00 00 [19:24:21]Read from MH i2c: E0 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E0 10 00 [19:24:21]MH_I2C_Read... [19:24:21]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:24:21]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [19:24:21]wFMCommunicate request_size=10 [19:24:21]MH_SAM_APDU [19:24:21]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [19:24:21]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [19:24:21]Write i2c OK [19:24:21]MH_I2C_Read... [19:24:21]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [19:24:21]Read from MH i2c: E2 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 03 00 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [19:24:21]RAPDU: 90 00 [19:24:21]wFMCommunicate OK [19:24:21]wFMCommunicate request_size=4 [19:24:21]MH_SAM_APDU [19:24:21]CAPDU: 80 11 00 00 [19:24:21]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [19:24:21]Write i2c OK [19:24:21]MH_I2C_Read... [19:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:21]Read from MH i2c: E2 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 17 00 [19:24:21]MH_I2C_Read... [19:24:21]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 34 36 35 32 90 00 D7 [19:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:24:21]wFMCommunicate OK [19:24:21]Detected FM SN is 0000000000874652 [19:24:21]Stored FM SN is 0000000000874652 [19:24:21]wFMCommunicate request_size=9 [19:24:21]MH_SAM_APDU [19:24:21]CAPDU: 80 16 00 00 04 68 2F 01 00 [19:24:21]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 68 2F 01 00 00 00 2A [19:24:21]Write i2c OK [19:24:21]MH_I2C_Read... [19:24:21]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [19:24:21]Read from MH i2c: E2 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 03 00 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [19:24:21]RAPDU: 90 00 [19:24:21]wFMCommunicate OK [19:24:21]FM PIN OK [19:24:21]wFMCommunicate request_size=8 [19:24:21]MH_SAM_APDU [19:24:21]CAPDU: 80 14 04 00 03 02 00 01 [19:24:21]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [19:24:21]Write i2c OK [19:24:21]MH_I2C_Read... [19:24:21]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [19:24:21]Read from MH i2c: E2 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 03 00 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [19:24:21]RAPDU: 90 00 [19:24:21]wFMCommunicate OK [19:24:21]wFMCommunicate request_size=13 [19:24:21]MH_SAM_APDU [19:24:21]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [19:24:21]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:24:21]Write i2c OK [19:24:21]MH_I2C_Read... [19:24:21]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [19:24:21]Read from MH i2c: E2 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 03 00 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [19:24:21]RAPDU: 90 00 [19:24:21]wFMCommunicate OK [19:24:21]wFMCommunicate request_size=4 [19:24:21]MH_SAM_APDU [19:24:21]CAPDU: 80 11 00 00 [19:24:21]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [19:24:21]Write i2c OK [19:24:21]MH_I2C_Read... [19:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:21]Read from MH i2c: E2 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 17 00 [19:24:21]MH_I2C_Read... [19:24:21]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 34 36 35 32 90 00 DB [19:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:24:21]wFMCommunicate OK [19:24:21]DocumentArchiveInit [19:24:21]Start Httpd... [19:24:21]Httpd thread 3067907428 created [19:24:21]Write to MH i2c: 01 00 00 0F 00 0F [19:24:21]Write i2c OK [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: 01 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: 01 07 00 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [19:24:21]MH Int Process started [19:24:21]Allocated Socket 8 [19:24:21]Bind OK [19:24:21]Listen OK [19:24:21]httpd running on port 8080 [19:24:21]Waiting for new connection... [19:24:21]OFD Sender: Processing packet 76512 [packets to send 128, broken 127] [19:24:21]ProducePacketName [19:24:21]name=ofd_packets/00076512 [19:24:21]OFD Sender: To server: pG, [19:24:21]CommunicateWithHost lk.salyk.kg:30040 [19:24:21]ConnectInit lk.salyk.kg [19:24:23]Connected sock=7 [19:24:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 1E 17 04 01 B1 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 4F 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6D 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 3C 00 00 00 00 07 04 06 00 50 3A 02 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 13 C4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E0 2A 01 00 35 04 06 00 19 F8 BD A7 FA E8 F0 6C 5E 33 21 00 A2 FE [19:24:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 31 0D 47 00 9B 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 34 36 35 32 10 04 04 00 E0 2A 01 00 F4 03 04 00 72 6C 22 66 B6 04 01 00 00 26 13 88 C9 55 B6 8E 79 [19:24:24]CommunicateWithHost err = 0 [19:24:24]CheckOFDResponse [19:24:24]1017 (14) - 77093643461234 [19:24:24]1041 (16) - 0000000000874652 [19:24:24]1040 (4) - 76512 [19:24:24]1012 (4) - 19.04.2024 13:06 [19:24:24]1206 (1) - 0 [19:24:24]OFD Sender: Remove packet 76512 [19:24:24]ProducePacketName [19:24:24]name=ofd_packets/00076512 [19:24:24]NVStorageDeleteData [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 [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 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 6F [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]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [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]*** 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 54000000005725CA (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: 29154070+1684400628=1713554698 [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 = 0x33540623 [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 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 70 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 0B C5 22 66 F4 E9 65 64 FD [19:24:59]Current date/time: 19.04.2024 19:24 [19:24:59]FM_Init [19:24:59]wFMConnect [19:24:59]MH_SAM_On [19:24:59]Write to MH i2c: E0 00 00 08 00 E7 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_init finished! [19:24:59]*** atr: [19:24:59]*** 0F 3B D5 18 FF 81 91 FE [19:24:59]*** 1F C3 80 73 C8 21 10 0A [19:24:59]*** 00 00 00 00 00 00 00 00 [19:24:59]*** 00 00 00 00 00 00 00 00 [19:24:59]*** 00 00 00 00 00 00 00 00 [19:24:59]*** 00 00 00 00 00 00 00 00 [19:24:59]*** 00 00 00 00 00 00 00 00 [19:24:59]*** 00 00 00 00 00 00 00 00 [19:24:59]Read from MH i2c: E0 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E0 10 00 [19:24:59]MH_I2C_Read... [19:24:59]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:24:59]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [19:24:59]wFMCommunicate request_size=10 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [19:24:59]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 03 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [19:24:59]RAPDU: 90 00 [19:24:59]wFMCommunicate OK [19:24:59]wFMCommunicate request_size=4 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 80 11 00 00 [19:24:59]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 17 00 [19:24:59]MH_I2C_Read... [19:24:59]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 34 36 35 32 90 00 D7 [19:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:24:59]wFMCommunicate OK [19:24:59]Detected FM SN is 0000000000874652 [19:24:59]Stored FM SN is 0000000000874652 [19:24:59]wFMCommunicate request_size=9 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 80 16 00 00 04 68 2F 01 00 [19:24:59]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 68 2F 01 00 00 00 2A [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 03 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [19:24:59]RAPDU: 90 00 [19:24:59]wFMCommunicate OK [19:24:59]FM PIN OK [19:24:59]wFMCommunicate request_size=8 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 80 14 04 00 03 02 00 01 [19:24:59]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 03 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [19:24:59]RAPDU: 90 00 [19:24:59]wFMCommunicate OK [19:24:59]wFMCommunicate request_size=13 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [19:24:59]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:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 03 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [19:24:59]RAPDU: 90 00 [19:24:59]wFMCommunicate OK [19:24:59]wFMCommunicate request_size=4 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 80 11 00 00 [19:24:59]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 17 00 [19:24:59]MH_I2C_Read... [19:24:59]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 34 36 35 32 90 00 DB [19:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:24:59]wFMCommunicate OK [19:24:59]DocumentArchiveInit [19:24:59]Start Httpd... [19:24:59]Httpd thread 3067911524 created [19:24:59]Write to MH i2c: 01 00 00 0F 00 0F [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: 01 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: 01 07 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [19:24:59]MH Int Process started [19:24:59]Allocated Socket 8 [19:24:59]Bind OK [19:24:59]Listen OK [19:24:59]httpd running on port 8080 [19:24:59]Waiting for new connection... [19:24:59]OFD Sender: No OFD packet to send [19:25:03]accept exits with 9 [19:25:03]New connection [19:25:03]New thread 3067624804 created [19:25:03]Waiting for new connection... [19:25:03] Sock 9.Parse request [19:25:03]Sock 9.Check first char [19:25:03]Sock 9.First char is OK [19:25:03]request: POST /json_proto HTTP/1.0 [19:25:03]Method: POST [19:25:03]URL: /json_proto [19:25:03]Method is POST - this is cgi request [19:25:03]url: /json_proto [19:25:03]query_string will be loaded in cgi processing [19:25:03]execute_cgi json_proto POST (null) [19:25:03]execute_cgi path=json_proto method=POST [19:25:03]POST find Content-Length [19:25:03]Host: 172.17.62.5:8080 [19:25:03]Content-Length: 215 [19:25:03]Content-Type: application/json [19:25:03] [19:25:03]POST finish read [19:25:03]Found Content-Length = 215 [19:25:03]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:25:03]execute_script... [19:25:03]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:25:03]POST & json_proto [19:25:03]process_json_proto [19:25:03]json parsed OK: [19:25:03]protocol is kg_v1.0 [19:25:03]action value=get_value [19:25:03]process_action get_value [19:25:03]cmd_get_value [19:25:03]process_action get_value done [19:25:03]requested_data is exist [19:25:03]produce_requested_data [19:25:03]requested_item kkm.sn is exist - process it [19:25:03]requested_item kkm.ver is exist - process it [19:25:03]requested_item fm.sn is exist - process it [19:25:03]wFMCommunicate request_size=4 [19:25:03]MH_SAM_APDU [19:25:03]CAPDU: 80 11 00 00 [19:25:03]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [19:25:03]Write i2c OK [19:25:03]MH_I2C_Read... [19:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:03]Read from MH i2c: E2 [19:25:03]MH_I2C_Read... [19:25:03]Read from MH i2c: E2 17 00 [19:25:03]MH_I2C_Read... [19:25:03]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 34 36 35 32 90 00 DD [19:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:25:03]wFMCommunicate OK [19:25:03]requested_item fd.num is exist - process it [19:25:03]SAM_PROTO_GetFieldsCounters [19:25:03]wFMCommunicate request_size=4 [19:25:03]MH_SAM_APDU [19:25:03]CAPDU: 80 13 00 00 [19:25:03]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [19:25:03]Write i2c OK [19:25:03]MH_I2C_Read... [19:25:03]Read from MH i2c: E2 [19:25:03]MH_I2C_Read... [19:25:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:03]Read from MH i2c: E2 62 00 [19:25:03]MH_I2C_Read... [19:25:03]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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E0 2A 01 00 0E 04 04 00 72 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 B8 [19:25:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E0 2A 01 00 0E 04 04 00 72 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 [19:25:03]wFMCommunicate OK [19:25:03]SAM_PROTO_GetFieldsCounters done [19:25:03]requested_item shift.num is exist - process it [19:25:03]requested_item shift.opened is exist - process it [19:25:03]req_shift_opened [19:25:03]FM_GetShiftState [19:25:03]SAM_PROTO_GetShiftState [19:25:03]wFMCommunicate request_size=4 [19:25:03]MH_SAM_APDU [19:25:03]CAPDU: 80 13 01 00 [19:25:03]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [19:25:03]Write i2c OK [19:25:03]MH_I2C_Read... [19:25:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:03]Read from MH i2c: E2 [19:25:03]MH_I2C_Read... [19:25:03]Read from MH i2c: E2 0E 00 [19:25:03]MH_I2C_Read... [19:25:03]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 74 [19:25:03]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:25:03]wFMCommunicate OK [19:25:03]SAM_PROTO_GetShiftState done [19:25:03]FM_GetShiftState done [19:25:03]req_shift_opened done [19:25:03]requested_item shift.open_date is exist - process it [19:25:03]req_shift_open_date [19:25:03]req_shift_open_date done [19:25:03]produce_requested_data done [19:25:03]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76512,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [19:25:03]process_action_free get_value [19:25:03]json_value_free [19:25:03]json_value_free done [19:25:03]process_json_proto returns [19:25:03]Send response to host [19:25:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76512,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [19:25:03]free response buf [19:25:03]execute_script done [19:25:03]execute_script returns [19:25:03]free content buf [19:25:03]Sock 9.Close socket [19:25:03]Sock 9.Thread stoped [19:25:03]accept exits with 10 [19:25:03]New connection [19:25:03]New thread 3067481444 created [19:25:03]Thread 3067624804 joined [19:25:03]Waiting for new connection... [19:25:03] Sock 10.Parse request [19:25:03]Sock 10.Check first char [19:25:03]Sock 10.First char is OK [19:25:03]request: POST /json_proto HTTP/1.0 [19:25:03]Method: POST [19:25:03]URL: /json_proto [19:25:03]Method is POST - this is cgi request [19:25:03]url: /json_proto [19:25:03]query_string will be loaded in cgi processing [19:25:03]execute_cgi json_proto POST (null) [19:25:03]execute_cgi path=json_proto method=POST [19:25:03]POST find Content-Length [19:25:03]Host: 172.17.62.5:8080 [19:25:03]Content-Length: 331 [19:25:03]Content-Type: application/json [19:25:03] [19:25:03]POST finish read [19:25:03]Found Content-Length = 331 [19:25:03]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:25:03]execute_script... [19:25:03]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:25:03]POST & json_proto [19:25:03]process_json_proto [19:25:03]json parsed OK: [19:25:03]protocol is kg_v1.0 [19:25:03]action value=get_value [19:25:03]process_action get_value [19:25:03]cmd_get_value [19:25:03]process_action get_value done [19:25:03]requested_data is exist [19:25:03]produce_requested_data [19:25:03]requested_item fm.sale.total is exist - process it [19:25:03]SAM_PROTO_GetFMData [19:25:03]wFMCommunicate request_size=4 [19:25:03]MH_SAM_APDU [19:25:03]CAPDU: 80 13 03 00 [19:25:03]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [19:25:03]Write i2c OK [19:25:03]MH_I2C_Read... [19:25:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:25:04]Read from MH i2c: E2 [19:25:04]MH_I2C_Read... [19:25:04]Read from MH i2c: E2 FD 00 [19:25:04]MH_I2C_Read... [19:25:04]Read from MH i2c: E2 FD 00 13 00 00 C8 04 85 04 C4 04 6E 04 04 00 FC 27 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 F0 71 33 B8 02 70 04 05 00 94 CC B4 74 02 72 04 04 00 5C A5 7E 43 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 7B 78 F1 49 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 E1 63 29 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 B5 [19:25:04]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 FC 27 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 F0 71 33 B8 02 70 04 05 00 94 CC B4 74 02 72 04 04 00 5C A5 7E 43 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 7B 78 F1 49 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 E1 63 29 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 [19:25:04]wFMCommunicate OK [19:25:04]wFMCommunicate request_size=4 [19:25:04]MH_SAM_APDU [19:25:04]CAPDU: 80 17 00 00 [19:25:04]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [19:25:04]Write i2c OK [19:25:04]MH_I2C_Read... [19:25:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:25:04]Read from MH i2c: E2 [19:25:04]MH_I2C_Read... [19:25:04]Read from MH i2c: E2 FD 00 [19:25:04]MH_I2C_Read... [19:25:04]Read from MH i2c: E2 FD 00 14 00 00 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 B4 2D 75 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 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 90 00 FB [19:25:04]RAPDU: 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 B4 2D 75 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 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 90 00 [19:25:04]wFMCommunicate OK [19:25:04]wFMCommunicate request_size=4 [19:25:04]MH_SAM_APDU [19:25:04]CAPDU: 80 17 00 00 [19:25:04]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [19:25:04]Write i2c OK [19:25:04]MH_I2C_Read... [19:25:04]OFD Sender: No OFD packet to send [19:25:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:25:04]Read from MH i2c: E2 [19:25:04]MH_I2C_Read... [19:25:04]Read from MH i2c: E2 FD 00 [19:25:04]MH_I2C_Read... [19:25:04]Read from MH i2c: E2 FD 00 15 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [19:25:04]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:25:04]wFMCommunicate OK [19:25:04]wFMCommunicate request_size=4 [19:25:04]MH_SAM_APDU [19:25:04]CAPDU: 80 17 00 00 [19:25:04]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [19:25:04]Write i2c OK [19:25:04]MH_I2C_Read... [19:25:05]Read from MH i2c: E2 [19:25:05]MH_I2C_Read... [19:25:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:25:05]Read from MH i2c: E2 FD 00 [19:25:05]MH_I2C_Read... [19:25:05]Read from MH i2c: E2 FD 00 16 00 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 90 00 0E [19:25:05]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 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 90 00 [19:25:05]wFMCommunicate OK [19:25:05]wFMCommunicate request_size=4 [19:25:05]MH_SAM_APDU [19:25:05]CAPDU: 80 17 00 00 [19:25:05]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [19:25:05]Write i2c OK [19:25:05]MH_I2C_Read... [19:25:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [19:25:05]Read from MH i2c: E2 [19:25:05]MH_I2C_Read... [19:25:05]Read from MH i2c: E2 E5 00 [19:25:05]MH_I2C_Read... [19:25:05]Read from MH i2c: E2 E5 00 17 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7B [19:25:05]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:25:05]wFMCommunicate OK [19:25:05]SAM_PROTO_GetFMData done [19:25:05]requested_item fm.sale_refund.total is exist - process it [19:25:05]requested_item fm.buy.total is exist - process it [19:25:05]requested_item shift.sale.total is exist - process it [19:25:05]SAM_PROTO_GetShiftData [19:25:05]wFMCommunicate request_size=4 [19:25:05]MH_SAM_APDU [19:25:05]CAPDU: 80 13 02 00 [19:25:05]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [19:25:05]Write i2c OK [19:25:05]MH_I2C_Read... [19:25:05]Read from MH i2c: E2 [19:25:05]MH_I2C_Read... [19:25:05]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:25:05]Read from MH i2c: E2 FD 00 [19:25:05]MH_I2C_Read... [19:25:05]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 84 00 00 00 69 04 9C 00 6F 04 04 00 84 00 00 00 B1 04 03 00 0D C3 DD 70 04 03 00 F8 91 BB 72 04 03 00 15 31 22 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 40 8E 17 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 82 F6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 25 [19:25:05]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 84 00 00 00 69 04 9C 00 6F 04 04 00 84 00 00 00 B1 04 03 00 0D C3 DD 70 04 03 00 F8 91 BB 72 04 03 00 15 31 22 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 40 8E 17 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 82 F6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [19:25:05]wFMCommunicate OK [19:25:05]wFMCommunicate request_size=4 [19:25:05]MH_SAM_APDU [19:25:05]CAPDU: 80 17 00 00 [19:25:05]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [19:25:05]Write i2c OK [19:25:05]MH_I2C_Read... [19:25:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:25:06]Read from MH i2c: E2 [19:25:06]MH_I2C_Read... [19:25:06]Read from MH i2c: E2 FD 00 [19:25:06]MH_I2C_Read... [19:25:06]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 B2 [19:25:06]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [19:25:06]wFMCommunicate OK [19:25:06]wFMCommunicate request_size=4 [19:25:06]MH_SAM_APDU [19:25:06]CAPDU: 80 17 00 00 [19:25:06]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [19:25:06]Write i2c OK [19:25:06]MH_I2C_Read... [19:25:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:25:06]Read from MH i2c: E2 [19:25:06]MH_I2C_Read... [19:25:06]Read from MH i2c: E2 FD 00 [19:25:06]MH_I2C_Read... [19:25:06]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [19:25:06]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:25:06]wFMCommunicate OK [19:25:06]wFMCommunicate request_size=4 [19:25:06]MH_SAM_APDU [19:25:06]CAPDU: 80 17 00 00 [19:25:06]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [19:25:06]Write i2c OK [19:25:06]MH_I2C_Read... [19:25:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:25:06]Read from MH i2c: E2 [19:25:06]MH_I2C_Read... [19:25:06]Read from MH i2c: E2 FD 00 [19:25:06]MH_I2C_Read... [19:25:06]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 19 [19:25:06]RAPDU: 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 90 00 [19:25:06]wFMCommunicate OK [19:25:06]wFMCommunicate request_size=4 [19:25:06]MH_SAM_APDU [19:25:06]CAPDU: 80 17 00 00 [19:25:06]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [19:25:06]Write i2c OK [19:25:06]MH_I2C_Read... [19:25:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [19:25:07]Read from MH i2c: E2 [19:25:07]MH_I2C_Read... [19:25:07]Read from MH i2c: E2 CC 00 [19:25:07]MH_I2C_Read... [19:25:07]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:25:07]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:25:07]wFMCommunicate OK [19:25:07]SAM_PROTO_GetShiftData done [19:25:07]requested_item shift.sale.total_cash is exist - process it [19:25:07]requested_item shift.sale_refund.total is exist - process it [19:25:07]requested_item shift.sale_refund.total_cash is exist - process it [19:25:07]requested_item shift.buy.total is exist - process it [19:25:07]requested_item shift.buy.total_cash is exist - process it [19:25:07]produce_requested_data done [19:25:07]produce_requested_data return {"fm.sale.total":116803138.40,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":145333.89,"shift.sale.total_cash":122926.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} [19:25:07]process_action_free get_value [19:25:07]json_value_free [19:25:07]json_value_free done [19:25:07]process_json_proto returns [19:25:07]Send response to host [19:25:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":116803138.40,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":145333.89,"shift.sale.total_cash":122926.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}}} [19:25:07]free response buf [19:25:07]execute_script done [19:25:07]execute_script returns [19:25:07]free content buf [19:25:07]Sock 10.Close socket [19:25:07]Sock 10.Thread stoped [19:25:07]accept exits with 9 [19:25:07]New connection [19:25:07]New thread 3067624804 created [19:25:07]Thread 3067481444 joined [19:25:07]Waiting for new connection... [19:25:07] Sock 9.Parse request [19:25:07]Sock 9.Check first char [19:25:07]Sock 9.First char is OK [19:25:07]request: POST /json_proto HTTP/1.0 [19:25:07]Method: POST [19:25:07]URL: /json_proto [19:25:07]Method is POST - this is cgi request [19:25:07]url: /json_proto [19:25:07]query_string will be loaded in cgi processing [19:25:07]execute_cgi json_proto POST (null) [19:25:07]execute_cgi path=json_proto method=POST [19:25:07]POST find Content-Length [19:25:07]Host: 172.17.62.5:8080 [19:25:07]Content-Length: 978 [19:25:07]Content-Type: application/json [19:25:07] [19:25:07]POST finish read [19:25:07]Found Content-Length = 978 [19:25:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 13.91 \u0441\u043E\u043C", "deposit" : 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:25:07]execute_script... [19:25: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)191002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 13.91 \u0441\u043E\u043C", "deposit" : 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:25:07]POST & json_proto [19:25:07]process_json_proto [19:25:07]json parsed OK: [19:25:07]protocol is kg_v1.0 [19:25:07]action value=close_receipt [19:25:07]process_action close_receipt [19:25:07]cmd_close_receipt [19:25:07]MH_GetDate [19:25:07]Write to MH i2c: F0 00 00 1D 00 0C [19:25:07]Write i2c OK [19:25:07]MH_I2C_Read... [19:25:07]Read from MH i2c: F0 [19:25:07]MH_I2C_Read... [19:25:07]Read from MH i2c: F0 09 00 [19:25:07]MH_I2C_Read... [19:25:07]Read from MH i2c: F0 09 00 1D 00 00 13 C5 22 66 F4 E9 65 64 1B [19:25:07]GetLastDocTimeStamp 1713554451 [19:25:07]current date 1713554707 [19:25:07]FM_GetShiftState [19:25:07]SAM_PROTO_GetShiftState [19:25:07]wFMCommunicate request_size=4 [19:25:07]MH_SAM_APDU [19:25:07]CAPDU: 80 13 01 00 [19:25:07]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [19:25:07]Write i2c OK [19:25:07]MH_I2C_Read... [19:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:07]Read from MH i2c: E2 [19:25:07]MH_I2C_Read... [19:25:07]Read from MH i2c: E2 0E 00 [19:25:07]MH_I2C_Read... [19:25:07]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 80 [19:25:07]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:25:07]wFMCommunicate OK [19:25:07]SAM_PROTO_GetShiftState done [19:25:07]FM_GetShiftState done [19:25:07]opened in 1713486233 [19:25:07]opened+sec_in_day 1713572633 [19:25:07]quantity*price = 100012 [19:25:07]sum+1 = 100014 [19:25:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 133 19.04.2024 19:25 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 13.91 сом ФМ: 0000000000874652 ФД: 76513 ФПД: 1607408167947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T192507&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76513&fm=1607408167947&tin=02508201610067®Number=0000000000091573&sum=100000 [19:25:08]StoreToDocumentArchive [19:25:08]shift 370 fd 76513 [19:25:08]save to /storage/0370/doc_00076513 [19:25:08]save last doc name /storage/0370/doc_00076513 to /storage/kkm_last_doc_name [19:25:08]save OK [19:25:08]Clear old archive folders... [19:25:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:25:08]tlvbuf is 00A619F0 [19:25:08]SAM_PROTO_ClearQueue [19:25:08]wFMCommunicate request_size=4 [19:25:08]MH_SAM_APDU [19:25:08]CAPDU: 80 09 00 00 [19:25:08]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [19:25:08]Write i2c OK [19:25:08]MH_I2C_Read... [19:25:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:08]Read from MH i2c: E2 [19:25:08]MH_I2C_Read... [19:25:08]Read from MH i2c: E2 03 00 [19:25:08]MH_I2C_Read... [19:25:08]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [19:25:08]RAPDU: 90 00 [19:25:08]wFMCommunicate OK [19:25:08]SAM_PROTO_ClearQueue done [19:25:08]KKMCreateOFDPacket [19:25:08]OFDProtocolAddRootSTLVToBuf [19:25:08]FM_MakeSignedData [19:25:08]FM_MakeSignedData [19:25:08]SAM_PROTO_SignData [19:25:08]wFMCommunicate request_size=4 [19:25:08]MH_SAM_APDU [19:25:08]CAPDU: 80 0D 01 02 [19:25:08]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [19:25:08]Write i2c OK [19:25:08]MH_I2C_Read... [19:25:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:08]Read from MH i2c: E2 [19:25:08]MH_I2C_Read... [19:25:08]Read from MH i2c: E2 03 00 [19:25:08]MH_I2C_Read... [19:25:08]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [19:25:08]RAPDU: 90 00 [19:25:08]wFMCommunicate OK [19:25:08]wFMCommunicate request_size=255 [19:25:08]MH_SAM_APDU [19:25: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 13 C5 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E1 2A 01 00 35 04 06 00 01 76 40 FE [19:25:09]Write to MH i2c: E2 02 01 2D 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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 13 C5 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E1 2A 01 00 35 04 06 00 01 76 40 FE 00 00 79 [19:25:09]Write i2c OK [19:25:09]MH_I2C_Read... [19:25:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:09]Read from MH i2c: E2 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 03 00 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [19:25:09]RAPDU: 90 00 [19:25:09]wFMCommunicate OK [19:25:09]wFMCommunicate request_size=7 [19:25:09]MH_SAM_APDU [19:25:09]CAPDU: 80 0D 02 02 02 2C 0B [19:25:09]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 2C 0B 00 00 E3 [19:25:09]Write i2c OK [19:25:09]MH_I2C_Read... [19:25:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:09]Read from MH i2c: E2 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 03 00 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [19:25:09]RAPDU: 90 00 [19:25:09]wFMCommunicate OK [19:25:09]wFMCommunicate request_size=4 [19:25:09]MH_SAM_APDU [19:25:09]CAPDU: 80 0D 03 02 [19:25:09]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [19:25:09]Write i2c OK [19:25:09]MH_I2C_Read... [19:25:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:09]Read from MH i2c: E2 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 0B 00 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 0B 00 2F 00 00 B9 1F BB 37 E4 ED 92 D2 90 00 AA [19:25:09]RAPDU: B9 1F BB 37 E4 ED 92 D2 90 00 [19:25:09]wFMCommunicate OK [19:25:09]SAM_PROTO_SignData done [19:25:09]FM_MakeSignedData done [19:25:09]CreateOFDProtocolMessage [19:25:09]wFMCommunicate request_size=4 [19:25:09]MH_SAM_APDU [19:25:09]CAPDU: 80 11 00 00 [19:25:09]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [19:25:09]Write i2c OK [19:25:09]MH_I2C_Read... [19:25:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:09]Read from MH i2c: E2 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 17 00 [19:25:09]MH_I2C_Read... [19:25:09]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 34 36 35 32 90 00 FD [19:25:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:25:09]wFMCommunicate OK [19:25:09]CreateOFDProtocolMessage done [19:25:09]OFDSenderStorePacket 76513 [19:25:09]StoreOFDPacket docnum=76513 [19:25:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 2D F9 04 01 EA F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 13 C5 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E1 2A 01 00 35 04 06 00 01 76 40 FE 2C 0B B9 1F BB 37 E4 ED 92 D2 [19:25:09]CheckFolder [19:25:09]dirname=/storage/ofd_packets [19:25:09]CheckFolder done [19:25:09]ProducePacketName [19:25:09]name=ofd_packets/00076513 [19:25:09]NVStorageSaveData ofd_packets/00076513 [19:25:09]File name is /storage/ofd_packets/00076513 [19:25:09]Write 298 bytes [19:25:09]NVStorageSaveData done [19:25:09]OFDSenderStorePacket done [19:25:09]KKMCreateOFDPacket done [19:25:09]NVStorageSaveData kkm_last_timestamp [19:25:09]File name is /storage/kkm_last_timestamp [19:25:09]Write 4 bytes [19:25:09]NVStorageSaveData done [19:25:09]ExternCall_PrintAddStr [19:25:09]wPrintStart [19:25:09]Write to MH i2c: 01 00 00 31 00 31 [19:25:09]Write i2c OK [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: 01 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: 01 07 00 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [19:25:09]RasterBufferAndPrint [19:25:09]line Счет N : (1)191002 [19:25:09]line ИНН: 02508201610067 [19:25:09]line Контрольно-Кассовый Чек [19:25:09]line ПРОДАЖА [19:25:09]line ТРК (МРК, ГНК) : 13 [19:25:09]line Товар: 2710194210 [19:25:09]line ДТ-К-5 [19:25:09]line 13.910 * 71.90 [19:25:09]line = 1000.13 [19:25:09]line НДС 12% НСП 1% [19:25:09]line > о реализуемом товаре [19:25:09]line ОКРУГЛЕНИЕ: -0.13 [19:25:09]line ИТОГО: 1000.00 [19:25:09]line Внесено: 1000.00 [19:25:09]line СДАЧА: 0.00 [19:25:09]line НСП 1% : 8.85 [19:25:09]line НДС 12% : 106.21 [19:25:09]line Наличными: 1000.00 [19:25:09]line Безнал.: 0.00 [19:25:09]line Место: АЗС № 106 "Партнер Нефть" [19:25:09]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:25:09]line СНО: Общий режим [19:25:09]line Чек 133 19.04.2024 19:25 [19:25:09]line Смена: 370 ФФД: 1.0 [19:25:09]line ЗНМ: 0300000141 [19:25:09]line РНМ: 0000000000091573 [19:25:09]line Версия ККМ: 001 [19:25:09]line [19:25:09]line Дисконтная программа [19:25:09]line ДТ [19:25:09]line номер 106 [19:25:09]line сэкономлено 13.91 сом [19:25:09]line ФМ: 0000000000874652 [19:25:09]line ФД: 76513 [19:25:09]line ФПД: 1607408167947 [19:25:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T192507&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76513&fm=1607408167947&tin=02508201610067®Number=0000000000091573&sum=100000 [19:25:09]written 0, free lines is 4095 [19:25:09]OFD Sender: Processing packet 76513 [packets to send 128, broken 127] [19:25:09]ProducePacketName [19:25:09]name=ofd_packets/00076513 [19:25:09]OFD Sender: To server: pG, [19:25:09]CommunicateWithHost lk.salyk.kg:30040 [19:25:09]ConnectInit lk.salyk.kg [19:25:09]Connected sock=10 [19:25:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 2D F9 04 01 EA F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 13 C5 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E1 2A 01 00 35 04 06 00 01 76 40 FE 2C 0B B9 1F BB 37 E4 ED 92 D2 [19:25:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C8 40 47 00 38 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 34 36 35 32 10 04 04 00 E1 2A 01 00 F4 03 04 00 9E 6C 22 66 B6 04 01 00 00 7D 31 FE D7 F5 C0 6A 06 [19:25:10]CommunicateWithHost err = 0 [19:25:10]CheckOFDResponse [19:25:10]1017 (14) - 77093643461234 [19:25:10]1041 (16) - 0000000000874652 [19:25:10]1040 (4) - 76513 [19:25:10]1012 (4) - 19.04.2024 13:07 [19:25:10]1206 (1) - 0 [19:25:10]OFD Sender: Remove packet 76513 [19:25:10]ProducePacketName [19:25:10]name=ofd_packets/00076513 [19:25:10]NVStorageDeleteData [19:25:10]Write to MH i2c: 01 00 00 60 00 60 [19:25:10]Write i2c OK [19:25:10]MH_I2C_Read... [19:25:10]Read from MH i2c: 01 [19:25:10]MH_I2C_Read... [19:25:10]Read from MH i2c: 01 07 00 [19:25:10]MH_I2C_Read... [19:25:10]Read from MH i2c: 01 07 00 60 00 00 00 00 00 00 CF 0C 42 [19:25:10]RasterBufferAndPrint [19:25:10]line [19:25:10]line [19:25:10]line [19:25:10]line [19:25:10]line [19:25:10]written 0, free lines is 3329 [19:25:10]MH_Cut [19:25:10]Write to MH i2c: D1 01 00 67 00 01 39 [19:25:10]Write i2c OK [19:25:10]MH_I2C_Read... [19:25:10]Read from MH i2c: D1 [19:25:10]MH_I2C_Read... [19:25:10]Read from MH i2c: D1 01 00 [19:25:10]MH_I2C_Read... [19:25:10]Read from MH i2c: D1 01 00 67 00 00 38 [19:25:10]Write to MH i2c: 01 00 00 68 00 68 [19:25:10]Write i2c OK [19:25:10]MH_I2C_Read... [19:25:10]OFD Sender: No OFD packet to send [19:25:10]*** Cut start [19:25:10]*** Partial cut [19:25:10]*** CUTSNS_PIN = 1 [19:25:11]*** CUTSNS_PIN = 0 [19:25:11]*** Brake cut motor [19:25:11]Read from MH i2c: 01 [19:25:11]MH_I2C_Read... [19:25:11]*** Stop cut motor [19:25:11]*** Cut end [19:25:11]Read from MH i2c: 01 07 00 [19:25:11]MH_I2C_Read... [19:25:11]Read from MH i2c: 01 07 00 68 00 00 00 00 00 00 FF 0F 7D [19:25:11]process_action close_receipt done [19:25:11]requested_data is exist [19:25:11]produce_requested_data [19:25:11]requested_item fm.sn is exist - process it [19:25:11]wFMCommunicate request_size=4 [19:25:11]MH_SAM_APDU [19:25:11]CAPDU: 80 11 00 00 [19:25:11]Write to MH i2c: E2 08 00 69 00 80 11 00 00 00 00 00 00 E3 [19:25:11]Write i2c OK [19:25:11]MH_I2C_Read... [19:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:11]Read from MH i2c: E2 [19:25:11]MH_I2C_Read... [19:25:11]Read from MH i2c: E2 17 00 [19:25:11]MH_I2C_Read... [19:25:11]Read from MH i2c: E2 17 00 69 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 36 [19:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:25:11]wFMCommunicate OK [19:25:11]requested_item fd.num is exist - process it [19:25:11]SAM_PROTO_GetFieldsCounters [19:25:11]wFMCommunicate request_size=4 [19:25:11]MH_SAM_APDU [19:25:11]CAPDU: 80 13 00 00 [19:25:11]Write to MH i2c: E2 08 00 6A 00 80 13 00 00 00 00 00 00 E6 [19:25:11]Write i2c OK [19:25:11]MH_I2C_Read... [19:25:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:11]Read from MH i2c: E2 [19:25:11]MH_I2C_Read... [19:25:11]Read from MH i2c: E2 62 00 [19:25:11]MH_I2C_Read... [19:25:11]Read from MH i2c: E2 62 00 6A 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E1 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [19:25: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E1 2A 01 00 0E 04 04 00 72 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 [19:25:11]wFMCommunicate OK [19:25:11]SAM_PROTO_GetFieldsCounters done [19:25:11]requested_item shift.num is exist - process it [19:25:11]requested_item shift.opened is exist - process it [19:25:11]req_shift_opened [19:25:11]FM_GetShiftState [19:25:11]SAM_PROTO_GetShiftState [19:25:11]wFMCommunicate request_size=4 [19:25:11]MH_SAM_APDU [19:25:11]CAPDU: 80 13 01 00 [19:25:11]Write to MH i2c: E2 08 00 6B 00 80 13 01 00 00 00 00 00 E8 [19:25:11]Write i2c OK [19:25:11]MH_I2C_Read... [19:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:11]Read from MH i2c: E2 [19:25:11]MH_I2C_Read... [19:25:11]Read from MH i2c: E2 0E 00 [19:25:11]MH_I2C_Read... [19:25:11]Read from MH i2c: E2 0E 00 6B 00 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 CD [19:25:11]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:25:11]wFMCommunicate OK [19:25:11]SAM_PROTO_GetShiftState done [19:25:11]FM_GetShiftState done [19:25:11]req_shift_opened done [19:25:11]requested_item shift.open_date is exist - process it [19:25:11]req_shift_open_date [19:25:11]req_shift_open_date done [19:25:11]produce_requested_data done [19:25:11]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76513,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [19:25:11]process_action_free close_receipt [19:25:11]json_value_free [19:25:11]json_value_free done [19:25:11]process_json_proto returns [19:25:11]Send response to host [19:25:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76513,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [19:25:11]free response buf [19:25:11]execute_script done [19:25:11]execute_script returns [19:25:11]free content buf [19:25:11]Sock 9.Close socket [19:25:11]Sock 9.Thread stoped [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]accept exits with 6 [19:27:10]New connection [19:27:10]New thread 3067481444 created [19:27:10]Thread 3067624804 joined [19:27:10]Waiting for new connection... [19:27:10] Sock 6.Parse request [19:27:10]Sock 6.Check first char [19:27:10]Sock 6.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.62.5:8080 [19:27:10]Content-Length: 812 [19:27:10]Content-Type: application/json [19:27:10] [19:27:10]POST finish read [19:27:10]Found Content-Length = 812 [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)191005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.62 } ] } , "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)191005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.62 } ] } , "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 6C 00 5B [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 6C 00 00 8E C5 22 66 F4 E9 65 64 E5 [19:27:10]GetLastDocTimeStamp 1713554707 [19:27:10]current date 1713554830 [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 6D 00 80 13 01 00 00 00 00 00 EA [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 6D 00 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 CF [19:27:10]RAPDU: 09 00 01 99 B9 21 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 1713486233 [19:27:10]opened+sec_in_day 1713572633 [19:27:10]quantity*price = 100062 [19:27:10]sum+1 = 100063 [19:27:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.62 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.62 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 134 19.04.2024 19:27 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76514 ФПД: 150726719431733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T192710&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76514&fm=150726719431733&tin=02508201610067®Number=0000000000091573&sum=100062 [19:27:11]StoreToDocumentArchive [19:27:11]shift 370 fd 76514 [19:27:11]save to /storage/0370/doc_00076514 [19:27:11]save last doc name /storage/0370/doc_00076514 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=252 [19:27:11]tlvbuf is 00A57C50 [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 7A 00 80 09 00 00 00 00 00 00 EC [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 7A 00 00 90 00 EE [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 7B 00 80 0D 01 02 00 00 00 00 F4 [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 7B 00 00 90 00 EF [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 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 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 8E C5 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E2 2A 01 00 35 04 06 00 [19:27:11]Write to MH i2c: E2 02 01 7C 00 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 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 8E C5 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E2 2A 01 00 35 04 06 00 00 00 72 [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 7C 00 00 90 00 F0 [19:27:11]RAPDU: 90 00 [19:27:11]wFMCommunicate OK [19:27:11]wFMCommunicate request_size=11 [19:27:11]MH_SAM_APDU [19:27:11]CAPDU: 80 0D 02 02 06 89 15 CC 91 E4 35 [19:27:11]Write to MH i2c: E2 0E 00 7D 00 80 0D 02 02 06 00 89 15 CC 91 E4 35 00 00 17 [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 7D 00 00 90 00 F1 [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 7E 00 80 0D 03 02 00 00 00 00 F9 [19:27:11]Write i2c OK [19:27:11]MH_I2C_Read... [19:27:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:11]Read from MH i2c: E2 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 0B 00 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 0B 00 7E 00 00 99 92 9B BB 8D 44 2B FA 90 00 71 [19:27:11]RAPDU: 99 92 9B BB 8D 44 2B FA 90 00 [19:27:11]wFMCommunicate OK [19:27:11]SAM_PROTO_SignData done [19:27:11]FM_MakeSignedData done [19:27:11]CreateOFDProtocolMessage [19:27:11]wFMCommunicate request_size=4 [19:27:11]MH_SAM_APDU [19:27:11]CAPDU: 80 11 00 00 [19:27:11]Write to MH i2c: E2 08 00 7F 00 80 11 00 00 00 00 00 00 F9 [19:27:11]Write i2c OK [19:27:11]MH_I2C_Read... [19:27:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:11]Read from MH i2c: E2 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 17 00 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 17 00 7F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4C [19:27:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:27:11]wFMCommunicate OK [19:27:11]CreateOFDProtocolMessage done [19:27:11]OFDSenderStorePacket 76514 [19:27:11]StoreOFDPacket docnum=76514 [19:27:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 AE B8 08 01 4F 34 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 8E C5 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E2 2A 01 00 35 04 06 00 89 15 CC 91 E4 35 99 92 9B BB 8D 44 2B FA [19:27:11]CheckFolder [19:27:11]dirname=/storage/ofd_packets [19:27:11]CheckFolder done [19:27:11]ProducePacketName [19:27:11]name=ofd_packets/00076514 [19:27:11]NVStorageSaveData ofd_packets/00076514 [19:27:11]File name is /storage/ofd_packets/00076514 [19:27:11]Write 302 bytes [19:27:11]NVStorageSaveData done [19:27:11]OFDSenderStorePacket done [19:27:11]KKMCreateOFDPacket done [19:27:11]NVStorageSaveData kkm_last_timestamp [19:27:11]File name is /storage/kkm_last_timestamp [19:27:11]Write 4 bytes [19:27:11]NVStorageSaveData done [19:27:11]ExternCall_PrintAddStr [19:27:11]wPrintStart [19:27:11]Write to MH i2c: 01 00 00 80 00 80 [19:27:11]Write i2c OK [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: 01 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: 01 07 00 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: 01 07 00 80 00 00 00 00 00 00 FF 0F 95 [19:27:11]RasterBufferAndPrint [19:27:11]line Счет N : (1)191005 [19:27:11]line ИНН: 02508201610067 [19:27:11]line Контрольно-Кассовый Чек [19:27:11]line ПРОДАЖА [19:27:11]line ТРК (МРК, ГНК) : 31 [19:27:11]line Товар: 2710124130 [19:27:11]line SUPER 92-К-5 [19:27:11]line 15.300 * 65.40 [19:27:11]line = 1000.62 [19:27:11]line НДС 12% НСП 1% [19:27:11]line > о реализуемом товаре [19:27:11]line ИТОГО: 1000.62 [19:27:11]line НСП 1% : 8.85 [19:27:11]line НДС 12% : 106.26 [19:27:11]line Наличными: 0.00 [19:27:11]line Безнал.: 1000.62 [19:27:11]line Место: АЗС № 106 "Партнер Нефть" [19:27:11]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:27:11]line СНО: Общий режим [19:27:11]line Чек 134 19.04.2024 19:27 [19:27:11]line Смена: 370 ФФД: 1.0 [19:27:11]line ЗНМ: 0300000141 [19:27:11]line РНМ: 0000000000091573 [19:27:11]line Версия ККМ: 001 [19:27:11]line Платежная система: Бакай Банк [19:27:11]line ФМ: 0000000000874652 [19:27:11]line ФД: 76514 [19:27:11]line ФПД: 150726719431733 [19:27:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T192710&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76514&fm=150726719431733&tin=02508201610067®Number=0000000000091573&sum=100062 [19:27:12]written 0, free lines is 4095 [19:27:12]OFD Sender: Processing packet 76514 [packets to send 128, broken 127] [19:27:12]ProducePacketName [19:27:12]name=ofd_packets/00076514 [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]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 34 36 35 32 10 01 00 00 AE B8 08 01 4F 34 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 DE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 8E C5 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E2 2A 01 00 35 04 06 00 89 15 CC 91 E4 35 99 92 9B BB 8D 44 2B FA [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 34 36 35 32 4F 00 00 00 BD 2D 47 00 2D 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 34 36 35 32 10 04 04 00 E2 2A 01 00 F4 03 04 00 18 6D 22 66 B6 04 01 00 00 F3 22 5C 93 80 5B C7 93 [19:27:12]CommunicateWithHost err = 0 [19:27:12]CheckOFDResponse [19:27:12]1017 (14) - 77093643461234 [19:27:12]1041 (16) - 0000000000874652 [19:27:12]1040 (4) - 76514 [19:27:12]1012 (4) - 19.04.2024 13:09 [19:27:12]1206 (1) - 0 [19:27:12]OFD Sender: Remove packet 76514 [19:27:12]ProducePacketName [19:27:12]name=ofd_packets/00076514 [19:27:12]NVStorageDeleteData [19:27:12]Write to MH i2c: 01 00 00 A9 00 A9 [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 A9 00 00 00 00 00 00 10 0D CD [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 3350 [19:27:12]MH_Cut [19:27:12]Write to MH i2c: D1 01 00 B0 00 01 82 [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 B0 00 00 81 [19:27:12]Write to MH i2c: 01 00 00 B1 00 B1 [19:27:12]Write i2c OK [19:27:12]MH_I2C_Read... [19:27:12]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:13]*** Brake cut motor [19:27:13]Read from MH i2c: 01 [19:27:13]MH_I2C_Read... [19:27:13]*** Stop cut motor [19:27:13]*** Cut end [19:27:13]Read from MH i2c: 01 07 00 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: 01 07 00 B1 00 00 00 00 00 00 FF 0F C6 [19:27:13]process_action close_receipt done [19:27:13]requested_data is exist [19:27:13]produce_requested_data [19:27:13]requested_item fm.sn is exist - process it [19:27:13]wFMCommunicate request_size=4 [19:27:13]MH_SAM_APDU [19:27:13]CAPDU: 80 11 00 00 [19:27:13]Write to MH i2c: E2 08 00 B2 00 80 11 00 00 00 00 00 00 2C [19:27:13]Write i2c OK [19:27:13]MH_I2C_Read... [19:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:13]Read from MH i2c: E2 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 17 00 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 17 00 B2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7F [19:27:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:27:13]wFMCommunicate OK [19:27:13]requested_item fd.num is exist - process it [19:27:13]SAM_PROTO_GetFieldsCounters [19:27:13]wFMCommunicate request_size=4 [19:27:13]MH_SAM_APDU [19:27:13]CAPDU: 80 13 00 00 [19:27:13]Write to MH i2c: E2 08 00 B3 00 80 13 00 00 00 00 00 00 2F [19:27:13]Write i2c OK [19:27:13]MH_I2C_Read... [19:27:13]*** 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 B3 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E2 2A 01 00 0E 04 04 00 72 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 62 [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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E2 2A 01 00 0E 04 04 00 72 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 [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 B4 00 80 13 01 00 00 00 00 00 31 [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 B4 00 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 16 [19:27:14]RAPDU: 09 00 01 99 B9 21 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":"0000000000874652","fd.num":76514,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [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":"0000000000874652","fd.num":76514,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [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 6.Close socket [19:27:14]Sock 6.Thread stoped [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28: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:46]accept exits with 9 [19:29:46]New connection [19:29:46]New thread 3067624804 created [19:29:46]Thread 3067481444 joined [19:29:46]Waiting for new connection... [19:29:46] Sock 9.Parse request [19:29:46]Sock 9.Check first char [19:29:46]Sock 9.First char is OK [19:29:46]request: POST /json_proto HTTP/1.0 [19:29:46]Method: POST [19:29:46]URL: /json_proto [19:29:46]Method is POST - this is cgi request [19:29:46]url: /json_proto [19:29:46]query_string will be loaded in cgi processing [19:29:46]execute_cgi json_proto POST (null) [19:29:46]execute_cgi path=json_proto method=POST [19:29:46]POST find Content-Length [19:29:46]Host: 172.17.62.5:8080 [19:29:46]Content-Length: 990 [19:29:46]Content-Type: application/json [19:29:46] [19:29:46]POST finish read [19:29:46]Found Content-Length = 990 [19:29:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 37.860, "sum" : 1200.16, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 37.86 \u0441\u043E\u043C", "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" ] } } [19:29:46]execute_script... [19:29: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)191004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 37.860, "sum" : 1200.16, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 37.86 \u0441\u043E\u043C", "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" ] } } [19:29:46]POST & json_proto [19:29:46]process_json_proto [19:29:46]json parsed OK: [19:29:46]protocol is kg_v1.0 [19:29:46]action value=close_receipt [19:29:46]process_action close_receipt [19:29:46]cmd_close_receipt [19:29:46]MH_GetDate [19:29:46]Write to MH i2c: F0 00 00 B5 00 A4 [19:29:46]Write i2c OK [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: F0 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: F0 09 00 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: F0 09 00 B5 00 00 2A C6 22 66 F4 E9 65 64 CB [19:29:46]GetLastDocTimeStamp 1713554830 [19:29:46]current date 1713554986 [19:29:46]FM_GetShiftState [19:29:46]SAM_PROTO_GetShiftState [19:29:46]wFMCommunicate request_size=4 [19:29:46]MH_SAM_APDU [19:29:46]CAPDU: 80 13 01 00 [19:29:46]Write to MH i2c: E2 08 00 B6 00 80 13 01 00 00 00 00 00 33 [19:29:46]Write i2c OK [19:29:46]MH_I2C_Read... [19:29:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:46]Read from MH i2c: E2 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: E2 0E 00 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: E2 0E 00 B6 00 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 18 [19:29:46]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:29:46]wFMCommunicate OK [19:29:46]SAM_PROTO_GetShiftState done [19:29:46]FM_GetShiftState done [19:29:46]opened in 1713486233 [19:29:46]opened+sec_in_day 1713572633 [19:29:46]quantity*price = 120016 [19:29:46]sum+1 = 120017 [19:29:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 135 19.04.2024 19:29 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 37.86 сом ФМ: 0000000000874652 ФД: 76515 ФПД: 276379083466931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T192946&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76515&fm=276379083466931&tin=02508201610067®Number=0000000000091573&sum=120000 [19:29:47]StoreToDocumentArchive [19:29:47]shift 370 fd 76515 [19:29:47]save to /storage/0370/doc_00076515 [19:29:47]save last doc name /storage/0370/doc_00076515 to /storage/kkm_last_doc_name [19:29:47]save OK [19:29:47]Clear old archive folders... [19:29:47]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:29:47]tlvbuf is 00A59560 [19:29:47]SAM_PROTO_ClearQueue [19:29:47]wFMCommunicate request_size=4 [19:29:47]MH_SAM_APDU [19:29:47]CAPDU: 80 09 00 00 [19:29:47]Write to MH i2c: E2 08 00 C3 00 80 09 00 00 00 00 00 00 35 [19:29:47]Write i2c OK [19:29:47]MH_I2C_Read... [19:29:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:47]Read from MH i2c: E2 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: E2 03 00 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [19:29:47]RAPDU: 90 00 [19:29:47]wFMCommunicate OK [19:29:47]SAM_PROTO_ClearQueue done [19:29:47]KKMCreateOFDPacket [19:29:47]OFDProtocolAddRootSTLVToBuf [19:29:47]FM_MakeSignedData [19:29:47]FM_MakeSignedData [19:29:47]SAM_PROTO_SignData [19:29:47]wFMCommunicate request_size=4 [19:29:47]MH_SAM_APDU [19:29:47]CAPDU: 80 0D 01 02 [19:29:47]Write to MH i2c: E2 08 00 C4 00 80 0D 01 02 00 00 00 00 3D [19:29:47]Write i2c OK [19:29:47]MH_I2C_Read... [19:29:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:47]Read from MH i2c: E2 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: E2 03 00 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [19:29:47]RAPDU: 90 00 [19:29:47]wFMCommunicate OK [19:29:47]wFMCommunicate request_size=255 [19:29:47]MH_SAM_APDU [19:29:47]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E4 93 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 D0 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 87 00 00 00 F4 03 04 00 2A C6 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E3 2A 01 00 35 04 06 00 FB 5D [19:29:47]Write to MH i2c: E2 02 01 C5 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E4 93 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 D0 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 87 00 00 00 F4 03 04 00 2A C6 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E3 2A 01 00 35 04 06 00 FB 5D 00 00 9E [19:29:47]Write i2c OK [19:29:47]MH_I2C_Read... [19:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:47]Read from MH i2c: E2 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: E2 03 00 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: E2 03 00 C5 00 00 90 00 39 [19:29:47]RAPDU: 90 00 [19:29:47]wFMCommunicate OK [19:29:47]wFMCommunicate request_size=9 [19:29:47]MH_SAM_APDU [19:29:47]CAPDU: 80 0D 02 02 04 85 17 E8 B3 [19:29:47]Write to MH i2c: E2 0C 00 C6 00 80 0D 02 02 04 00 85 17 E8 B3 00 00 7F [19:29:47]Write i2c OK [19:29:47]MH_I2C_Read... [19:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:47]Read from MH i2c: E2 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: E2 03 00 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: E2 03 00 C6 00 00 90 00 3A [19:29:47]RAPDU: 90 00 [19:29:47]wFMCommunicate OK [19:29:47]wFMCommunicate request_size=4 [19:29:47]MH_SAM_APDU [19:29:47]CAPDU: 80 0D 03 02 [19:29:47]Write to MH i2c: E2 08 00 C7 00 80 0D 03 02 00 00 00 00 42 [19:29:47]Write i2c OK [19:29:47]MH_I2C_Read... [19:29:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:47]Read from MH i2c: E2 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: E2 0B 00 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: E2 0B 00 C7 00 00 61 74 B4 A8 04 15 22 0A 90 00 B9 [19:29:47]RAPDU: 61 74 B4 A8 04 15 22 0A 90 00 [19:29:47]wFMCommunicate OK [19:29:47]SAM_PROTO_SignData done [19:29:47]FM_MakeSignedData done [19:29:47]CreateOFDProtocolMessage [19:29:47]wFMCommunicate request_size=4 [19:29:47]MH_SAM_APDU [19:29:47]CAPDU: 80 11 00 00 [19:29:47]Write to MH i2c: E2 08 00 C8 00 80 11 00 00 00 00 00 00 42 [19:29:47]Write i2c OK [19:29:47]MH_I2C_Read... [19:29:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:47]Read from MH i2c: E2 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: E2 17 00 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: E2 17 00 C8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 95 [19:29:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:29:47]wFMCommunicate OK [19:29:47]CreateOFDProtocolMessage done [19:29:47]OFDSenderStorePacket 76515 [19:29:47]StoreOFDPacket docnum=76515 [19:29:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 CF 43 06 01 F2 02 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E4 93 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 D0 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 87 00 00 00 F4 03 04 00 2A C6 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E3 2A 01 00 35 04 06 00 FB 5D 85 17 E8 B3 61 74 B4 A8 04 15 22 0A [19:29:47]CheckFolder [19:29:47]dirname=/storage/ofd_packets [19:29:47]CheckFolder done [19:29:47]ProducePacketName [19:29:47]name=ofd_packets/00076515 [19:29:47]NVStorageSaveData ofd_packets/00076515 [19:29:47]File name is /storage/ofd_packets/00076515 [19:29:47]Write 300 bytes [19:29:47]NVStorageSaveData done [19:29:47]OFDSenderStorePacket done [19:29:47]KKMCreateOFDPacket done [19:29:47]NVStorageSaveData kkm_last_timestamp [19:29:47]File name is /storage/kkm_last_timestamp [19:29:47]Write 4 bytes [19:29:47]NVStorageSaveData done [19:29:47]OFD Sender: Processing packet 76515 [packets to send 128, broken 127] [19:29:47]ProducePacketName [19:29:47]name=ofd_packets/00076515 [19:29:47]OFD Sender: To server: pG, [19:29:47]CommunicateWithHost lk.salyk.kg:30040 [19:29:47]ConnectInit lk.salyk.kg [19:29:47]ExternCall_PrintAddStr [19:29:47]wPrintStart [19:29:47]Write to MH i2c: 01 00 00 C9 00 C9 [19:29:47]Write i2c OK [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: 01 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: 01 07 00 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: 01 07 00 C9 00 00 00 00 00 00 FF 0F DE [19:29:47]RasterBufferAndPrint [19:29:47]line Счет N : (1)191004 [19:29:47]line ИНН: 02508201610067 [19:29:47]line Контрольно-Кассовый Чек [19:29:47]line ПРОДАЖА [19:29:47]line ТРК (МРК, ГНК) : 71 [19:29:47]line Товар: 2711190000 [19:29:47]line ГАЗ-К-5 [19:29:47]line 37.860 * 31.70 [19:29:47]line = 1200.16 [19:29:47]line НДС 12% НСП 1% [19:29:47]line > о реализуемом товаре [19:29:47]line ОКРУГЛЕНИЕ: -0.16 [19:29:47]line ИТОГО: 1200.00 [19:29:47]line Внесено: 1200.00 [19:29:47]line СДАЧА: 0.00 [19:29:47]line НСП 1% : 10.62 [19:29:47]line НДС 12% : 127.45 [19:29:47]line Наличными: 1200.00 [19:29:47]line Безнал.: 0.00 [19:29:47]line Место: АЗС № 106 "Партнер Нефть" [19:29:47]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:29:47]line СНО: Общий режим [19:29:48]line Чек 135 19.04.2024 19:29 [19:29:48]line Смена: 370 ФФД: 1.0 [19:29:48]line ЗНМ: 0300000141 [19:29:48]line РНМ: 0000000000091573 [19:29:48]line Версия ККМ: 001 [19:29:48]line [19:29:48]line Дисконтная программа [19:29:48]line СУГ [19:29:48]line номер 106 [19:29:48]line сэкономлено 37.86 сом [19:29:48]line ФМ: 0000000000874652 [19:29:48]line ФД: 76515 [19:29:48]line ФПД: 276379083466931 [19:29:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T192946&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76515&fm=276379083466931&tin=02508201610067®Number=0000000000091573&sum=120000 [19:29:48]Connected sock=12 [19:29:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 CF 43 06 01 F2 02 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E4 93 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 D0 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 87 00 00 00 F4 03 04 00 2A C6 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E3 2A 01 00 35 04 06 00 FB 5D 85 17 E8 B3 61 74 B4 A8 04 15 22 0A [19:29:48]written 0, free lines is 4095 [19:29:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A1 E3 47 00 64 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E3 2A 01 00 F4 03 04 00 B4 6D 22 66 B6 04 01 00 00 C6 5E E5 DA 9A C0 9C CA [19:29:48]CommunicateWithHost err = 0 [19:29:48]CheckOFDResponse [19:29:48]1017 (14) - 77093643461234 [19:29:48]1041 (16) - 0000000000874652 [19:29:48]1040 (4) - 76515 [19:29:48]1012 (4) - 19.04.2024 13:12 [19:29:48]1206 (1) - 0 [19:29:48]OFD Sender: Remove packet 76515 [19:29:48]ProducePacketName [19:29:48]name=ofd_packets/00076515 [19:29:48]NVStorageDeleteData [19:29:48]Write to MH i2c: 01 00 00 F8 00 F8 [19:29:48]Write i2c OK [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: 01 [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: 01 07 00 [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 96 0C A1 [19:29:48]RasterBufferAndPrint [19:29:48]line [19:29:48]line [19:29:48]line [19:29:48]line [19:29:48]line [19:29:48]written 0, free lines is 3229 [19:29:48]MH_Cut [19:29:48]Write to MH i2c: D1 01 00 FF 00 01 D1 [19:29:48]Write i2c OK [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: D1 [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: D1 01 00 [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: D1 01 00 FF 00 00 D0 [19:29:48]Write to MH i2c: 01 00 00 00 01 01 [19:29:48]Write i2c OK [19:29:48]MH_I2C_Read... [19:29:49]OFD Sender: No OFD packet to send [19:29:49]*** Cut start [19:29:49]*** Partial cut [19:29:49]*** CUTSNS_PIN = 1 [19:29:49]*** CUTSNS_PIN = 0 [19:29:49]*** Brake cut motor [19:29:50]Read from MH i2c: 01 [19:29:50]MH_I2C_Read... [19:29:50]*** Stop cut motor [19:29:50]*** Cut end [19:29:50]Read from MH i2c: 01 07 00 [19:29:50]MH_I2C_Read... [19:29:50]Read from MH i2c: 01 07 00 00 01 00 00 00 00 00 FF 0F 16 [19:29:50]process_action close_receipt done [19:29:50]requested_data is exist [19:29:50]produce_requested_data [19:29:50]requested_item fm.sn is exist - process it [19:29:50]wFMCommunicate request_size=4 [19:29:50]MH_SAM_APDU [19:29:50]CAPDU: 80 11 00 00 [19:29:50]Write to MH i2c: E2 08 00 01 01 80 11 00 00 00 00 00 00 7C [19:29:50]Write i2c OK [19:29:50]MH_I2C_Read... [19:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:50]Read from MH i2c: E2 [19:29:50]MH_I2C_Read... [19:29:50]Read from MH i2c: E2 17 00 [19:29:50]MH_I2C_Read... [19:29:50]Read from MH i2c: E2 17 00 01 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CF [19:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:29:50]wFMCommunicate OK [19:29:50]requested_item fd.num is exist - process it [19:29:50]SAM_PROTO_GetFieldsCounters [19:29:50]wFMCommunicate request_size=4 [19:29:50]MH_SAM_APDU [19:29:50]CAPDU: 80 13 00 00 [19:29:50]Write to MH i2c: E2 08 00 02 01 80 13 00 00 00 00 00 00 7F [19:29:50]Write i2c OK [19:29:50]MH_I2C_Read... [19:29:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:50]Read from MH i2c: E2 [19:29:50]MH_I2C_Read... [19:29:50]Read from MH i2c: E2 62 00 [19:29:50]MH_I2C_Read... [19:29:50]Read from MH i2c: E2 62 00 02 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E3 2A 01 00 0E 04 04 00 72 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 B6 [19:29: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E3 2A 01 00 0E 04 04 00 72 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 [19:29:50]wFMCommunicate OK [19:29:50]SAM_PROTO_GetFieldsCounters done [19:29:50]requested_item shift.num is exist - process it [19:29:50]requested_item shift.opened is exist - process it [19:29:50]req_shift_opened [19:29:50]FM_GetShiftState [19:29:50]SAM_PROTO_GetShiftState [19:29:50]wFMCommunicate request_size=4 [19:29:50]MH_SAM_APDU [19:29:50]CAPDU: 80 13 01 00 [19:29:50]Write to MH i2c: E2 08 00 03 01 80 13 01 00 00 00 00 00 81 [19:29:50]Write i2c OK [19:29:50]MH_I2C_Read... [19:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:50]Read from MH i2c: E2 [19:29:50]MH_I2C_Read... [19:29:50]Read from MH i2c: E2 0E 00 [19:29:50]MH_I2C_Read... [19:29:50]Read from MH i2c: E2 0E 00 03 01 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 66 [19:29:50]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:29:50]wFMCommunicate OK [19:29:50]SAM_PROTO_GetShiftState done [19:29:50]FM_GetShiftState done [19:29:50]req_shift_opened done [19:29:50]requested_item shift.open_date is exist - process it [19:29:50]req_shift_open_date [19:29:50]req_shift_open_date done [19:29:50]produce_requested_data done [19:29:50]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76515,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [19:29:50]process_action_free close_receipt [19:29:50]json_value_free [19:29:50]json_value_free done [19:29:50]process_json_proto returns [19:29:50]Send response to host [19:29:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76515,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [19:29:50]free response buf [19:29:50]execute_script done [19:29:50]execute_script returns [19:29:50]free content buf [19:29:50]Sock 9.Close socket [19:29:50]Sock 9.Thread stoped [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:28]accept exits with 7 [19:31:28]New connection [19:31:28]New thread 3067481444 created [19:31:28]Thread 3067624804 joined [19:31:28]Waiting for new connection... [19:31:28] Sock 7.Parse request [19:31:28]Sock 7.Check first char [19:31:28]Sock 7.First char is OK [19:31:28]request: POST /json_proto HTTP/1.0 [19:31:28]Method: POST [19:31:28]URL: /json_proto [19:31:28]Method is POST - this is cgi request [19:31:28]url: /json_proto [19:31:28]query_string will be loaded in cgi processing [19:31:28]execute_cgi json_proto POST (null) [19:31:28]execute_cgi path=json_proto method=POST [19:31:28]POST find Content-Length [19:31:28]Host: 172.17.62.5:8080 [19:31:28]Content-Length: 674 [19:31:28]Content-Type: application/json [19:31:28] [19:31:28]POST finish read [19:31:28]Found Content-Length = 674 [19:31:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191006", "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" : 7.000, "sum" : 510.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 510.00, "total" : 510.00, "payments": [ { "type": 0, "sum" : 510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:28]execute_script... [19:31: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)191006", "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" : 7.000, "sum" : 510.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 510.00, "total" : 510.00, "payments": [ { "type": 0, "sum" : 510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:28]POST & json_proto [19:31:28]process_json_proto [19:31:28]json parsed OK: [19:31:28]protocol is kg_v1.0 [19:31:28]action value=close_receipt [19:31:28]process_action close_receipt [19:31:28]cmd_close_receipt [19:31:28]MH_GetDate [19:31:28]Write to MH i2c: F0 00 00 04 01 F4 [19:31:28]Write i2c OK [19:31:28]MH_I2C_Read... [19:31:28]Read from MH i2c: F0 [19:31:28]MH_I2C_Read... [19:31:28]Read from MH i2c: F0 09 00 [19:31:28]MH_I2C_Read... [19:31:28]Read from MH i2c: F0 09 00 04 01 00 91 C6 22 66 F4 E9 65 64 82 [19:31:28]GetLastDocTimeStamp 1713554986 [19:31:28]current date 1713555089 [19:31:28]FM_GetShiftState [19:31:28]SAM_PROTO_GetShiftState [19:31:28]wFMCommunicate request_size=4 [19:31:28]MH_SAM_APDU [19:31:28]CAPDU: 80 13 01 00 [19:31:28]Write to MH i2c: E2 08 00 05 01 80 13 01 00 00 00 00 00 83 [19:31:28]Write i2c OK [19:31:28]MH_I2C_Read... [19:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:29]Read from MH i2c: E2 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: E2 0E 00 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: E2 0E 00 05 01 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 68 [19:31:29]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:31:29]wFMCommunicate OK [19:31:29]SAM_PROTO_GetShiftState done [19:31:29]FM_GetShiftState done [19:31:29]opened in 1713486233 [19:31:29]opened+sec_in_day 1713572633 [19:31:29]quantity*price = 51030 [19:31:29]sum+1 = 51031 [19:31:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 510.00 Внесено: 510.00 СДАЧА: 0.00 НСП 1% : 4.52 НДС 12% : 54.19 Наличными: 510.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 136 19.04.2024 19:31 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76516 ФПД: 64659130591356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T193129&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76516&fm=64659130591356&tin=02508201610067®Number=0000000000091573&sum=51000 [19:31:30]StoreToDocumentArchive [19:31:30]shift 370 fd 76516 [19:31:30]save to /storage/0370/doc_00076516 [19:31:30]save last doc name /storage/0370/doc_00076516 to /storage/kkm_last_doc_name [19:31:30]save OK [19:31:30]Clear old archive folders... [19:31:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:31:30]tlvbuf is 00A6D800 [19:31:30]SAM_PROTO_ClearQueue [19:31:30]wFMCommunicate request_size=4 [19:31:30]MH_SAM_APDU [19:31:30]CAPDU: 80 09 00 00 [19:31:30]Write to MH i2c: E2 08 00 12 01 80 09 00 00 00 00 00 00 85 [19:31:30]Write i2c OK [19:31:30]MH_I2C_Read... [19:31:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:30]Read from MH i2c: E2 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: E2 03 00 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: E2 03 00 12 01 00 90 00 87 [19:31:30]RAPDU: 90 00 [19:31:30]wFMCommunicate OK [19:31:30]SAM_PROTO_ClearQueue done [19:31:30]KKMCreateOFDPacket [19:31:30]OFDProtocolAddRootSTLVToBuf [19:31:30]FM_MakeSignedData [19:31:30]FM_MakeSignedData [19:31:30]SAM_PROTO_SignData [19:31:30]wFMCommunicate request_size=4 [19:31:30]MH_SAM_APDU [19:31:30]CAPDU: 80 0D 01 02 [19:31:30]Write to MH i2c: E2 08 00 13 01 80 0D 01 02 00 00 00 00 8D [19:31:30]Write i2c OK [19:31:30]MH_I2C_Read... [19:31:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:30]Read from MH i2c: E2 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: E2 03 00 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: E2 03 00 13 01 00 90 00 88 [19:31:30]RAPDU: 90 00 [19:31:30]wFMCommunicate OK [19:31:30]wFMCommunicate request_size=255 [19:31:30]MH_SAM_APDU [19:31: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 58 1B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 15 00 00 00 00 07 04 06 00 38 C7 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 91 C6 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E4 2A 01 00 35 04 06 00 3A CE A0 82 [19:31:30]Write to MH i2c: E2 02 01 14 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 1B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 15 00 00 00 00 07 04 06 00 38 C7 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 91 C6 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E4 2A 01 00 35 04 06 00 3A CE A0 82 00 00 26 [19:31:30]Write i2c OK [19:31:30]MH_I2C_Read... [19:31:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:30]Read from MH i2c: E2 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: E2 03 00 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: E2 03 00 14 01 00 90 00 89 [19:31:30]RAPDU: 90 00 [19:31:30]wFMCommunicate OK [19:31:30]wFMCommunicate request_size=7 [19:31:30]MH_SAM_APDU [19:31:30]CAPDU: 80 0D 02 02 02 A8 7C [19:31:30]Write to MH i2c: E2 0A 00 15 01 80 0D 02 02 02 00 A8 7C 00 00 B8 [19:31:30]Write i2c OK [19:31:30]MH_I2C_Read... [19:31:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:30]Read from MH i2c: E2 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: E2 03 00 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: E2 03 00 15 01 00 90 00 8A [19:31:30]RAPDU: 90 00 [19:31:30]wFMCommunicate OK [19:31:30]wFMCommunicate request_size=4 [19:31:30]MH_SAM_APDU [19:31:30]CAPDU: 80 0D 03 02 [19:31:30]Write to MH i2c: E2 08 00 16 01 80 0D 03 02 00 00 00 00 92 [19:31:30]Write i2c OK [19:31:30]MH_I2C_Read... [19:31:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:30]Read from MH i2c: E2 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: E2 0B 00 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: E2 0B 00 16 01 00 E7 C0 A2 B8 1D 4D 49 C5 90 00 0C [19:31:30]RAPDU: E7 C0 A2 B8 1D 4D 49 C5 90 00 [19:31:30]wFMCommunicate OK [19:31:30]SAM_PROTO_SignData done [19:31:30]FM_MakeSignedData done [19:31:30]CreateOFDProtocolMessage [19:31:30]wFMCommunicate request_size=4 [19:31:30]MH_SAM_APDU [19:31:30]CAPDU: 80 11 00 00 [19:31:30]Write to MH i2c: E2 08 00 17 01 80 11 00 00 00 00 00 00 92 [19:31:30]Write i2c OK [19:31:30]MH_I2C_Read... [19:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:30]Read from MH i2c: E2 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: E2 17 00 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: E2 17 00 17 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E5 [19:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:31:30]wFMCommunicate OK [19:31:30]CreateOFDProtocolMessage done [19:31:30]OFDSenderStorePacket 76516 [19:31:30]StoreOFDPacket docnum=76516 [19:31:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 B3 CB 04 01 7A 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 15 00 00 00 00 07 04 06 00 38 C7 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 91 C6 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E4 2A 01 00 35 04 06 00 3A CE A0 82 A8 7C E7 C0 A2 B8 1D 4D 49 C5 [19:31:30]CheckFolder [19:31:30]dirname=/storage/ofd_packets [19:31:30]CheckFolder done [19:31:30]ProducePacketName [19:31:30]name=ofd_packets/00076516 [19:31:30]NVStorageSaveData ofd_packets/00076516 [19:31:30]File name is /storage/ofd_packets/00076516 [19:31:30]Write 298 bytes [19:31:30]NVStorageSaveData done [19:31:30]OFDSenderStorePacket done [19:31:30]KKMCreateOFDPacket done [19:31:30]NVStorageSaveData kkm_last_timestamp [19:31:30]File name is /storage/kkm_last_timestamp [19:31:30]Write 4 bytes [19:31:30]NVStorageSaveData done [19:31:30]ExternCall_PrintAddStr [19:31:30]wPrintStart [19:31:30]Write to MH i2c: 01 00 00 18 01 19 [19:31:30]Write i2c OK [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: 01 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: 01 07 00 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: 01 07 00 18 01 00 00 00 00 00 FF 0F 2E [19:31:30]RasterBufferAndPrint [19:31:30]line Счет N : (1)191006 [19:31:30]line ИНН: 02508201610067 [19:31:30]line Контрольно-Кассовый Чек [19:31:30]line ПРОДАЖА [19:31:30]line ТРК (МРК, ГНК) : 51 [19:31:30]line Товар: 2710194210 [19:31:30]line ДТ-К-5 [19:31:30]line 7.000 * 72.90 [19:31:30]line = 510.30 [19:31:30]line НДС 12% НСП 1% [19:31:30]line > о реализуемом товаре [19:31:30]line ОКРУГЛЕНИЕ: -0.30 [19:31:30]line ИТОГО: 510.00 [19:31:30]line Внесено: 510.00 [19:31:30]line СДАЧА: 0.00 [19:31:30]line НСП 1% : 4.52 [19:31:30]line НДС 12% : 54.19 [19:31:30]line Наличными: 510.00 [19:31:30]line Безнал.: 0.00 [19:31:30]line Место: АЗС № 106 "Партнер Нефть" [19:31:30]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:31:30]line СНО: Общий режим [19:31:30]line Чек 136 19.04.2024 19:31 [19:31:30]line Смена: 370 ФФД: 1.0 [19:31:30]line ЗНМ: 0300000141 [19:31:30]line РНМ: 0000000000091573 [19:31:30]line Версия ККМ: 001 [19:31:30]line ФМ: 0000000000874652 [19:31:30]line ФД: 76516 [19:31:30]line ФПД: 64659130591356 [19:31:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T193129&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76516&fm=64659130591356&tin=02508201610067®Number=0000000000091573&sum=51000 [19:31:31]OFD Sender: Processing packet 76516 [packets to send 128, broken 127] [19:31:31]ProducePacketName [19:31:31]name=ofd_packets/00076516 [19:31:31]OFD Sender: To server: pG, [19:31:31]CommunicateWithHost lk.salyk.kg:30040 [19:31:31]ConnectInit lk.salyk.kg [19:31:31]written 0, free lines is 4095 [19:31:31]Connected sock=10 [19:31:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 B3 CB 04 01 7A 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 15 00 00 00 00 07 04 06 00 38 C7 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 91 C6 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E4 2A 01 00 35 04 06 00 3A CE A0 82 A8 7C E7 C0 A2 B8 1D 4D 49 C5 [19:31:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 F8 98 47 00 A6 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 34 36 35 32 10 04 04 00 E4 2A 01 00 F4 03 04 00 1B 6E 22 66 B6 04 01 00 00 6C 11 69 4E 1C 78 33 77 [19:31:31]CommunicateWithHost err = 0 [19:31:31]CheckOFDResponse [19:31:31]1017 (14) - 77093643461234 [19:31:31]1041 (16) - 0000000000874652 [19:31:31]1040 (4) - 76516 [19:31:31]1012 (4) - 19.04.2024 13:14 [19:31:31]1206 (1) - 0 [19:31:31]OFD Sender: Remove packet 76516 [19:31:31]ProducePacketName [19:31:31]name=ofd_packets/00076516 [19:31:31]NVStorageDeleteData [19:31:31]Write to MH i2c: 01 00 00 42 01 43 [19:31:31]Write i2c OK [19:31:31]MH_I2C_Read... [19:31:31]Read from MH i2c: 01 [19:31:31]MH_I2C_Read... [19:31:31]Read from MH i2c: 01 07 00 [19:31:31]MH_I2C_Read... [19:31:31]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 F1 0C 47 [19:31:31]RasterBufferAndPrint [19:31:31]line [19:31:31]line [19:31:31]line [19:31:31]line [19:31:31]line [19:31:31]written 0, free lines is 3320 [19:31:31]MH_Cut [19:31:31]Write to MH i2c: D1 01 00 49 01 01 1C [19:31:31]Write i2c OK [19:31:31]MH_I2C_Read... [19:31:31]Read from MH i2c: D1 [19:31:31]MH_I2C_Read... [19:31:31]Read from MH i2c: D1 01 00 [19:31:31]MH_I2C_Read... [19:31:31]Read from MH i2c: D1 01 00 49 01 00 1B [19:31:31]Write to MH i2c: 01 00 00 4A 01 4B [19:31:31]Write i2c OK [19:31:31]MH_I2C_Read... [19:31:31]OFD Sender: No OFD packet to send [19:31:32]*** Cut start [19:31:32]*** Partial cut [19:31:32]*** CUTSNS_PIN = 1 [19:31:32]*** CUTSNS_PIN = 0 [19:31:32]*** Brake cut motor [19:31:32]Read from MH i2c: 01 [19:31:32]MH_I2C_Read... [19:31:32]*** Stop cut motor [19:31:32]*** Cut end [19:31:32]Read from MH i2c: 01 07 00 [19:31:32]MH_I2C_Read... [19:31:32]Read from MH i2c: 01 07 00 4A 01 00 00 00 00 00 FF 0F 60 [19:31:32]process_action close_receipt done [19:31:32]requested_data is exist [19:31:32]produce_requested_data [19:31:32]requested_item fm.sn is exist - process it [19:31:32]wFMCommunicate request_size=4 [19:31:32]MH_SAM_APDU [19:31:32]CAPDU: 80 11 00 00 [19:31:32]Write to MH i2c: E2 08 00 4B 01 80 11 00 00 00 00 00 00 C6 [19:31:32]Write i2c OK [19:31:32]MH_I2C_Read... [19:31:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:32]Read from MH i2c: E2 [19:31:32]MH_I2C_Read... [19:31:32]Read from MH i2c: E2 17 00 [19:31:32]MH_I2C_Read... [19:31:32]Read from MH i2c: E2 17 00 4B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 19 [19:31:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:31:32]wFMCommunicate OK [19:31:32]requested_item fd.num is exist - process it [19:31:32]SAM_PROTO_GetFieldsCounters [19:31:32]wFMCommunicate request_size=4 [19:31:32]MH_SAM_APDU [19:31:32]CAPDU: 80 13 00 00 [19:31:32]Write to MH i2c: E2 08 00 4C 01 80 13 00 00 00 00 00 00 C9 [19:31:32]Write i2c OK [19:31:32]MH_I2C_Read... [19:31:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:33]Read from MH i2c: E2 [19:31:33]MH_I2C_Read... [19:31:33]Read from MH i2c: E2 62 00 [19:31:33]MH_I2C_Read... [19:31:33]Read from MH i2c: E2 62 00 4C 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E4 2A 01 00 0E 04 04 00 72 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 04 [19:31:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E4 2A 01 00 0E 04 04 00 72 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 [19:31:33]wFMCommunicate OK [19:31:33]SAM_PROTO_GetFieldsCounters done [19:31:33]requested_item shift.num is exist - process it [19:31:33]requested_item shift.opened is exist - process it [19:31:33]req_shift_opened [19:31:33]FM_GetShiftState [19:31:33]SAM_PROTO_GetShiftState [19:31:33]wFMCommunicate request_size=4 [19:31:33]MH_SAM_APDU [19:31:33]CAPDU: 80 13 01 00 [19:31:33]Write to MH i2c: E2 08 00 4D 01 80 13 01 00 00 00 00 00 CB [19:31:33]Write i2c OK [19:31:33]MH_I2C_Read... [19:31:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:33]Read from MH i2c: E2 [19:31:33]MH_I2C_Read... [19:31:33]Read from MH i2c: E2 0E 00 [19:31:33]MH_I2C_Read... [19:31:33]Read from MH i2c: E2 0E 00 4D 01 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 B0 [19:31:33]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:31:33]wFMCommunicate OK [19:31:33]SAM_PROTO_GetShiftState done [19:31:33]FM_GetShiftState done [19:31:33]req_shift_opened done [19:31:33]requested_item shift.open_date is exist - process it [19:31:33]req_shift_open_date [19:31:33]req_shift_open_date done [19:31:33]produce_requested_data done [19:31:33]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76516,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [19:31:33]process_action_free close_receipt [19:31:33]json_value_free [19:31:33]json_value_free done [19:31:33]process_json_proto returns [19:31:33]Send response to host [19:31:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76516,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [19:31:33]free response buf [19:31:33]execute_script done [19:31:33]execute_script returns [19:31:33]free content buf [19:31:33]Sock 7.Close socket [19:31:33]Sock 7.Thread stoped [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:42]OFD Sender: No OFD packet to send [19:32:47]OFD Sender: No OFD packet to send [19:32:52]OFD Sender: No OFD packet to send [19:32:57]OFD Sender: No OFD packet to send [19:33:02]OFD Sender: No OFD packet to send [19:33:07]OFD Sender: No OFD packet to send [19:33:12]OFD Sender: No OFD packet to send [19:33:17]OFD Sender: No OFD packet to send [19:33:22]OFD Sender: No OFD packet to send [19:33:27]OFD Sender: No OFD packet to send [19:33:32]OFD Sender: No OFD packet to send [19:33:37]OFD Sender: No OFD packet to send [19:33:42]OFD Sender: No OFD packet to send [19:33:47]OFD Sender: No OFD packet to send [19:33:52]OFD Sender: No OFD packet to send [19:33:57]OFD Sender: No OFD packet to send [19:34:02]OFD Sender: No OFD packet to send [19:34:07]OFD Sender: No OFD packet to send [19:34:12]OFD Sender: No OFD packet to send [19:34:17]OFD Sender: No OFD packet to send [19:34:22]OFD Sender: No OFD packet to send [19:34:27]OFD Sender: No OFD packet to send [19:34:32]OFD Sender: No OFD packet to send [19:34:37]OFD Sender: No OFD packet to send [19:34:42]OFD Sender: No OFD packet to send [19:34:47]OFD Sender: No OFD packet to send [19:34:52]OFD Sender: No OFD packet to send [19:34:57]OFD Sender: No OFD packet to send [19:35:02]OFD Sender: No OFD packet to send [19:35:07]OFD Sender: No OFD packet to send [19:35:12]OFD Sender: No OFD packet to send [19:35:17]OFD Sender: No OFD packet to send [19:35:18]accept exits with 9 [19:35:18]New connection [19:35:18]New thread 3067624804 created [19:35:18]Thread 3067481444 joined [19:35:18]Waiting for new connection... [19:35:18] Sock 9.Parse request [19:35:18]Sock 9.Check first char [19:35:18]Sock 9.First char is OK [19:35:18]request: POST /json_proto HTTP/1.0 [19:35:18]Method: POST [19:35:18]URL: /json_proto [19:35:18]Method is POST - this is cgi request [19:35:18]url: /json_proto [19:35:18]query_string will be loaded in cgi processing [19:35:18]execute_cgi json_proto POST (null) [19:35:18]execute_cgi path=json_proto method=POST [19:35:18]POST find Content-Length [19:35:18]Host: 172.17.62.5:8080 [19:35:18]Content-Length: 990 [19:35:18]Content-Type: application/json [19:35:18] [19:35:18]POST finish read [19:35:18]Found Content-Length = 990 [19:35:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:35:18]execute_script... [19:35:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:35:18]POST & json_proto [19:35:18]process_json_proto [19:35:18]json parsed OK: [19:35:18]protocol is kg_v1.0 [19:35:18]action value=close_receipt [19:35:18]process_action close_receipt [19:35:18]cmd_close_receipt [19:35:18]MH_GetDate [19:35:18]Write to MH i2c: F0 00 00 4E 01 3E [19:35:18]Write i2c OK [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: F0 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: F0 09 00 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: F0 09 00 4E 01 00 76 C7 22 66 F4 E9 65 64 B2 [19:35:18]GetLastDocTimeStamp 1713555089 [19:35:18]current date 1713555318 [19:35:18]FM_GetShiftState [19:35:18]SAM_PROTO_GetShiftState [19:35:18]wFMCommunicate request_size=4 [19:35:18]MH_SAM_APDU [19:35:18]CAPDU: 80 13 01 00 [19:35:18]Write to MH i2c: E2 08 00 4F 01 80 13 01 00 00 00 00 00 CD [19:35:18]Write i2c OK [19:35:18]MH_I2C_Read... [19:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:18]Read from MH i2c: E2 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 0E 00 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 0E 00 4F 01 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 B2 [19:35:18]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:35:18]wFMCommunicate OK [19:35:18]SAM_PROTO_GetShiftState done [19:35:18]FM_GetShiftState done [19:35:18]opened in 1713486233 [19:35:18]opened+sec_in_day 1713572633 [19:35:18]quantity*price = 100013 [19:35:18]sum+1 = 100015 [19:35:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 137 19.04.2024 19:35 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 31.55 сом ФМ: 0000000000874652 ФД: 76517 ФПД: 45090842071724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T193518&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76517&fm=45090842071724&tin=02508201610067®Number=0000000000091573&sum=100000 [19:35:19]StoreToDocumentArchive [19:35:19]shift 370 fd 76517 [19:35:19]save to /storage/0370/doc_00076517 [19:35:19]save last doc name /storage/0370/doc_00076517 to /storage/kkm_last_doc_name [19:35:19]save OK [19:35:19]Clear old archive folders... [19:35:19]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:35:19]tlvbuf is 00A656C0 [19:35:19]SAM_PROTO_ClearQueue [19:35:19]wFMCommunicate request_size=4 [19:35:19]MH_SAM_APDU [19:35:19]CAPDU: 80 09 00 00 [19:35:19]Write to MH i2c: E2 08 00 5C 01 80 09 00 00 00 00 00 00 CF [19:35:19]Write i2c OK [19:35:19]MH_I2C_Read... [19:35:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:19]Read from MH i2c: E2 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: E2 03 00 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: E2 03 00 5C 01 00 90 00 D1 [19:35:19]RAPDU: 90 00 [19:35:19]wFMCommunicate OK [19:35:19]SAM_PROTO_ClearQueue done [19:35:19]KKMCreateOFDPacket [19:35:19]OFDProtocolAddRootSTLVToBuf [19:35:19]FM_MakeSignedData [19:35:19]FM_MakeSignedData [19:35:19]SAM_PROTO_SignData [19:35:19]wFMCommunicate request_size=4 [19:35:19]MH_SAM_APDU [19:35:19]CAPDU: 80 0D 01 02 [19:35:19]Write to MH i2c: E2 08 00 5D 01 80 0D 01 02 00 00 00 00 D7 [19:35:19]Write i2c OK [19:35:19]MH_I2C_Read... [19:35:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:19]Read from MH i2c: E2 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: E2 03 00 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: E2 03 00 5D 01 00 90 00 D2 [19:35:19]RAPDU: 90 00 [19:35:19]wFMCommunicate OK [19:35:19]wFMCommunicate request_size=255 [19:35:19]MH_SAM_APDU [19:35:19]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 76 C7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E5 2A 01 00 35 04 06 00 29 02 [19:35:19]Write to MH i2c: E2 02 01 5E 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 76 C7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E5 2A 01 00 35 04 06 00 29 02 00 00 4C [19:35:19]Write i2c OK [19:35:19]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 03 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 03 00 5E 01 00 90 00 D3 [19:35:20]RAPDU: 90 00 [19:35:20]wFMCommunicate OK [19:35:20]wFMCommunicate request_size=9 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 0D 02 02 04 87 9F D2 AC [19:35:20]Write to MH i2c: E2 0C 00 5F 01 80 0D 02 02 04 00 87 9F D2 AC 00 00 86 [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 03 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 03 00 5F 01 00 90 00 D4 [19:35:20]RAPDU: 90 00 [19:35:20]wFMCommunicate OK [19:35:20]wFMCommunicate request_size=4 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 0D 03 02 [19:35:20]Write to MH i2c: E2 08 00 60 01 80 0D 03 02 00 00 00 00 DC [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 0B 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 0B 00 60 01 00 0C 8A 1D D0 5F C7 1B 39 90 00 DA [19:35:20]RAPDU: 0C 8A 1D D0 5F C7 1B 39 90 00 [19:35:20]wFMCommunicate OK [19:35:20]SAM_PROTO_SignData done [19:35:20]FM_MakeSignedData done [19:35:20]CreateOFDProtocolMessage [19:35:20]wFMCommunicate request_size=4 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 11 00 00 [19:35:20]Write to MH i2c: E2 08 00 61 01 80 11 00 00 00 00 00 00 DC [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 17 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 17 00 61 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2F [19:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:35:20]wFMCommunicate OK [19:35:20]CreateOFDProtocolMessage done [19:35:20]OFDSenderStorePacket 76517 [19:35:20]StoreOFDPacket docnum=76517 [19:35:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 9E E8 06 01 BE 1E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 76 C7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E5 2A 01 00 35 04 06 00 29 02 87 9F D2 AC 0C 8A 1D D0 5F C7 1B 39 [19:35:20]CheckFolder [19:35:20]dirname=/storage/ofd_packets [19:35:20]CheckFolder done [19:35:20]ProducePacketName [19:35:20]name=ofd_packets/00076517 [19:35:20]NVStorageSaveData ofd_packets/00076517 [19:35:20]File name is /storage/ofd_packets/00076517 [19:35:20]Write 300 bytes [19:35:20]NVStorageSaveData done [19:35:20]OFDSenderStorePacket done [19:35:20]KKMCreateOFDPacket done [19:35:20]NVStorageSaveData kkm_last_timestamp [19:35:20]File name is /storage/kkm_last_timestamp [19:35:20]Write 4 bytes [19:35:20]NVStorageSaveData done [19:35:20]ExternCall_PrintAddStr [19:35:20]wPrintStart [19:35:20]Write to MH i2c: 01 00 00 62 01 63 [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: 01 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: 01 07 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: 01 07 00 62 01 00 00 00 00 00 FF 0F 78 [19:35:20]RasterBufferAndPrint [19:35:20]line Счет N : (1)191007 [19:35:20]line ИНН: 02508201610067 [19:35:20]line Контрольно-Кассовый Чек [19:35:20]line ПРОДАЖА [19:35:20]line ТРК (МРК, ГНК) : 71 [19:35:20]line Товар: 2711190000 [19:35:20]line ГАЗ-К-5 [19:35:20]line 31.550 * 31.70 [19:35:20]line = 1000.14 [19:35:20]line НДС 12% НСП 1% [19:35:20]line > о реализуемом товаре [19:35:20]line ОКРУГЛЕНИЕ: -0.14 [19:35:20]line ИТОГО: 1000.00 [19:35:20]line Внесено: 1000.00 [19:35:20]line СДАЧА: 0.00 [19:35:20]line НСП 1% : 8.85 [19:35:20]line НДС 12% : 106.21 [19:35:20]line Наличными: 1000.00 [19:35:20]line Безнал.: 0.00 [19:35:20]line Место: АЗС № 106 "Партнер Нефть" [19:35:20]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:35:20]line СНО: Общий режим [19:35:20]line Чек 137 19.04.2024 19:35 [19:35:20]line Смена: 370 ФФД: 1.0 [19:35:20]line ЗНМ: 0300000141 [19:35:20]line РНМ: 0000000000091573 [19:35:20]line Версия ККМ: 001 [19:35:20]line [19:35:20]line Дисконтная программа [19:35:20]line СУГ [19:35:20]line номер 106 [19:35:20]line сэкономлено 31.55 сом [19:35:20]line ФМ: 0000000000874652 [19:35:20]line ФД: 76517 [19:35:20]line ФПД: 45090842071724 [19:35:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T193518&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76517&fm=45090842071724&tin=02508201610067®Number=0000000000091573&sum=100000 [19:35:20]OFD Sender: Processing packet 76517 [packets to send 128, broken 127] [19:35:20]ProducePacketName [19:35:20]name=ofd_packets/00076517 [19:35:20]OFD Sender: To server: pG, [19:35:20]CommunicateWithHost lk.salyk.kg:30040 [19:35:20]ConnectInit lk.salyk.kg [19:35:20]written 0, free lines is 4095 [19:35:20]Connected sock=10 [19:35:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 9E E8 06 01 BE 1E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 76 C7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E5 2A 01 00 35 04 06 00 29 02 87 9F D2 AC 0C 8A 1D D0 5F C7 1B 39 [19:35:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 11 9C 47 00 00 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E5 2A 01 00 F4 03 04 00 01 6F 22 66 B6 04 01 00 00 B5 A6 47 D3 45 26 6F EB [19:35:20]CommunicateWithHost err = 0 [19:35:20]CheckOFDResponse [19:35:20]1017 (14) - 77093643461234 [19:35:20]1041 (16) - 0000000000874652 [19:35:20]1040 (4) - 76517 [19:35:20]1012 (4) - 19.04.2024 13:17 [19:35:20]1206 (1) - 0 [19:35:20]OFD Sender: Remove packet 76517 [19:35:20]ProducePacketName [19:35:20]name=ofd_packets/00076517 [19:35:20]NVStorageDeleteData [19:35:21]Write to MH i2c: 01 00 00 91 01 92 [19:35:21]Write i2c OK [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: 01 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: 01 07 00 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: 01 07 00 91 01 00 00 00 00 00 98 0C 3D [19:35:21]RasterBufferAndPrint [19:35:21]line [19:35:21]line [19:35:21]line [19:35:21]line [19:35:21]line [19:35:21]written 0, free lines is 3230 [19:35:21]MH_Cut [19:35:21]Write to MH i2c: D1 01 00 98 01 01 6B [19:35:21]Write i2c OK [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: D1 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: D1 01 00 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: D1 01 00 98 01 00 6A [19:35:21]Write to MH i2c: 01 00 00 99 01 9A [19:35:21]Write i2c OK [19:35:21]MH_I2C_Read... [19:35:21]OFD Sender: No OFD packet to send [19:35:21]*** Cut start [19:35:21]*** Partial cut [19:35:21]*** CUTSNS_PIN = 1 [19:35:21]*** CUTSNS_PIN = 0 [19:35:22]*** Brake cut motor [19:35:22]Read from MH i2c: 01 [19:35:22]MH_I2C_Read... [19:35:22]*** Stop cut motor [19:35:22]*** Cut end [19:35:22]Read from MH i2c: 01 07 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: 01 07 00 99 01 00 00 00 00 00 FF 0F AF [19:35:22]process_action close_receipt done [19:35:22]requested_data is exist [19:35:22]produce_requested_data [19:35:22]requested_item fm.sn is exist - process it [19:35:22]wFMCommunicate request_size=4 [19:35:22]MH_SAM_APDU [19:35:22]CAPDU: 80 11 00 00 [19:35:22]Write to MH i2c: E2 08 00 9A 01 80 11 00 00 00 00 00 00 15 [19:35:22]Write i2c OK [19:35:22]MH_I2C_Read... [19:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:22]Read from MH i2c: E2 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 17 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 17 00 9A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 68 [19:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:35:22]wFMCommunicate OK [19:35:22]requested_item fd.num is exist - process it [19:35:22]SAM_PROTO_GetFieldsCounters [19:35:22]wFMCommunicate request_size=4 [19:35:22]MH_SAM_APDU [19:35:22]CAPDU: 80 13 00 00 [19:35:22]Write to MH i2c: E2 08 00 9B 01 80 13 00 00 00 00 00 00 18 [19:35:22]Write i2c OK [19:35:22]MH_I2C_Read... [19:35:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:22]Read from MH i2c: E2 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 62 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 62 00 9B 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E5 2A 01 00 0E 04 04 00 72 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 57 [19:35:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E5 2A 01 00 0E 04 04 00 72 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 [19:35:22]wFMCommunicate OK [19:35:22]SAM_PROTO_GetFieldsCounters done [19:35:22]requested_item shift.num is exist - process it [19:35:22]requested_item shift.opened is exist - process it [19:35:22]req_shift_opened [19:35:22]FM_GetShiftState [19:35:22]SAM_PROTO_GetShiftState [19:35:22]wFMCommunicate request_size=4 [19:35:22]MH_SAM_APDU [19:35:22]CAPDU: 80 13 01 00 [19:35:22]Write to MH i2c: E2 08 00 9C 01 80 13 01 00 00 00 00 00 1A [19:35:22]Write i2c OK [19:35:22]MH_I2C_Read... [19:35:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:22]Read from MH i2c: E2 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 0E 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 0E 00 9C 01 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 FF [19:35:22]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:35:22]wFMCommunicate OK [19:35:22]SAM_PROTO_GetShiftState done [19:35:22]FM_GetShiftState done [19:35:22]req_shift_opened done [19:35:22]requested_item shift.open_date is exist - process it [19:35:22]req_shift_open_date [19:35:22]req_shift_open_date done [19:35:22]produce_requested_data done [19:35:22]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76517,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [19:35:22]process_action_free close_receipt [19:35:22]json_value_free [19:35:22]json_value_free done [19:35:22]process_json_proto returns [19:35:22]Send response to host [19:35:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76517,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [19:35:22]free response buf [19:35:22]execute_script done [19:35:22]execute_script returns [19:35:22]free content buf [19:35:22]Sock 9.Close socket [19:35:22]Sock 9.Thread stoped [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:38]accept exits with 7 [19:36:38]New connection [19:36:38]New thread 3067481444 created [19:36:38]Thread 3067624804 joined [19:36:38]Waiting for new connection... [19:36:38] Sock 7.Parse request [19:36:38]Sock 7.Check first char [19:36:38]Sock 7.First char is OK [19:36:38]request: POST /json_proto HTTP/1.0 [19:36:38]Method: POST [19:36:38]URL: /json_proto [19:36:38]Method is POST - this is cgi request [19:36:38]url: /json_proto [19:36:38]query_string will be loaded in cgi processing [19:36:38]execute_cgi json_proto POST (null) [19:36:38]execute_cgi path=json_proto method=POST [19:36:38]POST find Content-Length [19:36:38]Host: 172.17.62.5:8080 [19:36:38]Content-Length: 1168 [19:36:38]Content-Type: application/json [19:36:38] [19:36:38]POST finish read [19:36:38]Found Content-Length = 1168 [19:36: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)191009\u000A19.04.2024 19:18\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 64.40\u000A\u0418\u0422\u041E\u0413: 966.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:38]execute_script... [19:36: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)191009\u000A19.04.2024 19:18\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 64.40\u000A\u0418\u0422\u041E\u0413: 966.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:38]POST & json_proto [19:36:38]process_json_proto [19:36:38]json parsed OK: [19:36:38]protocol is kg_v1.0 [19:36:38]action value=print_text [19:36:38]process_action print_text [19:36:38]cmd_print_text [19:36:38]ExternCall_PrintAddStr [19:36:38]wPrintStart [19:36:38]Write to MH i2c: 01 00 00 9D 01 9E [19:36:38]Write i2c OK [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: 01 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: 01 07 00 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: 01 07 00 9D 01 00 00 00 00 00 FF 0F B3 [19:36:38]RasterBufferAndPrint [19:36:38]line *****ТОВАРНЫЙ ЧЕК***** [19:36:38]line АЗС 106 [19:36:38]line Партнер нефть [19:36:38]line 02508201610067 [19:36:38]line Кассир : Табалдиева М. [19:36:38]line Счет N : (1)191009 [19:36:38]line 19.04.2024 19:18 [19:36:38]line ПРОДАЖА [19:36:38]line ТРК (МРК, ГНК): 12 [19:36:38]line Вид ГСМ : 2710124130 [19:36:38]line Аи-92-К-5 [19:36:38]line 15.000 x 64.40 [19:36:38]line ИТОГ: 966.00 [19:36:38]line Тип оплаты: Талоны: ТК ГПНА Online [19:36:38]line 30102984 [19:36:38]line ______________________ [19:36:38]line (подпись) [19:36:38]written 0, free lines is 4095 [19:36:39]Write to MH i2c: 01 00 00 B1 01 B2 [19:36:39]Write i2c OK [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: 01 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: 01 07 00 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: 01 07 00 B1 01 00 00 00 00 00 11 0E D8 [19:36:39]RasterBufferAndPrint [19:36:39]line [19:36:39]line [19:36:39]line [19:36:39]line [19:36:39]line [19:36:39]written 0, free lines is 3602 [19:36:39]MH_Cut [19:36:39]Write to MH i2c: D1 01 00 B8 01 01 8B [19:36:39]Write i2c OK [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: D1 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: D1 01 00 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: D1 01 00 B8 01 00 8A [19:36:39]Write to MH i2c: 01 00 00 B9 01 BA [19:36:39]Write i2c OK [19:36:39]MH_I2C_Read... [19:36:39]*** Cut start [19:36:39]*** Partial cut [19:36:39]*** CUTSNS_PIN = 1 [19:36:39]*** CUTSNS_PIN = 0 [19:36:39]*** Brake cut motor [19:36:40]Read from MH i2c: 01 [19:36:40]MH_I2C_Read... [19:36:40]*** Stop cut motor [19:36:40]*** Cut end [19:36:40]Read from MH i2c: 01 07 00 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: 01 07 00 B9 01 00 00 00 00 00 FF 0F CF [19:36:40]process_action print_text done [19:36:40]requested_data is exist [19:36:40]produce_requested_data [19:36:40]requested_item fm.sn is exist - process it [19:36:40]wFMCommunicate request_size=4 [19:36:40]MH_SAM_APDU [19:36:40]CAPDU: 80 11 00 00 [19:36:40]Write to MH i2c: E2 08 00 BA 01 80 11 00 00 00 00 00 00 35 [19:36:40]Write i2c OK [19:36:40]MH_I2C_Read... [19:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:40]Read from MH i2c: E2 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: E2 17 00 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: E2 17 00 BA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 88 [19:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:36:40]wFMCommunicate OK [19:36:40]requested_item fd.num is exist - process it [19:36:40]SAM_PROTO_GetFieldsCounters [19:36:40]wFMCommunicate request_size=4 [19:36:40]MH_SAM_APDU [19:36:40]CAPDU: 80 13 00 00 [19:36:40]Write to MH i2c: E2 08 00 BB 01 80 13 00 00 00 00 00 00 38 [19:36:40]Write i2c OK [19:36:40]MH_I2C_Read... [19:36:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:40]Read from MH i2c: E2 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: E2 62 00 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: E2 62 00 BB 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E5 2A 01 00 0E 04 04 00 72 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 77 [19:36:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E5 2A 01 00 0E 04 04 00 72 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 [19:36:40]wFMCommunicate OK [19:36:40]SAM_PROTO_GetFieldsCounters done [19:36:40]requested_item shift.num is exist - process it [19:36:40]requested_item shift.opened is exist - process it [19:36:40]req_shift_opened [19:36:40]FM_GetShiftState [19:36:40]SAM_PROTO_GetShiftState [19:36:40]wFMCommunicate request_size=4 [19:36:40]MH_SAM_APDU [19:36:40]CAPDU: 80 13 01 00 [19:36:40]Write to MH i2c: E2 08 00 BC 01 80 13 01 00 00 00 00 00 3A [19:36:40]Write i2c OK [19:36:40]MH_I2C_Read... [19:36:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:40]Read from MH i2c: E2 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: E2 0E 00 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: E2 0E 00 BC 01 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 1F [19:36:40]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:36:40]wFMCommunicate OK [19:36:40]SAM_PROTO_GetShiftState done [19:36:40]FM_GetShiftState done [19:36:40]req_shift_opened done [19:36:40]requested_item shift.open_date is exist - process it [19:36:40]req_shift_open_date [19:36:40]req_shift_open_date done [19:36:40]produce_requested_data done [19:36:40]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76517,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [19:36:40]process_action_free print_text [19:36:40]json_value_free [19:36:40]json_value_free done [19:36:40]process_json_proto returns [19:36:40]Send response to host [19:36:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76517,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [19:36:40]free response buf [19:36:40]execute_script done [19:36:40]execute_script returns [19:36:40]free content buf [19:36:40]Sock 7.Close socket [19:36:40]Sock 7.Thread stoped [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:35]accept exits with 10 [19:38:35]New connection [19:38:35]New thread 3067624804 created [19:38:35]Thread 3067481444 joined [19:38:35]Waiting for new connection... [19:38:35] Sock 10.Parse request [19:38:35]Sock 10.Check first char [19:38:35]Sock 10.First char is OK [19:38:35]request: POST /json_proto HTTP/1.0 [19:38:35]Method: POST [19:38:35]URL: /json_proto [19:38:35]Method is POST - this is cgi request [19:38:35]url: /json_proto [19:38:35]query_string will be loaded in cgi processing [19:38:35]execute_cgi json_proto POST (null) [19:38:35]execute_cgi path=json_proto method=POST [19:38:35]POST find Content-Length [19:38:35]Host: 172.17.62.5:8080 [19:38:35]Content-Length: 986 [19:38:35]Content-Type: application/json [19:38:35] [19:38:35]POST finish read [19:38:35]Found Content-Length = 986 [19:38:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 28.400, "sum" : 900.28, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 28.40 \u0441\u043E\u043C", "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:35]execute_script... [19:38: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)191008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 28.400, "sum" : 900.28, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 28.40 \u0441\u043E\u043C", "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:35]POST & json_proto [19:38:35]process_json_proto [19:38:35]json parsed OK: [19:38:35]protocol is kg_v1.0 [19:38:35]action value=close_receipt [19:38:35]process_action close_receipt [19:38:35]cmd_close_receipt [19:38:35]MH_GetDate [19:38:35]Write to MH i2c: F0 00 00 BD 01 AD [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: F0 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: F0 09 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: F0 09 00 BD 01 00 3B C8 22 66 F4 E9 65 64 E7 [19:38:35]GetLastDocTimeStamp 1713555318 [19:38:35]current date 1713555515 [19:38:35]FM_GetShiftState [19:38:35]SAM_PROTO_GetShiftState [19:38:35]wFMCommunicate request_size=4 [19:38:35]MH_SAM_APDU [19:38:35]CAPDU: 80 13 01 00 [19:38:35]Write to MH i2c: E2 08 00 BE 01 80 13 01 00 00 00 00 00 3C [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:35]Read from MH i2c: E2 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 0E 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 0E 00 BE 01 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 21 [19:38:35]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:38:35]wFMCommunicate OK [19:38:35]SAM_PROTO_GetShiftState done [19:38:35]FM_GetShiftState done [19:38:35]opened in 1713486233 [19:38:35]opened+sec_in_day 1713572633 [19:38:35]quantity*price = 90028 [19:38:35]sum+1 = 90029 [19:38:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.60 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 138 19.04.2024 19:38 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 28.40 сом ФМ: 0000000000874652 ФД: 76518 ФПД: 34016110956254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T193835&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76518&fm=34016110956254&tin=02508201610067®Number=0000000000091573&sum=90000 [19:38:36]StoreToDocumentArchive [19:38:36]shift 370 fd 76518 [19:38:36]save to /storage/0370/doc_00076518 [19:38:36]save last doc name /storage/0370/doc_00076518 to /storage/kkm_last_doc_name [19:38:36]save OK [19:38:36]Clear old archive folders... [19:38:36]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:38:36]tlvbuf is 009F91A0 [19:38:36]SAM_PROTO_ClearQueue [19:38:36]wFMCommunicate request_size=4 [19:38:36]MH_SAM_APDU [19:38:36]CAPDU: 80 09 00 00 [19:38:36]Write to MH i2c: E2 08 00 CB 01 80 09 00 00 00 00 00 00 3E [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:36]Read from MH i2c: E2 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 03 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 03 00 CB 01 00 90 00 40 [19:38:36]RAPDU: 90 00 [19:38:36]wFMCommunicate OK [19:38:36]SAM_PROTO_ClearQueue done [19:38:36]KKMCreateOFDPacket [19:38:36]OFDProtocolAddRootSTLVToBuf [19:38:36]FM_MakeSignedData [19:38:36]FM_MakeSignedData [19:38:36]SAM_PROTO_SignData [19:38:36]wFMCommunicate request_size=4 [19:38:36]MH_SAM_APDU [19:38:36]CAPDU: 80 0D 01 02 [19:38:36]Write to MH i2c: E2 08 00 CC 01 80 0D 01 02 00 00 00 00 46 [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:36]Read from MH i2c: E2 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 03 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 03 00 CC 01 00 90 00 41 [19:38:36]RAPDU: 90 00 [19:38:36]wFMCommunicate OK [19:38:36]wFMCommunicate request_size=255 [19:38:36]MH_SAM_APDU [19:38:36]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F0 6E 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AC 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 3B C8 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E6 2A 01 00 35 04 06 00 1E EF [19:38:36]Write to MH i2c: E2 02 01 CD 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F0 6E 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AC 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 3B C8 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E6 2A 01 00 35 04 06 00 1E EF 00 00 F2 [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]OFD Sender: No OFD packet to send [19:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:36]Read from MH i2c: E2 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 03 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 03 00 CD 01 00 90 00 42 [19:38:36]RAPDU: 90 00 [19:38:36]wFMCommunicate OK [19:38:36]wFMCommunicate request_size=9 [19:38:36]MH_SAM_APDU [19:38:36]CAPDU: 80 0D 02 02 04 FE 35 CE DE [19:38:36]Write to MH i2c: E2 0C 00 CE 01 80 0D 02 02 04 00 FE 35 CE DE 00 00 30 [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:36]Read from MH i2c: E2 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 03 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 03 00 CE 01 00 90 00 43 [19:38:36]RAPDU: 90 00 [19:38:36]wFMCommunicate OK [19:38:36]wFMCommunicate request_size=4 [19:38:36]MH_SAM_APDU [19:38:36]CAPDU: 80 0D 03 02 [19:38:36]Write to MH i2c: E2 08 00 CF 01 80 0D 03 02 00 00 00 00 4B [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:36]Read from MH i2c: E2 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 0B 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 0B 00 CF 01 00 97 D8 A0 04 63 EB 14 1E 90 00 DF [19:38:36]RAPDU: 97 D8 A0 04 63 EB 14 1E 90 00 [19:38:36]wFMCommunicate OK [19:38:36]SAM_PROTO_SignData done [19:38:36]FM_MakeSignedData done [19:38:36]CreateOFDProtocolMessage [19:38:36]wFMCommunicate request_size=4 [19:38:36]MH_SAM_APDU [19:38:36]CAPDU: 80 11 00 00 [19:38:36]Write to MH i2c: E2 08 00 D0 01 80 11 00 00 00 00 00 00 4B [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:36]Read from MH i2c: E2 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 17 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 17 00 D0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9E [19:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:38:36]wFMCommunicate OK [19:38:36]CreateOFDProtocolMessage done [19:38:36]OFDSenderStorePacket 76518 [19:38:36]StoreOFDPacket docnum=76518 [19:38:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 97 A3 06 01 5B D9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F0 6E 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AC 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 3B C8 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E6 2A 01 00 35 04 06 00 1E EF FE 35 CE DE 97 D8 A0 04 63 EB 14 1E [19:38:36]CheckFolder [19:38:36]dirname=/storage/ofd_packets [19:38:36]CheckFolder done [19:38:36]ProducePacketName [19:38:36]name=ofd_packets/00076518 [19:38:36]NVStorageSaveData ofd_packets/00076518 [19:38:36]File name is /storage/ofd_packets/00076518 [19:38:36]Write 300 bytes [19:38:36]NVStorageSaveData done [19:38:36]OFDSenderStorePacket done [19:38:36]KKMCreateOFDPacket done [19:38:36]NVStorageSaveData kkm_last_timestamp [19:38:36]File name is /storage/kkm_last_timestamp [19:38:36]Write 4 bytes [19:38:36]NVStorageSaveData done [19:38:36]ExternCall_PrintAddStr [19:38:36]wPrintStart [19:38:36]Write to MH i2c: 01 00 00 D1 01 D2 [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: 01 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: 01 07 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 FF 0F E7 [19:38:36]RasterBufferAndPrint [19:38:36]line Счет N : (1)191008 [19:38:36]line ИНН: 02508201610067 [19:38:36]line Контрольно-Кассовый Чек [19:38:36]line ПРОДАЖА [19:38:36]line ТРК (МРК, ГНК) : 71 [19:38:36]line Товар: 2711190000 [19:38:36]line ГАЗ-К-5 [19:38:36]line 28.400 * 31.70 [19:38:36]line = 900.28 [19:38:36]line НДС 12% НСП 1% [19:38:36]line > о реализуемом товаре [19:38:36]line ОКРУГЛЕНИЕ: -0.28 [19:38:36]line ИТОГО: 900.00 [19:38:36]line Внесено: 900.00 [19:38:36]line СДАЧА: 0.00 [19:38:36]line НСП 1% : 7.97 [19:38:36]line НДС 12% : 95.60 [19:38:36]line Наличными: 900.00 [19:38:36]line Безнал.: 0.00 [19:38:36]line Место: АЗС № 106 "Партнер Нефть" [19:38:36]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:38:36]line СНО: Общий режим [19:38:36]line Чек 138 19.04.2024 19:38 [19:38:36]line Смена: 370 ФФД: 1.0 [19:38:36]line ЗНМ: 0300000141 [19:38:36]line РНМ: 0000000000091573 [19:38:36]line Версия ККМ: 001 [19:38:36]line [19:38:36]line Дисконтная программа [19:38:36]line СУГ [19:38:36]line номер 106 [19:38:36]line сэкономлено 28.40 сом [19:38:36]line ФМ: 0000000000874652 [19:38:36]line ФД: 76518 [19:38:36]line ФПД: 34016110956254 [19:38:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T193835&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76518&fm=34016110956254&tin=02508201610067®Number=0000000000091573&sum=90000 [19:38:37]OFD Sender: Processing packet 76518 [packets to send 128, broken 127] [19:38:37]ProducePacketName [19:38:37]name=ofd_packets/00076518 [19:38:37]OFD Sender: To server: pG, [19:38:37]CommunicateWithHost lk.salyk.kg:30040 [19:38:37]ConnectInit lk.salyk.kg [19:38:37]written 0, free lines is 4095 [19:38:37]Connected sock=9 [19:38:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 97 A3 06 01 5B D9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F0 6E 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AC 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 3B C8 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E6 2A 01 00 35 04 06 00 1E EF FE 35 CE DE 97 D8 A0 04 63 EB 14 1E [19:38:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 1F 52 47 00 1C 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 34 36 35 32 10 04 04 00 E6 2A 01 00 F4 03 04 00 C6 6F 22 66 B6 04 01 00 00 62 DB 34 32 2F FD 38 26 [19:38:37]CommunicateWithHost err = 0 [19:38:37]CheckOFDResponse [19:38:37]1017 (14) - 77093643461234 [19:38:37]1041 (16) - 0000000000874652 [19:38:37]1040 (4) - 76518 [19:38:37]1012 (4) - 19.04.2024 13:21 [19:38:37]1206 (1) - 0 [19:38:37]OFD Sender: Remove packet 76518 [19:38:37]ProducePacketName [19:38:37]name=ofd_packets/00076518 [19:38:37]NVStorageDeleteData [19:38:37]Write to MH i2c: 01 00 00 00 02 02 [19:38:37]Write i2c OK [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: 01 [19:38:37]MH_I2C_Read... [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 00 02 00 00 00 00 00 8A 0C 9F [19:38:37]RasterBufferAndPrint [19:38:37]line [19:38:37]line [19:38:37]line [19:38:37]line [19:38:37]line [19:38:37]written 0, free lines is 3217 [19:38:37]MH_Cut [19:38:37]Write to MH i2c: D1 01 00 07 02 01 DB [19:38:37]Write i2c OK [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: D1 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: D1 01 00 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: D1 01 00 07 02 00 DA [19:38:37]Write to MH i2c: 01 00 00 08 02 0A [19:38:37]Write i2c OK [19:38:37]MH_I2C_Read... [19:38:38]OFD Sender: No OFD packet to send [19:38:38]*** Cut start [19:38:38]*** Partial cut [19:38:38]*** CUTSNS_PIN = 1 [19:38:38]*** CUTSNS_PIN = 0 [19:38:38]*** Brake cut motor [19:38:39]Read from MH i2c: 01 [19:38:39]MH_I2C_Read... [19:38:39]*** Stop cut motor [19:38:39]*** Cut end [19:38:39]Read from MH i2c: 01 07 00 [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: 01 07 00 08 02 00 00 00 00 00 FF 0F 1F [19:38:39]process_action close_receipt done [19:38:39]requested_data is exist [19:38:39]produce_requested_data [19:38:39]requested_item fm.sn is exist - process it [19:38:39]wFMCommunicate request_size=4 [19:38:39]MH_SAM_APDU [19:38:39]CAPDU: 80 11 00 00 [19:38:39]Write to MH i2c: E2 08 00 09 02 80 11 00 00 00 00 00 00 85 [19:38:39]Write i2c OK [19:38:39]MH_I2C_Read... [19:38:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:39]Read from MH i2c: E2 [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: E2 17 00 [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: E2 17 00 09 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D8 [19:38:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:38:39]wFMCommunicate OK [19:38:39]requested_item fd.num is exist - process it [19:38:39]SAM_PROTO_GetFieldsCounters [19:38:39]wFMCommunicate request_size=4 [19:38:39]MH_SAM_APDU [19:38:39]CAPDU: 80 13 00 00 [19:38:39]Write to MH i2c: E2 08 00 0A 02 80 13 00 00 00 00 00 00 88 [19:38:39]Write i2c OK [19:38:39]MH_I2C_Read... [19:38:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:39]Read from MH i2c: E2 [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: E2 62 00 [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: E2 62 00 0A 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E6 2A 01 00 0E 04 04 00 72 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 CB [19:38:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E6 2A 01 00 0E 04 04 00 72 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 [19:38:39]wFMCommunicate OK [19:38:39]SAM_PROTO_GetFieldsCounters done [19:38:39]requested_item shift.num is exist - process it [19:38:39]requested_item shift.opened is exist - process it [19:38:39]req_shift_opened [19:38:39]FM_GetShiftState [19:38:39]SAM_PROTO_GetShiftState [19:38:39]wFMCommunicate request_size=4 [19:38:39]MH_SAM_APDU [19:38:39]CAPDU: 80 13 01 00 [19:38:39]Write to MH i2c: E2 08 00 0B 02 80 13 01 00 00 00 00 00 8A [19:38:39]Write i2c OK [19:38:39]MH_I2C_Read... [19:38:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:39]Read from MH i2c: E2 [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: E2 0E 00 [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: E2 0E 00 0B 02 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 6F [19:38:39]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:38:39]wFMCommunicate OK [19:38:39]SAM_PROTO_GetShiftState done [19:38:39]FM_GetShiftState done [19:38:39]req_shift_opened done [19:38:39]requested_item shift.open_date is exist - process it [19:38:39]req_shift_open_date [19:38:39]req_shift_open_date done [19:38:39]produce_requested_data done [19:38:39]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76518,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [19:38:39]process_action_free close_receipt [19:38:39]json_value_free [19:38:39]json_value_free done [19:38:39]process_json_proto returns [19:38:39]Send response to host [19:38:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76518,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [19:38:39]free response buf [19:38:39]execute_script done [19:38:39]execute_script returns [19:38:39]free content buf [19:38:39]Sock 10.Close socket [19:38:39]Sock 10.Thread stoped [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:49]accept exits with 7 [19:38:49]New connection [19:38:49]New thread 3067481444 created [19:38:49]Thread 3067624804 joined [19:38:49]Waiting for new connection... [19:38:49] Sock 7.Parse request [19:38:49]Sock 7.Check first char [19:38:49]Sock 7.First char is OK [19:38:49]request: POST /json_proto HTTP/1.0 [19:38:49]Method: POST [19:38:49]URL: /json_proto [19:38:49]Method is POST - this is cgi request [19:38:49]url: /json_proto [19:38:49]query_string will be loaded in cgi processing [19:38:49]execute_cgi json_proto POST (null) [19:38:49]execute_cgi path=json_proto method=POST [19:38:49]POST find Content-Length [19:38:49]Host: 172.17.62.5:8080 [19:38:49]Content-Length: 677 [19:38:49]Content-Type: application/json [19:38:49] [19:38:49]POST finish read [19:38:49]Found Content-Length = 677 [19:38:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191010", "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" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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:49]execute_script... [19:38: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)191010", "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" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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:49]POST & json_proto [19:38:49]process_json_proto [19:38:49]json parsed OK: [19:38:49]protocol is kg_v1.0 [19:38:49]action value=close_receipt [19:38:49]process_action close_receipt [19:38:49]cmd_close_receipt [19:38:49]MH_GetDate [19:38:49]Write to MH i2c: F0 00 00 0C 02 FD [19:38:49]Write i2c OK [19:38:49]MH_I2C_Read... [19:38:49]Read from MH i2c: F0 [19:38:49]MH_I2C_Read... [19:38:49]Read from MH i2c: F0 09 00 [19:38:49]MH_I2C_Read... [19:38:49]Read from MH i2c: F0 09 00 0C 02 00 49 C8 22 66 F4 E9 65 64 45 [19:38:49]GetLastDocTimeStamp 1713555515 [19:38:49]current date 1713555529 [19:38:49]FM_GetShiftState [19:38:49]SAM_PROTO_GetShiftState [19:38:49]wFMCommunicate request_size=4 [19:38:49]MH_SAM_APDU [19:38:49]CAPDU: 80 13 01 00 [19:38:49]Write to MH i2c: E2 08 00 0D 02 80 13 01 00 00 00 00 00 8C [19:38:49]Write i2c OK [19:38:49]MH_I2C_Read... [19:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:49]Read from MH i2c: E2 [19:38:49]MH_I2C_Read... [19:38:49]Read from MH i2c: E2 0E 00 [19:38:49]MH_I2C_Read... [19:38:49]Read from MH i2c: E2 0E 00 0D 02 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 71 [19:38:49]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:38:49]wFMCommunicate OK [19:38:49]SAM_PROTO_GetShiftState done [19:38:49]FM_GetShiftState done [19:38:49]opened in 1713486233 [19:38:49]opened+sec_in_day 1713572633 [19:38:49]quantity*price = 30010 [19:38:49]sum+1 = 30011 [19:38:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 139 19.04.2024 19:38 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76519 ФПД: 129809705406469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T193849&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76519&fm=129809705406469&tin=02508201610067®Number=0000000000091573&sum=30000 [19:38:50]StoreToDocumentArchive [19:38:50]shift 370 fd 76519 [19:38:50]save to /storage/0370/doc_00076519 [19:38:50]save last doc name /storage/0370/doc_00076519 to /storage/kkm_last_doc_name [19:38:50]save OK [19:38:50]Clear old archive folders... [19:38:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:50]tlvbuf is 009FB880 [19:38:50]SAM_PROTO_ClearQueue [19:38:50]wFMCommunicate request_size=4 [19:38:50]MH_SAM_APDU [19:38:50]CAPDU: 80 09 00 00 [19:38:50]Write to MH i2c: E2 08 00 1A 02 80 09 00 00 00 00 00 00 8E [19:38:50]Write i2c OK [19:38:50]MH_I2C_Read... [19:38:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:50]Read from MH i2c: E2 [19:38:50]MH_I2C_Read... [19:38:50]Read from MH i2c: E2 03 00 [19:38:50]MH_I2C_Read... [19:38:50]Read from MH i2c: E2 03 00 1A 02 00 90 00 90 [19:38:50]RAPDU: 90 00 [19:38:50]wFMCommunicate OK [19:38:50]SAM_PROTO_ClearQueue done [19:38:50]KKMCreateOFDPacket [19:38:50]OFDProtocolAddRootSTLVToBuf [19:38:50]FM_MakeSignedData [19:38:50]FM_MakeSignedData [19:38:50]SAM_PROTO_SignData [19:38:50]wFMCommunicate request_size=4 [19:38:50]MH_SAM_APDU [19:38:50]CAPDU: 80 0D 01 02 [19:38:50]Write to MH i2c: E2 08 00 1B 02 80 0D 01 02 00 00 00 00 96 [19:38:50]Write i2c OK [19:38:50]MH_I2C_Read... [19:38:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:50]Read from MH i2c: E2 [19:38:50]MH_I2C_Read... [19:38:50]Read from MH i2c: E2 03 00 [19:38:50]MH_I2C_Read... [19:38:50]Read from MH i2c: E2 03 00 1B 02 00 90 00 91 [19:38:50]RAPDU: 90 00 [19:38:50]wFMCommunicate OK [19:38:50]wFMCommunicate request_size=255 [19:38:50]MH_SAM_APDU [19:38: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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 8B 00 00 00 F4 03 04 00 49 C8 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E7 2A 01 00 35 04 06 00 76 [19:38:50]Write to MH i2c: E2 02 01 1C 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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 8B 00 00 00 F4 03 04 00 49 C8 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E7 2A 01 00 35 04 06 00 76 00 00 C9 [19:38:51]Write i2c OK [19:38:51]MH_I2C_Read... [19:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:51]Read from MH i2c: E2 [19:38:51]MH_I2C_Read... [19:38:51]Read from MH i2c: E2 03 00 [19:38:51]MH_I2C_Read... [19:38:51]Read from MH i2c: E2 03 00 1C 02 00 90 00 92 [19:38:51]RAPDU: 90 00 [19:38:51]wFMCommunicate OK [19:38:51]wFMCommunicate request_size=10 [19:38:51]MH_SAM_APDU [19:38:51]CAPDU: 80 0D 02 02 05 0F AD 61 10 05 [19:38:51]Write to MH i2c: E2 0D 00 1D 02 80 0D 02 02 05 00 0F AD 61 10 05 00 00 D5 [19:38:51]Write i2c OK [19:38:51]MH_I2C_Read... [19:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:51]Read from MH i2c: E2 [19:38:51]MH_I2C_Read... [19:38:51]Read from MH i2c: E2 03 00 [19:38:51]MH_I2C_Read... [19:38:51]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [19:38:51]RAPDU: 90 00 [19:38:51]wFMCommunicate OK [19:38:51]wFMCommunicate request_size=4 [19:38:51]MH_SAM_APDU [19:38:51]CAPDU: 80 0D 03 02 [19:38:51]Write to MH i2c: E2 08 00 1E 02 80 0D 03 02 00 00 00 00 9B [19:38:51]Write i2c OK [19:38:51]MH_I2C_Read... [19:38:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:51]Read from MH i2c: E2 [19:38:51]MH_I2C_Read... [19:38:51]Read from MH i2c: E2 0B 00 [19:38:51]MH_I2C_Read... [19:38:51]Read from MH i2c: E2 0B 00 1E 02 00 50 29 F2 E7 EC 5F 7A A7 90 00 5A [19:38:51]RAPDU: 50 29 F2 E7 EC 5F 7A A7 90 00 [19:38:51]wFMCommunicate OK [19:38:51]SAM_PROTO_SignData done [19:38:51]FM_MakeSignedData done [19:38:51]CreateOFDProtocolMessage [19:38:51]wFMCommunicate request_size=4 [19:38:51]MH_SAM_APDU [19:38:51]CAPDU: 80 11 00 00 [19:38:51]Write to MH i2c: E2 08 00 1F 02 80 11 00 00 00 00 00 00 9B [19:38:51]Write i2c OK [19:38:51]MH_I2C_Read... [19:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:51]Read from MH i2c: E2 [19:38:51]MH_I2C_Read... [19:38:51]Read from MH i2c: E2 17 00 [19:38:51]MH_I2C_Read... [19:38:51]Read from MH i2c: E2 17 00 1F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EE [19:38:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:38:51]wFMCommunicate OK [19:38:51]CreateOFDProtocolMessage done [19:38:51]OFDSenderStorePacket 76519 [19:38:51]StoreOFDPacket docnum=76519 [19:38:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 CF B7 07 01 9F 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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 8B 00 00 00 F4 03 04 00 49 C8 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E7 2A 01 00 35 04 06 00 76 0F AD 61 10 05 50 29 F2 E7 EC 5F 7A A7 [19:38:51]CheckFolder [19:38:51]dirname=/storage/ofd_packets [19:38:51]CheckFolder done [19:38:51]ProducePacketName [19:38:51]name=ofd_packets/00076519 [19:38:51]NVStorageSaveData ofd_packets/00076519 [19:38:51]File name is /storage/ofd_packets/00076519 [19:38:51]Write 301 bytes [19:38:51]NVStorageSaveData done [19:38:51]OFDSenderStorePacket done [19:38:51]KKMCreateOFDPacket done [19:38:51]NVStorageSaveData kkm_last_timestamp [19:38:51]File name is /storage/kkm_last_timestamp [19:38:51]Write 4 bytes [19:38:51]NVStorageSaveData done [19:38:51]ExternCall_PrintAddStr [19:38:51]wPrintStart [19:38:51]Write to MH i2c: 01 00 00 20 02 22 [19:38:51]Write i2c OK [19:38:51]MH_I2C_Read... [19:38:51]Read from MH i2c: 01 [19:38:51]MH_I2C_Read... [19:38:51]Read from MH i2c: 01 07 00 [19:38:51]MH_I2C_Read... [19:38:51]Read from MH i2c: 01 07 00 20 02 00 00 00 00 00 FF 0F 37 [19:38:51]RasterBufferAndPrint [19:38:51]line Счет N : (1)191010 [19:38:51]line ИНН: 02508201610067 [19:38:51]line Контрольно-Кассовый Чек [19:38:51]line ПРОДАЖА [19:38:51]line ТРК (МРК, ГНК) : 12 [19:38:51]line Товар: 2710124130 [19:38:51]line Аи-92-К-5 [19:38:51]line 4.660 * 64.40 [19:38:51]line = 300.10 [19:38:51]line НДС 12% НСП 1% [19:38:51]line > о реализуемом товаре [19:38:51]line ОКРУГЛЕНИЕ: -0.10 [19:38:51]line ИТОГО: 300.00 [19:38:51]line Внесено: 300.00 [19:38:51]line СДАЧА: 0.00 [19:38:51]line НСП 1% : 2.66 [19:38:51]line НДС 12% : 31.87 [19:38:51]line Наличными: 300.00 [19:38:51]line Безнал.: 0.00 [19:38:51]line Место: АЗС № 106 "Партнер Нефть" [19:38:51]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:38:51]line СНО: Общий режим [19:38:51]line Чек 139 19.04.2024 19:38 [19:38:51]line Смена: 370 ФФД: 1.0 [19:38:51]line ЗНМ: 0300000141 [19:38:51]line РНМ: 0000000000091573 [19:38:51]line Версия ККМ: 001 [19:38:51]line ФМ: 0000000000874652 [19:38:51]line ФД: 76519 [19:38:51]line ФПД: 129809705406469 [19:38:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T193849&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76519&fm=129809705406469&tin=02508201610067®Number=0000000000091573&sum=30000 [19:38:51]written 0, free lines is 4095 [19:38:51]OFD Sender: Processing packet 76519 [packets to send 128, broken 127] [19:38:51]ProducePacketName [19:38:51]name=ofd_packets/00076519 [19:38:51]OFD Sender: To server: pG, [19:38:51]CommunicateWithHost lk.salyk.kg:30040 [19:38:51]ConnectInit lk.salyk.kg [19:38:51]Connected sock=10 [19: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 34 36 35 32 0F 01 00 00 CF B7 07 01 9F 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 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 8B 00 00 00 F4 03 04 00 49 C8 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E7 2A 01 00 35 04 06 00 76 0F AD 61 10 05 50 29 F2 E7 EC 5F 7A A7 [19:38:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 35 11 47 00 4E 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 34 36 35 32 10 04 04 00 E7 2A 01 00 F4 03 04 00 D4 6F 22 66 B6 04 01 00 00 FF A0 7A 2A CB 29 12 F1 [19:38:51]CommunicateWithHost err = 0 [19:38:51]CheckOFDResponse [19:38:51]1017 (14) - 77093643461234 [19:38:51]1041 (16) - 0000000000874652 [19:38:51]1040 (4) - 76519 [19:38:51]1012 (4) - 19.04.2024 13:21 [19:38:51]1206 (1) - 0 [19:38:51]OFD Sender: Remove packet 76519 [19:38:51]ProducePacketName [19:38:51]name=ofd_packets/00076519 [19:38:51]NVStorageDeleteData [19:38:51]Write to MH i2c: 01 00 00 4A 02 4C [19:38:51]Write i2c OK [19:38:51]MH_I2C_Read... [19:38:51]Read from MH i2c: 01 [19:38:51]MH_I2C_Read... [19:38:51]Read from MH i2c: 01 07 00 [19:38:51]MH_I2C_Read... [19:38:51]Read from MH i2c: 01 07 00 4A 02 00 00 00 00 00 F6 0C 55 [19:38:51]RasterBufferAndPrint [19:38:51]line [19:38:51]line [19:38:51]line [19:38:51]line [19:38:51]line [19:38:51]written 0, free lines is 3325 [19:38:51]MH_Cut [19:38:51]Write to MH i2c: D1 01 00 51 02 01 25 [19:38:51]Write i2c OK [19:38:51]MH_I2C_Read... [19:38:51]Read from MH i2c: D1 [19:38:51]MH_I2C_Read... [19:38:51]Read from MH i2c: D1 01 00 [19:38:51]MH_I2C_Read... [19:38:51]Read from MH i2c: D1 01 00 51 02 00 24 [19:38:51]Write to MH i2c: 01 00 00 52 02 54 [19:38:51]Write i2c OK [19:38:51]MH_I2C_Read... [19:38:52]OFD Sender: No OFD packet to send [19:38:52]*** Cut start [19:38:52]*** Partial cut [19:38:52]*** CUTSNS_PIN = 1 [19:38:52]*** CUTSNS_PIN = 0 [19:38:52]*** Brake cut motor [19:38:53]Read from MH i2c: 01 [19:38:53]MH_I2C_Read... [19:38:53]*** Stop cut motor [19:38:53]*** Cut end [19:38:53]Read from MH i2c: 01 07 00 [19:38:53]MH_I2C_Read... [19:38:53]Read from MH i2c: 01 07 00 52 02 00 00 00 00 00 FF 0F 69 [19:38:53]process_action close_receipt done [19:38:53]requested_data is exist [19:38:53]produce_requested_data [19:38:53]requested_item fm.sn is exist - process it [19:38:53]wFMCommunicate request_size=4 [19:38:53]MH_SAM_APDU [19:38:53]CAPDU: 80 11 00 00 [19:38:53]Write to MH i2c: E2 08 00 53 02 80 11 00 00 00 00 00 00 CF [19:38:53]Write i2c OK [19:38:53]MH_I2C_Read... [19:38:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:53]Read from MH i2c: E2 [19:38:53]MH_I2C_Read... [19:38:53]Read from MH i2c: E2 17 00 [19:38:53]MH_I2C_Read... [19:38:53]Read from MH i2c: E2 17 00 53 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 22 [19:38:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:38:53]wFMCommunicate OK [19:38:53]requested_item fd.num is exist - process it [19:38:53]SAM_PROTO_GetFieldsCounters [19:38:53]wFMCommunicate request_size=4 [19:38:53]MH_SAM_APDU [19:38:53]CAPDU: 80 13 00 00 [19:38:53]Write to MH i2c: E2 08 00 54 02 80 13 00 00 00 00 00 00 D2 [19:38:53]Write i2c OK [19:38:53]MH_I2C_Read... [19:38:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:53]Read from MH i2c: E2 [19:38:53]MH_I2C_Read... [19:38:53]Read from MH i2c: E2 62 00 [19:38:53]MH_I2C_Read... [19:38:53]Read from MH i2c: E2 62 00 54 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E7 2A 01 00 0E 04 04 00 72 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 19 [19:38:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E7 2A 01 00 0E 04 04 00 72 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 [19:38:53]wFMCommunicate OK [19:38:53]SAM_PROTO_GetFieldsCounters done [19:38:53]requested_item shift.num is exist - process it [19:38:53]requested_item shift.opened is exist - process it [19:38:53]req_shift_opened [19:38:53]FM_GetShiftState [19:38:53]SAM_PROTO_GetShiftState [19:38:53]wFMCommunicate request_size=4 [19:38:53]MH_SAM_APDU [19:38:53]CAPDU: 80 13 01 00 [19:38:53]Write to MH i2c: E2 08 00 55 02 80 13 01 00 00 00 00 00 D4 [19:38:53]Write i2c OK [19:38:53]MH_I2C_Read... [19:38:53]Read from MH i2c: E2 [19:38:53]MH_I2C_Read... [19:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:53]Read from MH i2c: E2 0E 00 [19:38:53]MH_I2C_Read... [19:38:53]Read from MH i2c: E2 0E 00 55 02 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 B9 [19:38:53]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:38:53]wFMCommunicate OK [19:38:53]SAM_PROTO_GetShiftState done [19:38:53]FM_GetShiftState done [19:38:53]req_shift_opened done [19:38:53]requested_item shift.open_date is exist - process it [19:38:53]req_shift_open_date [19:38:53]req_shift_open_date done [19:38:53]produce_requested_data done [19:38:53]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76519,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [19:38:53]process_action_free close_receipt [19:38:53]json_value_free [19:38:53]json_value_free done [19:38:53]process_json_proto returns [19:38:53]Send response to host [19:38:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76519,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [19:38:53]free response buf [19:38:53]execute_script done [19:38:53]execute_script returns [19:38:53]free content buf [19:38:53]Sock 7.Close socket [19:38:53]Sock 7.Thread stoped [19:38:57]OFD Sender: No OFD packet to send [19:39:02]OFD Sender: No OFD packet to send [19:39:07]OFD Sender: No OFD packet to send [19:39:12]OFD Sender: No OFD packet to send [19:39:17]OFD Sender: No OFD packet to send [19:39:22]OFD Sender: No OFD packet to send [19:39:27]OFD Sender: No OFD packet to send [19:39:32]OFD Sender: No OFD packet to send [19:39:37]OFD Sender: No OFD packet to send [19:39:42]OFD Sender: No OFD packet to send [19:39:47]OFD Sender: No OFD packet to send [19:39:52]OFD Sender: No OFD packet to send [19:39:57]OFD Sender: No OFD packet to send [19:40:02]OFD Sender: No OFD packet to send [19:40:07]OFD Sender: No OFD packet to send [19:40:12]OFD Sender: No OFD packet to send [19:40:17]OFD Sender: No OFD packet to send [19:40:22]OFD Sender: No OFD packet to send [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]OFD Sender: No OFD packet to send [19:40:42]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:57]OFD Sender: No OFD packet to send [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:12]OFD Sender: No OFD packet to send [19:48:17]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:51:31]ConnectInit Can't connect to host [19:51:33]ConnectInit Can't take IP for lk.salyk.kg [19:51:33]CommunicateWithHost connect error [19:51:33]CommunicateWithHost err = -1 [19:51:33]OFD Sender: Server communicate error [19:51:38]OFD Sender: Processing packet 76520 [packets to send 128, broken 127] [19:51:38]ProducePacketName [19:51:38]name=ofd_packets/00076520 [19:51:38]OFD Sender: To server: pG, [19:51:38]CommunicateWithHost lk.salyk.kg:30040 [19:51:38]ConnectInit lk.salyk.kg [19:51:38]Connected sock=10 [19:51:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 56 43 06 01 F0 4C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 56 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 3B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3B 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3B 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 21 CB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E8 2A 01 00 35 04 06 00 29 B9 09 49 8D 94 B8 9F ED E6 49 3E 70 38 [19:51:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 CF C6 47 00 DB 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E8 2A 01 00 F4 03 04 00 D4 72 22 66 B6 04 01 00 00 70 7F 4F B3 95 4F 1A 89 [19:51:39]CommunicateWithHost err = 0 [19:51:39]CheckOFDResponse [19:51:39]1017 (14) - 77093643461234 [19:51:39]1041 (16) - 0000000000874652 [19:51:39]1040 (4) - 76520 [19:51:39]1012 (4) - 19.04.2024 13:34 [19:51:39]1206 (1) - 0 [19:51:39]OFD Sender: Remove packet 76520 [19:51:39]ProducePacketName [19:51:39]name=ofd_packets/00076520 [19:51:39]NVStorageDeleteData [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:07]accept exits with 9 [19:54:07]New connection [19:54:07]New thread 3066592612 created [19:54:07]Thread 3066735972 joined [19:54:07]Waiting for new connection... [19:54:07] Sock 9.Parse request [19:54:07]Sock 9.Check first char [19:54:07]Sock 9.First char is OK [19:54:07]request: POST /json_proto HTTP/1.0 [19:54:07]Method: POST [19:54:07]URL: /json_proto [19:54:07]Method is POST - this is cgi request [19:54:07]url: /json_proto [19:54:07]query_string will be loaded in cgi processing [19:54:07]execute_cgi json_proto POST (null) [19:54:07]execute_cgi path=json_proto method=POST [19:54:07]POST find Content-Length [19:54:07]Host: 172.17.62.5:8080 [19:54:07]Content-Length: 674 [19:54:07]Content-Type: application/json [19:54:07] [19:54:07]POST finish read [19:54:07]Found Content-Length = 674 [19:54:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191014", "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" ] } } [19:54:07]execute_script... [19:54: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)191014", "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" ] } } [19:54:07]POST & json_proto [19:54:07]process_json_proto [19:54:07]json parsed OK: [19:54:07]protocol is kg_v1.0 [19:54:07]action value=close_receipt [19:54:07]process_action close_receipt [19:54:07]cmd_close_receipt [19:54:07]MH_GetDate [19:54:07]Write to MH i2c: F0 00 00 59 00 48 [19:54:07]Write i2c OK [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: F0 [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: F0 09 00 [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: F0 09 00 59 00 00 E0 CB 22 66 F4 E9 65 64 2A [19:54:07]GetLastDocTimeStamp 1713556257 [19:54:07]current date 1713556448 [19:54:07]FM_GetShiftState [19:54:07]SAM_PROTO_GetShiftState [19:54:07]wFMCommunicate request_size=4 [19:54:07]MH_SAM_APDU [19:54:07]CAPDU: 80 13 01 00 [19:54:07]Write to MH i2c: E2 08 00 5A 00 80 13 01 00 00 00 00 00 D7 [19:54:07]Write i2c OK [19:54:07]MH_I2C_Read... [19:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:07]Read from MH i2c: E2 [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: E2 0E 00 [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: E2 0E 00 5A 00 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 BC [19:54:07]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:54:07]wFMCommunicate OK [19:54:07]SAM_PROTO_GetShiftState done [19:54:07]FM_GetShiftState done [19:54:07]opened in 1713486233 [19:54:07]opened+sec_in_day 1713572633 [19:54:07]quantity*price = 50009 [19:54:07]sum+1 = 50010 [19:54:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 141 19.04.2024 19:54 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76521 ФПД: 123181706030996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T195408&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76521&fm=123181706030996&tin=02508201610067®Number=0000000000091573&sum=50000 [19:54:09]StoreToDocumentArchive [19:54:09]shift 370 fd 76521 [19:54:09]save to /storage/0370/doc_00076521 [19:54:09]save last doc name /storage/0370/doc_00076521 to /storage/kkm_last_doc_name [19:54:09]save OK [19:54:09]Clear old archive folders... [19:54:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:54:09]tlvbuf is 01615F40 [19:54:09]SAM_PROTO_ClearQueue [19:54:09]wFMCommunicate request_size=4 [19:54:09]MH_SAM_APDU [19:54:09]CAPDU: 80 09 00 00 [19:54:09]Write to MH i2c: E2 08 00 67 00 80 09 00 00 00 00 00 00 D9 [19:54:09]Write i2c OK [19:54:09]MH_I2C_Read... [19:54:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:09]Read from MH i2c: E2 [19:54:09]MH_I2C_Read... [19:54:09]Read from MH i2c: E2 03 00 [19:54:09]MH_I2C_Read... [19:54:09]Read from MH i2c: E2 03 00 67 00 00 90 00 DB [19:54:09]RAPDU: 90 00 [19:54:09]wFMCommunicate OK [19:54:09]SAM_PROTO_ClearQueue done [19:54:09]KKMCreateOFDPacket [19:54:09]OFDProtocolAddRootSTLVToBuf [19:54:09]FM_MakeSignedData [19:54:09]FM_MakeSignedData [19:54:09]SAM_PROTO_SignData [19:54:09]wFMCommunicate request_size=4 [19:54:09]MH_SAM_APDU [19:54:09]CAPDU: 80 0D 01 02 [19:54:09]Write to MH i2c: E2 08 00 68 00 80 0D 01 02 00 00 00 00 E1 [19:54:09]Write i2c OK [19:54:09]MH_I2C_Read... [19:54:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:09]Read from MH i2c: E2 [19:54:09]MH_I2C_Read... [19:54:09]Read from MH i2c: E2 03 00 [19:54:09]MH_I2C_Read... [19:54:09]Read from MH i2c: E2 03 00 68 00 00 90 00 DC [19:54:09]RAPDU: 90 00 [19:54:09]wFMCommunicate OK [19:54:09]wFMCommunicate request_size=255 [19:54:09]MH_SAM_APDU [19:54:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8D 00 00 00 F4 03 04 00 E0 CB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E9 2A 01 00 35 04 06 00 70 08 79 D4 [19:54:09]Write to MH i2c: E2 02 01 69 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 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 8D 00 00 00 F4 03 04 00 E0 CB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E9 2A 01 00 35 04 06 00 70 08 79 D4 00 00 97 [19:54:09]Write i2c OK [19:54:09]MH_I2C_Read... [19:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:09]Read from MH i2c: E2 [19:54:09]MH_I2C_Read... [19:54:09]Read from MH i2c: E2 03 00 [19:54:09]MH_I2C_Read... [19:54:09]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [19:54:09]RAPDU: 90 00 [19:54:09]wFMCommunicate OK [19:54:09]wFMCommunicate request_size=7 [19:54:09]MH_SAM_APDU [19:54:09]CAPDU: 80 0D 02 02 02 AF 94 [19:54:09]Write to MH i2c: E2 0A 00 6A 00 80 0D 02 02 02 00 AF 94 00 00 2B [19:54:09]Write i2c OK [19:54:09]MH_I2C_Read... [19:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:09]Read from MH i2c: E2 [19:54:09]MH_I2C_Read... [19:54:09]Read from MH i2c: E2 03 00 [19:54:09]MH_I2C_Read... [19:54:09]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [19:54:09]RAPDU: 90 00 [19:54:09]wFMCommunicate OK [19:54:09]wFMCommunicate request_size=4 [19:54:09]MH_SAM_APDU [19:54:09]CAPDU: 80 0D 03 02 [19:54:09]Write to MH i2c: E2 08 00 6B 00 80 0D 03 02 00 00 00 00 E6 [19:54:09]Write i2c OK [19:54:09]MH_I2C_Read... [19:54:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:09]Read from MH i2c: E2 [19:54:09]MH_I2C_Read... [19:54:09]Read from MH i2c: E2 0B 00 [19:54:09]MH_I2C_Read... [19:54:09]Read from MH i2c: E2 0B 00 6B 00 00 5D 88 32 B2 A0 8E 58 30 90 00 66 [19:54:09]RAPDU: 5D 88 32 B2 A0 8E 58 30 90 00 [19:54:09]wFMCommunicate OK [19:54:09]SAM_PROTO_SignData done [19:54:09]FM_MakeSignedData done [19:54:09]CreateOFDProtocolMessage [19:54:09]wFMCommunicate request_size=4 [19:54:09]MH_SAM_APDU [19:54:09]CAPDU: 80 11 00 00 [19:54:09]Write to MH i2c: E2 08 00 6C 00 80 11 00 00 00 00 00 00 E6 [19:54:09]Write i2c OK [19:54:09]MH_I2C_Read... [19:54:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:09]Read from MH i2c: E2 [19:54:09]MH_I2C_Read... [19:54:09]Read from MH i2c: E2 17 00 [19:54:09]MH_I2C_Read... [19:54:09]Read from MH i2c: E2 17 00 6C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 39 [19:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:54:09]wFMCommunicate OK [19:54:09]CreateOFDProtocolMessage done [19:54:09]OFDSenderStorePacket 76521 [19:54:09]StoreOFDPacket docnum=76521 [19:54:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 B7 2E 04 01 69 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 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 8D 00 00 00 F4 03 04 00 E0 CB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E9 2A 01 00 35 04 06 00 70 08 79 D4 AF 94 5D 88 32 B2 A0 8E 58 30 [19:54:09]CheckFolder [19:54:09]dirname=/storage/ofd_packets [19:54:09]CheckFolder done [19:54:09]ProducePacketName [19:54:09]name=ofd_packets/00076521 [19:54:09]NVStorageSaveData ofd_packets/00076521 [19:54:09]File name is /storage/ofd_packets/00076521 [19:54:09]Write 298 bytes [19:54:09]NVStorageSaveData done [19:54:09]OFDSenderStorePacket done [19:54:09]KKMCreateOFDPacket done [19:54:09]NVStorageSaveData kkm_last_timestamp [19:54:09]File name is /storage/kkm_last_timestamp [19:54:09]Write 4 bytes [19:54:09]NVStorageSaveData done [19:54:09]ExternCall_PrintAddStr [19:54:09]wPrintStart [19:54:09]Write to MH i2c: 01 00 00 6D 00 6D [19:54:09]Write i2c OK [19:54:09]MH_I2C_Read... [19:54:09]Read from MH i2c: 01 [19:54:09]MH_I2C_Read... [19:54:09]Read from MH i2c: 01 07 00 [19:54:09]MH_I2C_Read... [19:54:09]Read from MH i2c: 01 07 00 6D 00 00 00 00 00 00 FF 0F 82 [19:54:09]RasterBufferAndPrint [19:54:09]line Счет N : (1)191014 [19:54:09]line ИНН: 02508201610067 [19:54:09]line Контрольно-Кассовый Чек [19:54:09]line ПРОДАЖА [19:54:09]line ТРК (МРК, ГНК) : 51 [19:54:09]line Товар: 2710194210 [19:54:09]line ДТ-К-5 [19:54:09]line 6.860 * 72.90 [19:54:09]line = 500.09 [19:54:09]line НДС 12% НСП 1% [19:54:09]line > о реализуемом товаре [19:54:09]line ОКРУГЛЕНИЕ: -0.09 [19:54:09]line ИТОГО: 500.00 [19:54:09]line Внесено: 500.00 [19:54:09]line СДАЧА: 0.00 [19:54:09]line НСП 1% : 4.43 [19:54:09]line НДС 12% : 53.11 [19:54:09]line Наличными: 500.00 [19:54:09]line Безнал.: 0.00 [19:54:09]line Место: АЗС № 106 "Партнер Нефть" [19:54:09]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:54:09]line СНО: Общий режим [19:54:09]line Чек 141 19.04.2024 19:54 [19:54:09]line Смена: 370 ФФД: 1.0 [19:54:09]line ЗНМ: 0300000141 [19:54:09]line РНМ: 0000000000091573 [19:54:09]line Версия ККМ: 001 [19:54:09]line ФМ: 0000000000874652 [19:54:09]line ФД: 76521 [19:54:09]line ФПД: 123181706030996 [19:54:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T195408&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76521&fm=123181706030996&tin=02508201610067®Number=0000000000091573&sum=50000 [19:54:09]OFD Sender: Processing packet 76521 [packets to send 128, broken 127] [19:54:09]ProducePacketName [19:54:09]name=ofd_packets/00076521 [19:54:09]OFD Sender: To server: pG, [19:54:09]CommunicateWithHost lk.salyk.kg:30040 [19:54:09]ConnectInit lk.salyk.kg [19:54:09]written 0, free lines is 4095 [19:54:09]Connected sock=10 [19:54:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 B7 2E 04 01 69 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 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 8D 00 00 00 F4 03 04 00 E0 CB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E9 2A 01 00 35 04 06 00 70 08 79 D4 AF 94 5D 88 32 B2 A0 8E 58 30 [19:54:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 BD AF 47 00 AA C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E9 2A 01 00 F4 03 04 00 6B 73 22 66 B6 04 01 00 00 4E 49 38 42 6D D5 22 00 [19:54:10]CommunicateWithHost err = 0 [19:54:10]CheckOFDResponse [19:54:10]1017 (14) - 77093643461234 [19:54:10]1041 (16) - 0000000000874652 [19:54:10]1040 (4) - 76521 [19:54:10]1012 (4) - 19.04.2024 13:36 [19:54:10]1206 (1) - 0 [19:54:10]OFD Sender: Remove packet 76521 [19:54:10]ProducePacketName [19:54:10]name=ofd_packets/00076521 [19:54:10]NVStorageDeleteData [19:54:10]Write to MH i2c: 01 00 00 97 00 97 [19:54:10]Write i2c OK [19:54:10]MH_I2C_Read... [19:54:10]Read from MH i2c: 01 [19:54:10]MH_I2C_Read... [19:54:10]Read from MH i2c: 01 07 00 [19:54:10]MH_I2C_Read... [19:54:10]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 EE 0C 98 [19:54:10]RasterBufferAndPrint [19:54:10]line [19:54:10]line [19:54:10]line [19:54:10]line [19:54:10]line [19:54:10]written 0, free lines is 3318 [19:54:10]MH_Cut [19:54:10]Write to MH i2c: D1 01 00 9E 00 01 70 [19:54:10]Write i2c OK [19:54:10]MH_I2C_Read... [19:54:10]Read from MH i2c: D1 [19:54:10]MH_I2C_Read... [19:54:10]Read from MH i2c: D1 01 00 [19:54:10]MH_I2C_Read... [19:54:10]Read from MH i2c: D1 01 00 9E 00 00 6F [19:54:10]Write to MH i2c: 01 00 00 9F 00 9F [19:54:10]Write i2c OK [19:54:10]MH_I2C_Read... [19:54:10]OFD Sender: No OFD packet to send [19:54:11]*** Cut start [19:54:11]*** Partial cut [19:54:11]*** CUTSNS_PIN = 1 [19:54:11]*** CUTSNS_PIN = 0 [19:54:11]*** Brake cut motor [19:54:11]Read from MH i2c: 01 [19:54:11]MH_I2C_Read... [19:54:11]*** Stop cut motor [19:54:11]*** Cut end [19:54:11]Read from MH i2c: 01 07 00 [19:54:11]MH_I2C_Read... [19:54:11]Read from MH i2c: 01 07 00 9F 00 00 00 00 00 00 FF 0F B4 [19:54:11]process_action close_receipt done [19:54:11]requested_data is exist [19:54:11]produce_requested_data [19:54:11]requested_item fm.sn is exist - process it [19:54:11]wFMCommunicate request_size=4 [19:54:11]MH_SAM_APDU [19:54:11]CAPDU: 80 11 00 00 [19:54:11]Write to MH i2c: E2 08 00 A0 00 80 11 00 00 00 00 00 00 1A [19:54:11]Write i2c OK [19:54:11]MH_I2C_Read... [19:54:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:11]Read from MH i2c: E2 [19:54:11]MH_I2C_Read... [19:54:11]Read from MH i2c: E2 17 00 [19:54:11]MH_I2C_Read... [19:54:11]Read from MH i2c: E2 17 00 A0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6D [19:54:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:54:11]wFMCommunicate OK [19:54:11]requested_item fd.num is exist - process it [19:54:11]SAM_PROTO_GetFieldsCounters [19:54:11]wFMCommunicate request_size=4 [19:54:11]MH_SAM_APDU [19:54:11]CAPDU: 80 13 00 00 [19:54:11]Write to MH i2c: E2 08 00 A1 00 80 13 00 00 00 00 00 00 1D [19:54:11]Write i2c OK [19:54:11]MH_I2C_Read... [19:54:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:11]Read from MH i2c: E2 [19:54:11]MH_I2C_Read... [19:54:11]Read from MH i2c: E2 62 00 [19:54:11]MH_I2C_Read... [19:54:11]Read from MH i2c: E2 62 00 A1 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E9 2A 01 00 0E 04 04 00 72 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 6C [19:54: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E9 2A 01 00 0E 04 04 00 72 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 [19:54:11]wFMCommunicate OK [19:54:11]SAM_PROTO_GetFieldsCounters done [19:54:11]requested_item shift.num is exist - process it [19:54:11]requested_item shift.opened is exist - process it [19:54:11]req_shift_opened [19:54:11]FM_GetShiftState [19:54:11]SAM_PROTO_GetShiftState [19:54:11]wFMCommunicate request_size=4 [19:54:11]MH_SAM_APDU [19:54:11]CAPDU: 80 13 01 00 [19:54:11]Write to MH i2c: E2 08 00 A2 00 80 13 01 00 00 00 00 00 1F [19:54:11]Write i2c OK [19:54:11]MH_I2C_Read... [19:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:11]Read from MH i2c: E2 [19:54:11]MH_I2C_Read... [19:54:11]Read from MH i2c: E2 0E 00 [19:54:11]MH_I2C_Read... [19:54:11]Read from MH i2c: E2 0E 00 A2 00 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 04 [19:54:11]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:54:11]wFMCommunicate OK [19:54:11]SAM_PROTO_GetShiftState done [19:54:11]FM_GetShiftState done [19:54:11]req_shift_opened done [19:54:11]requested_item shift.open_date is exist - process it [19:54:11]req_shift_open_date [19:54:11]req_shift_open_date done [19:54:11]produce_requested_data done [19:54:11]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76521,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [19:54:11]process_action_free close_receipt [19:54:11]json_value_free [19:54:11]json_value_free done [19:54:11]process_json_proto returns [19:54:11]Send response to host [19:54:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76521,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [19:54:11]free response buf [19:54:11]execute_script done [19:54:11]execute_script returns [19:54:11]free content buf [19:54:11]Sock 9.Close socket [19:54:11]Sock 9.Thread stoped [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]accept exits with 8 [19:54:25]New connection [19:54:25]New thread 3066735972 created [19:54:25]Thread 3066592612 joined [19:54:25]Waiting for new connection... [19:54:25] Sock 8.Parse request [19:54:25]Sock 8.Check first char [19:54:25]Sock 8.First char is OK [19:54:25]request: POST /json_proto HTTP/1.0 [19:54:25]Method: POST [19:54:25]URL: /json_proto [19:54:25]Method is POST - this is cgi request [19:54:25]url: /json_proto [19:54:25]query_string will be loaded in cgi processing [19:54:25]execute_cgi json_proto POST (null) [19:54:25]execute_cgi path=json_proto method=POST [19:54:25]POST find Content-Length [19:54:25]Host: 172.17.62.5:8080 [19:54:25]Content-Length: 816 [19:54:25]Content-Type: application/json [19:54:25] [19:54:25]POST finish read [19:54:25]Found Content-Length = 816 [19:54:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 17.840, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1300.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:25]execute_script... [19:54: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)191013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 17.840, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1300.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:25]POST & json_proto [19:54:25]process_json_proto [19:54:25]json parsed OK: [19:54:25]protocol is kg_v1.0 [19:54:25]action value=close_receipt [19:54:25]process_action close_receipt [19:54:25]cmd_close_receipt [19:54:25]MH_GetDate [19:54:25]Write to MH i2c: F0 00 00 A3 00 92 [19:54:25]Write i2c OK [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: F0 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: F0 09 00 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: F0 09 00 A3 00 00 F1 CB 22 66 F4 E9 65 64 85 [19:54:25]GetLastDocTimeStamp 1713556448 [19:54:25]current date 1713556465 [19:54:25]FM_GetShiftState [19:54:25]SAM_PROTO_GetShiftState [19:54:25]wFMCommunicate request_size=4 [19:54:25]MH_SAM_APDU [19:54:25]CAPDU: 80 13 01 00 [19:54:25]Write to MH i2c: E2 08 00 A4 00 80 13 01 00 00 00 00 00 21 [19:54:25]Write i2c OK [19:54:25]MH_I2C_Read... [19:54:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:25]Read from MH i2c: E2 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: E2 0E 00 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: E2 0E 00 A4 00 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 06 [19:54:25]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:54:25]wFMCommunicate OK [19:54:25]SAM_PROTO_GetShiftState done [19:54:25]FM_GetShiftState done [19:54:25]opened in 1713486233 [19:54:25]opened+sec_in_day 1713572633 [19:54:25]quantity*price = 130053 [19:54:25]sum+1 = 130055 [19:54:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1300.54 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 0.00 Безнал.: 1300.54 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 142 19.04.2024 19:54 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76522 ФПД: 240320749140308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T195426&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76522&fm=240320749140308&tin=02508201610067®Number=0000000000091573&sum=130054 [19:54:26]StoreToDocumentArchive [19:54:26]shift 370 fd 76522 [19:54:26]save to /storage/0370/doc_00076522 [19:54:26]save last doc name /storage/0370/doc_00076522 to /storage/kkm_last_doc_name [19:54:26]save OK [19:54:26]Clear old archive folders... [19:54:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:54:26]tlvbuf is 016290E0 [19:54:26]SAM_PROTO_ClearQueue [19:54:26]wFMCommunicate request_size=4 [19:54:26]MH_SAM_APDU [19:54:26]CAPDU: 80 09 00 00 [19:54:26]Write to MH i2c: E2 08 00 B1 00 80 09 00 00 00 00 00 00 23 [19:54:26]Write i2c OK [19:54:26]MH_I2C_Read... [19:54:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:26]Read from MH i2c: E2 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 03 00 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 03 00 B1 00 00 90 00 25 [19:54:26]RAPDU: 90 00 [19:54:26]wFMCommunicate OK [19:54:26]SAM_PROTO_ClearQueue done [19:54:26]KKMCreateOFDPacket [19:54:26]OFDProtocolAddRootSTLVToBuf [19:54:26]FM_MakeSignedData [19:54:26]FM_MakeSignedData [19:54:26]SAM_PROTO_SignData [19:54:26]wFMCommunicate request_size=4 [19:54:26]MH_SAM_APDU [19:54:26]CAPDU: 80 0D 01 02 [19:54:26]Write to MH i2c: E2 08 00 B2 00 80 0D 01 02 00 00 00 00 2B [19:54:26]Write i2c OK [19:54:26]MH_I2C_Read... [19:54:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:26]Read from MH i2c: E2 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 03 00 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 03 00 B2 00 00 90 00 26 [19:54:26]RAPDU: 90 00 [19:54:26]wFMCommunicate OK [19:54:26]wFMCommunicate request_size=255 [19:54:26]MH_SAM_APDU [19:54:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 45 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 F2 CB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EA 2A 01 00 35 04 06 00 DA 92 08 E2 [19:54:26]Write to MH i2c: E2 02 01 B3 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 B0 45 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 F2 CB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EA 2A 01 00 35 04 06 00 DA 92 08 E2 00 00 78 [19:54:26]Write i2c OK [19:54:26]MH_I2C_Read... [19:54:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:26]Read from MH i2c: E2 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 03 00 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [19:54:26]RAPDU: 90 00 [19:54:26]wFMCommunicate OK [19:54:26]wFMCommunicate request_size=7 [19:54:26]MH_SAM_APDU [19:54:26]CAPDU: 80 0D 02 02 02 79 54 [19:54:26]Write to MH i2c: E2 0A 00 B4 00 80 0D 02 02 02 00 79 54 00 00 FF [19:54:26]Write i2c OK [19:54:26]MH_I2C_Read... [19:54:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:26]Read from MH i2c: E2 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 03 00 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [19:54:26]RAPDU: 90 00 [19:54:26]wFMCommunicate OK [19:54:26]wFMCommunicate request_size=4 [19:54:26]MH_SAM_APDU [19:54:26]CAPDU: 80 0D 03 02 [19:54:26]Write to MH i2c: E2 08 00 B5 00 80 0D 03 02 00 00 00 00 30 [19:54:26]Write i2c OK [19:54:26]MH_I2C_Read... [19:54:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:26]Read from MH i2c: E2 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 0B 00 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 0B 00 B5 00 00 2F B2 30 B8 52 B7 AB 94 90 00 42 [19:54:26]RAPDU: 2F B2 30 B8 52 B7 AB 94 90 00 [19:54:26]wFMCommunicate OK [19:54:26]SAM_PROTO_SignData done [19:54:26]FM_MakeSignedData done [19:54:26]CreateOFDProtocolMessage [19:54:26]wFMCommunicate request_size=4 [19:54:26]MH_SAM_APDU [19:54:26]CAPDU: 80 11 00 00 [19:54:26]Write to MH i2c: E2 08 00 B6 00 80 11 00 00 00 00 00 00 30 [19:54:26]Write i2c OK [19:54:26]MH_I2C_Read... [19:54:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:26]Read from MH i2c: E2 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 17 00 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 17 00 B6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 83 [19:54:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:54:26]wFMCommunicate OK [19:54:26]CreateOFDProtocolMessage done [19:54:26]OFDSenderStorePacket 76522 [19:54:26]StoreOFDPacket docnum=76522 [19:54:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 31 01 04 01 54 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 45 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 F2 CB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EA 2A 01 00 35 04 06 00 DA 92 08 E2 79 54 2F B2 30 B8 52 B7 AB 94 [19:54:26]CheckFolder [19:54:26]dirname=/storage/ofd_packets [19:54:26]CheckFolder done [19:54:26]ProducePacketName [19:54:26]name=ofd_packets/00076522 [19:54:26]NVStorageSaveData ofd_packets/00076522 [19:54:26]File name is /storage/ofd_packets/00076522 [19:54:26]Write 298 bytes [19:54:26]NVStorageSaveData done [19:54:26]OFDSenderStorePacket done [19:54:26]KKMCreateOFDPacket done [19:54:26]NVStorageSaveData kkm_last_timestamp [19:54:26]File name is /storage/kkm_last_timestamp [19:54:26]Write 4 bytes [19:54:26]NVStorageSaveData done [19:54:26]ExternCall_PrintAddStr [19:54:26]wPrintStart [19:54:26]Write to MH i2c: 01 00 00 B7 00 B7 [19:54:26]Write i2c OK [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: 01 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: 01 07 00 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: 01 07 00 B7 00 00 00 00 00 00 FF 0F CC [19:54:26]RasterBufferAndPrint [19:54:26]line Счет N : (1)191013 [19:54:26]line ИНН: 02508201610067 [19:54:26]line Контрольно-Кассовый Чек [19:54:26]line ПРОДАЖА [19:54:26]line ТРК (МРК, ГНК) : 13 [19:54:26]line Товар: 2710194210 [19:54:26]line ДТ-К-5 [19:54:26]line 17.840 * 72.90 [19:54:26]line = 1300.54 [19:54:26]line НДС 12% НСП 1% [19:54:26]line > о реализуемом товаре [19:54:26]line ИТОГО: 1300.54 [19:54:26]line НСП 1% : 11.51 [19:54:26]line НДС 12% : 138.11 [19:54:26]line Наличными: 0.00 [19:54:26]line Безнал.: 1300.54 [19:54:26]line Место: АЗС № 106 "Партнер Нефть" [19:54:26]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:54:26]line СНО: Общий режим [19:54:26]line Чек 142 19.04.2024 19:54 [19:54:26]line Смена: 370 ФФД: 1.0 [19:54:26]line ЗНМ: 0300000141 [19:54:26]line РНМ: 0000000000091573 [19:54:26]line Версия ККМ: 001 [19:54:26]line Платежная система: Бакай Банк [19:54:26]line ФМ: 0000000000874652 [19:54:26]line ФД: 76522 [19:54:26]line ФПД: 240320749140308 [19:54:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T195426&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76522&fm=240320749140308&tin=02508201610067®Number=0000000000091573&sum=130054 [19:54:27]OFD Sender: Processing packet 76522 [packets to send 128, broken 127] [19:54:27]ProducePacketName [19:54:27]name=ofd_packets/00076522 [19:54:27]OFD Sender: To server: pG, [19:54:27]CommunicateWithHost lk.salyk.kg:30040 [19:54:27]ConnectInit lk.salyk.kg [19:54:27]written 0, free lines is 4095 [19:54:27]Connected sock=11 [19:54:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 31 01 04 01 54 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 45 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 F2 CB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EA 2A 01 00 35 04 06 00 DA 92 08 E2 79 54 2F B2 30 B8 52 B7 AB 94 [19:54:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 1D 96 47 00 07 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 34 36 35 32 10 04 04 00 EA 2A 01 00 F4 03 04 00 7C 73 22 66 B6 04 01 00 00 E2 9F 72 88 D2 68 8A A3 [19:54:27]CommunicateWithHost err = 0 [19:54:27]CheckOFDResponse [19:54:27]1017 (14) - 77093643461234 [19:54:27]1041 (16) - 0000000000874652 [19:54:27]1040 (4) - 76522 [19:54:27]1012 (4) - 19.04.2024 13:37 [19:54:27]1206 (1) - 0 [19:54:27]OFD Sender: Remove packet 76522 [19:54:27]ProducePacketName [19:54:27]name=ofd_packets/00076522 [19:54:27]NVStorageDeleteData [19:54:27]Write to MH i2c: 01 00 00 E0 00 E0 [19:54:27]Write i2c OK [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: 01 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: 01 07 00 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: 01 07 00 E0 00 00 00 00 00 00 F8 0C EB [19:54:27]RasterBufferAndPrint [19:54:27]line [19:54:27]line [19:54:27]line [19:54:27]line [19:54:27]line [19:54:27]written 0, free lines is 3326 [19:54:27]MH_Cut [19:54:27]Write to MH i2c: D1 01 00 E7 00 01 B9 [19:54:27]Write i2c OK [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: D1 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: D1 01 00 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: D1 01 00 E7 00 00 B8 [19:54:27]Write to MH i2c: 01 00 00 E8 00 E8 [19:54:27]Write i2c OK [19:54:27]MH_I2C_Read... [19:54:27]OFD Sender: No OFD packet to send [19:54:28]*** Cut start [19:54:28]*** Partial cut [19:54:28]*** CUTSNS_PIN = 1 [19:54:28]*** CUTSNS_PIN = 0 [19:54:28]*** Brake cut motor [19:54:28]Read from MH i2c: 01 [19:54:28]MH_I2C_Read... [19:54:28]*** Stop cut motor [19:54:28]*** Cut end [19:54:28]Read from MH i2c: 01 07 00 [19:54:28]MH_I2C_Read... [19:54:28]Read from MH i2c: 01 07 00 E8 00 00 00 00 00 00 FF 0F FD [19:54:28]process_action close_receipt done [19:54:28]requested_data is exist [19:54:28]produce_requested_data [19:54:28]requested_item fm.sn is exist - process it [19:54:28]wFMCommunicate request_size=4 [19:54:28]MH_SAM_APDU [19:54:28]CAPDU: 80 11 00 00 [19:54:28]Write to MH i2c: E2 08 00 E9 00 80 11 00 00 00 00 00 00 63 [19:54:28]Write i2c OK [19:54:28]MH_I2C_Read... [19:54:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:28]Read from MH i2c: E2 [19:54:28]MH_I2C_Read... [19:54:28]Read from MH i2c: E2 17 00 [19:54:28]MH_I2C_Read... [19:54:28]Read from MH i2c: E2 17 00 E9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B6 [19:54:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:54:28]wFMCommunicate OK [19:54:28]requested_item fd.num is exist - process it [19:54:28]SAM_PROTO_GetFieldsCounters [19:54:28]wFMCommunicate request_size=4 [19:54:28]MH_SAM_APDU [19:54:28]CAPDU: 80 13 00 00 [19:54:28]Write to MH i2c: E2 08 00 EA 00 80 13 00 00 00 00 00 00 66 [19:54:28]Write i2c OK [19:54:28]MH_I2C_Read... [19:54:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:29]Read from MH i2c: E2 [19:54:29]MH_I2C_Read... [19:54:29]Read from MH i2c: E2 62 00 [19:54:29]MH_I2C_Read... [19:54:29]Read from MH i2c: E2 62 00 EA 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EA 2A 01 00 0E 04 04 00 72 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 B9 [19:54:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EA 2A 01 00 0E 04 04 00 72 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 [19:54:29]wFMCommunicate OK [19:54:29]SAM_PROTO_GetFieldsCounters done [19:54:29]requested_item shift.num is exist - process it [19:54:29]requested_item shift.opened is exist - process it [19:54:29]req_shift_opened [19:54:29]FM_GetShiftState [19:54:29]SAM_PROTO_GetShiftState [19:54:29]wFMCommunicate request_size=4 [19:54:29]MH_SAM_APDU [19:54:29]CAPDU: 80 13 01 00 [19:54:29]Write to MH i2c: E2 08 00 EB 00 80 13 01 00 00 00 00 00 68 [19:54:29]Write i2c OK [19:54:29]MH_I2C_Read... [19:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:29]Read from MH i2c: E2 [19:54:29]MH_I2C_Read... [19:54:29]Read from MH i2c: E2 0E 00 [19:54:29]MH_I2C_Read... [19:54:29]Read from MH i2c: E2 0E 00 EB 00 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 4D [19:54:29]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:54:29]wFMCommunicate OK [19:54:29]SAM_PROTO_GetShiftState done [19:54:29]FM_GetShiftState done [19:54:29]req_shift_opened done [19:54:29]requested_item shift.open_date is exist - process it [19:54:29]req_shift_open_date [19:54:29]req_shift_open_date done [19:54:29]produce_requested_data done [19:54:29]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76522,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [19:54:29]process_action_free close_receipt [19:54:29]json_value_free [19:54:29]json_value_free done [19:54:29]process_json_proto returns [19:54:29]Send response to host [19:54:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76522,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [19:54:29]free response buf [19:54:29]execute_script done [19:54:29]execute_script returns [19:54:29]free content buf [19:54:29]Sock 8.Close socket [19:54:29]Sock 8.Thread stoped [19:54:32]OFD Sender: No OFD packet to send [19:54:37]OFD Sender: No OFD packet to send [19:54:42]OFD Sender: No OFD packet to send [19:54:47]OFD Sender: No OFD packet to send [19:54:52]OFD Sender: No OFD packet to send [19:54:57]OFD Sender: No OFD packet to send [19:55:02]OFD Sender: No OFD packet to send [19:55:07]OFD Sender: No OFD packet to send [19:55:12]OFD Sender: No OFD packet to send [19:55:17]OFD Sender: No OFD packet to send [19:55:19]accept exits with 9 [19:55:19]New connection [19:55:19]New thread 3066592612 created [19:55:19]Thread 3066735972 joined [19:55:19]Waiting for new connection... [19:55:19] Sock 9.Parse request [19:55:19]Sock 9.Check first char [19:55:19]Sock 9.First char is OK [19:55:19]request: POST /json_proto HTTP/1.0 [19:55:19]Method: POST [19:55:19]URL: /json_proto [19:55:19]Method is POST - this is cgi request [19:55:19]url: /json_proto [19:55:19]query_string will be loaded in cgi processing [19:55:19]execute_cgi json_proto POST (null) [19:55:19]execute_cgi path=json_proto method=POST [19:55:19]POST find Content-Length [19:55:19]Host: 172.17.62.5:8080 [19:55:19]Content-Length: 682 [19:55:19]Content-Type: application/json [19:55:19] [19:55:19]POST finish read [19:55:19]Found Content-Length = 682 [19:55:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 31.060, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:19]execute_script... [19:55: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)191015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 31.060, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:19]POST & json_proto [19:55:19]process_json_proto [19:55:19]json parsed OK: [19:55:19]protocol is kg_v1.0 [19:55:19]action value=close_receipt [19:55:19]process_action close_receipt [19:55:19]cmd_close_receipt [19:55:19]MH_GetDate [19:55:19]Write to MH i2c: F0 00 00 EC 00 DB [19:55:19]Write i2c OK [19:55:19]MH_I2C_Read... [19:55:19]Read from MH i2c: F0 [19:55:19]MH_I2C_Read... [19:55:19]Read from MH i2c: F0 09 00 [19:55:19]MH_I2C_Read... [19:55:19]Read from MH i2c: F0 09 00 EC 00 00 28 CC 22 66 F4 E9 65 64 06 [19:55:19]GetLastDocTimeStamp 1713556466 [19:55:19]current date 1713556520 [19:55:19]FM_GetShiftState [19:55:19]SAM_PROTO_GetShiftState [19:55:19]wFMCommunicate request_size=4 [19:55:19]MH_SAM_APDU [19:55:19]CAPDU: 80 13 01 00 [19:55:19]Write to MH i2c: E2 08 00 ED 00 80 13 01 00 00 00 00 00 6A [19:55:19]Write i2c OK [19:55:19]MH_I2C_Read... [19:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:19]Read from MH i2c: E2 [19:55:19]MH_I2C_Read... [19:55:19]Read from MH i2c: E2 0E 00 [19:55:19]MH_I2C_Read... [19:55:19]Read from MH i2c: E2 0E 00 ED 00 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 4F [19:55:19]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:55:19]wFMCommunicate OK [19:55:19]SAM_PROTO_GetShiftState done [19:55:19]FM_GetShiftState done [19:55:19]opened in 1713486233 [19:55:19]opened+sec_in_day 1713572633 [19:55:19]quantity*price = 200026 [19:55:19]sum+1 = 200027 [19:55:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 143 19.04.2024 19:55 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76523 ФПД: 264218147687679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T195520&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76523&fm=264218147687679&tin=02508201610067®Number=0000000000091573&sum=200000 [19:55:21]StoreToDocumentArchive [19:55:21]shift 370 fd 76523 [19:55:21]save to /storage/0370/doc_00076523 [19:55:21]save last doc name /storage/0370/doc_00076523 to /storage/kkm_last_doc_name [19:55:21]save OK [19:55:21]Clear old archive folders... [19:55:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:55:21]tlvbuf is 0160A340 [19:55:21]SAM_PROTO_ClearQueue [19:55:21]wFMCommunicate request_size=4 [19:55:21]MH_SAM_APDU [19:55:21]CAPDU: 80 09 00 00 [19:55:21]Write to MH i2c: E2 08 00 FA 00 80 09 00 00 00 00 00 00 6C [19:55:21]Write i2c OK [19:55:21]MH_I2C_Read... [19:55:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:21]Read from MH i2c: E2 [19:55:21]MH_I2C_Read... [19:55:21]Read from MH i2c: E2 03 00 [19:55:21]MH_I2C_Read... [19:55:21]Read from MH i2c: E2 03 00 FA 00 00 90 00 6E [19:55:21]RAPDU: 90 00 [19:55:21]wFMCommunicate OK [19:55:21]SAM_PROTO_ClearQueue done [19:55:21]KKMCreateOFDPacket [19:55:21]OFDProtocolAddRootSTLVToBuf [19:55:21]FM_MakeSignedData [19:55:21]FM_MakeSignedData [19:55:21]SAM_PROTO_SignData [19:55:21]wFMCommunicate request_size=4 [19:55:21]MH_SAM_APDU [19:55:21]CAPDU: 80 0D 01 02 [19:55:21]Write to MH i2c: E2 08 00 FB 00 80 0D 01 02 00 00 00 00 74 [19:55:21]Write i2c OK [19:55:21]MH_I2C_Read... [19:55:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:21]Read from MH i2c: E2 [19:55:21]MH_I2C_Read... [19:55:21]Read from MH i2c: E2 03 00 [19:55:21]MH_I2C_Read... [19:55:21]Read from MH i2c: E2 03 00 FB 00 00 90 00 6F [19:55:21]RAPDU: 90 00 [19:55:21]wFMCommunicate OK [19:55:21]wFMCommunicate request_size=255 [19:55:21]MH_SAM_APDU [19:55: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 54 79 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 28 CC 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EB 2A 01 00 35 04 06 00 F0 [19:55:21]Write to MH i2c: E2 02 01 FC 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 54 79 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 28 CC 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EB 2A 01 00 35 04 06 00 F0 00 00 56 [19:55:21]Write i2c OK [19:55:21]MH_I2C_Read... [19:55:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:21]Read from MH i2c: E2 [19:55:21]MH_I2C_Read... [19:55:21]Read from MH i2c: E2 03 00 [19:55:21]MH_I2C_Read... [19:55:21]Read from MH i2c: E2 03 00 FC 00 00 90 00 70 [19:55:21]RAPDU: 90 00 [19:55:21]wFMCommunicate OK [19:55:21]wFMCommunicate request_size=10 [19:55:21]MH_SAM_APDU [19:55:21]CAPDU: 80 0D 02 02 05 4E 14 D6 0C FF [19:55:21]Write to MH i2c: E2 0D 00 FD 00 80 0D 02 02 05 00 4E 14 D6 0C FF 00 00 C4 [19:55:21]Write i2c OK [19:55:21]MH_I2C_Read... [19:55:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:21]Read from MH i2c: E2 [19:55:21]MH_I2C_Read... [19:55:21]Read from MH i2c: E2 03 00 [19:55:21]MH_I2C_Read... [19:55:21]Read from MH i2c: E2 03 00 FD 00 00 90 00 71 [19:55:21]RAPDU: 90 00 [19:55:21]wFMCommunicate OK [19:55:21]wFMCommunicate request_size=4 [19:55:21]MH_SAM_APDU [19:55:21]CAPDU: 80 0D 03 02 [19:55:21]Write to MH i2c: E2 08 00 FE 00 80 0D 03 02 00 00 00 00 79 [19:55:21]Write i2c OK [19:55:21]MH_I2C_Read... [19:55:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:21]Read from MH i2c: E2 [19:55:21]MH_I2C_Read... [19:55:21]Read from MH i2c: E2 0B 00 [19:55:21]MH_I2C_Read... [19:55:21]Read from MH i2c: E2 0B 00 FE 00 00 3D 64 83 36 F2 45 FC 64 90 00 6B [19:55:21]RAPDU: 3D 64 83 36 F2 45 FC 64 90 00 [19:55:21]wFMCommunicate OK [19:55:21]SAM_PROTO_SignData done [19:55:21]FM_MakeSignedData done [19:55:21]CreateOFDProtocolMessage [19:55:21]wFMCommunicate request_size=4 [19:55:21]MH_SAM_APDU [19:55:21]CAPDU: 80 11 00 00 [19:55:21]Write to MH i2c: E2 08 00 FF 00 80 11 00 00 00 00 00 00 79 [19:55:21]Write i2c OK [19:55:21]MH_I2C_Read... [19:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:21]Read from MH i2c: E2 [19:55:21]MH_I2C_Read... [19:55:21]Read from MH i2c: E2 17 00 [19:55:21]MH_I2C_Read... [19:55:21]Read from MH i2c: E2 17 00 FF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CC [19:55:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:55:21]wFMCommunicate OK [19:55:21]CreateOFDProtocolMessage done [19:55:21]OFDSenderStorePacket 76523 [19:55:21]StoreOFDPacket docnum=76523 [19:55:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E2 21 07 01 9C 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 79 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 28 CC 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EB 2A 01 00 35 04 06 00 F0 4E 14 D6 0C FF 3D 64 83 36 F2 45 FC 64 [19:55:21]CheckFolder [19:55:21]dirname=/storage/ofd_packets [19:55:21]CheckFolder done [19:55:21]ProducePacketName [19:55:21]name=ofd_packets/00076523 [19:55:21]NVStorageSaveData ofd_packets/00076523 [19:55:21]File name is /storage/ofd_packets/00076523 [19:55:21]Write 301 bytes [19:55:21]NVStorageSaveData done [19:55:21]OFDSenderStorePacket done [19:55:21]KKMCreateOFDPacket done [19:55:21]NVStorageSaveData kkm_last_timestamp [19:55:21]File name is /storage/kkm_last_timestamp [19:55:21]Write 4 bytes [19:55:21]NVStorageSaveData done [19:55:21]ExternCall_PrintAddStr [19:55:21]wPrintStart [19:55:21]Write to MH i2c: 01 00 00 00 01 01 [19:55:21]Write i2c OK [19:55:21]MH_I2C_Read... [19:55:21]Read from MH i2c: 01 [19:55:21]MH_I2C_Read... [19:55:21]Read from MH i2c: 01 07 00 [19:55:21]MH_I2C_Read... [19:55:21]Read from MH i2c: 01 07 00 00 01 00 00 00 00 00 FF 0F 16 [19:55:21]RasterBufferAndPrint [19:55:21]line Счет N : (1)191015 [19:55:21]line ИНН: 02508201610067 [19:55:21]line Контрольно-Кассовый Чек [19:55:21]line ПРОДАЖА [19:55:21]line ТРК (МРК, ГНК) : 33 [19:55:21]line Товар: 2710124130 [19:55:21]line Аи-92-К-5 [19:55:21]line 31.060 * 64.40 [19:55:21]line = 2000.26 [19:55:21]line НДС 12% НСП 1% [19:55:21]line > о реализуемом товаре [19:55:21]line ОКРУГЛЕНИЕ: -0.26 [19:55:21]line ИТОГО: 2000.00 [19:55:21]line Внесено: 2000.00 [19:55:21]line СДАЧА: 0.00 [19:55:21]line НСП 1% : 17.70 [19:55:21]line НДС 12% : 212.42 [19:55:21]line Наличными: 2000.00 [19:55:21]line Безнал.: 0.00 [19:55:21]line Место: АЗС № 106 "Партнер Нефть" [19:55:21]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:55:21]line СНО: Общий режим [19:55:21]line Чек 143 19.04.2024 19:55 [19:55:21]line Смена: 370 ФФД: 1.0 [19:55:21]line ЗНМ: 0300000141 [19:55:21]line РНМ: 0000000000091573 [19:55:21]line Версия ККМ: 001 [19:55:21]line ФМ: 0000000000874652 [19:55:21]line ФД: 76523 [19:55:21]line ФПД: 264218147687679 [19:55:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T195520&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76523&fm=264218147687679&tin=02508201610067®Number=0000000000091573&sum=200000 [19:55:21]written 0, free lines is 4095 [19:55:21]OFD Sender: Processing packet 76523 [packets to send 128, broken 127] [19:55:21]ProducePacketName [19:55:21]name=ofd_packets/00076523 [19:55:21]OFD Sender: To server: pG, [19:55:21]CommunicateWithHost lk.salyk.kg:30040 [19:55:21]ConnectInit lk.salyk.kg [19:55:21]Connected sock=10 [19:55:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 E2 21 07 01 9C 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 79 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 28 CC 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EB 2A 01 00 35 04 06 00 F0 4E 14 D6 0C FF 3D 64 83 36 F2 45 FC 64 [19:55:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 6F CC 47 00 CD 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EB 2A 01 00 F4 03 04 00 B3 73 22 66 B6 04 01 00 00 C6 53 C5 39 CD 0C 05 F7 [19:55:21]CommunicateWithHost err = 0 [19:55:21]CheckOFDResponse [19:55:21]1017 (14) - 77093643461234 [19:55:21]1041 (16) - 0000000000874652 [19:55:21]1040 (4) - 76523 [19:55:21]1012 (4) - 19.04.2024 13:37 [19:55:21]1206 (1) - 0 [19:55:21]OFD Sender: Remove packet 76523 [19:55:21]ProducePacketName [19:55:21]name=ofd_packets/00076523 [19:55:21]NVStorageDeleteData [19:55:22]Write to MH i2c: 01 00 00 2A 01 2B [19:55:22]Write i2c OK [19:55:22]MH_I2C_Read... [19:55:22]Read from MH i2c: 01 [19:55:22]MH_I2C_Read... [19:55:22]Read from MH i2c: 01 07 00 [19:55:22]MH_I2C_Read... [19:55:22]Read from MH i2c: 01 07 00 2A 01 00 00 00 00 00 04 0D 43 [19:55:22]RasterBufferAndPrint [19:55:22]line [19:55:22]line [19:55:22]line [19:55:22]line [19:55:22]line [19:55:22]written 0, free lines is 3338 [19:55:22]MH_Cut [19:55:22]Write to MH i2c: D1 01 00 31 01 01 04 [19:55:22]Write i2c OK [19:55:22]MH_I2C_Read... [19:55:22]Read from MH i2c: D1 [19:55:22]MH_I2C_Read... [19:55:22]Read from MH i2c: D1 01 00 [19:55:22]MH_I2C_Read... [19:55:22]Read from MH i2c: D1 01 00 31 01 00 03 [19:55:22]Write to MH i2c: 01 00 00 32 01 33 [19:55:22]Write i2c OK [19:55:22]MH_I2C_Read... [19:55:22]OFD Sender: No OFD packet to send [19:55:22]*** Cut start [19:55:22]*** Partial cut [19:55:22]*** CUTSNS_PIN = 1 [19:55:22]*** CUTSNS_PIN = 0 [19:55:23]*** Brake cut motor [19:55:23]Read from MH i2c: 01 [19:55:23]MH_I2C_Read... [19:55:23]*** Stop cut motor [19:55:23]*** Cut end [19:55:23]Read from MH i2c: 01 07 00 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: 01 07 00 32 01 00 00 00 00 00 FF 0F 48 [19:55:23]process_action close_receipt done [19:55:23]requested_data is exist [19:55:23]produce_requested_data [19:55:23]requested_item fm.sn is exist - process it [19:55:23]wFMCommunicate request_size=4 [19:55:23]MH_SAM_APDU [19:55:23]CAPDU: 80 11 00 00 [19:55:23]Write to MH i2c: E2 08 00 33 01 80 11 00 00 00 00 00 00 AE [19:55:23]Write i2c OK [19:55:23]MH_I2C_Read... [19:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:23]Read from MH i2c: E2 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: E2 17 00 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: E2 17 00 33 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 01 [19:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:55:23]wFMCommunicate OK [19:55:23]requested_item fd.num is exist - process it [19:55:23]SAM_PROTO_GetFieldsCounters [19:55:23]wFMCommunicate request_size=4 [19:55:23]MH_SAM_APDU [19:55:23]CAPDU: 80 13 00 00 [19:55:23]Write to MH i2c: E2 08 00 34 01 80 13 00 00 00 00 00 00 B1 [19:55:23]Write i2c OK [19:55:23]MH_I2C_Read... [19:55:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:23]Read from MH i2c: E2 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: E2 62 00 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: E2 62 00 34 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EB 2A 01 00 0E 04 04 00 72 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 08 [19:55:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EB 2A 01 00 0E 04 04 00 72 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 [19:55:23]wFMCommunicate OK [19:55:23]SAM_PROTO_GetFieldsCounters done [19:55:23]requested_item shift.num is exist - process it [19:55:23]requested_item shift.opened is exist - process it [19:55:23]req_shift_opened [19:55:23]FM_GetShiftState [19:55:23]SAM_PROTO_GetShiftState [19:55:23]wFMCommunicate request_size=4 [19:55:23]MH_SAM_APDU [19:55:23]CAPDU: 80 13 01 00 [19:55:23]Write to MH i2c: E2 08 00 35 01 80 13 01 00 00 00 00 00 B3 [19:55:23]Write i2c OK [19:55:23]MH_I2C_Read... [19:55:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:23]Read from MH i2c: E2 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: E2 0E 00 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: E2 0E 00 35 01 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 98 [19:55:23]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:55:23]wFMCommunicate OK [19:55:23]SAM_PROTO_GetShiftState done [19:55:23]FM_GetShiftState done [19:55:23]req_shift_opened done [19:55:23]requested_item shift.open_date is exist - process it [19:55:23]req_shift_open_date [19:55:23]req_shift_open_date done [19:55:23]produce_requested_data done [19:55:23]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76523,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [19:55:23]process_action_free close_receipt [19:55:23]json_value_free [19:55:23]json_value_free done [19:55:23]process_json_proto returns [19:55:23]Send response to host [19:55:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76523,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [19:55:23]free response buf [19:55:23]execute_script done [19:55:23]execute_script returns [19:55:23]free content buf [19:55:23]Sock 9.Close socket [19:55:23]Sock 9.Thread stoped [19:55:27]OFD Sender: No OFD packet to send [19:55:32]OFD Sender: No OFD packet to send [19:55:35]accept exits with 8 [19:55:35]New connection [19:55:35]New thread 3066735972 created [19:55:35]Thread 3066592612 joined [19:55:35]Waiting for new connection... [19:55:35] Sock 8.Parse request [19:55:35]Sock 8.Check first char [19:55:35]Sock 8.First char is OK [19:55:35]request: POST /json_proto HTTP/1.0 [19:55:35]Method: POST [19:55:35]URL: /json_proto [19:55:35]Method is POST - this is cgi request [19:55:35]url: /json_proto [19:55:35]query_string will be loaded in cgi processing [19:55:35]execute_cgi json_proto POST (null) [19:55:35]execute_cgi path=json_proto method=POST [19:55:35]POST find Content-Length [19:55:35]Host: 172.17.62.5:8080 [19:55:35]Content-Length: 820 [19:55:35]Content-Type: application/json [19:55:35] [19:55:35]POST finish read [19:55:35]Found Content-Length = 820 [19:55:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.000, "sum" : 981.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 981.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:35]execute_script... [19: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)191012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.000, "sum" : 981.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 981.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:35]POST & json_proto [19:55:35]process_json_proto [19:55:35]json parsed OK: [19:55:35]protocol is kg_v1.0 [19:55:35]action value=close_receipt [19:55:35]process_action close_receipt [19:55:35]cmd_close_receipt [19:55:35]MH_GetDate [19:55:35]Write to MH i2c: F0 00 00 36 01 26 [19:55:35]Write i2c OK [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: F0 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: F0 09 00 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: F0 09 00 36 01 00 38 CC 22 66 F4 E9 65 64 61 [19:55:35]GetLastDocTimeStamp 1713556520 [19:55:35]current date 1713556536 [19:55:35]FM_GetShiftState [19:55:35]SAM_PROTO_GetShiftState [19:55:35]wFMCommunicate request_size=4 [19:55:35]MH_SAM_APDU [19:55:35]CAPDU: 80 13 01 00 [19:55:35]Write to MH i2c: E2 08 00 37 01 80 13 01 00 00 00 00 00 B5 [19:55:35]Write i2c OK [19:55:35]MH_I2C_Read... [19:55:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:35]Read from MH i2c: E2 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: E2 0E 00 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: E2 0E 00 37 01 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 9A [19:55:35]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:55:35]wFMCommunicate OK [19:55:35]SAM_PROTO_GetShiftState done [19:55:35]FM_GetShiftState done [19:55:35]opened in 1713486233 [19:55:35]opened+sec_in_day 1713572633 [19:55:35]quantity*price = 98100 [19:55:35]sum+1 = 98101 [19:55:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 981.00 НСП 1% : 8.68 НДС 12% : 104.18 Наличными: 0.00 Безнал.: 981.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 144 19.04.2024 19:55 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76524 ФПД: 278911380560882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T195536&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76524&fm=278911380560882&tin=02508201610067®Number=0000000000091573&sum=98100 [19:55:36]StoreToDocumentArchive [19:55:36]shift 370 fd 76524 [19:55:36]save to /storage/0370/doc_00076524 [19:55:36]save last doc name /storage/0370/doc_00076524 to /storage/kkm_last_doc_name [19:55:36]save OK [19:55:36]Clear old archive folders... [19:55:36]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:55:36]tlvbuf is 016185E0 [19:55:36]SAM_PROTO_ClearQueue [19:55:36]wFMCommunicate request_size=4 [19:55:36]MH_SAM_APDU [19:55:36]CAPDU: 80 09 00 00 [19:55:36]Write to MH i2c: E2 08 00 44 01 80 09 00 00 00 00 00 00 B7 [19:55:36]Write i2c OK [19:55:36]MH_I2C_Read... [19:55:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:36]Read from MH i2c: E2 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 03 00 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 03 00 44 01 00 90 00 B9 [19:55:36]RAPDU: 90 00 [19:55:36]wFMCommunicate OK [19:55:36]SAM_PROTO_ClearQueue done [19:55:36]KKMCreateOFDPacket [19:55:36]OFDProtocolAddRootSTLVToBuf [19:55:36]FM_MakeSignedData [19:55:36]FM_MakeSignedData [19:55:36]SAM_PROTO_SignData [19:55:36]wFMCommunicate request_size=4 [19:55:36]MH_SAM_APDU [19:55:36]CAPDU: 80 0D 01 02 [19:55:36]Write to MH i2c: E2 08 00 45 01 80 0D 01 02 00 00 00 00 BF [19:55:36]Write i2c OK [19:55:36]MH_I2C_Read... [19:55:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:36]Read from MH i2c: E2 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 03 00 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 03 00 45 01 00 90 00 BA [19:55:36]RAPDU: 90 00 [19:55:36]wFMCommunicate OK [19:55:36]wFMCommunicate request_size=255 [19:55:36]MH_SAM_APDU [19:55:36]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 34 7F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 7F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 38 CC 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EC 2A 01 00 35 04 06 00 FD AB [19:55:36]Write to MH i2c: E2 02 01 46 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 34 7F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 7F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 38 CC 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EC 2A 01 00 35 04 06 00 FD AB 00 00 92 [19:55:36]Write i2c OK [19:55:36]MH_I2C_Read... [19:55:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:36]Read from MH i2c: E2 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 03 00 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [19:55:36]RAPDU: 90 00 [19:55:36]wFMCommunicate OK [19:55:36]wFMCommunicate request_size=9 [19:55:36]MH_SAM_APDU [19:55:36]CAPDU: 80 0D 02 02 04 1D C3 1B F2 [19:55:36]Write to MH i2c: E2 0C 00 47 01 80 0D 02 02 04 00 1D C3 1B F2 00 00 B7 [19:55:36]Write i2c OK [19:55:36]MH_I2C_Read... [19:55:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:36]Read from MH i2c: E2 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 03 00 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 03 00 47 01 00 90 00 BC [19:55:36]RAPDU: 90 00 [19:55:36]wFMCommunicate OK [19:55:36]wFMCommunicate request_size=4 [19:55:36]MH_SAM_APDU [19:55:36]CAPDU: 80 0D 03 02 [19:55:36]Write to MH i2c: E2 08 00 48 01 80 0D 03 02 00 00 00 00 C4 [19:55:36]Write i2c OK [19:55:36]MH_I2C_Read... [19:55:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:36]Read from MH i2c: E2 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 0B 00 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 0B 00 48 01 00 2B 6F E6 71 00 68 4F 87 90 00 F4 [19:55:36]RAPDU: 2B 6F E6 71 00 68 4F 87 90 00 [19:55:36]wFMCommunicate OK [19:55:36]SAM_PROTO_SignData done [19:55:36]FM_MakeSignedData done [19:55:36]CreateOFDProtocolMessage [19:55:36]wFMCommunicate request_size=4 [19:55:36]MH_SAM_APDU [19:55:36]CAPDU: 80 11 00 00 [19:55:36]Write to MH i2c: E2 08 00 49 01 80 11 00 00 00 00 00 00 C4 [19:55:36]Write i2c OK [19:55:36]MH_I2C_Read... [19:55:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:36]Read from MH i2c: E2 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 17 00 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: E2 17 00 49 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 17 [19:55:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:55:36]wFMCommunicate OK [19:55:36]CreateOFDProtocolMessage done [19:55:36]OFDSenderStorePacket 76524 [19:55:36]StoreOFDPacket docnum=76524 [19:55:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 EE 98 06 01 EB 86 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 34 7F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 7F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 38 CC 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EC 2A 01 00 35 04 06 00 FD AB 1D C3 1B F2 2B 6F E6 71 00 68 4F 87 [19:55:36]CheckFolder [19:55:36]dirname=/storage/ofd_packets [19:55:36]CheckFolder done [19:55:36]ProducePacketName [19:55:36]name=ofd_packets/00076524 [19:55:36]NVStorageSaveData ofd_packets/00076524 [19:55:36]File name is /storage/ofd_packets/00076524 [19:55:36]Write 300 bytes [19:55:36]NVStorageSaveData done [19:55:36]OFDSenderStorePacket done [19:55:36]KKMCreateOFDPacket done [19:55:36]NVStorageSaveData kkm_last_timestamp [19:55:36]File name is /storage/kkm_last_timestamp [19:55:36]Write 4 bytes [19:55:36]NVStorageSaveData done [19:55:36]ExternCall_PrintAddStr [19:55:36]wPrintStart [19:55:36]Write to MH i2c: 01 00 00 4A 01 4B [19:55:36]Write i2c OK [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: 01 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: 01 07 00 [19:55:36]MH_I2C_Read... [19:55:36]Read from MH i2c: 01 07 00 4A 01 00 00 00 00 00 FF 0F 60 [19:55:36]RasterBufferAndPrint [19:55:36]line Счет N : (1)191012 [19:55:36]line ИНН: 02508201610067 [19:55:36]line Контрольно-Кассовый Чек [19:55:36]line ПРОДАЖА [19:55:36]line ТРК (МРК, ГНК) : 71 [19:55:36]line Товар: 2711190000 [19:55:36]line ГАЗ-К-5 [19:55:36]line 30.000 * 32.70 [19:55:36]line = 981.00 [19:55:36]line НДС 12% НСП 1% [19:55:36]line > о реализуемом товаре [19:55:36]line ИТОГО: 981.00 [19:55:36]line НСП 1% : 8.68 [19:55:36]line НДС 12% : 104.18 [19:55:36]line Наличными: 0.00 [19:55:36]line Безнал.: 981.00 [19:55:36]line Место: АЗС № 106 "Партнер Нефть" [19:55:36]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [19:55:36]line СНО: Общий режим [19:55:36]line Чек 144 19.04.2024 19:55 [19:55:36]line Смена: 370 ФФД: 1.0 [19:55:36]line ЗНМ: 0300000141 [19:55:36]line РНМ: 0000000000091573 [19:55:36]line Версия ККМ: 001 [19:55:36]line Платежная система: Бакай Банк [19:55:36]line ФМ: 0000000000874652 [19:55:36]line ФД: 76524 [19:55:36]line ФПД: 278911380560882 [19:55:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T195536&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76524&fm=278911380560882&tin=02508201610067®Number=0000000000091573&sum=98100 [19:55:36]written 0, free lines is 4095 [19:55:36]OFD Sender: Processing packet 76524 [packets to send 128, broken 127] [19:55:36]ProducePacketName [19:55:36]name=ofd_packets/00076524 [19:55:36]OFD Sender: To server: pG, [19:55:36]CommunicateWithHost lk.salyk.kg:30040 [19:55:36]ConnectInit lk.salyk.kg [19:55:37]Connected sock=10 [19: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 34 36 35 32 0E 01 00 00 EE 98 06 01 EB 86 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 34 7F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 7F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 38 CC 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EC 2A 01 00 35 04 06 00 FD AB 1D C3 1B F2 2B 6F E6 71 00 68 4F 87 [19:55:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A8 E0 47 00 88 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 34 36 35 32 10 04 04 00 EC 2A 01 00 F4 03 04 00 C2 73 22 66 B6 04 01 00 00 35 A1 37 F3 A4 8A CB 19 [19:55:37]CommunicateWithHost err = 0 [19:55:37]CheckOFDResponse [19:55:37]1017 (14) - 77093643461234 [19:55:37]1041 (16) - 0000000000874652 [19:55:37]1040 (4) - 76524 [19:55:37]1012 (4) - 19.04.2024 13:38 [19:55:37]1206 (1) - 0 [19:55:37]OFD Sender: Remove packet 76524 [19:55:37]ProducePacketName [19:55:37]name=ofd_packets/00076524 [19:55:37]NVStorageDeleteData [19:55:37]Write to MH i2c: 01 00 00 73 01 74 [19:55:37]Write i2c OK [19:55:37]MH_I2C_Read... [19:55:37]Read from MH i2c: 01 [19:55:37]MH_I2C_Read... [19:55:37]Read from MH i2c: 01 07 00 [19:55:37]MH_I2C_Read... [19:55:37]Read from MH i2c: 01 07 00 73 01 00 00 00 00 00 10 0D 98 [19:55:37]RasterBufferAndPrint [19:55:37]line [19:55:37]line [19:55:37]line [19:55:37]line [19:55:37]line [19:55:37]written 0, free lines is 3350 [19:55:37]MH_Cut [19:55:37]Write to MH i2c: D1 01 00 7A 01 01 4D [19:55:37]Write i2c OK [19:55:37]MH_I2C_Read... [19:55:37]Read from MH i2c: D1 [19:55:37]MH_I2C_Read... [19:55:37]Read from MH i2c: D1 01 00 [19:55:37]MH_I2C_Read... [19:55:37]Read from MH i2c: D1 01 00 7A 01 00 4C [19:55:37]Write to MH i2c: 01 00 00 7B 01 7C [19:55:37]Write i2c OK [19:55:37]MH_I2C_Read... [19:55:37]OFD Sender: No OFD packet to send [19:55:38]*** Cut start [19:55:38]*** Partial cut [19:55:38]*** CUTSNS_PIN = 1 [19:55:38]*** CUTSNS_PIN = 0 [19:55:38]*** Brake cut motor [19:55:38]Read from MH i2c: 01 [19:55:38]MH_I2C_Read... [19:55:38]*** Stop cut motor [19:55:38]*** Cut end [19:55:38]Read from MH i2c: 01 07 00 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: 01 07 00 7B 01 00 00 00 00 00 FF 0F 91 [19:55:38]process_action close_receipt done [19:55:38]requested_data is exist [19:55:38]produce_requested_data [19:55:38]requested_item fm.sn is exist - process it [19:55:38]wFMCommunicate request_size=4 [19:55:38]MH_SAM_APDU [19:55:38]CAPDU: 80 11 00 00 [19:55:38]Write to MH i2c: E2 08 00 7C 01 80 11 00 00 00 00 00 00 F7 [19:55:38]Write i2c OK [19:55:38]MH_I2C_Read... [19:55:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:38]Read from MH i2c: E2 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: E2 17 00 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: E2 17 00 7C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4A [19:55:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [19:55:38]wFMCommunicate OK [19:55:38]requested_item fd.num is exist - process it [19:55:38]SAM_PROTO_GetFieldsCounters [19:55:38]wFMCommunicate request_size=4 [19:55:38]MH_SAM_APDU [19:55:38]CAPDU: 80 13 00 00 [19:55:38]Write to MH i2c: E2 08 00 7D 01 80 13 00 00 00 00 00 00 FA [19:55:38]Write i2c OK [19:55:38]MH_I2C_Read... [19:55:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:38]Read from MH i2c: E2 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: E2 62 00 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: E2 62 00 7D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EC 2A 01 00 0E 04 04 00 72 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 55 [19:55:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EC 2A 01 00 0E 04 04 00 72 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 [19:55:38]wFMCommunicate OK [19:55:38]SAM_PROTO_GetFieldsCounters done [19:55:38]requested_item shift.num is exist - process it [19:55:38]requested_item shift.opened is exist - process it [19:55:38]req_shift_opened [19:55:38]FM_GetShiftState [19:55:38]SAM_PROTO_GetShiftState [19:55:38]wFMCommunicate request_size=4 [19:55:38]MH_SAM_APDU [19:55:38]CAPDU: 80 13 01 00 [19:55:38]Write to MH i2c: E2 08 00 7E 01 80 13 01 00 00 00 00 00 FC [19:55:38]Write i2c OK [19:55:38]MH_I2C_Read... [19:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:38]Read from MH i2c: E2 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: E2 0E 00 [19:55:38]MH_I2C_Read... [19:55:38]Read from MH i2c: E2 0E 00 7E 01 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E1 [19:55:38]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [19:55:38]wFMCommunicate OK [19:55:38]SAM_PROTO_GetShiftState done [19:55:38]FM_GetShiftState done [19:55:38]req_shift_opened done [19:55:38]requested_item shift.open_date is exist - process it [19:55:38]req_shift_open_date [19:55:38]req_shift_open_date done [19:55:38]produce_requested_data done [19:55:38]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76524,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [19:55:38]process_action_free close_receipt [19:55:38]json_value_free [19:55:38]json_value_free done [19:55:38]process_json_proto returns [19:55:38]Send response to host [19:55:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76524,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [19:55:38]free response buf [19:55:38]execute_script done [19:55:38]execute_script returns [19:55:38]free content buf [19:55:38]Sock 8.Close socket [19:55:38]Sock 8.Thread stoped [19:55:42]OFD Sender: No OFD packet to send [19:55:47]OFD Sender: No OFD packet to send [19:55:52]OFD Sender: No OFD packet to send [19:55:57]OFD Sender: No OFD packet to send [19:56:02]OFD Sender: No OFD packet to send [19:56:07]OFD Sender: No OFD packet to send [19:56:12]OFD Sender: No OFD packet to send [19:56:17]OFD Sender: No OFD packet to send [19:56:22]OFD Sender: No OFD packet to send [19:56:27]OFD Sender: No OFD packet to send [19:56:32]OFD Sender: No OFD packet to send [19:56:37]OFD Sender: No OFD packet to send [19:56:42]OFD Sender: No OFD packet to send [19:56:47]OFD Sender: No OFD packet to send [19:56:52]OFD Sender: No OFD packet to send [19:56:57]OFD Sender: No OFD packet to send [19:57:02]OFD Sender: No OFD packet to send [19:57:07]OFD Sender: No OFD packet to send [19:57:12]OFD Sender: No OFD packet to send [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:28]OFD Sender: No OFD packet to send [19:58:33]OFD Sender: No OFD packet to send [19:58:38]OFD Sender: No OFD packet to send [19:58:43]OFD Sender: No OFD packet to send [19:58:48]OFD Sender: No OFD packet to send [19:58:53]OFD Sender: No OFD packet to send [19:58:58]OFD Sender: No OFD packet to send [19:59:03]OFD Sender: No OFD packet to send [19:59:08]OFD Sender: No OFD packet to send [19:59:13]OFD Sender: No OFD packet to send [19:59:18]OFD Sender: No OFD packet to send [19:59:23]OFD Sender: No OFD packet to send [19:59:28]OFD Sender: No OFD packet to send [19:59:33]OFD Sender: No OFD packet to send [19:59:38]OFD Sender: No OFD packet to send [19:59:43]OFD Sender: No OFD packet to send [19:59:48]OFD Sender: No OFD packet to send [19:59:53]OFD Sender: No OFD packet to send [19:59:58]OFD Sender: No OFD packet to send [20:00:03]OFD Sender: No OFD packet to send [20:00:08]OFD Sender: No OFD packet to send [20:00:13]OFD Sender: No OFD packet to send [20:00:18]OFD Sender: No OFD packet to send [20:00:23]OFD Sender: No OFD packet to send [20:00:28]OFD Sender: No OFD packet to send [20:00:33]OFD Sender: No OFD packet to send [20:00:38]OFD Sender: No OFD packet to send [20:00:43]OFD Sender: No OFD packet to send [20:00:48]OFD Sender: No OFD packet to send [20:00:53]OFD Sender: No OFD packet to send [20:00:58]OFD Sender: No OFD packet to send [20:01:03]OFD Sender: No OFD packet to send [20:01:08]OFD Sender: No OFD packet to send [20:01:13]OFD Sender: No OFD packet to send [20:01:18]OFD Sender: No OFD packet to send [20:01:23]OFD Sender: No OFD packet to send [20:01:28]OFD Sender: No OFD packet to send [20:01:33]OFD Sender: No OFD packet to send [20:01:38]OFD Sender: No OFD packet to send [20:01:43]OFD Sender: No OFD packet to send [20:01:48]OFD Sender: No OFD packet to send [20:01:53]OFD Sender: No OFD packet to send [20:01:58]OFD Sender: No OFD packet to send [20:02:03]OFD Sender: No OFD packet to send [20:02:08]OFD Sender: No OFD packet to send [20:02:13]OFD Sender: No OFD packet to send [20:02:18]OFD Sender: No OFD packet to send [20:02:23]OFD Sender: No OFD packet to send [20:02:28]OFD Sender: No OFD packet to send [20:02:33]OFD Sender: No OFD packet to send [20:02:38]OFD Sender: No OFD packet to send [20:02:43]OFD Sender: No OFD packet to send [20:02:48]OFD Sender: No OFD packet to send [20:02:53]OFD Sender: No OFD packet to send [20:02:53]accept exits with 9 [20:02:53]New connection [20:02:53]New thread 3066592612 created [20:02:53]Thread 3066735972 joined [20:02:53]Waiting for new connection... [20:02:53] Sock 9.Parse request [20:02:53]Sock 9.Check first char [20:02:53]Sock 9.First char is OK [20:02:53]request: POST /json_proto HTTP/1.0 [20:02:53]Method: POST [20:02:53]URL: /json_proto [20:02:53]Method is POST - this is cgi request [20:02:53]url: /json_proto [20:02:53]query_string will be loaded in cgi processing [20:02:53]execute_cgi json_proto POST (null) [20:02:53]execute_cgi path=json_proto method=POST [20:02:53]POST find Content-Length [20:02:53]Host: 172.17.62.5:8080 [20:02:53]Content-Length: 1166 [20:02:53]Content-Type: application/json [20:02:53] [20:02:53]POST finish read [20:02:53]Found Content-Length = 1166 [20:02:53]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)191016\u000A19.04.2024 19:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 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\u000A30103446\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:53]execute_script... [20:02:53]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)191016\u000A19.04.2024 19:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 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\u000A30103446\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:53]POST & json_proto [20:02:53]process_json_proto [20:02:53]json parsed OK: [20:02:53]protocol is kg_v1.0 [20:02:53]action value=print_text [20:02:53]process_action print_text [20:02:53]cmd_print_text [20:02:53]ExternCall_PrintAddStr [20:02:53]wPrintStart [20:02:53]Write to MH i2c: 01 00 00 7F 01 80 [20:02:53]Write i2c OK [20:02:53]MH_I2C_Read... [20:02:53]Read from MH i2c: 01 [20:02:53]MH_I2C_Read... [20:02:53]Read from MH i2c: 01 07 00 [20:02:53]MH_I2C_Read... [20:02:53]Read from MH i2c: 01 07 00 7F 01 00 00 00 00 00 FF 0F 95 [20:02:53]RasterBufferAndPrint [20:02:53]line *****ТОВАРНЫЙ ЧЕК***** [20:02:53]line АЗС 106 [20:02:53]line Партнер нефть [20:02:53]line 02508201610067 [20:02:53]line Кассир : Табалдиева М. [20:02:53]line Счет N : (1)191016 [20:02:53]line 19.04.2024 19:44 [20:02:53]line ПРОДАЖА [20:02:53]line ТРК (МРК, ГНК): 13 [20:02:53]line Вид ГСМ : 2710194210 [20:02:53]line ДТ-К-5 [20:02:53]line 30.000 x 72.90 [20:02:53]line ИТОГ: 2187.00 [20:02:53]line Тип оплаты: Талоны: ТК ГПНА Online [20:02:53]line 30103446 [20:02:53]line ______________________ [20:02:53]line (подпись) [20:02:53]written 0, free lines is 4095 [20:02:54]Write to MH i2c: 01 00 00 93 01 94 [20:02:54]Write i2c OK [20:02:54]MH_I2C_Read... [20:02:54]Read from MH i2c: 01 [20:02:54]MH_I2C_Read... [20:02:54]Read from MH i2c: 01 07 00 [20:02:54]MH_I2C_Read... [20:02:54]Read from MH i2c: 01 07 00 93 01 00 00 00 00 00 0F 0E B8 [20:02:54]RasterBufferAndPrint [20:02:54]line [20:02:54]line [20:02:54]line [20:02:54]line [20:02:54]line [20:02:54]written 0, free lines is 3601 [20:02:54]MH_Cut [20:02:54]Write to MH i2c: D1 01 00 9A 01 01 6D [20:02:54]Write i2c OK [20:02:54]MH_I2C_Read... [20:02:54]Read from MH i2c: D1 [20:02:54]MH_I2C_Read... [20:02:54]Read from MH i2c: D1 01 00 [20:02:54]MH_I2C_Read... [20:02:54]Read from MH i2c: D1 01 00 9A 01 00 6C [20:02:54]Write to MH i2c: 01 00 00 9B 01 9C [20:02:54]Write i2c OK [20:02:54]MH_I2C_Read... [20:02:54]*** Cut start [20:02:54]*** Partial cut [20:02:54]*** CUTSNS_PIN = 1 [20:02:54]*** CUTSNS_PIN = 0 [20:02:54]*** Brake cut motor [20:02:55]Read from MH i2c: 01 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: 01 07 00 [20:02:55]MH_I2C_Read... [20:02:55]*** Stop cut motor [20:02:55]*** Cut end [20:02:55]Read from MH i2c: 01 07 00 9B 01 00 00 00 00 00 FF 0F B1 [20:02:55]process_action print_text done [20:02:55]requested_data is exist [20:02:55]produce_requested_data [20:02:55]requested_item fm.sn is exist - process it [20:02:55]wFMCommunicate request_size=4 [20:02:55]MH_SAM_APDU [20:02:55]CAPDU: 80 11 00 00 [20:02:55]Write to MH i2c: E2 08 00 9C 01 80 11 00 00 00 00 00 00 17 [20:02:55]Write i2c OK [20:02:55]MH_I2C_Read... [20:02:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:55]Read from MH i2c: E2 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 17 00 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 17 00 9C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6A [20:02:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:02:55]wFMCommunicate OK [20:02:55]requested_item fd.num is exist - process it [20:02:55]SAM_PROTO_GetFieldsCounters [20:02:55]wFMCommunicate request_size=4 [20:02:55]MH_SAM_APDU [20:02:55]CAPDU: 80 13 00 00 [20:02:55]Write to MH i2c: E2 08 00 9D 01 80 13 00 00 00 00 00 00 1A [20:02:55]Write i2c OK [20:02:55]MH_I2C_Read... [20:02:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:55]Read from MH i2c: E2 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 62 00 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 62 00 9D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EC 2A 01 00 0E 04 04 00 72 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 75 [20:02:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EC 2A 01 00 0E 04 04 00 72 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 [20:02:55]wFMCommunicate OK [20:02:55]SAM_PROTO_GetFieldsCounters done [20:02:55]requested_item shift.num is exist - process it [20:02:55]requested_item shift.opened is exist - process it [20:02:55]req_shift_opened [20:02:55]FM_GetShiftState [20:02:55]SAM_PROTO_GetShiftState [20:02:55]wFMCommunicate request_size=4 [20:02:55]MH_SAM_APDU [20:02:55]CAPDU: 80 13 01 00 [20:02:55]Write to MH i2c: E2 08 00 9E 01 80 13 01 00 00 00 00 00 1C [20:02:55]Write i2c OK [20:02:55]MH_I2C_Read... [20:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:55]Read from MH i2c: E2 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 0E 00 [20:02:55]MH_I2C_Read... [20:02:55]Read from MH i2c: E2 0E 00 9E 01 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 01 [20:02:55]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:02:55]wFMCommunicate OK [20:02:55]SAM_PROTO_GetShiftState done [20:02:55]FM_GetShiftState done [20:02:55]req_shift_opened done [20:02:55]requested_item shift.open_date is exist - process it [20:02:55]req_shift_open_date [20:02:55]req_shift_open_date done [20:02:55]produce_requested_data done [20:02:55]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76524,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [20:02:55]process_action_free print_text [20:02:55]json_value_free [20:02:55]json_value_free done [20:02:55]process_json_proto returns [20:02:55]Send response to host [20:02:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76524,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [20:02:55]free response buf [20:02:55]execute_script done [20:02:55]execute_script returns [20:02:55]free content buf [20:02:55]Sock 9.Close socket [20:02:55]Sock 9.Thread stoped [20:02:58]OFD Sender: No OFD packet to send [20:03:03]OFD Sender: No OFD packet to send [20:03:08]OFD Sender: No OFD packet to send [20:03:13]OFD Sender: No OFD packet to send [20:03:18]OFD Sender: No OFD packet to send [20:03:23]OFD Sender: No OFD packet to send [20:03:28]OFD Sender: No OFD packet to send [20:03:33]OFD Sender: No OFD packet to send [20:03:38]OFD Sender: No OFD packet to send [20:03:43]OFD Sender: No OFD packet to send [20:03:48]OFD Sender: No OFD packet to send [20:03:53]OFD Sender: No OFD packet to send [20:03:58]OFD Sender: No OFD packet to send [20:04:03]OFD Sender: No OFD packet to send [20:04:08]OFD Sender: No OFD packet to send [20:04:13]OFD Sender: No OFD packet to send [20:04:18]OFD Sender: No OFD packet to send [20:04:23]OFD Sender: No OFD packet to send [20:04:28]OFD Sender: No OFD packet to send [20:04:33]OFD Sender: No OFD packet to send [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:48]OFD Sender: No OFD packet to send [20:04:53]OFD Sender: No OFD packet to send [20:04:58]OFD Sender: No OFD packet to send [20:05:03]OFD Sender: No OFD packet to send [20:05:08]OFD Sender: No OFD packet to send [20:05:13]OFD Sender: No OFD packet to send [20:05:18]OFD Sender: No OFD packet to send [20:05:23]OFD Sender: No OFD packet to send [20:05:28]OFD Sender: No OFD packet to send [20:05:33]OFD Sender: No OFD packet to send [20:05:38]OFD Sender: No OFD packet to send [20:05:43]OFD Sender: No OFD packet to send [20:05:48]OFD Sender: No OFD packet to send [20:05:53]OFD Sender: No OFD packet to send [20:05:58]OFD Sender: No OFD packet to send [20:06:03]OFD Sender: No OFD packet to send [20:06:08]OFD Sender: No OFD packet to send [20:06:13]OFD Sender: No OFD packet to send [20:06:18]OFD Sender: No OFD packet to send [20:06:23]OFD Sender: No OFD packet to send [20:06:28]OFD Sender: No OFD packet to send [20:06:33]OFD Sender: No OFD packet to send [20:06:38]OFD Sender: No OFD packet to send [20:06:43]OFD Sender: No OFD packet to send [20:06:48]OFD Sender: No OFD packet to send [20:06:53]OFD Sender: No OFD packet to send [20:06:58]OFD Sender: No OFD packet to send [20:07:03]OFD Sender: No OFD packet to send [20:07:08]OFD Sender: No OFD packet to send [20:07:13]OFD Sender: No OFD packet to send [20:07:18]OFD Sender: No OFD packet to send [20:07:23]OFD Sender: No OFD packet to send [20:07:28]OFD Sender: No OFD packet to send [20:07:33]OFD Sender: No OFD packet to send [20:07:38]OFD Sender: No OFD packet to send [20:07:43]OFD Sender: No OFD packet to send [20:07:48]OFD Sender: No OFD packet to send [20:07:53]OFD Sender: No OFD packet to send [20:07:58]OFD Sender: No OFD packet to send [20:08:03]OFD Sender: No OFD packet to send [20:08:08]OFD Sender: No OFD packet to send [20:08:13]OFD Sender: No OFD packet to send [20:08:18]OFD Sender: No OFD packet to send [20:08:23]OFD Sender: No OFD packet to send [20:08:28]OFD Sender: No OFD packet to send [20:08:33]OFD Sender: No OFD packet to send [20:08:38]OFD Sender: No OFD packet to send [20:08:43]OFD Sender: No OFD packet to send [20:08:48]OFD Sender: No OFD packet to send [20:08:53]OFD Sender: No OFD packet to send [20:08:58]OFD Sender: No OFD packet to send [20:09:03]OFD Sender: No OFD packet to send [20:09:08]OFD Sender: No OFD packet to send [20:09:13]OFD Sender: No OFD packet to send [20:09:18]OFD Sender: No OFD packet to send [20:09:23]OFD Sender: No OFD packet to send [20:09:28]OFD Sender: No OFD packet to send [20:09:33]OFD Sender: No OFD packet to send [20:09:38]OFD Sender: No OFD packet to send [20:09:43]OFD Sender: No OFD packet to send [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:58]OFD Sender: No OFD packet to send [20:11:03]OFD Sender: No OFD packet to send [20:11:08]OFD Sender: No OFD packet to send [20:11:13]OFD Sender: No OFD packet to send [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:03]OFD Sender: No OFD packet to send [20:12:08]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:00]accept exits with 8 [20:17:00]New connection [20:17:00]New thread 3066735972 created [20:17:00]Thread 3066592612 joined [20:17:00]Waiting for new connection... [20:17:00] Sock 8.Parse request [20:17:00]Sock 8.Check first char [20:17:00]Sock 8.First char is OK [20:17:00]request: POST /json_proto HTTP/1.0 [20:17:00]Method: POST [20:17:00]URL: /json_proto [20:17:00]Method is POST - this is cgi request [20:17:00]url: /json_proto [20:17:00]query_string will be loaded in cgi processing [20:17:00]execute_cgi json_proto POST (null) [20:17:00]execute_cgi path=json_proto method=POST [20:17:00]POST find Content-Length [20:17:00]Host: 172.17.62.5:8080 [20:17:00]Content-Length: 817 [20:17:00]Content-Type: application/json [20:17:00] [20:17:00]POST finish read [20:17:00]Found Content-Length = 817 [20:17:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 12.430, "sum" : 800.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 800.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:00]execute_script... [20:17: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)191017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 12.430, "sum" : 800.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 800.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:00]POST & json_proto [20:17:00]process_json_proto [20:17:00]json parsed OK: [20:17:00]protocol is kg_v1.0 [20:17:00]action value=close_receipt [20:17:00]process_action close_receipt [20:17:00]cmd_close_receipt [20:17:00]MH_GetDate [20:17:00]Write to MH i2c: F0 00 00 9F 01 8F [20:17:00]Write i2c OK [20:17:00]MH_I2C_Read... [20:17:00]Read from MH i2c: F0 [20:17:00]MH_I2C_Read... [20:17:00]Read from MH i2c: F0 09 00 [20:17:00]MH_I2C_Read... [20:17:00]Read from MH i2c: F0 09 00 9F 01 00 3D D1 22 66 F4 E9 65 64 D4 [20:17:00]GetLastDocTimeStamp 1713556536 [20:17:00]current date 1713557821 [20:17:00]FM_GetShiftState [20:17:00]SAM_PROTO_GetShiftState [20:17:00]wFMCommunicate request_size=4 [20:17:00]MH_SAM_APDU [20:17:00]CAPDU: 80 13 01 00 [20:17:00]Write to MH i2c: E2 08 00 A0 01 80 13 01 00 00 00 00 00 1E [20:17:00]Write i2c OK [20:17:00]MH_I2C_Read... [20:17:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:00]Read from MH i2c: E2 [20:17:00]MH_I2C_Read... [20:17:00]Read from MH i2c: E2 0E 00 [20:17:00]MH_I2C_Read... [20:17:00]Read from MH i2c: E2 0E 00 A0 01 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 03 [20:17:00]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:17:00]wFMCommunicate OK [20:17:00]SAM_PROTO_GetShiftState done [20:17:00]FM_GetShiftState done [20:17:00]opened in 1713486233 [20:17:00]opened+sec_in_day 1713572633 [20:17:00]quantity*price = 80049 [20:17:00]sum+1 = 80050 [20:17:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.49 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 0.00 Безнал.: 800.49 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 145 19.04.2024 20:17 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76525 ФПД: 103061701036978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T201701&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76525&fm=103061701036978&tin=02508201610067®Number=0000000000091573&sum=80049 [20:17:01]StoreToDocumentArchive [20:17:01]shift 370 fd 76525 [20:17:01]save to /storage/0370/doc_00076525 [20:17:01]save last doc name /storage/0370/doc_00076525 to /storage/kkm_last_doc_name [20:17:01]save OK [20:17:01]Clear old archive folders... [20:17:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:17:01]tlvbuf is 01623550 [20:17:01]SAM_PROTO_ClearQueue [20:17:01]wFMCommunicate request_size=4 [20:17:01]MH_SAM_APDU [20:17:01]CAPDU: 80 09 00 00 [20:17:01]Write to MH i2c: E2 08 00 AD 01 80 09 00 00 00 00 00 00 20 [20:17:01]Write i2c OK [20:17:01]MH_I2C_Read... [20:17:01]Read from MH i2c: E2 [20:17:01]MH_I2C_Read... [20:17:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:01]Read from MH i2c: E2 03 00 [20:17:01]MH_I2C_Read... [20:17:01]Read from MH i2c: E2 03 00 AD 01 00 90 00 22 [20:17:01]RAPDU: 90 00 [20:17:01]wFMCommunicate OK [20:17:01]SAM_PROTO_ClearQueue done [20:17:01]KKMCreateOFDPacket [20:17:01]OFDProtocolAddRootSTLVToBuf [20:17:01]FM_MakeSignedData [20:17:01]FM_MakeSignedData [20:17:01]SAM_PROTO_SignData [20:17:01]wFMCommunicate request_size=4 [20:17:01]MH_SAM_APDU [20:17:01]CAPDU: 80 0D 01 02 [20:17:01]Write to MH i2c: E2 08 00 AE 01 80 0D 01 02 00 00 00 00 28 [20:17:01]Write i2c OK [20:17:01]MH_I2C_Read... [20:17:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:01]Read from MH i2c: E2 [20:17:01]MH_I2C_Read... [20:17:01]Read from MH i2c: E2 03 00 [20:17:01]MH_I2C_Read... [20:17:01]Read from MH i2c: E2 03 00 AE 01 00 90 00 23 [20:17:01]RAPDU: 90 00 [20:17:01]wFMCommunicate OK [20:17:01]wFMCommunicate request_size=255 [20:17:01]MH_SAM_APDU [20:17: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 8E 30 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 B1 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 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 00 00 00 00 00 00 39 04 06 00 B1 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 3D D1 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 ED 2A 01 00 35 04 06 00 5D [20:17:01]Write to MH i2c: E2 02 01 AF 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 8E 30 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 B1 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 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 00 00 00 00 00 00 39 04 06 00 B1 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 3D D1 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 ED 2A 01 00 35 04 06 00 5D 00 00 1A [20:17:01]Write i2c OK [20:17:01]MH_I2C_Read... [20:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:01]Read from MH i2c: E2 [20:17:01]MH_I2C_Read... [20:17:01]Read from MH i2c: E2 03 00 [20:17:01]MH_I2C_Read... [20:17:01]Read from MH i2c: E2 03 00 AF 01 00 90 00 24 [20:17:01]RAPDU: 90 00 [20:17:01]wFMCommunicate OK [20:17:01]wFMCommunicate request_size=10 [20:17:01]MH_SAM_APDU [20:17:01]CAPDU: 80 0D 02 02 05 BB EC 14 8B B2 [20:17:01]Write to MH i2c: E2 0D 00 B0 01 80 0D 02 02 05 00 BB EC 14 8B B2 00 00 2D [20:17:01]Write i2c OK [20:17:01]MH_I2C_Read... [20:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:01]Read from MH i2c: E2 [20:17:01]MH_I2C_Read... [20:17:01]Read from MH i2c: E2 03 00 [20:17:01]MH_I2C_Read... [20:17:01]Read from MH i2c: E2 03 00 B0 01 00 90 00 25 [20:17:01]RAPDU: 90 00 [20:17:01]wFMCommunicate OK [20:17:01]wFMCommunicate request_size=4 [20:17:01]MH_SAM_APDU [20:17:01]CAPDU: 80 0D 03 02 [20:17:01]Write to MH i2c: E2 08 00 B1 01 80 0D 03 02 00 00 00 00 2D [20:17:01]Write i2c OK [20:17:01]MH_I2C_Read... [20:17:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:02]Read from MH i2c: E2 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: E2 0B 00 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: E2 0B 00 B1 01 00 08 14 92 A0 1A 2E F5 34 90 00 ED [20:17:02]RAPDU: 08 14 92 A0 1A 2E F5 34 90 00 [20:17:02]wFMCommunicate OK [20:17:02]SAM_PROTO_SignData done [20:17:02]FM_MakeSignedData done [20:17:02]CreateOFDProtocolMessage [20:17:02]wFMCommunicate request_size=4 [20:17:02]MH_SAM_APDU [20:17:02]CAPDU: 80 11 00 00 [20:17:02]Write to MH i2c: E2 08 00 B2 01 80 11 00 00 00 00 00 00 2D [20:17:02]Write i2c OK [20:17:02]MH_I2C_Read... [20:17:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:02]Read from MH i2c: E2 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: E2 17 00 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: E2 17 00 B2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 80 [20:17:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:17:02]wFMCommunicate OK [20:17:02]CreateOFDProtocolMessage done [20:17:02]OFDSenderStorePacket 76525 [20:17:02]StoreOFDPacket docnum=76525 [20:17:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 34 CB 07 01 F2 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 30 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 B1 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 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 00 00 00 00 00 00 39 04 06 00 B1 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 3D D1 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 ED 2A 01 00 35 04 06 00 5D BB EC 14 8B B2 08 14 92 A0 1A 2E F5 34 [20:17:02]CheckFolder [20:17:02]dirname=/storage/ofd_packets [20:17:02]CheckFolder done [20:17:02]ProducePacketName [20:17:02]name=ofd_packets/00076525 [20:17:02]NVStorageSaveData ofd_packets/00076525 [20:17:02]File name is /storage/ofd_packets/00076525 [20:17:02]Write 301 bytes [20:17:02]NVStorageSaveData done [20:17:02]OFDSenderStorePacket done [20:17:02]KKMCreateOFDPacket done [20:17:02]NVStorageSaveData kkm_last_timestamp [20:17:02]File name is /storage/kkm_last_timestamp [20:17:02]Write 4 bytes [20:17:02]NVStorageSaveData done [20:17:02]ExternCall_PrintAddStr [20:17:02]wPrintStart [20:17:02]Write to MH i2c: 01 00 00 B3 01 B4 [20:17:02]Write i2c OK [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: 01 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: 01 07 00 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: 01 07 00 B3 01 00 00 00 00 00 FF 0F C9 [20:17:02]RasterBufferAndPrint [20:17:02]line Счет N : (1)191017 [20:17:02]line ИНН: 02508201610067 [20:17:02]line Контрольно-Кассовый Чек [20:17:02]line ПРОДАЖА [20:17:02]line ТРК (МРК, ГНК) : 33 [20:17:02]line Товар: 2710124130 [20:17:02]line Аи-92-К-5 [20:17:02]line 12.430 * 64.40 [20:17:02]line = 800.49 [20:17:02]line НДС 12% НСП 1% [20:17:02]line > о реализуемом товаре [20:17:02]line ИТОГО: 800.49 [20:17:02]line НСП 1% : 7.08 [20:17:02]line НДС 12% : 85.01 [20:17:02]line Наличными: 0.00 [20:17:02]line Безнал.: 800.49 [20:17:02]line Место: АЗС № 106 "Партнер Нефть" [20:17:02]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:17:02]line СНО: Общий режим [20:17:02]line Чек 145 19.04.2024 20:17 [20:17:02]line Смена: 370 ФФД: 1.0 [20:17:02]line ЗНМ: 0300000141 [20:17:02]line РНМ: 0000000000091573 [20:17:02]line Версия ККМ: 001 [20:17:02]line Платежная система: Бакай Банк [20:17:02]line ФМ: 0000000000874652 [20:17:02]line ФД: 76525 [20:17:02]line ФПД: 103061701036978 [20:17:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T201701&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76525&fm=103061701036978&tin=02508201610067®Number=0000000000091573&sum=80049 [20:17:02]OFD Sender: Processing packet 76525 [packets to send 128, broken 127] [20:17:02]ProducePacketName [20:17:02]name=ofd_packets/00076525 [20:17:02]OFD Sender: To server: pG, [20:17:02]CommunicateWithHost lk.salyk.kg:30040 [20:17:02]ConnectInit lk.salyk.kg [20:17:02]written 0, free lines is 4095 [20:17:02]Connected sock=10 [20:17:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 34 CB 07 01 F2 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 30 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 B1 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 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 00 00 00 00 00 00 39 04 06 00 B1 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 3D D1 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 ED 2A 01 00 35 04 06 00 5D BB EC 14 8B B2 08 14 92 A0 1A 2E F5 34 [20:17:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 30 D1 47 00 54 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 ED 2A 01 00 F4 03 04 00 C8 78 22 66 B6 04 01 00 00 CD F0 8F 50 18 01 F1 ED [20:17:02]CommunicateWithHost err = 0 [20:17:02]CheckOFDResponse [20:17:02]1017 (14) - 77093643461234 [20:17:02]1041 (16) - 0000000000874652 [20:17:02]1040 (4) - 76525 [20:17:02]1012 (4) - 19.04.2024 13:59 [20:17:02]1206 (1) - 0 [20:17:02]OFD Sender: Remove packet 76525 [20:17:02]ProducePacketName [20:17:02]name=ofd_packets/00076525 [20:17:02]NVStorageDeleteData [20:17:02]Write to MH i2c: 01 00 00 DC 01 DD [20:17:02]Write i2c OK [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: 01 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: 01 07 00 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: 01 07 00 DC 01 00 00 00 00 00 0F 0D 00 [20:17:02]RasterBufferAndPrint [20:17:02]line [20:17:02]line [20:17:02]line [20:17:02]line [20:17:02]line [20:17:02]written 0, free lines is 3349 [20:17:02]MH_Cut [20:17:02]Write to MH i2c: D1 01 00 E3 01 01 B6 [20:17:02]Write i2c OK [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: D1 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: D1 01 00 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: D1 01 00 E3 01 00 B5 [20:17:02]Write to MH i2c: 01 00 00 E4 01 E5 [20:17:02]Write i2c OK [20:17:02]MH_I2C_Read... [20:17:03]OFD Sender: No OFD packet to send [20:17:03]*** Cut start [20:17:03]*** Partial cut [20:17:03]*** CUTSNS_PIN = 1 [20:17:03]*** CUTSNS_PIN = 0 [20:17:03]*** Brake cut motor [20:17:04]Read from MH i2c: 01 [20:17:04]MH_I2C_Read... [20:17:04]*** Stop cut motor [20:17:04]*** Cut end [20:17:04]Read from MH i2c: 01 07 00 [20:17:04]MH_I2C_Read... [20:17:04]Read from MH i2c: 01 07 00 E4 01 00 00 00 00 00 FF 0F FA [20:17:04]process_action close_receipt done [20:17:04]requested_data is exist [20:17:04]produce_requested_data [20:17:04]requested_item fm.sn is exist - process it [20:17:04]wFMCommunicate request_size=4 [20:17:04]MH_SAM_APDU [20:17:04]CAPDU: 80 11 00 00 [20:17:04]Write to MH i2c: E2 08 00 E5 01 80 11 00 00 00 00 00 00 60 [20:17:04]Write i2c OK [20:17:04]MH_I2C_Read... [20:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:04]Read from MH i2c: E2 [20:17:04]MH_I2C_Read... [20:17:04]Read from MH i2c: E2 17 00 [20:17:04]MH_I2C_Read... [20:17:04]Read from MH i2c: E2 17 00 E5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B3 [20:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:17:04]wFMCommunicate OK [20:17:04]requested_item fd.num is exist - process it [20:17:04]SAM_PROTO_GetFieldsCounters [20:17:04]wFMCommunicate request_size=4 [20:17:04]MH_SAM_APDU [20:17:04]CAPDU: 80 13 00 00 [20:17:04]Write to MH i2c: E2 08 00 E6 01 80 13 00 00 00 00 00 00 63 [20:17:04]Write i2c OK [20:17:04]MH_I2C_Read... [20:17:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:04]Read from MH i2c: E2 [20:17:04]MH_I2C_Read... [20:17:04]Read from MH i2c: E2 62 00 [20:17:04]MH_I2C_Read... [20:17:04]Read from MH i2c: E2 62 00 E6 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 ED 2A 01 00 0E 04 04 00 72 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 C2 [20:17:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 ED 2A 01 00 0E 04 04 00 72 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 [20:17:04]wFMCommunicate OK [20:17:04]SAM_PROTO_GetFieldsCounters done [20:17:04]requested_item shift.num is exist - process it [20:17:04]requested_item shift.opened is exist - process it [20:17:04]req_shift_opened [20:17:04]FM_GetShiftState [20:17:04]SAM_PROTO_GetShiftState [20:17:04]wFMCommunicate request_size=4 [20:17:04]MH_SAM_APDU [20:17:04]CAPDU: 80 13 01 00 [20:17:04]Write to MH i2c: E2 08 00 E7 01 80 13 01 00 00 00 00 00 65 [20:17:04]Write i2c OK [20:17:04]MH_I2C_Read... [20:17:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:04]Read from MH i2c: E2 [20:17:04]MH_I2C_Read... [20:17:04]Read from MH i2c: E2 0E 00 [20:17:04]MH_I2C_Read... [20:17:04]Read from MH i2c: E2 0E 00 E7 01 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 4A [20:17:04]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:17:04]wFMCommunicate OK [20:17:04]SAM_PROTO_GetShiftState done [20:17:04]FM_GetShiftState done [20:17:04]req_shift_opened done [20:17:04]requested_item shift.open_date is exist - process it [20:17:04]req_shift_open_date [20:17:04]req_shift_open_date done [20:17:04]produce_requested_data done [20:17:04]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76525,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [20:17:04]process_action_free close_receipt [20:17:04]json_value_free [20:17:04]json_value_free done [20:17:04]process_json_proto returns [20:17:04]Send response to host [20:17:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76525,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [20:17:04]free response buf [20:17:04]execute_script done [20:17:04]execute_script returns [20:17:04]free content buf [20:17:04]Sock 8.Close socket [20:17:04]Sock 8.Thread stoped [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]OFD Sender: No OFD packet to send [20:18:03]OFD Sender: No OFD packet to send [20:18:08]OFD Sender: No OFD packet to send [20:18:13]OFD Sender: No OFD packet to send [20:18:18]OFD Sender: No OFD packet to send [20:18:23]OFD Sender: No OFD packet to send [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:18:59]accept exits with 9 [20:18:59]New connection [20:18:59]New thread 3066592612 created [20:18:59]Thread 3066735972 joined [20:18:59]Waiting for new connection... [20:18:59] Sock 9.Parse request [20:18:59]Sock 9.Check first char [20:18:59]Sock 9.First char is OK [20:18:59]request: POST /json_proto HTTP/1.0 [20:18:59]Method: POST [20:18:59]URL: /json_proto [20:18:59]Method is POST - this is cgi request [20:18:59]url: /json_proto [20:18:59]query_string will be loaded in cgi processing [20:18:59]execute_cgi json_proto POST (null) [20:18:59]execute_cgi path=json_proto method=POST [20:18:59]POST find Content-Length [20:18:59]Host: 172.17.62.5:8080 [20:18:59]Content-Length: 671 [20:18:59]Content-Type: application/json [20:18:59] [20:18:59]POST finish read [20:18:59]Found Content-Length = 671 [20:18:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 10.100, "sum" : 660.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:59]execute_script... [20:18: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)191018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 10.100, "sum" : 660.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:59]POST & json_proto [20:18:59]process_json_proto [20:18:59]json parsed OK: [20:18:59]protocol is kg_v1.0 [20:18:59]action value=close_receipt [20:18:59]process_action close_receipt [20:18:59]cmd_close_receipt [20:18:59]MH_GetDate [20:18:59]Write to MH i2c: F0 00 00 E8 01 D8 [20:18:59]Write i2c OK [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: F0 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: F0 09 00 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: F0 09 00 E8 01 00 B4 D1 22 66 F4 E9 65 64 94 [20:18:59]GetLastDocTimeStamp 1713557821 [20:18:59]current date 1713557940 [20:18:59]FM_GetShiftState [20:18:59]SAM_PROTO_GetShiftState [20:18:59]wFMCommunicate request_size=4 [20:18:59]MH_SAM_APDU [20:18:59]CAPDU: 80 13 01 00 [20:18:59]Write to MH i2c: E2 08 00 E9 01 80 13 01 00 00 00 00 00 67 [20:18:59]Write i2c OK [20:18:59]MH_I2C_Read... [20:18:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:59]Read from MH i2c: E2 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: E2 0E 00 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: E2 0E 00 E9 01 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 4C [20:18:59]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:18:59]wFMCommunicate OK [20:18:59]SAM_PROTO_GetShiftState done [20:18:59]FM_GetShiftState done [20:18:59]opened in 1713486233 [20:18:59]opened+sec_in_day 1713572633 [20:18:59]quantity*price = 66054 [20:18:59]sum+1 = 66055 [20:18:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.84 НДС 12% : 70.15 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 146 19.04.2024 20:19 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76526 ФПД: 20560589997606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T201900&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76526&fm=20560589997606&tin=02508201610067®Number=0000000000091573&sum=66000 [20:19:00]StoreToDocumentArchive [20:19:00]shift 370 fd 76526 [20:19:00]save to /storage/0370/doc_00076526 [20:19:00]save last doc name /storage/0370/doc_00076526 to /storage/kkm_last_doc_name [20:19:00]save OK [20:19:00]Clear old archive folders... [20:19:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:19:00]tlvbuf is 01622AA0 [20:19:00]SAM_PROTO_ClearQueue [20:19:00]wFMCommunicate request_size=4 [20:19:00]MH_SAM_APDU [20:19:00]CAPDU: 80 09 00 00 [20:19:00]Write to MH i2c: E2 08 00 F6 01 80 09 00 00 00 00 00 00 69 [20:19:00]Write i2c OK [20:19:00]MH_I2C_Read... [20:19:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:00]Read from MH i2c: E2 [20:19:00]MH_I2C_Read... [20:19:00]Read from MH i2c: E2 03 00 [20:19:00]MH_I2C_Read... [20:19:00]Read from MH i2c: E2 03 00 F6 01 00 90 00 6B [20:19:00]RAPDU: 90 00 [20:19:00]wFMCommunicate OK [20:19:00]SAM_PROTO_ClearQueue done [20:19:00]KKMCreateOFDPacket [20:19:00]OFDProtocolAddRootSTLVToBuf [20:19:00]FM_MakeSignedData [20:19:00]FM_MakeSignedData [20:19:00]SAM_PROTO_SignData [20:19:00]wFMCommunicate request_size=4 [20:19:00]MH_SAM_APDU [20:19:00]CAPDU: 80 0D 01 02 [20:19:00]Write to MH i2c: E2 08 00 F7 01 80 0D 01 02 00 00 00 00 71 [20:19:00]Write i2c OK [20:19:00]MH_I2C_Read... [20:19:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:19:00]Read from MH i2c: E2 [20:19:00]MH_I2C_Read... [20:19:00]Read from MH i2c: E2 03 00 [20:19:00]MH_I2C_Read... [20:19:00]Read from MH i2c: E2 03 00 F7 01 00 90 00 6C [20:19:00]RAPDU: 90 00 [20:19:00]wFMCommunicate OK [20:19:00]wFMCommunicate request_size=255 [20:19:00]MH_SAM_APDU [20:19: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 74 27 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 06 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 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 00 00 00 F4 03 04 00 B4 D1 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EE 2A 01 00 35 04 06 00 [20:19:00]Write to MH i2c: E2 02 01 F8 01 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 74 27 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 06 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 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 00 00 00 F4 03 04 00 B4 D1 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EE 2A 01 00 35 04 06 00 00 00 FC [20:19:00]Write i2c OK [20:19:00]MH_I2C_Read... [20:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:00]Read from MH i2c: E2 [20:19:00]MH_I2C_Read... [20:19:00]Read from MH i2c: E2 03 00 [20:19:00]MH_I2C_Read... [20:19:00]Read from MH i2c: E2 03 00 F8 01 00 90 00 6D [20:19:00]RAPDU: 90 00 [20:19:00]wFMCommunicate OK [20:19:00]wFMCommunicate request_size=11 [20:19:00]MH_SAM_APDU [20:19:00]CAPDU: 80 0D 02 02 06 12 B3 22 A9 C6 26 [20:19:00]Write to MH i2c: E2 0E 00 F9 01 80 0D 02 02 06 00 12 B3 22 A9 C6 26 00 00 FC [20:19:00]Write i2c OK [20:19:00]MH_I2C_Read... [20:19:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:01]Read from MH i2c: E2 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: E2 03 00 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: E2 03 00 F9 01 00 90 00 6E [20:19:01]RAPDU: 90 00 [20:19:01]wFMCommunicate OK [20:19:01]wFMCommunicate request_size=4 [20:19:01]MH_SAM_APDU [20:19:01]CAPDU: 80 0D 03 02 [20:19:01]Write to MH i2c: E2 08 00 FA 01 80 0D 03 02 00 00 00 00 76 [20:19:01]Write i2c OK [20:19:01]MH_I2C_Read... [20:19:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:01]Read from MH i2c: E2 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: E2 0B 00 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: E2 0B 00 FA 01 00 F1 C8 44 1E C6 1F 47 B7 90 00 75 [20:19:01]RAPDU: F1 C8 44 1E C6 1F 47 B7 90 00 [20:19:01]wFMCommunicate OK [20:19:01]SAM_PROTO_SignData done [20:19:01]FM_MakeSignedData done [20:19:01]CreateOFDProtocolMessage [20:19:01]wFMCommunicate request_size=4 [20:19:01]MH_SAM_APDU [20:19:01]CAPDU: 80 11 00 00 [20:19:01]Write to MH i2c: E2 08 00 FB 01 80 11 00 00 00 00 00 00 76 [20:19:01]Write i2c OK [20:19:01]MH_I2C_Read... [20:19:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:01]Read from MH i2c: E2 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: E2 17 00 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: E2 17 00 FB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C9 [20:19:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:19:01]wFMCommunicate OK [20:19:01]CreateOFDProtocolMessage done [20:19:01]OFDSenderStorePacket 76526 [20:19:01]StoreOFDPacket docnum=76526 [20:19:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 09 45 08 01 56 4B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 74 27 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 06 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 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 00 00 00 F4 03 04 00 B4 D1 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EE 2A 01 00 35 04 06 00 12 B3 22 A9 C6 26 F1 C8 44 1E C6 1F 47 B7 [20:19:01]CheckFolder [20:19:01]dirname=/storage/ofd_packets [20:19:01]CheckFolder done [20:19:01]ProducePacketName [20:19:01]name=ofd_packets/00076526 [20:19:01]NVStorageSaveData ofd_packets/00076526 [20:19:01]File name is /storage/ofd_packets/00076526 [20:19:01]Write 302 bytes [20:19:01]NVStorageSaveData done [20:19:01]OFDSenderStorePacket done [20:19:01]KKMCreateOFDPacket done [20:19:01]NVStorageSaveData kkm_last_timestamp [20:19:01]File name is /storage/kkm_last_timestamp [20:19:01]Write 4 bytes [20:19:01]NVStorageSaveData done [20:19:01]ExternCall_PrintAddStr [20:19:01]wPrintStart [20:19:01]Write to MH i2c: 01 00 00 FC 01 FD [20:19:01]Write i2c OK [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: 01 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: 01 07 00 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: 01 07 00 FC 01 00 00 00 00 00 FF 0F 12 [20:19:01]RasterBufferAndPrint [20:19:01]line Счет N : (1)191018 [20:19:01]line ИНН: 02508201610067 [20:19:01]line Контрольно-Кассовый Чек [20:19:01]line ПРОДАЖА [20:19:01]line ТРК (МРК, ГНК) : 41 [20:19:01]line Товар: 2710124130 [20:19:01]line SUPER 92-К-5 [20:19:01]line 10.100 * 65.40 [20:19:01]line = 660.54 [20:19:01]line НДС 12% НСП 1% [20:19:01]line > о реализуемом товаре [20:19:01]line ОКРУГЛЕНИЕ: -0.54 [20:19:01]line ИТОГО: 660.00 [20:19:01]line Внесено: 660.00 [20:19:01]line СДАЧА: 0.00 [20:19:01]line НСП 1% : 5.84 [20:19:01]line НДС 12% : 70.15 [20:19:01]line Наличными: 660.00 [20:19:01]line Безнал.: 0.00 [20:19:01]line Место: АЗС № 106 "Партнер Нефть" [20:19:01]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:19:01]line СНО: Общий режим [20:19:01]line Чек 146 19.04.2024 20:19 [20:19:01]line Смена: 370 ФФД: 1.0 [20:19:01]line ЗНМ: 0300000141 [20:19:01]line РНМ: 0000000000091573 [20:19:01]line Версия ККМ: 001 [20:19:01]line ФМ: 0000000000874652 [20:19:01]line ФД: 76526 [20:19:01]line ФПД: 20560589997606 [20:19:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T201900&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76526&fm=20560589997606&tin=02508201610067®Number=0000000000091573&sum=66000 [20:19:01]written 0, free lines is 4095 [20:19:01]OFD Sender: Processing packet 76526 [packets to send 128, broken 127] [20:19:01]ProducePacketName [20:19:01]name=ofd_packets/00076526 [20:19:01]OFD Sender: To server: pG, [20:19:01]CommunicateWithHost lk.salyk.kg:30040 [20:19:01]ConnectInit lk.salyk.kg [20:19:01]Connected sock=10 [20:19:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 09 45 08 01 56 4B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 74 27 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 06 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 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 00 00 00 F4 03 04 00 B4 D1 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EE 2A 01 00 35 04 06 00 12 B3 22 A9 C6 26 F1 C8 44 1E C6 1F 47 B7 [20:19:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 EF A2 47 00 80 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 34 36 35 32 10 04 04 00 EE 2A 01 00 F4 03 04 00 3F 79 22 66 B6 04 01 00 00 88 0B C7 1E B3 0D 34 6A [20:19:01]CommunicateWithHost err = 0 [20:19:01]CheckOFDResponse [20:19:01]1017 (14) - 77093643461234 [20:19:01]1041 (16) - 0000000000874652 [20:19:01]1040 (4) - 76526 [20:19:01]1012 (4) - 19.04.2024 14:01 [20:19:01]1206 (1) - 0 [20:19:01]OFD Sender: Remove packet 76526 [20:19:01]ProducePacketName [20:19:01]name=ofd_packets/00076526 [20:19:01]NVStorageDeleteData [20:19:01]Write to MH i2c: 01 00 00 26 02 28 [20:19:01]Write i2c OK [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: 01 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: 01 07 00 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 EB 0C 26 [20:19:01]RasterBufferAndPrint [20:19:01]line [20:19:01]line [20:19:01]line [20:19:01]line [20:19:01]line [20:19:01]written 0, free lines is 3313 [20:19:01]MH_Cut [20:19:01]Write to MH i2c: D1 01 00 2D 02 01 01 [20:19:01]Write i2c OK [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: D1 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: D1 01 00 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: D1 01 00 2D 02 00 00 [20:19:01]Write to MH i2c: 01 00 00 2E 02 30 [20:19:01]Write i2c OK [20:19:01]MH_I2C_Read... [20:19:02]OFD Sender: No OFD packet to send [20:19:02]*** Cut start [20:19:02]*** Partial cut [20:19:02]*** CUTSNS_PIN = 1 [20:19:02]*** CUTSNS_PIN = 0 [20:19:02]*** Brake cut motor [20:19:03]Read from MH i2c: 01 [20:19:03]MH_I2C_Read... [20:19:03]*** Stop cut motor [20:19:03]*** Cut end [20:19:03]Read from MH i2c: 01 07 00 [20:19:03]MH_I2C_Read... [20:19:03]Read from MH i2c: 01 07 00 2E 02 00 00 00 00 00 FF 0F 45 [20:19:03]process_action close_receipt done [20:19:03]requested_data is exist [20:19:03]produce_requested_data [20:19:03]requested_item fm.sn is exist - process it [20:19:03]wFMCommunicate request_size=4 [20:19:03]MH_SAM_APDU [20:19:03]CAPDU: 80 11 00 00 [20:19:03]Write to MH i2c: E2 08 00 2F 02 80 11 00 00 00 00 00 00 AB [20:19:03]Write i2c OK [20:19:03]MH_I2C_Read... [20:19:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:03]Read from MH i2c: E2 [20:19:03]MH_I2C_Read... [20:19:03]Read from MH i2c: E2 17 00 [20:19:03]MH_I2C_Read... [20:19:03]Read from MH i2c: E2 17 00 2F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FE [20:19:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:19:03]wFMCommunicate OK [20:19:03]requested_item fd.num is exist - process it [20:19:03]SAM_PROTO_GetFieldsCounters [20:19:03]wFMCommunicate request_size=4 [20:19:03]MH_SAM_APDU [20:19:03]CAPDU: 80 13 00 00 [20:19:03]Write to MH i2c: E2 08 00 30 02 80 13 00 00 00 00 00 00 AE [20:19:03]Write i2c OK [20:19:03]MH_I2C_Read... [20:19:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:03]Read from MH i2c: E2 [20:19:03]MH_I2C_Read... [20:19:03]Read from MH i2c: E2 62 00 [20:19:03]MH_I2C_Read... [20:19:03]Read from MH i2c: E2 62 00 30 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EE 2A 01 00 0E 04 04 00 72 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 11 [20:19:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EE 2A 01 00 0E 04 04 00 72 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 [20:19:03]wFMCommunicate OK [20:19:03]SAM_PROTO_GetFieldsCounters done [20:19:03]requested_item shift.num is exist - process it [20:19:03]requested_item shift.opened is exist - process it [20:19:03]req_shift_opened [20:19:03]FM_GetShiftState [20:19:03]SAM_PROTO_GetShiftState [20:19:03]wFMCommunicate request_size=4 [20:19:03]MH_SAM_APDU [20:19:03]CAPDU: 80 13 01 00 [20:19:03]Write to MH i2c: E2 08 00 31 02 80 13 01 00 00 00 00 00 B0 [20:19:03]Write i2c OK [20:19:03]MH_I2C_Read... [20:19:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:03]Read from MH i2c: E2 [20:19:03]MH_I2C_Read... [20:19:03]Read from MH i2c: E2 0E 00 [20:19:03]MH_I2C_Read... [20:19:03]Read from MH i2c: E2 0E 00 31 02 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 95 [20:19:03]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:19:03]wFMCommunicate OK [20:19:03]SAM_PROTO_GetShiftState done [20:19:03]FM_GetShiftState done [20:19:03]req_shift_opened done [20:19:03]requested_item shift.open_date is exist - process it [20:19:03]req_shift_open_date [20:19:03]req_shift_open_date done [20:19:03]produce_requested_data done [20:19:03]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76526,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [20:19:03]process_action_free close_receipt [20:19:03]json_value_free [20:19:03]json_value_free done [20:19:03]process_json_proto returns [20:19:03]Send response to host [20:19:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76526,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [20:19:03]free response buf [20:19:03]execute_script done [20:19:03]execute_script returns [20:19:03]free content buf [20:19:03]Sock 9.Close socket [20:19:03]Sock 9.Thread stoped [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:17]OFD Sender: No OFD packet to send [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:13]accept exits with 8 [20:20:13]New connection [20:20:13]New thread 3066735972 created [20:20:13]Thread 3066592612 joined [20:20:13]Waiting for new connection... [20:20:13] Sock 8.Parse request [20:20:13]Sock 8.Check first char [20:20:13]Sock 8.First char is OK [20:20:13]request: POST /json_proto HTTP/1.0 [20:20:13]Method: POST [20:20:13]URL: /json_proto [20:20:13]Method is POST - this is cgi request [20:20:13]url: /json_proto [20:20:13]query_string will be loaded in cgi processing [20:20:13]execute_cgi json_proto POST (null) [20:20:13]execute_cgi path=json_proto method=POST [20:20:13]POST find Content-Length [20:20:13]Host: 172.17.62.5:8080 [20:20:13]Content-Length: 682 [20:20:13]Content-Type: application/json [20:20:13] [20:20:13]POST finish read [20:20:13]Found Content-Length = 682 [20:20:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 32.930, "sum" : 2400.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:13]execute_script... [20:20: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)191019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 32.930, "sum" : 2400.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:13]POST & json_proto [20:20:13]process_json_proto [20:20:13]json parsed OK: [20:20:13]protocol is kg_v1.0 [20:20:13]action value=close_receipt [20:20:13]process_action close_receipt [20:20:13]cmd_close_receipt [20:20:13]MH_GetDate [20:20:13]Write to MH i2c: F0 00 00 32 02 23 [20:20:13]Write i2c OK [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: F0 [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: F0 09 00 [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: F0 09 00 32 02 00 FE D1 22 66 F4 E9 65 64 29 [20:20:13]GetLastDocTimeStamp 1713557940 [20:20:13]current date 1713558014 [20:20:13]FM_GetShiftState [20:20:13]SAM_PROTO_GetShiftState [20:20:13]wFMCommunicate request_size=4 [20:20:13]MH_SAM_APDU [20:20:13]CAPDU: 80 13 01 00 [20:20:13]Write to MH i2c: E2 08 00 33 02 80 13 01 00 00 00 00 00 B2 [20:20:13]Write i2c OK [20:20:13]MH_I2C_Read... [20:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:13]Read from MH i2c: E2 [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: E2 0E 00 [20:20:13]MH_I2C_Read... [20:20:13]Read from MH i2c: E2 0E 00 33 02 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 97 [20:20:13]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:20:13]wFMCommunicate OK [20:20:13]SAM_PROTO_GetShiftState done [20:20:13]FM_GetShiftState done [20:20:13]opened in 1713486233 [20:20:13]opened+sec_in_day 1713572633 [20:20:13]quantity*price = 240059 [20:20:13]sum+1 = 240061 [20:20:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 2400.00 Внесено: 2400.00 СДАЧА: 0.00 НСП 1% : 21.24 НДС 12% : 254.93 Наличными: 2400.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 147 19.04.2024 20:20 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76527 ФПД: 204332604532048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T202014&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76527&fm=204332604532048&tin=02508201610067®Number=0000000000091573&sum=240000 [20:20:14]StoreToDocumentArchive [20:20:14]shift 370 fd 76527 [20:20:14]save to /storage/0370/doc_00076527 [20:20:14]save last doc name /storage/0370/doc_00076527 to /storage/kkm_last_doc_name [20:20:14]save OK [20:20:14]Clear old archive folders... [20:20:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:20:14]tlvbuf is 0160ECC0 [20:20:14]SAM_PROTO_ClearQueue [20:20:14]wFMCommunicate request_size=4 [20:20:14]MH_SAM_APDU [20:20:14]CAPDU: 80 09 00 00 [20:20:14]Write to MH i2c: E2 08 00 40 02 80 09 00 00 00 00 00 00 B4 [20:20:14]Write i2c OK [20:20:14]MH_I2C_Read... [20:20:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:14]Read from MH i2c: E2 [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: E2 03 00 [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: E2 03 00 40 02 00 90 00 B6 [20:20:14]RAPDU: 90 00 [20:20:14]wFMCommunicate OK [20:20:14]SAM_PROTO_ClearQueue done [20:20:14]KKMCreateOFDPacket [20:20:14]OFDProtocolAddRootSTLVToBuf [20:20:14]FM_MakeSignedData [20:20:14]FM_MakeSignedData [20:20:14]SAM_PROTO_SignData [20:20:14]wFMCommunicate request_size=4 [20:20:14]MH_SAM_APDU [20:20:14]CAPDU: 80 0D 01 02 [20:20:14]Write to MH i2c: E2 08 00 41 02 80 0D 01 02 00 00 00 00 BC [20:20:14]Write i2c OK [20:20:14]MH_I2C_Read... [20:20:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:15]Read from MH i2c: E2 [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: E2 03 00 [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: E2 03 00 41 02 00 90 00 B7 [20:20:15]RAPDU: 90 00 [20:20:15]wFMCommunicate OK [20:20:15]wFMCommunicate request_size=255 [20:20:15]MH_SAM_APDU [20:20:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 80 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BC A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 63 00 00 00 00 07 04 06 00 80 A9 03 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 FE D1 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EF 2A 01 00 35 04 06 00 B9 [20:20:15]Write to MH i2c: E2 02 01 42 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 80 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BC A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 63 00 00 00 00 07 04 06 00 80 A9 03 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 FE D1 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EF 2A 01 00 35 04 06 00 B9 00 00 BE [20:20:15]Write i2c OK [20:20:15]MH_I2C_Read... [20:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:15]Read from MH i2c: E2 [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: E2 03 00 [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: E2 03 00 42 02 00 90 00 B8 [20:20:15]RAPDU: 90 00 [20:20:15]wFMCommunicate OK [20:20:15]wFMCommunicate request_size=10 [20:20:15]MH_SAM_APDU [20:20:15]CAPDU: 80 0D 02 02 05 D6 E4 4F 25 50 [20:20:15]Write to MH i2c: E2 0D 00 43 02 80 0D 02 02 05 00 D6 E4 4F 25 50 00 00 47 [20:20:15]Write i2c OK [20:20:15]MH_I2C_Read... [20:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:15]Read from MH i2c: E2 [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: E2 03 00 [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: E2 03 00 43 02 00 90 00 B9 [20:20:15]RAPDU: 90 00 [20:20:15]wFMCommunicate OK [20:20:15]wFMCommunicate request_size=4 [20:20:15]MH_SAM_APDU [20:20:15]CAPDU: 80 0D 03 02 [20:20:15]Write to MH i2c: E2 08 00 44 02 80 0D 03 02 00 00 00 00 C1 [20:20:15]Write i2c OK [20:20:15]MH_I2C_Read... [20:20:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:15]Read from MH i2c: E2 [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: E2 0B 00 [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: E2 0B 00 44 02 00 95 9C 69 59 BE 6B 9E 1A 90 00 96 [20:20:15]RAPDU: 95 9C 69 59 BE 6B 9E 1A 90 00 [20:20:15]wFMCommunicate OK [20:20:15]SAM_PROTO_SignData done [20:20:15]FM_MakeSignedData done [20:20:15]CreateOFDProtocolMessage [20:20:15]wFMCommunicate request_size=4 [20:20:15]MH_SAM_APDU [20:20:15]CAPDU: 80 11 00 00 [20:20:15]Write to MH i2c: E2 08 00 45 02 80 11 00 00 00 00 00 00 C1 [20:20:15]Write i2c OK [20:20:15]MH_I2C_Read... [20:20:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:15]Read from MH i2c: E2 [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: E2 17 00 [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: E2 17 00 45 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 14 [20:20:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:20:15]wFMCommunicate OK [20:20:15]CreateOFDProtocolMessage done [20:20:15]OFDSenderStorePacket 76527 [20:20:15]StoreOFDPacket docnum=76527 [20:20:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 7D 66 07 01 FB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 80 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BC A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 63 00 00 00 00 07 04 06 00 80 A9 03 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 FE D1 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EF 2A 01 00 35 04 06 00 B9 D6 E4 4F 25 50 95 9C 69 59 BE 6B 9E 1A [20:20:15]CheckFolder [20:20:15]dirname=/storage/ofd_packets [20:20:15]CheckFolder done [20:20:15]ProducePacketName [20:20:15]name=ofd_packets/00076527 [20:20:15]NVStorageSaveData ofd_packets/00076527 [20:20:15]File name is /storage/ofd_packets/00076527 [20:20:15]Write 301 bytes [20:20:15]NVStorageSaveData done [20:20:15]OFDSenderStorePacket done [20:20:15]KKMCreateOFDPacket done [20:20:15]NVStorageSaveData kkm_last_timestamp [20:20:15]File name is /storage/kkm_last_timestamp [20:20:15]Write 4 bytes [20:20:15]NVStorageSaveData done [20:20:15]ExternCall_PrintAddStr [20:20:15]wPrintStart [20:20:15]Write to MH i2c: 01 00 00 46 02 48 [20:20:15]Write i2c OK [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: 01 [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: 01 07 00 [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: 01 07 00 46 02 00 00 00 00 00 FF 0F 5D [20:20:15]RasterBufferAndPrint [20:20:15]line Счет N : (1)191019 [20:20:15]line ИНН: 02508201610067 [20:20:15]line Контрольно-Кассовый Чек [20:20:15]line ПРОДАЖА [20:20:15]line ТРК (МРК, ГНК) : 11 [20:20:15]line Товар: 2710124500 [20:20:15]line Аи-95-К-5 [20:20:15]line 32.930 * 72.90 [20:20:15]line = 2400.60 [20:20:15]line НДС 12% НСП 1% [20:20:15]line > о реализуемом товаре [20:20:15]line ОКРУГЛЕНИЕ: -0.60 [20:20:15]line ИТОГО: 2400.00 [20:20:15]line Внесено: 2400.00 [20:20:15]line СДАЧА: 0.00 [20:20:15]line НСП 1% : 21.24 [20:20:15]line НДС 12% : 254.93 [20:20:15]line Наличными: 2400.00 [20:20:15]line Безнал.: 0.00 [20:20:15]line Место: АЗС № 106 "Партнер Нефть" [20:20:15]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:20:15]line СНО: Общий режим [20:20:15]line Чек 147 19.04.2024 20:20 [20:20:15]line Смена: 370 ФФД: 1.0 [20:20:15]line ЗНМ: 0300000141 [20:20:15]line РНМ: 0000000000091573 [20:20:15]line Версия ККМ: 001 [20:20:15]line ФМ: 0000000000874652 [20:20:15]line ФД: 76527 [20:20:15]line ФПД: 204332604532048 [20:20:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T202014&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76527&fm=204332604532048&tin=02508201610067®Number=0000000000091573&sum=240000 [20:20:15]written 0, free lines is 4095 [20:20:15]OFD Sender: Processing packet 76527 [packets to send 128, broken 127] [20:20:15]ProducePacketName [20:20:15]name=ofd_packets/00076527 [20:20:15]OFD Sender: To server: pG, [20:20:15]CommunicateWithHost lk.salyk.kg:30040 [20:20:15]ConnectInit lk.salyk.kg [20:20:16]Connected sock=11 [20:20:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 7D 66 07 01 FB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 80 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BC A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 63 00 00 00 00 07 04 06 00 80 A9 03 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 FE D1 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EF 2A 01 00 35 04 06 00 B9 D6 E4 4F 25 50 95 9C 69 59 BE 6B 9E 1A [20:20:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 81 E4 47 00 13 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 34 36 35 32 10 04 04 00 EF 2A 01 00 F4 03 04 00 89 79 22 66 B6 04 01 00 00 30 46 62 65 DE 99 AE 33 [20:20:16]CommunicateWithHost err = 0 [20:20:16]CheckOFDResponse [20:20:16]1017 (14) - 77093643461234 [20:20:16]1041 (16) - 0000000000874652 [20:20:16]1040 (4) - 76527 [20:20:16]1012 (4) - 19.04.2024 14:02 [20:20:16]1206 (1) - 0 [20:20:16]OFD Sender: Remove packet 76527 [20:20:16]ProducePacketName [20:20:16]name=ofd_packets/00076527 [20:20:16]NVStorageDeleteData [20:20:16]Write to MH i2c: 01 00 00 70 02 72 [20:20:16]Write i2c OK [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: 01 [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: 01 07 00 [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FC 0C 81 [20:20:16]RasterBufferAndPrint [20:20:16]line [20:20:16]line [20:20:16]line [20:20:16]line [20:20:16]line [20:20:16]written 0, free lines is 3330 [20:20:16]MH_Cut [20:20:16]Write to MH i2c: D1 01 00 77 02 01 4B [20:20:16]Write i2c OK [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: D1 [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: D1 01 00 [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: D1 01 00 77 02 00 4A [20:20:16]Write to MH i2c: 01 00 00 78 02 7A [20:20:16]Write i2c OK [20:20:16]MH_I2C_Read... [20:20:16]OFD Sender: No OFD packet to send [20:20:16]*** Cut start [20:20:16]*** Partial cut [20:20:16]*** CUTSNS_PIN = 1 [20:20:17]*** CUTSNS_PIN = 0 [20:20:17]*** Brake cut motor [20:20:17]Read from MH i2c: 01 [20:20:17]MH_I2C_Read... [20:20:17]*** Stop cut motor [20:20:17]*** Cut end [20:20:17]Read from MH i2c: 01 07 00 [20:20:17]MH_I2C_Read... [20:20:17]Read from MH i2c: 01 07 00 78 02 00 00 00 00 00 FF 0F 8F [20:20:17]process_action close_receipt done [20:20:17]requested_data is exist [20:20:17]produce_requested_data [20:20:17]requested_item fm.sn is exist - process it [20:20:17]wFMCommunicate request_size=4 [20:20:17]MH_SAM_APDU [20:20:17]CAPDU: 80 11 00 00 [20:20:17]Write to MH i2c: E2 08 00 79 02 80 11 00 00 00 00 00 00 F5 [20:20:17]Write i2c OK [20:20:17]MH_I2C_Read... [20:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:17]Read from MH i2c: E2 [20:20:17]MH_I2C_Read... [20:20:17]Read from MH i2c: E2 17 00 [20:20:17]MH_I2C_Read... [20:20:17]Read from MH i2c: E2 17 00 79 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 48 [20:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:20:17]wFMCommunicate OK [20:20:17]requested_item fd.num is exist - process it [20:20:17]SAM_PROTO_GetFieldsCounters [20:20:17]wFMCommunicate request_size=4 [20:20:17]MH_SAM_APDU [20:20:17]CAPDU: 80 13 00 00 [20:20:17]Write to MH i2c: E2 08 00 7A 02 80 13 00 00 00 00 00 00 F8 [20:20:17]Write i2c OK [20:20:17]MH_I2C_Read... [20:20:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:17]Read from MH i2c: E2 [20:20:17]MH_I2C_Read... [20:20:17]Read from MH i2c: E2 62 00 [20:20:17]MH_I2C_Read... [20:20:17]Read from MH i2c: E2 62 00 7A 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EF 2A 01 00 0E 04 04 00 72 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 5F [20:20:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EF 2A 01 00 0E 04 04 00 72 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 [20:20:17]wFMCommunicate OK [20:20:17]SAM_PROTO_GetFieldsCounters done [20:20:17]requested_item shift.num is exist - process it [20:20:17]requested_item shift.opened is exist - process it [20:20:17]req_shift_opened [20:20:17]FM_GetShiftState [20:20:17]SAM_PROTO_GetShiftState [20:20:17]wFMCommunicate request_size=4 [20:20:17]MH_SAM_APDU [20:20:17]CAPDU: 80 13 01 00 [20:20:17]Write to MH i2c: E2 08 00 7B 02 80 13 01 00 00 00 00 00 FA [20:20:17]Write i2c OK [20:20:17]MH_I2C_Read... [20:20:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:17]Read from MH i2c: E2 [20:20:17]MH_I2C_Read... [20:20:17]Read from MH i2c: E2 0E 00 [20:20:17]MH_I2C_Read... [20:20:17]Read from MH i2c: E2 0E 00 7B 02 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 DF [20:20:17]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:20:17]wFMCommunicate OK [20:20:17]SAM_PROTO_GetShiftState done [20:20:17]FM_GetShiftState done [20:20:17]req_shift_opened done [20:20:17]requested_item shift.open_date is exist - process it [20:20:17]req_shift_open_date [20:20:17]req_shift_open_date done [20:20:17]produce_requested_data done [20:20:17]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76527,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [20:20:17]process_action_free close_receipt [20:20:17]json_value_free [20:20:17]json_value_free done [20:20:17]process_json_proto returns [20:20:17]Send response to host [20:20:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76527,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [20:20:17]free response buf [20:20:17]execute_script done [20:20:17]execute_script returns [20:20:17]free content buf [20:20:17]Sock 8.Close socket [20:20:17]Sock 8.Thread stoped [20:20:21]OFD Sender: No OFD packet to send [20:20:26]OFD Sender: No OFD packet to send [20:20:31]OFD Sender: No OFD packet to send [20:20:36]OFD Sender: No OFD packet to send [20:20:41]OFD Sender: No OFD packet to send [20:20:46]OFD Sender: No OFD packet to send [20:20:51]OFD Sender: No OFD packet to send [20:20:56]OFD Sender: No OFD packet to send [20:21:01]OFD Sender: No OFD packet to send [20:21:06]OFD Sender: No OFD packet to send [20:21:11]OFD Sender: No OFD packet to send [20:21:16]OFD Sender: No OFD packet to send [20:21:21]OFD Sender: No OFD packet to send [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:36]OFD Sender: No OFD packet to send [20:21:41]OFD Sender: No OFD packet to send [20:21:46]OFD Sender: No OFD packet to send [20:21:51]OFD Sender: No OFD packet to send [20:21:56]OFD Sender: No OFD packet to send [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:32]OFD Sender: No OFD packet to send [20:23:37]OFD Sender: No OFD packet to send [20:23:42]OFD Sender: No OFD packet to send [20:23:47]OFD Sender: No OFD packet to send [20:23:51]accept exits with 9 [20:23:51]New connection [20:23:51]New thread 3066592612 created [20:23:51]Thread 3066735972 joined [20:23:51]Waiting for new connection... [20:23:51] Sock 9.Parse request [20:23:51]Sock 9.Check first char [20:23:51]Sock 9.First char is OK [20:23:51]request: POST /json_proto HTTP/1.0 [20:23:51]Method: POST [20:23:51]URL: /json_proto [20:23:51]Method is POST - this is cgi request [20:23:51]url: /json_proto [20:23:51]query_string will be loaded in cgi processing [20:23:51]execute_cgi json_proto POST (null) [20:23:51]execute_cgi path=json_proto method=POST [20:23:51]POST find Content-Length [20:23:51]Host: 172.17.62.5:8080 [20:23:51]Content-Length: 677 [20:23:51]Content-Type: application/json [20:23:51] [20:23:51]POST finish read [20:23:51]Found Content-Length = 677 [20:23:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\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:23:51]execute_script... [20:23:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\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:23:51]POST & json_proto [20:23:51]process_json_proto [20:23:51]json parsed OK: [20:23:51]protocol is kg_v1.0 [20:23:51]action value=close_receipt [20:23:51]process_action close_receipt [20:23:51]cmd_close_receipt [20:23:51]MH_GetDate [20:23:51]Write to MH i2c: F0 00 00 7C 02 6D [20:23:51]Write i2c OK [20:23:51]MH_I2C_Read... [20:23:51]Read from MH i2c: F0 [20:23:51]MH_I2C_Read... [20:23:51]Read from MH i2c: F0 09 00 [20:23:51]MH_I2C_Read... [20:23:51]Read from MH i2c: F0 09 00 7C 02 00 D8 D2 22 66 F4 E9 65 64 4E [20:23:51]GetLastDocTimeStamp 1713558014 [20:23:51]current date 1713558232 [20:23:51]FM_GetShiftState [20:23:51]SAM_PROTO_GetShiftState [20:23:51]wFMCommunicate request_size=4 [20:23:51]MH_SAM_APDU [20:23:51]CAPDU: 80 13 01 00 [20:23:51]Write to MH i2c: E2 08 00 7D 02 80 13 01 00 00 00 00 00 FC [20:23:51]Write i2c OK [20:23:51]MH_I2C_Read... [20:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:51]Read from MH i2c: E2 [20:23:51]MH_I2C_Read... [20:23:51]Read from MH i2c: E2 0E 00 [20:23:51]MH_I2C_Read... [20:23:51]Read from MH i2c: E2 0E 00 7D 02 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E1 [20:23:51]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:23:51]wFMCommunicate OK [20:23:51]SAM_PROTO_GetShiftState done [20:23:51]FM_GetShiftState done [20:23:51]opened in 1713486233 [20:23:51]opened+sec_in_day 1713572633 [20:23:51]quantity*price = 50009 [20:23:51]sum+1 = 50010 [20:23:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 148 19.04.2024 20:23 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76528 ФПД: 82297083058306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T202352&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76528&fm=82297083058306&tin=02508201610067®Number=0000000000091573&sum=50000 [20:23:52]StoreToDocumentArchive [20:23:52]shift 370 fd 76528 [20:23:52]save to /storage/0370/doc_00076528 [20:23:52]save last doc name /storage/0370/doc_00076528 to /storage/kkm_last_doc_name [20:23:52]save OK [20:23:52]Clear old archive folders... [20:23:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:23:52]tlvbuf is B6E736B0 [20:23:52]SAM_PROTO_ClearQueue [20:23:52]wFMCommunicate request_size=4 [20:23:52]MH_SAM_APDU [20:23:52]CAPDU: 80 09 00 00 [20:23:52]Write to MH i2c: E2 08 00 8A 02 80 09 00 00 00 00 00 00 FE [20:23:52]Write i2c OK [20:23:52]MH_I2C_Read... [20:23:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:52]Read from MH i2c: E2 [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: E2 03 00 [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: E2 03 00 8A 02 00 90 00 00 [20:23:52]RAPDU: 90 00 [20:23:52]wFMCommunicate OK [20:23:52]SAM_PROTO_ClearQueue done [20:23:52]KKMCreateOFDPacket [20:23:52]OFDProtocolAddRootSTLVToBuf [20:23:52]FM_MakeSignedData [20:23:52]FM_MakeSignedData [20:23:52]SAM_PROTO_SignData [20:23:52]wFMCommunicate request_size=4 [20:23:52]MH_SAM_APDU [20:23:52]CAPDU: 80 0D 01 02 [20:23:52]Write to MH i2c: E2 08 00 8B 02 80 0D 01 02 00 00 00 00 06 [20:23:52]Write i2c OK [20:23:52]MH_I2C_Read... [20:23:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:52]Read from MH i2c: E2 [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: E2 03 00 [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: E2 03 00 8B 02 00 90 00 01 [20:23:52]RAPDU: 90 00 [20:23:52]wFMCommunicate OK [20:23:52]wFMCommunicate request_size=255 [20:23:52]MH_SAM_APDU [20:23:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 94 00 00 00 F4 03 04 00 D8 D2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F0 2A 01 00 35 04 06 00 4A [20:23:52]Write to MH i2c: E2 02 01 8C 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 94 00 00 00 F4 03 04 00 D8 D2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F0 2A 01 00 35 04 06 00 4A 00 00 FF [20:23:52]Write i2c OK [20:23:52]MH_I2C_Read... [20:23:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:52]Read from MH i2c: E2 [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: E2 03 00 [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: E2 03 00 8C 02 00 90 00 02 [20:23:52]RAPDU: 90 00 [20:23:52]wFMCommunicate OK [20:23:52]wFMCommunicate request_size=10 [20:23:52]MH_SAM_APDU [20:23:52]CAPDU: 80 0D 02 02 05 D9 48 66 D8 82 [20:23:52]Write to MH i2c: E2 0D 00 8D 02 80 0D 02 02 05 00 D9 48 66 D8 82 00 00 F4 [20:23:52]Write i2c OK [20:23:52]MH_I2C_Read... [20:23:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:52]Read from MH i2c: E2 [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: E2 03 00 [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: E2 03 00 8D 02 00 90 00 03 [20:23:52]RAPDU: 90 00 [20:23:52]wFMCommunicate OK [20:23:52]wFMCommunicate request_size=4 [20:23:52]MH_SAM_APDU [20:23:52]CAPDU: 80 0D 03 02 [20:23:52]Write to MH i2c: E2 08 00 8E 02 80 0D 03 02 00 00 00 00 0B [20:23:52]Write i2c OK [20:23:52]MH_I2C_Read... [20:23:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:52]Read from MH i2c: E2 [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: E2 0B 00 [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: E2 0B 00 8E 02 00 9E 04 9A B8 32 0B 2C 92 90 00 FB [20:23:52]RAPDU: 9E 04 9A B8 32 0B 2C 92 90 00 [20:23:52]wFMCommunicate OK [20:23:52]SAM_PROTO_SignData done [20:23:52]FM_MakeSignedData done [20:23:52]CreateOFDProtocolMessage [20:23:52]wFMCommunicate request_size=4 [20:23:52]MH_SAM_APDU [20:23:52]CAPDU: 80 11 00 00 [20:23:52]Write to MH i2c: E2 08 00 8F 02 80 11 00 00 00 00 00 00 0B [20:23:52]Write i2c OK [20:23:52]MH_I2C_Read... [20:23:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:52]Read from MH i2c: E2 [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: E2 17 00 [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: E2 17 00 8F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5E [20:23:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:23:52]wFMCommunicate OK [20:23:52]CreateOFDProtocolMessage done [20:23:52]OFDSenderStorePacket 76528 [20:23:52]StoreOFDPacket docnum=76528 [20:23:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 64 91 07 01 48 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 94 00 00 00 F4 03 04 00 D8 D2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F0 2A 01 00 35 04 06 00 4A D9 48 66 D8 82 9E 04 9A B8 32 0B 2C 92 [20:23:52]CheckFolder [20:23:52]dirname=/storage/ofd_packets [20:23:52]CheckFolder done [20:23:52]ProducePacketName [20:23:52]name=ofd_packets/00076528 [20:23:52]NVStorageSaveData ofd_packets/00076528 [20:23:52]File name is /storage/ofd_packets/00076528 [20:23:52]Write 301 bytes [20:23:52]NVStorageSaveData done [20:23:52]OFDSenderStorePacket done [20:23:52]KKMCreateOFDPacket done [20:23:52]NVStorageSaveData kkm_last_timestamp [20:23:52]File name is /storage/kkm_last_timestamp [20:23:52]Write 4 bytes [20:23:52]NVStorageSaveData done [20:23:52]ExternCall_PrintAddStr [20:23:52]wPrintStart [20:23:52]Write to MH i2c: 01 00 00 90 02 92 [20:23:52]Write i2c OK [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: 01 [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: 01 07 00 [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: 01 07 00 90 02 00 00 00 00 00 FF 0F A7 [20:23:52]RasterBufferAndPrint [20:23:52]line Счет N : (1)191020 [20:23:52]line ИНН: 02508201610067 [20:23:52]line Контрольно-Кассовый Чек [20:23:52]line ПРОДАЖА [20:23:52]line ТРК (МРК, ГНК) : 21 [20:23:52]line Товар: 2710124500 [20:23:52]line Аи-95-К-5 [20:23:52]line 6.860 * 72.90 [20:23:53]line = 500.09 [20:23:53]line НДС 12% НСП 1% [20:23:53]line > о реализуемом товаре [20:23:53]line ОКРУГЛЕНИЕ: -0.09 [20:23:53]line ИТОГО: 500.00 [20:23:53]line Внесено: 500.00 [20:23:53]line СДАЧА: 0.00 [20:23:53]line НСП 1% : 4.43 [20:23:53]line НДС 12% : 53.11 [20:23:53]line Наличными: 500.00 [20:23:53]line Безнал.: 0.00 [20:23:53]line Место: АЗС № 106 "Партнер Нефть" [20:23:53]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:23:53]line СНО: Общий режим [20:23:53]line Чек 148 19.04.2024 20:23 [20:23:53]line Смена: 370 ФФД: 1.0 [20:23:53]line ЗНМ: 0300000141 [20:23:53]line РНМ: 0000000000091573 [20:23:53]line Версия ККМ: 001 [20:23:53]line ФМ: 0000000000874652 [20:23:53]line ФД: 76528 [20:23:53]line ФПД: 82297083058306 [20:23:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T202352&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76528&fm=82297083058306&tin=02508201610067®Number=0000000000091573&sum=50000 [20:23:53]OFD Sender: Processing packet 76528 [packets to send 128, broken 127] [20:23:53]ProducePacketName [20:23:53]name=ofd_packets/00076528 [20:23:53]OFD Sender: To server: pG, [20:23:53]CommunicateWithHost lk.salyk.kg:30040 [20:23:53]ConnectInit lk.salyk.kg [20:23:53]written 0, free lines is 4095 [20:23:53]Connected sock=10 [20:23:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 64 91 07 01 48 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 94 00 00 00 F4 03 04 00 D8 D2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F0 2A 01 00 35 04 06 00 4A D9 48 66 D8 82 9E 04 9A B8 32 0B 2C 92 [20:23:53]Write to MH i2c: 01 00 00 BA 02 BC [20:23:53]Write i2c OK [20:23:53]MH_I2C_Read... [20:23:53]Read from MH i2c: 01 [20:23:53]MH_I2C_Read... [20:23:53]Read from MH i2c: 01 07 00 [20:23:53]MH_I2C_Read... [20:23:53]Read from MH i2c: 01 07 00 BA 02 00 00 00 00 00 EB 0C BA [20:23:53]RasterBufferAndPrint [20:23:53]line [20:23:53]line [20:23:53]line [20:23:53]line [20:23:53]line [20:23:53]written 0, free lines is 3310 [20:23:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 BB 47 47 00 08 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 34 36 35 32 10 04 04 00 F0 2A 01 00 F4 03 04 00 63 7A 22 66 B6 04 01 00 00 FD 38 CE F9 3E 7E DF 64 [20:23:53]CommunicateWithHost err = 0 [20:23:53]CheckOFDResponse [20:23:53]1017 (14) - 77093643461234 [20:23:53]1041 (16) - 0000000000874652 [20:23:53]1040 (4) - 76528 [20:23:53]1012 (4) - 19.04.2024 14:06 [20:23:53]1206 (1) - 0 [20:23:53]OFD Sender: Remove packet 76528 [20:23:53]ProducePacketName [20:23:53]name=ofd_packets/00076528 [20:23:53]NVStorageDeleteData [20:23:53]MH_Cut [20:23:53]Write to MH i2c: D1 01 00 C1 02 01 95 [20:23:53]Write i2c OK [20:23:53]MH_I2C_Read... [20:23:53]Read from MH i2c: D1 [20:23:53]MH_I2C_Read... [20:23:53]Read from MH i2c: D1 01 00 [20:23:53]MH_I2C_Read... [20:23:53]Read from MH i2c: D1 01 00 C1 02 00 94 [20:23:53]Write to MH i2c: 01 00 00 C2 02 C4 [20:23:53]Write i2c OK [20:23:53]MH_I2C_Read... [20:23:54]OFD Sender: No OFD packet to send [20:23:54]*** Cut start [20:23:54]*** Partial cut [20:23:54]*** CUTSNS_PIN = 1 [20:23:54]*** CUTSNS_PIN = 0 [20:23:54]*** Brake cut motor [20:23:55]Read from MH i2c: 01 [20:23:55]MH_I2C_Read... [20:23:55]*** Stop cut motor [20:23:55]*** Cut end [20:23:55]Read from MH i2c: 01 07 00 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: 01 07 00 C2 02 00 00 00 00 00 FF 0F D9 [20:23:55]process_action close_receipt done [20:23:55]requested_data is exist [20:23:55]produce_requested_data [20:23:55]requested_item fm.sn is exist - process it [20:23:55]wFMCommunicate request_size=4 [20:23:55]MH_SAM_APDU [20:23:55]CAPDU: 80 11 00 00 [20:23:55]Write to MH i2c: E2 08 00 C3 02 80 11 00 00 00 00 00 00 3F [20:23:55]Write i2c OK [20:23:55]MH_I2C_Read... [20:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:55]Read from MH i2c: E2 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 17 00 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 17 00 C3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 92 [20:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:23:55]wFMCommunicate OK [20:23:55]requested_item fd.num is exist - process it [20:23:55]SAM_PROTO_GetFieldsCounters [20:23:55]wFMCommunicate request_size=4 [20:23:55]MH_SAM_APDU [20:23:55]CAPDU: 80 13 00 00 [20:23:55]Write to MH i2c: E2 08 00 C4 02 80 13 00 00 00 00 00 00 42 [20:23:55]Write i2c OK [20:23:55]MH_I2C_Read... [20:23:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:55]Read from MH i2c: E2 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 62 00 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 62 00 C4 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F0 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [20:23:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F0 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:55]wFMCommunicate OK [20:23:55]SAM_PROTO_GetFieldsCounters done [20:23:55]requested_item shift.num is exist - process it [20:23:55]requested_item shift.opened is exist - process it [20:23:55]req_shift_opened [20:23:55]FM_GetShiftState [20:23:55]SAM_PROTO_GetShiftState [20:23:55]wFMCommunicate request_size=4 [20:23:55]MH_SAM_APDU [20:23:55]CAPDU: 80 13 01 00 [20:23:55]Write to MH i2c: E2 08 00 C5 02 80 13 01 00 00 00 00 00 44 [20:23:55]Write i2c OK [20:23:55]MH_I2C_Read... [20:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:55]Read from MH i2c: E2 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 0E 00 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 0E 00 C5 02 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 29 [20:23:55]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:23:55]wFMCommunicate OK [20:23:55]SAM_PROTO_GetShiftState done [20:23:55]FM_GetShiftState done [20:23:55]req_shift_opened done [20:23:55]requested_item shift.open_date is exist - process it [20:23:55]req_shift_open_date [20:23:55]req_shift_open_date done [20:23:55]produce_requested_data done [20:23:55]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76528,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [20:23:55]process_action_free close_receipt [20:23:55]json_value_free [20:23:55]json_value_free done [20:23:55]process_json_proto returns [20:23:55]Send response to host [20:23:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76528,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [20:23:55]free response buf [20:23:55]execute_script done [20:23:55]execute_script returns [20:23:55]free content buf [20:23:55]Sock 9.Close socket [20:23:55]Sock 9.Thread stoped [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:30]accept exits with 8 [20:24:30]New connection [20:24:30]New thread 3066735972 created [20:24:30]Thread 3066592612 joined [20:24:30]Waiting for new connection... [20:24:30] Sock 8.Parse request [20:24:30]Sock 8.Check first char [20:24:30]Sock 8.First char is OK [20:24:30]request: POST /json_proto HTTP/1.0 [20:24:30]Method: POST [20:24:30]URL: /json_proto [20:24:30]Method is POST - this is cgi request [20:24:30]url: /json_proto [20:24:30]query_string will be loaded in cgi processing [20:24:30]execute_cgi json_proto POST (null) [20:24:30]execute_cgi path=json_proto method=POST [20:24:30]POST find Content-Length [20:24:30]Host: 172.17.62.5:8080 [20:24:30]Content-Length: 1169 [20:24:30]Content-Type: application/json [20:24:30] [20:24:30]POST finish read [20:24:30]Found Content-Length = 1169 [20:24:30]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)191021\u000A19.04.2024 20:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:30]execute_script... [20:24:30]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)191021\u000A19.04.2024 20:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:30]POST & json_proto [20:24:30]process_json_proto [20:24:30]json parsed OK: [20:24:30]protocol is kg_v1.0 [20:24:30]action value=print_text [20:24:30]process_action print_text [20:24:30]cmd_print_text [20:24:30]ExternCall_PrintAddStr [20:24:30]wPrintStart [20:24:30]Write to MH i2c: 01 00 00 C6 02 C8 [20:24:30]Write i2c OK [20:24:30]MH_I2C_Read... [20:24:30]Read from MH i2c: 01 [20:24:30]MH_I2C_Read... [20:24:30]Read from MH i2c: 01 07 00 [20:24:30]MH_I2C_Read... [20:24:30]Read from MH i2c: 01 07 00 C6 02 00 00 00 00 00 FF 0F DD [20:24:30]RasterBufferAndPrint [20:24:30]line *****ТОВАРНЫЙ ЧЕК***** [20:24:30]line АЗС 106 [20:24:30]line Партнер нефть [20:24:30]line 02508201610067 [20:24:30]line Кассир : Табалдиева М. [20:24:30]line Счет N : (1)191021 [20:24:30]line 19.04.2024 20:06 [20:24:30]line ПРОДАЖА [20:24:30]line ТРК (МРК, ГНК): 43 [20:24:30]line Вид ГСМ : 2710124130 [20:24:30]line Аи-92-К-5 [20:24:30]line 20.000 x 64.40 [20:24:30]line ИТОГ: 1288.00 [20:24:30]line Тип оплаты: Талоны: ТК ГПНА Online [20:24:30]line 30102984 [20:24:30]line ______________________ [20:24:30]line (подпись) [20:24:30]written 0, free lines is 4095 [20:24:31]Write to MH i2c: 01 00 00 DA 02 DC [20:24:31]Write i2c OK [20:24:31]MH_I2C_Read... [20:24:31]Read from MH i2c: 01 [20:24:31]MH_I2C_Read... [20:24:31]Read from MH i2c: 01 07 00 [20:24:31]MH_I2C_Read... [20:24:31]Read from MH i2c: 01 07 00 DA 02 00 00 00 00 00 10 0E 01 [20:24:31]RasterBufferAndPrint [20:24:31]line [20:24:31]line [20:24:31]line [20:24:31]line [20:24:31]line [20:24:31]written 0, free lines is 3602 [20:24:31]MH_Cut [20:24:31]Write to MH i2c: D1 01 00 E1 02 01 B5 [20:24:31]Write i2c OK [20:24:31]MH_I2C_Read... [20:24:31]Read from MH i2c: D1 [20:24:31]MH_I2C_Read... [20:24:31]Read from MH i2c: D1 01 00 [20:24:31]MH_I2C_Read... [20:24:31]Read from MH i2c: D1 01 00 E1 02 00 B4 [20:24:31]Write to MH i2c: 01 00 00 E2 02 E4 [20:24:31]Write i2c OK [20:24:31]MH_I2C_Read... [20:24:31]*** Cut start [20:24:31]*** Partial cut [20:24:31]*** CUTSNS_PIN = 1 [20:24:31]*** CUTSNS_PIN = 0 [20:24:32]*** Brake cut motor [20:24:32]Read from MH i2c: 01 [20:24:32]MH_I2C_Read... [20:24:32]Read from MH i2c: 01 07 00 [20:24:32]MH_I2C_Read... [20:24:32]*** Stop cut motor [20:24:32]*** Cut end [20:24:32]Read from MH i2c: 01 07 00 E2 02 00 00 00 00 00 FF 0F F9 [20:24:32]process_action print_text done [20:24:32]requested_data is exist [20:24:32]produce_requested_data [20:24:32]requested_item fm.sn is exist - process it [20:24:32]wFMCommunicate request_size=4 [20:24:32]MH_SAM_APDU [20:24:32]CAPDU: 80 11 00 00 [20:24:32]Write to MH i2c: E2 08 00 E3 02 80 11 00 00 00 00 00 00 5F [20:24:32]Write i2c OK [20:24:32]MH_I2C_Read... [20:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:32]Read from MH i2c: E2 [20:24:32]MH_I2C_Read... [20:24:32]Read from MH i2c: E2 17 00 [20:24:32]MH_I2C_Read... [20:24:32]Read from MH i2c: E2 17 00 E3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B2 [20:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:24:32]wFMCommunicate OK [20:24:32]requested_item fd.num is exist - process it [20:24:32]SAM_PROTO_GetFieldsCounters [20:24:32]wFMCommunicate request_size=4 [20:24:32]MH_SAM_APDU [20:24:32]CAPDU: 80 13 00 00 [20:24:32]Write to MH i2c: E2 08 00 E4 02 80 13 00 00 00 00 00 00 62 [20:24:32]Write i2c OK [20:24:32]MH_I2C_Read... [20:24:32]Read from MH i2c: E2 [20:24:32]MH_I2C_Read... [20:24:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:32]Read from MH i2c: E2 62 00 [20:24:32]MH_I2C_Read... [20:24:32]Read from MH i2c: E2 62 00 E4 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F0 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [20:24: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F0 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:24:32]wFMCommunicate OK [20:24:32]SAM_PROTO_GetFieldsCounters done [20:24:32]requested_item shift.num is exist - process it [20:24:32]requested_item shift.opened is exist - process it [20:24:32]req_shift_opened [20:24:32]FM_GetShiftState [20:24:32]SAM_PROTO_GetShiftState [20:24:32]wFMCommunicate request_size=4 [20:24:32]MH_SAM_APDU [20:24:32]CAPDU: 80 13 01 00 [20:24:32]Write to MH i2c: E2 08 00 E5 02 80 13 01 00 00 00 00 00 64 [20:24:32]Write i2c OK [20:24:32]MH_I2C_Read... [20:24:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:32]Read from MH i2c: E2 [20:24:32]MH_I2C_Read... [20:24:32]Read from MH i2c: E2 0E 00 [20:24:32]MH_I2C_Read... [20:24:32]Read from MH i2c: E2 0E 00 E5 02 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 49 [20:24:32]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:24:32]wFMCommunicate OK [20:24:32]SAM_PROTO_GetShiftState done [20:24:32]FM_GetShiftState done [20:24:32]req_shift_opened done [20:24:32]requested_item shift.open_date is exist - process it [20:24:32]req_shift_open_date [20:24:32]req_shift_open_date done [20:24:32]produce_requested_data done [20:24:32]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76528,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [20:24:32]process_action_free print_text [20:24:32]json_value_free [20:24:32]json_value_free done [20:24:32]process_json_proto returns [20:24:32]Send response to host [20:24:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76528,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [20:24:32]free response buf [20:24:32]execute_script done [20:24:32]execute_script returns [20:24:32]free content buf [20:24:32]Sock 8.Close socket [20:24:32]Sock 8.Thread stoped [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:41]accept exits with 10 [20:29:41]New connection [20:29:41]New thread 3066592612 created [20:29:41]Thread 3066735972 joined [20:29:41]Waiting for new connection... [20:29:41] Sock 10.Parse request [20:29:41]Sock 10.Check first char [20:29:41]Sock 10.First char is OK [20:29:41]request: POST /json_proto HTTP/1.0 [20:29:41]Method: POST [20:29:41]URL: /json_proto [20:29:41]Method is POST - this is cgi request [20:29:41]url: /json_proto [20:29:41]query_string will be loaded in cgi processing [20:29:41]execute_cgi json_proto POST (null) [20:29:41]execute_cgi path=json_proto method=POST [20:29:41]POST find Content-Length [20:29:41]Host: 172.17.62.5:8080 [20:29:41]Content-Length: 814 [20:29:41]Content-Type: application/json [20:29:41] [20:29:41]POST finish read [20:29:41]Found Content-Length = 814 [20:29:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.000, "sum" : 729.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 729.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:41]execute_script... [20:29:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.000, "sum" : 729.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 729.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:41]POST & json_proto [20:29:41]process_json_proto [20:29:41]json parsed OK: [20:29:41]protocol is kg_v1.0 [20:29:41]action value=close_receipt [20:29:41]process_action close_receipt [20:29:41]cmd_close_receipt [20:29:41]MH_GetDate [20:29:41]Write to MH i2c: F0 00 00 E6 02 D7 [20:29:41]Write i2c OK [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: F0 [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: F0 09 00 [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: F0 09 00 E6 02 00 36 D4 22 66 F4 E9 65 64 18 [20:29:41]GetLastDocTimeStamp 1713558232 [20:29:41]current date 1713558582 [20:29:41]FM_GetShiftState [20:29:41]SAM_PROTO_GetShiftState [20:29:41]wFMCommunicate request_size=4 [20:29:41]MH_SAM_APDU [20:29:41]CAPDU: 80 13 01 00 [20:29:41]Write to MH i2c: E2 08 00 E7 02 80 13 01 00 00 00 00 00 66 [20:29:41]Write i2c OK [20:29:41]MH_I2C_Read... [20:29:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:41]Read from MH i2c: E2 [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: E2 0E 00 [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: E2 0E 00 E7 02 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 4B [20:29:41]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:29:41]wFMCommunicate OK [20:29:41]SAM_PROTO_GetShiftState done [20:29:41]FM_GetShiftState done [20:29:41]opened in 1713486233 [20:29:41]opened+sec_in_day 1713572633 [20:29:41]quantity*price = 72900 [20:29:41]sum+1 = 72901 [20:29:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 729.00 НСП 1% : 6.45 НДС 12% : 77.42 Наличными: 0.00 Безнал.: 729.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 149 19.04.2024 20:29 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76529 ФПД: 177126923206738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T202942&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76529&fm=177126923206738&tin=02508201610067®Number=0000000000091573&sum=72900 [20:29:42]StoreToDocumentArchive [20:29:42]shift 370 fd 76529 [20:29:42]save to /storage/0370/doc_00076529 [20:29:42]save last doc name /storage/0370/doc_00076529 to /storage/kkm_last_doc_name [20:29:42]save OK [20:29:42]Clear old archive folders... [20:29:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:29:42]tlvbuf is 01624550 [20:29:42]SAM_PROTO_ClearQueue [20:29:42]wFMCommunicate request_size=4 [20:29:42]MH_SAM_APDU [20:29:42]CAPDU: 80 09 00 00 [20:29:42]Write to MH i2c: E2 08 00 F4 02 80 09 00 00 00 00 00 00 68 [20:29:42]Write i2c OK [20:29:42]MH_I2C_Read... [20:29:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:42]Read from MH i2c: E2 [20:29:42]MH_I2C_Read... [20:29:42]Read from MH i2c: E2 03 00 [20:29:42]MH_I2C_Read... [20:29:42]Read from MH i2c: E2 03 00 F4 02 00 90 00 6A [20:29:42]RAPDU: 90 00 [20:29:42]wFMCommunicate OK [20:29:42]SAM_PROTO_ClearQueue done [20:29:42]KKMCreateOFDPacket [20:29:42]OFDProtocolAddRootSTLVToBuf [20:29:42]FM_MakeSignedData [20:29:42]FM_MakeSignedData [20:29:42]SAM_PROTO_SignData [20:29:42]wFMCommunicate request_size=4 [20:29:42]MH_SAM_APDU [20:29:42]CAPDU: 80 0D 01 02 [20:29:42]Write to MH i2c: E2 08 00 F5 02 80 0D 01 02 00 00 00 00 70 [20:29:42]Write i2c OK [20:29:42]MH_I2C_Read... [20:29:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:43]Read from MH i2c: E2 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: E2 03 00 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: E2 03 00 F5 02 00 90 00 6B [20:29:43]RAPDU: 90 00 [20:29:43]wFMCommunicate OK [20:29:43]wFMCommunicate request_size=255 [20:29:43]MH_SAM_APDU [20:29: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 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 1C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 36 D4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F1 2A 01 00 35 04 06 00 A1 18 93 56 [20:29:43]Write to MH i2c: E2 02 01 F6 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 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 1C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 36 D4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F1 2A 01 00 35 04 06 00 A1 18 93 56 00 00 78 [20:29:43]Write i2c OK [20:29:43]MH_I2C_Read... [20:29:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:43]Read from MH i2c: E2 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: E2 03 00 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: E2 03 00 F6 02 00 90 00 6C [20:29:43]RAPDU: 90 00 [20:29:43]wFMCommunicate OK [20:29:43]wFMCommunicate request_size=7 [20:29:43]MH_SAM_APDU [20:29:43]CAPDU: 80 0D 02 02 02 80 52 [20:29:43]Write to MH i2c: E2 0A 00 F7 02 80 0D 02 02 02 00 80 52 00 00 49 [20:29:43]Write i2c OK [20:29:43]MH_I2C_Read... [20:29:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:43]Read from MH i2c: E2 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: E2 03 00 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: E2 03 00 F7 02 00 90 00 6D [20:29:43]RAPDU: 90 00 [20:29:43]wFMCommunicate OK [20:29:43]wFMCommunicate request_size=4 [20:29:43]MH_SAM_APDU [20:29:43]CAPDU: 80 0D 03 02 [20:29:43]Write to MH i2c: E2 08 00 F8 02 80 0D 03 02 00 00 00 00 75 [20:29:43]Write i2c OK [20:29:43]MH_I2C_Read... [20:29:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:43]Read from MH i2c: E2 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: E2 0B 00 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: E2 0B 00 F8 02 00 E6 7E C4 DD D2 C0 F5 E2 90 00 E4 [20:29:43]RAPDU: E6 7E C4 DD D2 C0 F5 E2 90 00 [20:29:43]wFMCommunicate OK [20:29:43]SAM_PROTO_SignData done [20:29:43]FM_MakeSignedData done [20:29:43]CreateOFDProtocolMessage [20:29:43]wFMCommunicate request_size=4 [20:29:43]MH_SAM_APDU [20:29:43]CAPDU: 80 11 00 00 [20:29:43]Write to MH i2c: E2 08 00 F9 02 80 11 00 00 00 00 00 00 75 [20:29:43]Write i2c OK [20:29:43]MH_I2C_Read... [20:29:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:43]Read from MH i2c: E2 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: E2 17 00 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: E2 17 00 F9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C8 [20:29:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:29:43]wFMCommunicate OK [20:29:43]CreateOFDProtocolMessage done [20:29:43]OFDSenderStorePacket 76529 [20:29:43]StoreOFDPacket docnum=76529 [20:29:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 5F BB 04 01 E1 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 1C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 36 D4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F1 2A 01 00 35 04 06 00 A1 18 93 56 80 52 E6 7E C4 DD D2 C0 F5 E2 [20:29:43]CheckFolder [20:29:43]dirname=/storage/ofd_packets [20:29:43]CheckFolder done [20:29:43]ProducePacketName [20:29:43]name=ofd_packets/00076529 [20:29:43]NVStorageSaveData ofd_packets/00076529 [20:29:43]File name is /storage/ofd_packets/00076529 [20:29:43]Write 298 bytes [20:29:43]NVStorageSaveData done [20:29:43]OFDSenderStorePacket done [20:29:43]KKMCreateOFDPacket done [20:29:43]NVStorageSaveData kkm_last_timestamp [20:29:43]File name is /storage/kkm_last_timestamp [20:29:43]Write 4 bytes [20:29:43]NVStorageSaveData done [20:29:43]ExternCall_PrintAddStr [20:29:43]wPrintStart [20:29:43]Write to MH i2c: 01 00 00 FA 02 FC [20:29:43]Write i2c OK [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: 01 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: 01 07 00 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: 01 07 00 FA 02 00 00 00 00 00 FF 0F 11 [20:29:43]RasterBufferAndPrint [20:29:43]line Счет N : (1)191022 [20:29:43]line ИНН: 02508201610067 [20:29:43]line Контрольно-Кассовый Чек [20:29:43]line ПРОДАЖА [20:29:43]line ТРК (МРК, ГНК) : 23 [20:29:43]line Товар: 2710194210 [20:29:43]line ДТ-К-5 [20:29:43]line 10.000 * 72.90 [20:29:43]line = 729.00 [20:29:43]line НДС 12% НСП 1% [20:29:43]line > о реализуемом товаре [20:29:43]line ИТОГО: 729.00 [20:29:43]line НСП 1% : 6.45 [20:29:43]line НДС 12% : 77.42 [20:29:43]line Наличными: 0.00 [20:29:43]line Безнал.: 729.00 [20:29:43]line Место: АЗС № 106 "Партнер Нефть" [20:29:43]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:29:43]line СНО: Общий режим [20:29:43]line Чек 149 19.04.2024 20:29 [20:29:43]line Смена: 370 ФФД: 1.0 [20:29:43]line ЗНМ: 0300000141 [20:29:43]line РНМ: 0000000000091573 [20:29:43]line Версия ККМ: 001 [20:29:43]line Платежная система: Бакай Банк [20:29:43]line ФМ: 0000000000874652 [20:29:43]line ФД: 76529 [20:29:43]line ФПД: 177126923206738 [20:29:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T202942&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76529&fm=177126923206738&tin=02508201610067®Number=0000000000091573&sum=72900 [20:29:43]OFD Sender: Processing packet 76529 [packets to send 128, broken 127] [20:29:43]ProducePacketName [20:29:43]name=ofd_packets/00076529 [20:29:43]OFD Sender: To server: pG, [20:29:43]CommunicateWithHost lk.salyk.kg:30040 [20:29:43]ConnectInit lk.salyk.kg [20:29:43]written 0, free lines is 4095 [20:29:43]Connected sock=9 [20:29:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 5F BB 04 01 E1 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 1C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 36 D4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F1 2A 01 00 35 04 06 00 A1 18 93 56 80 52 E6 7E C4 DD D2 C0 F5 E2 [20:29:44]Write to MH i2c: 01 00 00 23 03 26 [20:29:44]Write i2c OK [20:29:44]MH_I2C_Read... [20:29:44]Read from MH i2c: 01 [20:29:44]MH_I2C_Read... [20:29:44]Read from MH i2c: 01 07 00 [20:29:44]MH_I2C_Read... [20:29:44]Read from MH i2c: 01 07 00 23 03 00 00 00 00 00 FD 0C 36 [20:29:44]RasterBufferAndPrint [20:29:44]line [20:29:44]line [20:29:44]line [20:29:44]line [20:29:44]line [20:29:44]written 0, free lines is 3331 [20:29:44]MH_Cut [20:29:44]Write to MH i2c: D1 01 00 2A 03 01 FF [20:29:44]Write i2c OK [20:29:44]MH_I2C_Read... [20:29:44]Read from MH i2c: D1 [20:29:44]MH_I2C_Read... [20:29:44]Read from MH i2c: D1 01 00 [20:29:44]MH_I2C_Read... [20:29:44]Read from MH i2c: D1 01 00 2A 03 00 FE [20:29:44]Write to MH i2c: 01 00 00 2B 03 2E [20:29:44]Write i2c OK [20:29:44]MH_I2C_Read... [20:29:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 30 95 47 00 EE 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 34 36 35 32 10 04 04 00 F1 2A 01 00 F4 03 04 00 C1 7B 22 66 B6 04 01 00 00 CC 64 9D 48 92 4A D7 B1 [20:29:44]CommunicateWithHost err = 0 [20:29:44]CheckOFDResponse [20:29:44]1017 (14) - 77093643461234 [20:29:44]1041 (16) - 0000000000874652 [20:29:44]1040 (4) - 76529 [20:29:44]1012 (4) - 19.04.2024 14:12 [20:29:44]1206 (1) - 0 [20:29:44]OFD Sender: Remove packet 76529 [20:29:44]ProducePacketName [20:29:44]name=ofd_packets/00076529 [20:29:44]NVStorageDeleteData [20:29:44]OFD Sender: No OFD packet to send [20:29:44]*** Cut start [20:29:44]*** Partial cut [20:29:44]*** CUTSNS_PIN = 1 [20:29:45]*** CUTSNS_PIN = 0 [20:29:45]*** Brake cut motor [20:29:45]Read from MH i2c: 01 [20:29:45]MH_I2C_Read... [20:29:45]*** Stop cut motor [20:29:45]*** Cut end [20:29:45]Read from MH i2c: 01 07 00 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: 01 07 00 2B 03 00 00 00 00 00 FF 0F 43 [20:29:45]process_action close_receipt done [20:29:45]requested_data is exist [20:29:45]produce_requested_data [20:29:45]requested_item fm.sn is exist - process it [20:29:45]wFMCommunicate request_size=4 [20:29:45]MH_SAM_APDU [20:29:45]CAPDU: 80 11 00 00 [20:29:45]Write to MH i2c: E2 08 00 2C 03 80 11 00 00 00 00 00 00 A9 [20:29:45]Write i2c OK [20:29:45]MH_I2C_Read... [20:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:45]Read from MH i2c: E2 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 17 00 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 17 00 2C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FC [20:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:29:45]wFMCommunicate OK [20:29:45]requested_item fd.num is exist - process it [20:29:45]SAM_PROTO_GetFieldsCounters [20:29:45]wFMCommunicate request_size=4 [20:29:45]MH_SAM_APDU [20:29:45]CAPDU: 80 13 00 00 [20:29:45]Write to MH i2c: E2 08 00 2D 03 80 13 00 00 00 00 00 00 AC [20:29:45]Write i2c OK [20:29:45]MH_I2C_Read... [20:29:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:45]Read from MH i2c: E2 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 62 00 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 62 00 2D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F1 2A 01 00 0E 04 04 00 72 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 1B [20:29:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F1 2A 01 00 0E 04 04 00 72 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 [20:29:45]wFMCommunicate OK [20:29:45]SAM_PROTO_GetFieldsCounters done [20:29:45]requested_item shift.num is exist - process it [20:29:45]requested_item shift.opened is exist - process it [20:29:45]req_shift_opened [20:29:45]FM_GetShiftState [20:29:45]SAM_PROTO_GetShiftState [20:29:45]wFMCommunicate request_size=4 [20:29:45]MH_SAM_APDU [20:29:45]CAPDU: 80 13 01 00 [20:29:45]Write to MH i2c: E2 08 00 2E 03 80 13 01 00 00 00 00 00 AE [20:29:45]Write i2c OK [20:29:45]MH_I2C_Read... [20:29:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:45]Read from MH i2c: E2 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 0E 00 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 0E 00 2E 03 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 93 [20:29:45]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:29:45]wFMCommunicate OK [20:29:45]SAM_PROTO_GetShiftState done [20:29:45]FM_GetShiftState done [20:29:45]req_shift_opened done [20:29:45]requested_item shift.open_date is exist - process it [20:29:45]req_shift_open_date [20:29:45]req_shift_open_date done [20:29:45]produce_requested_data done [20:29:45]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76529,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [20:29:45]process_action_free close_receipt [20:29:45]json_value_free [20:29:45]json_value_free done [20:29:45]process_json_proto returns [20:29:45]Send response to host [20:29:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76529,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [20:29:45]free response buf [20:29:45]execute_script done [20:29:45]execute_script returns [20:29:45]free content buf [20:29:45]Sock 10.Close socket [20:29:45]Sock 10.Thread stoped [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:47]recv_with_timeout no data received [20:30:50]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:00]OFD Sender: No OFD packet to send [20:31:05]OFD Sender: No OFD packet to send [20:31:10]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:20]OFD Sender: No OFD packet to send [20:31:25]OFD Sender: No OFD packet to send [20:31:30]OFD Sender: No OFD packet to send [20:31:35]OFD Sender: No OFD packet to send [20:31:40]OFD Sender: No OFD packet to send [20:31:45]OFD Sender: No OFD packet to send [20:31:50]OFD Sender: No OFD packet to send [20:31:55]OFD Sender: No OFD packet to send [20:32:00]OFD Sender: No OFD packet to send [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:04]accept exits with 8 [20:33:04]New connection [20:33:04]New thread 3066735972 created [20:33:04]Thread 3066592612 joined [20:33:04]Waiting for new connection... [20:33:04] Sock 8.Parse request [20:33:04]Sock 8.Check first char [20:33:04]Sock 8.First char is OK [20:33:04]request: POST /json_proto HTTP/1.0 [20:33:04]Method: POST [20:33:04]URL: /json_proto [20:33:04]Method is POST - this is cgi request [20:33:04]url: /json_proto [20:33:04]query_string will be loaded in cgi processing [20:33:04]execute_cgi json_proto POST (null) [20:33:04]execute_cgi path=json_proto method=POST [20:33:04]POST find Content-Length [20:33:04]Host: 172.17.62.5:8080 [20:33:04]Content-Length: 819 [20:33:04]Content-Type: application/json [20:33:04] [20:33:04]POST finish read [20:33:04]Found Content-Length = 819 [20:33:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 23.300, "sum" : 1500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:04]execute_script... [20:33:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 23.300, "sum" : 1500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:04]POST & json_proto [20:33:04]process_json_proto [20:33:04]json parsed OK: [20:33:04]protocol is kg_v1.0 [20:33:04]action value=close_receipt [20:33:04]process_action close_receipt [20:33:04]cmd_close_receipt [20:33:04]MH_GetDate [20:33:04]Write to MH i2c: F0 00 00 2F 03 21 [20:33:04]Write i2c OK [20:33:04]MH_I2C_Read... [20:33:04]Read from MH i2c: F0 [20:33:04]MH_I2C_Read... [20:33:04]Read from MH i2c: F0 09 00 [20:33:04]MH_I2C_Read... [20:33:04]Read from MH i2c: F0 09 00 2F 03 00 01 D5 22 66 F4 E9 65 64 2E [20:33:04]GetLastDocTimeStamp 1713558582 [20:33:04]current date 1713558785 [20:33:04]FM_GetShiftState [20:33:04]SAM_PROTO_GetShiftState [20:33:04]wFMCommunicate request_size=4 [20:33:04]MH_SAM_APDU [20:33:04]CAPDU: 80 13 01 00 [20:33:04]Write to MH i2c: E2 08 00 30 03 80 13 01 00 00 00 00 00 B0 [20:33:04]Write i2c OK [20:33:04]MH_I2C_Read... [20:33:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:04]Read from MH i2c: E2 [20:33:04]MH_I2C_Read... [20:33:04]Read from MH i2c: E2 0E 00 [20:33:04]MH_I2C_Read... [20:33:04]Read from MH i2c: E2 0E 00 30 03 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 95 [20:33:04]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:33:04]wFMCommunicate OK [20:33:04]SAM_PROTO_GetShiftState done [20:33:04]FM_GetShiftState done [20:33:04]opened in 1713486233 [20:33:04]opened+sec_in_day 1713572633 [20:33:04]quantity*price = 150052 [20:33:04]sum+1 = 150053 [20:33:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.52 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.52 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 150 19.04.2024 20:33 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76530 ФПД: 38550871165160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T203305&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76530&fm=38550871165160&tin=02508201610067®Number=0000000000091573&sum=150052 [20:33:05]StoreToDocumentArchive [20:33:05]shift 370 fd 76530 [20:33:05]save to /storage/0370/doc_00076530 [20:33:05]save last doc name /storage/0370/doc_00076530 to /storage/kkm_last_doc_name [20:33:05]save OK [20:33:05]Clear old archive folders... [20:33:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:33:05]tlvbuf is B6D735F0 [20:33:05]SAM_PROTO_ClearQueue [20:33:05]wFMCommunicate request_size=4 [20:33:05]MH_SAM_APDU [20:33:05]CAPDU: 80 09 00 00 [20:33:05]Write to MH i2c: E2 08 00 3D 03 80 09 00 00 00 00 00 00 B2 [20:33:05]Write i2c OK [20:33:05]MH_I2C_Read... [20:33:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:05]Read from MH i2c: E2 [20:33:05]MH_I2C_Read... [20:33:05]Read from MH i2c: E2 03 00 [20:33:05]MH_I2C_Read... [20:33:05]Read from MH i2c: E2 03 00 3D 03 00 90 00 B4 [20:33:05]RAPDU: 90 00 [20:33:05]wFMCommunicate OK [20:33:05]SAM_PROTO_ClearQueue done [20:33:05]KKMCreateOFDPacket [20:33:05]OFDProtocolAddRootSTLVToBuf [20:33:05]FM_MakeSignedData [20:33:05]FM_MakeSignedData [20:33:05]SAM_PROTO_SignData [20:33:05]wFMCommunicate request_size=4 [20:33:05]MH_SAM_APDU [20:33:05]CAPDU: 80 0D 01 02 [20:33:05]Write to MH i2c: E2 08 00 3E 03 80 0D 01 02 00 00 00 00 BA [20:33:05]Write i2c OK [20:33:05]MH_I2C_Read... [20:33:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:05]Read from MH i2c: E2 [20:33:05]MH_I2C_Read... [20:33:05]Read from MH i2c: E2 03 00 [20:33:05]MH_I2C_Read... [20:33:05]Read from MH i2c: E2 03 00 3E 03 00 90 00 B5 [20:33:05]RAPDU: 90 00 [20:33:05]wFMCommunicate OK [20:33:05]wFMCommunicate request_size=255 [20:33:05]MH_SAM_APDU [20:33:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 01 D5 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F2 2A 01 00 35 04 06 00 23 [20:33:05]Write to MH i2c: E2 02 01 3F 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 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 01 D5 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F2 2A 01 00 35 04 06 00 23 00 00 0D [20:33:05]Write i2c OK [20:33:05]MH_I2C_Read... [20:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:05]Read from MH i2c: E2 [20:33:05]MH_I2C_Read... [20:33:05]Read from MH i2c: E2 03 00 [20:33:05]MH_I2C_Read... [20:33:05]Read from MH i2c: E2 03 00 3F 03 00 90 00 B6 [20:33:05]RAPDU: 90 00 [20:33:05]wFMCommunicate OK [20:33:05]wFMCommunicate request_size=10 [20:33:05]MH_SAM_APDU [20:33:05]CAPDU: 80 0D 02 02 05 0F D2 FB 48 E8 [20:33:05]Write to MH i2c: E2 0D 00 40 03 80 0D 02 02 05 00 0F D2 FB 48 E8 00 00 D3 [20:33:05]Write i2c OK [20:33:05]MH_I2C_Read... [20:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:05]Read from MH i2c: E2 [20:33:05]MH_I2C_Read... [20:33:05]Read from MH i2c: E2 03 00 [20:33:05]MH_I2C_Read... [20:33:05]Read from MH i2c: E2 03 00 40 03 00 90 00 B7 [20:33:05]RAPDU: 90 00 [20:33:05]wFMCommunicate OK [20:33:05]wFMCommunicate request_size=4 [20:33:05]MH_SAM_APDU [20:33:05]CAPDU: 80 0D 03 02 [20:33:05]Write to MH i2c: E2 08 00 41 03 80 0D 03 02 00 00 00 00 BF [20:33:05]Write i2c OK [20:33:05]MH_I2C_Read... [20:33:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:05]Read from MH i2c: E2 [20:33:05]MH_I2C_Read... [20:33:05]Read from MH i2c: E2 0B 00 [20:33:05]MH_I2C_Read... [20:33:05]Read from MH i2c: E2 0B 00 41 03 00 FF 21 DA 8F E2 A0 C3 F5 90 00 83 [20:33:05]RAPDU: FF 21 DA 8F E2 A0 C3 F5 90 00 [20:33:05]wFMCommunicate OK [20:33:05]SAM_PROTO_SignData done [20:33:05]FM_MakeSignedData done [20:33:05]CreateOFDProtocolMessage [20:33:05]wFMCommunicate request_size=4 [20:33:05]MH_SAM_APDU [20:33:05]CAPDU: 80 11 00 00 [20:33:05]Write to MH i2c: E2 08 00 42 03 80 11 00 00 00 00 00 00 BF [20:33:05]Write i2c OK [20:33:05]MH_I2C_Read... [20:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:05]Read from MH i2c: E2 [20:33:05]MH_I2C_Read... [20:33:05]Read from MH i2c: E2 17 00 [20:33:05]MH_I2C_Read... [20:33:05]Read from MH i2c: E2 17 00 42 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 12 [20:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:33:05]wFMCommunicate OK [20:33:05]CreateOFDProtocolMessage done [20:33:05]OFDSenderStorePacket 76530 [20:33:05]StoreOFDPacket docnum=76530 [20:33:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 C4 32 07 01 D0 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 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 01 D5 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F2 2A 01 00 35 04 06 00 23 0F D2 FB 48 E8 FF 21 DA 8F E2 A0 C3 F5 [20:33:05]CheckFolder [20:33:05]dirname=/storage/ofd_packets [20:33:05]CheckFolder done [20:33:05]ProducePacketName [20:33:05]name=ofd_packets/00076530 [20:33:05]NVStorageSaveData ofd_packets/00076530 [20:33:05]File name is /storage/ofd_packets/00076530 [20:33:05]Write 301 bytes [20:33:05]NVStorageSaveData done [20:33:05]OFDSenderStorePacket done [20:33:05]KKMCreateOFDPacket done [20:33:05]NVStorageSaveData kkm_last_timestamp [20:33:05]File name is /storage/kkm_last_timestamp [20:33:05]Write 4 bytes [20:33:05]NVStorageSaveData done [20:33:05]ExternCall_PrintAddStr [20:33:05]wPrintStart [20:33:05]Write to MH i2c: 01 00 00 43 03 46 [20:33:05]Write i2c OK [20:33:05]MH_I2C_Read... [20:33:05]Read from MH i2c: 01 [20:33:05]MH_I2C_Read... [20:33:05]Read from MH i2c: 01 07 00 [20:33:05]MH_I2C_Read... [20:33:05]Read from MH i2c: 01 07 00 43 03 00 00 00 00 00 FF 0F 5B [20:33:05]RasterBufferAndPrint [20:33:05]line Счет N : (1)191024 [20:33:05]line ИНН: 02508201610067 [20:33:05]line Контрольно-Кассовый Чек [20:33:05]line ПРОДАЖА [20:33:05]line ТРК (МРК, ГНК) : 33 [20:33:05]line Товар: 2710124130 [20:33:05]line Аи-92-К-5 [20:33:05]line 23.300 * 64.40 [20:33:05]line = 1500.52 [20:33:05]line НДС 12% НСП 1% [20:33:05]line > о реализуемом товаре [20:33:05]line ИТОГО: 1500.52 [20:33:05]line НСП 1% : 13.28 [20:33:05]line НДС 12% : 159.35 [20:33:05]line Наличными: 0.00 [20:33:05]line Безнал.: 1500.52 [20:33:05]line Место: АЗС № 106 "Партнер Нефть" [20:33:05]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:33:05]line СНО: Общий режим [20:33:05]line Чек 150 19.04.2024 20:33 [20:33:05]line Смена: 370 ФФД: 1.0 [20:33:05]line ЗНМ: 0300000141 [20:33:05]line РНМ: 0000000000091573 [20:33:05]line Версия ККМ: 001 [20:33:05]line Платежная система: Бакай Банк [20:33:05]line ФМ: 0000000000874652 [20:33:05]line ФД: 76530 [20:33:05]line ФПД: 38550871165160 [20:33:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T203305&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76530&fm=38550871165160&tin=02508201610067®Number=0000000000091573&sum=150052 [20:33:06]OFD Sender: Processing packet 76530 [packets to send 128, broken 127] [20:33:06]ProducePacketName [20:33:06]name=ofd_packets/00076530 [20:33:06]OFD Sender: To server: pG, [20:33:06]CommunicateWithHost lk.salyk.kg:30040 [20:33:06]ConnectInit lk.salyk.kg [20:33:06]written 0, free lines is 4095 [20:33:06]Write to MH i2c: 01 00 00 6C 03 6F [20:33:06]Write i2c OK [20:33:06]MH_I2C_Read... [20:33:06]Read from MH i2c: 01 [20:33:06]MH_I2C_Read... [20:33:06]Read from MH i2c: 01 07 00 [20:33:06]MH_I2C_Read... [20:33:06]Read from MH i2c: 01 07 00 6C 03 00 00 00 00 00 FA 0C 7C [20:33:06]RasterBufferAndPrint [20:33:06]line [20:33:06]line [20:33:06]line [20:33:06]line [20:33:06]line [20:33:06]written 0, free lines is 3329 [20:33:06]MH_Cut [20:33:06]Write to MH i2c: D1 01 00 73 03 01 48 [20:33:06]Write i2c OK [20:33:06]MH_I2C_Read... [20:33:06]Read from MH i2c: D1 [20:33:06]MH_I2C_Read... [20:33:06]Read from MH i2c: D1 01 00 [20:33:06]MH_I2C_Read... [20:33:06]Read from MH i2c: D1 01 00 73 03 00 47 [20:33:06]Write to MH i2c: 01 00 00 74 03 77 [20:33:06]Write i2c OK [20:33:06]MH_I2C_Read... [20:33:07]*** Cut start [20:33:07]*** Partial cut [20:33:07]*** CUTSNS_PIN = 1 [20:33:07]*** CUTSNS_PIN = 0 [20:33:07]*** Brake cut motor [20:33:07]Read from MH i2c: 01 [20:33:07]MH_I2C_Read... [20:33:07]*** Stop cut motor [20:33:07]*** Cut end [20:33:07]Read from MH i2c: 01 07 00 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: 01 07 00 74 03 00 00 00 00 00 FF 0F 8C [20:33:07]process_action close_receipt done [20:33:07]requested_data is exist [20:33:07]produce_requested_data [20:33:07]requested_item fm.sn is exist - process it [20:33:07]wFMCommunicate request_size=4 [20:33:07]MH_SAM_APDU [20:33:07]CAPDU: 80 11 00 00 [20:33:07]Write to MH i2c: E2 08 00 75 03 80 11 00 00 00 00 00 00 F2 [20:33:07]Write i2c OK [20:33:07]MH_I2C_Read... [20:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:08]Read from MH i2c: E2 [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: E2 17 00 [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: E2 17 00 75 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 45 [20:33:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:33:08]wFMCommunicate OK [20:33:08]requested_item fd.num is exist - process it [20:33:08]SAM_PROTO_GetFieldsCounters [20:33:08]wFMCommunicate request_size=4 [20:33:08]MH_SAM_APDU [20:33:08]CAPDU: 80 13 00 00 [20:33:08]Write to MH i2c: E2 08 00 76 03 80 13 00 00 00 00 00 00 F5 [20:33:08]Write i2c OK [20:33:08]MH_I2C_Read... [20:33:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:08]Read from MH i2c: E2 [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: E2 62 00 [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: E2 62 00 76 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F2 2A 01 00 0E 04 04 00 72 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 68 [20:33: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F2 2A 01 00 0E 04 04 00 72 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 [20:33:08]wFMCommunicate OK [20:33:08]SAM_PROTO_GetFieldsCounters done [20:33:08]requested_item shift.num is exist - process it [20:33:08]requested_item shift.opened is exist - process it [20:33:08]req_shift_opened [20:33:08]FM_GetShiftState [20:33:08]SAM_PROTO_GetShiftState [20:33:08]wFMCommunicate request_size=4 [20:33:08]MH_SAM_APDU [20:33:08]CAPDU: 80 13 01 00 [20:33:08]Write to MH i2c: E2 08 00 77 03 80 13 01 00 00 00 00 00 F7 [20:33:08]Write i2c OK [20:33:08]MH_I2C_Read... [20:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:08]Read from MH i2c: E2 [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: E2 0E 00 [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: E2 0E 00 77 03 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 DC [20:33:08]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:33:08]wFMCommunicate OK [20:33:08]SAM_PROTO_GetShiftState done [20:33:08]FM_GetShiftState done [20:33:08]req_shift_opened done [20:33:08]requested_item shift.open_date is exist - process it [20:33:08]req_shift_open_date [20:33:08]req_shift_open_date done [20:33:08]produce_requested_data done [20:33:08]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76530,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [20:33:08]process_action_free close_receipt [20:33:08]json_value_free [20:33:08]json_value_free done [20:33:08]process_json_proto returns [20:33:08]Send response to host [20:33:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76530,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [20:33:08]free response buf [20:33:08]execute_script done [20:33:08]execute_script returns [20:33:08]free content buf [20:33:08]Sock 8.Close socket [20:33:08]Sock 8.Thread stoped [20:33:08]Connected sock=11 [20:33:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 C4 32 07 01 D0 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 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 01 D5 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F2 2A 01 00 35 04 06 00 23 0F D2 FB 48 E8 FF 21 DA 8F E2 A0 C3 F5 [20:33:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C5 99 47 00 59 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 34 36 35 32 10 04 04 00 F2 2A 01 00 F4 03 04 00 8D 7C 22 66 B6 04 01 00 00 22 AD BA 20 C1 77 CA 07 [20:33:08]CommunicateWithHost err = 0 [20:33:08]CheckOFDResponse [20:33:08]1017 (14) - 77093643461234 [20:33:08]1041 (16) - 0000000000874652 [20:33:08]1040 (4) - 76530 [20:33:08]1012 (4) - 19.04.2024 14:15 [20:33:08]1206 (1) - 0 [20:33:08]OFD Sender: Remove packet 76530 [20:33:08]ProducePacketName [20:33:08]name=ofd_packets/00076530 [20:33:08]NVStorageDeleteData [20:33:09]OFD Sender: No OFD packet to send [20:33:14]OFD Sender: No OFD packet to send [20:33:19]OFD Sender: No OFD packet to send [20:33:24]OFD Sender: No OFD packet to send [20:33:29]OFD Sender: No OFD packet to send [20:33:34]OFD Sender: No OFD packet to send [20:33:39]OFD Sender: No OFD packet to send [20:33:44]OFD Sender: No OFD packet to send [20:33:49]OFD Sender: No OFD packet to send [20:33:54]OFD Sender: No OFD packet to send [20:33:59]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:09]OFD Sender: No OFD packet to send [20:34:14]OFD Sender: No OFD packet to send [20:34:19]OFD Sender: No OFD packet to send [20:34:24]OFD Sender: No OFD packet to send [20:34:29]OFD Sender: No OFD packet to send [20:34:34]OFD Sender: No OFD packet to send [20:34:39]OFD Sender: No OFD packet to send [20:34:44]OFD Sender: No OFD packet to send [20:34:49]OFD Sender: No OFD packet to send [20:34: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:04]OFD Sender: No OFD packet to send [20:36:09]OFD Sender: No OFD packet to send [20:36:14]OFD Sender: No OFD packet to send [20:36:19]OFD Sender: No OFD packet to send [20:36:24]OFD Sender: No OFD packet to send [20:36:29]OFD Sender: No OFD packet to send [20:36:34]OFD Sender: No OFD packet to send [20:36:39]OFD Sender: No OFD packet to send [20:36:44]OFD Sender: No OFD packet to send [20:36:49]OFD Sender: No OFD packet to send [20:36:54]OFD Sender: No OFD packet to send [20:36:59]OFD Sender: No OFD packet to send [20:37:04]OFD Sender: No OFD packet to send [20:37:09]OFD Sender: No OFD packet to send [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:44]OFD Sender: No OFD packet to send [20:37:49]OFD Sender: No OFD packet to send [20:37:54]OFD Sender: No OFD packet to send [20:37:59]OFD Sender: No OFD packet to send [20:38:04]OFD Sender: No OFD packet to send [20:38:09]OFD Sender: No OFD packet to send [20:38:14]OFD Sender: No OFD packet to send [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:29]OFD Sender: No OFD packet to send [20:38:34]OFD Sender: No OFD packet to send [20:38:39]OFD Sender: No OFD packet to send [20:38:44]OFD Sender: No OFD packet to send [20:38:49]OFD Sender: No OFD packet to send [20:38:54]OFD Sender: No OFD packet to send [20:38:59]OFD Sender: No OFD packet to send [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:44]OFD Sender: No OFD packet to send [20:39:49]OFD Sender: No OFD packet to send [20:39:54]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:44]OFD Sender: No OFD packet to send [20:40:49]OFD Sender: No OFD packet to send [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]OFD Sender: No OFD packet to send [20:41:09]OFD Sender: No OFD packet to send [20:41:14]OFD Sender: No OFD packet to send [20:41:19]OFD Sender: No OFD packet to send [20:41:24]OFD Sender: No OFD packet to send [20:41:29]OFD Sender: No OFD packet to send [20:41:34]OFD Sender: No OFD packet to send [20:41:39]OFD Sender: No OFD packet to send [20:41:44]OFD Sender: No OFD packet to send [20:41:49]OFD Sender: No OFD packet to send [20:41:54]OFD Sender: No OFD packet to send [20:41:59]OFD Sender: No OFD packet to send [20:42:04]OFD Sender: No OFD packet to send [20:42:09]OFD Sender: No OFD packet to send [20:42:14]OFD Sender: No OFD packet to send [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:29]OFD Sender: No OFD packet to send [20:42:34]OFD Sender: No OFD packet to send [20:42:39]OFD Sender: No OFD packet to send [20:42:44]OFD Sender: No OFD packet to send [20:42:49]OFD Sender: No OFD packet to send [20:42:54]OFD Sender: No OFD packet to send [20:42:59]OFD Sender: No OFD packet to send [20:43:04]OFD Sender: No OFD packet to send [20:43:09]OFD Sender: No OFD packet to send [20:43:14]OFD Sender: No OFD packet to send [20:43:19]OFD Sender: No OFD packet to send [20:43:24]OFD Sender: No OFD packet to send [20:43:29]OFD Sender: No OFD packet to send [20:43:34]OFD Sender: No OFD packet to send [20:43:37]accept exits with 9 [20:43:37]New connection [20:43:37]New thread 3066592612 created [20:43:37]Thread 3066735972 joined [20:43:37]Waiting for new connection... [20:43:37] Sock 9.Parse request [20:43:37]Sock 9.Check first char [20:43:37]Sock 9.First char is OK [20:43:37]request: POST /json_proto HTTP/1.0 [20:43:37]Method: POST [20:43:37]URL: /json_proto [20:43:37]Method is POST - this is cgi request [20:43:37]url: /json_proto [20:43:37]query_string will be loaded in cgi processing [20:43:37]execute_cgi json_proto POST (null) [20:43:37]execute_cgi path=json_proto method=POST [20:43:37]POST find Content-Length [20:43:37]Host: 172.17.62.5:8080 [20:43:37]Content-Length: 822 [20:43:37]Content-Type: application/json [20:43:37] [20:43:37]POST finish read [20:43:37]Found Content-Length = 822 [20:43:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 37.760, "sum" : 1234.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1234.75 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:37]execute_script... [20:43: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)191025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 37.760, "sum" : 1234.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1234.75 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:37]POST & json_proto [20:43:37]process_json_proto [20:43:37]json parsed OK: [20:43:37]protocol is kg_v1.0 [20:43:37]action value=close_receipt [20:43:37]process_action close_receipt [20:43:37]cmd_close_receipt [20:43:37]MH_GetDate [20:43:37]Write to MH i2c: F0 00 00 78 03 6A [20:43:37]Write i2c OK [20:43:37]MH_I2C_Read... [20:43:37]Read from MH i2c: F0 [20:43:37]MH_I2C_Read... [20:43:37]Read from MH i2c: F0 09 00 [20:43:37]MH_I2C_Read... [20:43:37]Read from MH i2c: F0 09 00 78 03 00 7A D7 22 66 F4 E9 65 64 F2 [20:43:37]GetLastDocTimeStamp 1713558785 [20:43:37]current date 1713559418 [20:43:37]FM_GetShiftState [20:43:37]SAM_PROTO_GetShiftState [20:43:37]wFMCommunicate request_size=4 [20:43:37]MH_SAM_APDU [20:43:37]CAPDU: 80 13 01 00 [20:43:37]Write to MH i2c: E2 08 00 79 03 80 13 01 00 00 00 00 00 F9 [20:43:37]Write i2c OK [20:43:37]MH_I2C_Read... [20:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:37]Read from MH i2c: E2 [20:43:37]MH_I2C_Read... [20:43:37]Read from MH i2c: E2 0E 00 [20:43:37]MH_I2C_Read... [20:43:37]Read from MH i2c: E2 0E 00 79 03 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 DE [20:43:37]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:43:37]wFMCommunicate OK [20:43:37]SAM_PROTO_GetShiftState done [20:43:37]FM_GetShiftState done [20:43:37]opened in 1713486233 [20:43:37]opened+sec_in_day 1713572633 [20:43:37]quantity*price = 123475 [20:43:37]sum+1 = 123476 [20:43:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1234.75 НСП 1% : 10.93 НДС 12% : 131.12 Наличными: 0.00 Безнал.: 1234.75 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 151 19.04.2024 20:43 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76531 ФПД: 76473518172527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T204338&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76531&fm=76473518172527&tin=02508201610067®Number=0000000000091573&sum=123475 [20:43:38]StoreToDocumentArchive [20:43:38]shift 370 fd 76531 [20:43:38]save to /storage/0370/doc_00076531 [20:43:38]save last doc name /storage/0370/doc_00076531 to /storage/kkm_last_doc_name [20:43:38]save OK [20:43:38]Clear old archive folders... [20:43:38]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:43:38]tlvbuf is B6F20720 [20:43:38]SAM_PROTO_ClearQueue [20:43:38]wFMCommunicate request_size=4 [20:43:38]MH_SAM_APDU [20:43:38]CAPDU: 80 09 00 00 [20:43:38]Write to MH i2c: E2 08 00 86 03 80 09 00 00 00 00 00 00 FB [20:43:38]Write i2c OK [20:43:38]MH_I2C_Read... [20:43:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:43:38]Read from MH i2c: E2 [20:43:38]MH_I2C_Read... [20:43:38]Read from MH i2c: E2 03 00 [20:43:38]MH_I2C_Read... [20:43:38]Read from MH i2c: E2 03 00 86 03 00 90 00 FD [20:43:38]RAPDU: 90 00 [20:43:38]wFMCommunicate OK [20:43:38]SAM_PROTO_ClearQueue done [20:43:38]KKMCreateOFDPacket [20:43:38]OFDProtocolAddRootSTLVToBuf [20:43:38]FM_MakeSignedData [20:43:38]FM_MakeSignedData [20:43:38]SAM_PROTO_SignData [20:43:38]wFMCommunicate request_size=4 [20:43:38]MH_SAM_APDU [20:43:38]CAPDU: 80 0D 01 02 [20:43:38]Write to MH i2c: E2 08 00 87 03 80 0D 01 02 00 00 00 00 03 [20:43:38]Write i2c OK [20:43:38]MH_I2C_Read... [20:43:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:43:38]Read from MH i2c: E2 [20:43:38]MH_I2C_Read... [20:43:38]Read from MH i2c: E2 03 00 [20:43:38]MH_I2C_Read... [20:43:38]Read from MH i2c: E2 03 00 87 03 00 90 00 FE [20:43:38]RAPDU: 90 00 [20:43:38]wFMCommunicate OK [20:43:38]wFMCommunicate request_size=255 [20:43:38]MH_SAM_APDU [20:43:38]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 93 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 53 E2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 E2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 33 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 E2 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 7A D7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F3 2A 01 00 35 04 06 00 45 8D [20:43:38]Write to MH i2c: E2 02 01 88 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 93 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 53 E2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 E2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 33 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 E2 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 7A D7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F3 2A 01 00 35 04 06 00 45 8D 00 00 C2 [20:43:38]Write i2c OK [20:43:38]MH_I2C_Read... [20:43:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:39]Read from MH i2c: E2 [20:43:39]MH_I2C_Read... [20:43:39]Read from MH i2c: E2 03 00 [20:43:39]MH_I2C_Read... [20:43:39]Read from MH i2c: E2 03 00 88 03 00 90 00 FF [20:43:39]RAPDU: 90 00 [20:43:39]wFMCommunicate OK [20:43:39]wFMCommunicate request_size=9 [20:43:39]MH_SAM_APDU [20:43:39]CAPDU: 80 0D 02 02 04 60 E2 A9 6F [20:43:39]Write to MH i2c: E2 0C 00 89 03 80 0D 02 02 04 00 60 E2 A9 6F 00 00 68 [20:43:39]Write i2c OK [20:43:39]MH_I2C_Read... [20:43:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:39]Read from MH i2c: E2 [20:43:39]MH_I2C_Read... [20:43:39]Read from MH i2c: E2 03 00 [20:43:39]MH_I2C_Read... [20:43:39]Read from MH i2c: E2 03 00 89 03 00 90 00 00 [20:43:39]RAPDU: 90 00 [20:43:39]wFMCommunicate OK [20:43:39]wFMCommunicate request_size=4 [20:43:39]MH_SAM_APDU [20:43:39]CAPDU: 80 0D 03 02 [20:43:39]Write to MH i2c: E2 08 00 8A 03 80 0D 03 02 00 00 00 00 08 [20:43:39]Write i2c OK [20:43:39]MH_I2C_Read... [20:43:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:43:39]Read from MH i2c: E2 [20:43:39]MH_I2C_Read... [20:43:39]Read from MH i2c: E2 0B 00 [20:43:39]MH_I2C_Read... [20:43:39]Read from MH i2c: E2 0B 00 8A 03 00 77 5D F7 B9 46 5E 76 0F 90 00 B6 [20:43:39]RAPDU: 77 5D F7 B9 46 5E 76 0F 90 00 [20:43:39]wFMCommunicate OK [20:43:39]SAM_PROTO_SignData done [20:43:39]FM_MakeSignedData done [20:43:39]CreateOFDProtocolMessage [20:43:39]wFMCommunicate request_size=4 [20:43:39]MH_SAM_APDU [20:43:39]CAPDU: 80 11 00 00 [20:43:39]Write to MH i2c: E2 08 00 8B 03 80 11 00 00 00 00 00 00 08 [20:43:39]Write i2c OK [20:43:39]MH_I2C_Read... [20:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:39]Read from MH i2c: E2 [20:43:39]MH_I2C_Read... [20:43:39]Read from MH i2c: E2 17 00 [20:43:39]MH_I2C_Read... [20:43:39]Read from MH i2c: E2 17 00 8B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5B [20:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:43:39]wFMCommunicate OK [20:43:39]CreateOFDProtocolMessage done [20:43:39]OFDSenderStorePacket 76531 [20:43:39]StoreOFDPacket docnum=76531 [20:43:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 6B 17 06 01 7D 50 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 93 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 53 E2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 E2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 33 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 E2 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 7A D7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F3 2A 01 00 35 04 06 00 45 8D 60 E2 A9 6F 77 5D F7 B9 46 5E 76 0F [20:43:39]CheckFolder [20:43:39]dirname=/storage/ofd_packets [20:43:39]CheckFolder done [20:43:39]ProducePacketName [20:43:39]name=ofd_packets/00076531 [20:43:39]NVStorageSaveData ofd_packets/00076531 [20:43:39]File name is /storage/ofd_packets/00076531 [20:43:39]Write 300 bytes [20:43:39]NVStorageSaveData done [20:43:39]OFDSenderStorePacket done [20:43:39]KKMCreateOFDPacket done [20:43:39]NVStorageSaveData kkm_last_timestamp [20:43:39]File name is /storage/kkm_last_timestamp [20:43:39]Write 4 bytes [20:43:39]NVStorageSaveData done [20:43:39]ExternCall_PrintAddStr [20:43:39]wPrintStart [20:43:39]Write to MH i2c: 01 00 00 8C 03 8F [20:43:39]Write i2c OK [20:43:39]MH_I2C_Read... [20:43:39]Read from MH i2c: 01 [20:43:39]MH_I2C_Read... [20:43:39]Read from MH i2c: 01 07 00 [20:43:39]MH_I2C_Read... [20:43:39]Read from MH i2c: 01 07 00 8C 03 00 00 00 00 00 FF 0F A4 [20:43:39]RasterBufferAndPrint [20:43:39]line Счет N : (1)191025 [20:43:39]line ИНН: 02508201610067 [20:43:39]line Контрольно-Кассовый Чек [20:43:39]line ПРОДАЖА [20:43:39]line ТРК (МРК, ГНК) : 71 [20:43:39]line Товар: 2711190000 [20:43:39]line ГАЗ-К-5 [20:43:39]line 37.760 * 32.70 [20:43:39]line = 1234.75 [20:43:39]line НДС 12% НСП 1% [20:43:39]line > о реализуемом товаре [20:43:39]line ИТОГО: 1234.75 [20:43:39]line НСП 1% : 10.93 [20:43:39]line НДС 12% : 131.12 [20:43:39]line Наличными: 0.00 [20:43:39]line Безнал.: 1234.75 [20:43:39]line Место: АЗС № 106 "Партнер Нефть" [20:43:39]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:43:39]line СНО: Общий режим [20:43:39]line Чек 151 19.04.2024 20:43 [20:43:39]line Смена: 370 ФФД: 1.0 [20:43:39]line ЗНМ: 0300000141 [20:43:39]line РНМ: 0000000000091573 [20:43:39]line Версия ККМ: 001 [20:43:39]line Платежная система: Бакай Банк [20:43:39]line ФМ: 0000000000874652 [20:43:39]line ФД: 76531 [20:43:39]line ФПД: 76473518172527 [20:43:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T204338&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76531&fm=76473518172527&tin=02508201610067®Number=0000000000091573&sum=123475 [20:43:39]OFD Sender: Processing packet 76531 [packets to send 128, broken 127] [20:43:39]ProducePacketName [20:43:39]name=ofd_packets/00076531 [20:43:39]OFD Sender: To server: pG, [20:43:39]CommunicateWithHost lk.salyk.kg:30040 [20:43:39]ConnectInit lk.salyk.kg [20:43:39]written 0, free lines is 4095 [20:43:39]Connected sock=10 [20:43:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 6B 17 06 01 7D 50 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 93 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 53 E2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 E2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 33 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 E2 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 7A D7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F3 2A 01 00 35 04 06 00 45 8D 60 E2 A9 6F 77 5D F7 B9 46 5E 76 0F [20:43:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 42 C0 47 00 AE 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 34 36 35 32 10 04 04 00 F3 2A 01 00 F4 03 04 00 05 7F 22 66 B6 04 01 00 00 3F 98 5D 4F 33 1D 80 3C [20:43:40]CommunicateWithHost err = 0 [20:43:40]CheckOFDResponse [20:43:40]1017 (14) - 77093643461234 [20:43:40]1041 (16) - 0000000000874652 [20:43:40]1040 (4) - 76531 [20:43:40]1012 (4) - 19.04.2024 14:26 [20:43:40]1206 (1) - 0 [20:43:40]OFD Sender: Remove packet 76531 [20:43:40]ProducePacketName [20:43:40]name=ofd_packets/00076531 [20:43:40]NVStorageDeleteData [20:43:40]Write to MH i2c: 01 00 00 B5 03 B8 [20:43:40]Write i2c OK [20:43:40]MH_I2C_Read... [20:43:40]Read from MH i2c: 01 [20:43:40]MH_I2C_Read... [20:43:40]Read from MH i2c: 01 07 00 [20:43:40]MH_I2C_Read... [20:43:40]Read from MH i2c: 01 07 00 B5 03 00 00 00 00 00 ED 0C B8 [20:43:40]RasterBufferAndPrint [20:43:40]line [20:43:40]line [20:43:40]line [20:43:40]line [20:43:40]line [20:43:40]written 0, free lines is 3315 [20:43:40]MH_Cut [20:43:40]Write to MH i2c: D1 01 00 BC 03 01 91 [20:43:40]Write i2c OK [20:43:40]MH_I2C_Read... [20:43:40]Read from MH i2c: D1 [20:43:40]MH_I2C_Read... [20:43:40]Read from MH i2c: D1 01 00 [20:43:40]MH_I2C_Read... [20:43:40]Read from MH i2c: D1 01 00 BC 03 00 90 [20:43:40]Write to MH i2c: 01 00 00 BD 03 C0 [20:43:40]Write i2c OK [20:43:40]MH_I2C_Read... [20:43:40]OFD Sender: No OFD packet to send [20:43:40]*** Cut start [20:43:40]*** Partial cut [20:43:40]*** CUTSNS_PIN = 1 [20:43:40]*** CUTSNS_PIN = 0 [20:43:41]*** Brake cut motor [20:43:41]Read from MH i2c: 01 [20:43:41]MH_I2C_Read... [20:43:41]*** Stop cut motor [20:43:41]*** Cut end [20:43:41]Read from MH i2c: 01 07 00 [20:43:41]MH_I2C_Read... [20:43:41]Read from MH i2c: 01 07 00 BD 03 00 00 00 00 00 FF 0F D5 [20:43:41]process_action close_receipt done [20:43:41]requested_data is exist [20:43:41]produce_requested_data [20:43:41]requested_item fm.sn is exist - process it [20:43:41]wFMCommunicate request_size=4 [20:43:41]MH_SAM_APDU [20:43:41]CAPDU: 80 11 00 00 [20:43:41]Write to MH i2c: E2 08 00 BE 03 80 11 00 00 00 00 00 00 3B [20:43:41]Write i2c OK [20:43:41]MH_I2C_Read... [20:43:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:41]Read from MH i2c: E2 [20:43:41]MH_I2C_Read... [20:43:41]Read from MH i2c: E2 17 00 [20:43:41]MH_I2C_Read... [20:43:41]Read from MH i2c: E2 17 00 BE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8E [20:43:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:43:41]wFMCommunicate OK [20:43:41]requested_item fd.num is exist - process it [20:43:41]SAM_PROTO_GetFieldsCounters [20:43:41]wFMCommunicate request_size=4 [20:43:41]MH_SAM_APDU [20:43:41]CAPDU: 80 13 00 00 [20:43:41]Write to MH i2c: E2 08 00 BF 03 80 13 00 00 00 00 00 00 3E [20:43:41]Write i2c OK [20:43:41]MH_I2C_Read... [20:43:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:43:41]Read from MH i2c: E2 [20:43:41]MH_I2C_Read... [20:43:41]Read from MH i2c: E2 62 00 [20:43:41]MH_I2C_Read... [20:43:41]Read from MH i2c: E2 62 00 BF 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F3 2A 01 00 0E 04 04 00 72 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 B5 [20:43:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F3 2A 01 00 0E 04 04 00 72 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 [20:43:41]wFMCommunicate OK [20:43:41]SAM_PROTO_GetFieldsCounters done [20:43:41]requested_item shift.num is exist - process it [20:43:41]requested_item shift.opened is exist - process it [20:43:41]req_shift_opened [20:43:41]FM_GetShiftState [20:43:41]SAM_PROTO_GetShiftState [20:43:41]wFMCommunicate request_size=4 [20:43:41]MH_SAM_APDU [20:43:41]CAPDU: 80 13 01 00 [20:43:41]Write to MH i2c: E2 08 00 C0 03 80 13 01 00 00 00 00 00 40 [20:43:41]Write i2c OK [20:43:41]MH_I2C_Read... [20:43:41]Read from MH i2c: E2 [20:43:41]MH_I2C_Read... [20:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:41]Read from MH i2c: E2 0E 00 [20:43:41]MH_I2C_Read... [20:43:41]Read from MH i2c: E2 0E 00 C0 03 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 25 [20:43:41]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:43:41]wFMCommunicate OK [20:43:41]SAM_PROTO_GetShiftState done [20:43:41]FM_GetShiftState done [20:43:41]req_shift_opened done [20:43:41]requested_item shift.open_date is exist - process it [20:43:41]req_shift_open_date [20:43:41]req_shift_open_date done [20:43:41]produce_requested_data done [20:43:41]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76531,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [20:43:41]process_action_free close_receipt [20:43:41]json_value_free [20:43:41]json_value_free done [20:43:41]process_json_proto returns [20:43:41]Send response to host [20:43:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76531,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [20:43:41]free response buf [20:43:41]execute_script done [20:43:41]execute_script returns [20:43:41]free content buf [20:43:41]Sock 9.Close socket [20:43:41]Sock 9.Thread stoped [20:43:45]OFD Sender: No OFD packet to send [20:43:50]OFD Sender: No OFD packet to send [20:43:55]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:05]OFD Sender: No OFD packet to send [20:44:08]accept exits with 8 [20:44:08]New connection [20:44:08]New thread 3066735972 created [20:44:08]Thread 3066592612 joined [20:44:08]Waiting for new connection... [20:44:08] Sock 8.Parse request [20:44:08]Sock 8.Check first char [20:44:08]Sock 8.First char is OK [20:44:08]request: POST /json_proto HTTP/1.0 [20:44:08]Method: POST [20:44:08]URL: /json_proto [20:44:08]Method is POST - this is cgi request [20:44:08]url: /json_proto [20:44:08]query_string will be loaded in cgi processing [20:44:08]execute_cgi json_proto POST (null) [20:44:08]execute_cgi path=json_proto method=POST [20:44:08]POST find Content-Length [20:44:08]Host: 172.17.62.5:8080 [20:44:08]Content-Length: 805 [20:44:08]Content-Type: application/json [20:44:08] [20:44:08]POST finish read [20:44:08]Found Content-Length = 805 [20:44:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191026", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:08]execute_script... [20:44: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)191026", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:08]POST & json_proto [20:44:08]process_json_proto [20:44:08]json parsed OK: [20:44:08]protocol is kg_v1.0 [20:44:08]action value=close_receipt [20:44:08]process_action close_receipt [20:44:08]cmd_close_receipt [20:44:08]MH_GetDate [20:44:08]Write to MH i2c: F0 00 00 C1 03 B3 [20:44:08]Write i2c OK [20:44:08]MH_I2C_Read... [20:44:08]Read from MH i2c: F0 [20:44:08]MH_I2C_Read... [20:44:08]Read from MH i2c: F0 09 00 [20:44:08]MH_I2C_Read... [20:44:08]Read from MH i2c: F0 09 00 C1 03 00 99 D7 22 66 F4 E9 65 64 5A [20:44:08]GetLastDocTimeStamp 1713559418 [20:44:08]current date 1713559449 [20:44:08]FM_GetShiftState [20:44:08]SAM_PROTO_GetShiftState [20:44:08]wFMCommunicate request_size=4 [20:44:08]MH_SAM_APDU [20:44:08]CAPDU: 80 13 01 00 [20:44:08]Write to MH i2c: E2 08 00 C2 03 80 13 01 00 00 00 00 00 42 [20:44:08]Write i2c OK [20:44:08]MH_I2C_Read... [20:44:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:08]Read from MH i2c: E2 [20:44:08]MH_I2C_Read... [20:44:08]Read from MH i2c: E2 0E 00 [20:44:08]MH_I2C_Read... [20:44:08]Read from MH i2c: E2 0E 00 C2 03 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 27 [20:44:08]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:44:08]wFMCommunicate OK [20:44:08]SAM_PROTO_GetShiftState done [20:44:08]FM_GetShiftState done [20:44:08]opened in 1713486233 [20:44:08]opened+sec_in_day 1713572633 [20:44:08]quantity*price = 100018 [20:44:08]sum+1 = 100020 [20:44:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 152 19.04.2024 20:44 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76532 ФПД: 231770087988223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T204409&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76532&fm=231770087988223&tin=02508201610067®Number=0000000000091573&sum=100019 [20:44:09]StoreToDocumentArchive [20:44:09]shift 370 fd 76532 [20:44:09]save to /storage/0370/doc_00076532 [20:44:09]save last doc name /storage/0370/doc_00076532 to /storage/kkm_last_doc_name [20:44:09]save OK [20:44:09]Clear old archive folders... [20:44:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:44:09]tlvbuf is 01618420 [20:44:09]SAM_PROTO_ClearQueue [20:44:09]wFMCommunicate request_size=4 [20:44:09]MH_SAM_APDU [20:44:09]CAPDU: 80 09 00 00 [20:44:09]Write to MH i2c: E2 08 00 CF 03 80 09 00 00 00 00 00 00 44 [20:44:09]Write i2c OK [20:44:09]MH_I2C_Read... [20:44:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:09]Read from MH i2c: E2 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 03 00 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 03 00 CF 03 00 90 00 46 [20:44:09]RAPDU: 90 00 [20:44:09]wFMCommunicate OK [20:44:09]SAM_PROTO_ClearQueue done [20:44:09]KKMCreateOFDPacket [20:44:09]OFDProtocolAddRootSTLVToBuf [20:44:09]FM_MakeSignedData [20:44:09]FM_MakeSignedData [20:44:09]SAM_PROTO_SignData [20:44:09]wFMCommunicate request_size=4 [20:44:09]MH_SAM_APDU [20:44:09]CAPDU: 80 0D 01 02 [20:44:09]Write to MH i2c: E2 08 00 D0 03 80 0D 01 02 00 00 00 00 4C [20:44:09]Write i2c OK [20:44:09]MH_I2C_Read... [20:44:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:09]Read from MH i2c: E2 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 03 00 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 03 00 D0 03 00 90 00 47 [20:44:09]RAPDU: 90 00 [20:44:09]wFMCommunicate OK [20:44:09]wFMCommunicate request_size=255 [20:44:09]MH_SAM_APDU [20:44:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 98 00 00 00 F4 03 04 00 99 D7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F4 2A 01 00 35 04 06 00 D2 CB 2D C3 [20:44:09]Write to MH i2c: E2 02 01 D1 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 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 98 00 00 00 F4 03 04 00 99 D7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F4 2A 01 00 35 04 06 00 D2 CB 2D C3 00 00 87 [20:44:09]Write i2c OK [20:44:09]MH_I2C_Read... [20:44:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:09]Read from MH i2c: E2 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 03 00 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 03 00 D1 03 00 90 00 48 [20:44:09]RAPDU: 90 00 [20:44:09]wFMCommunicate OK [20:44:09]wFMCommunicate request_size=7 [20:44:09]MH_SAM_APDU [20:44:09]CAPDU: 80 0D 02 02 02 9B FF [20:44:09]Write to MH i2c: E2 0A 00 D2 03 80 0D 02 02 02 00 9B FF 00 00 ED [20:44:09]Write i2c OK [20:44:09]MH_I2C_Read... [20:44:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:09]Read from MH i2c: E2 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 03 00 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 03 00 D2 03 00 90 00 49 [20:44:09]RAPDU: 90 00 [20:44:09]wFMCommunicate OK [20:44:09]wFMCommunicate request_size=4 [20:44:09]MH_SAM_APDU [20:44:09]CAPDU: 80 0D 03 02 [20:44:09]Write to MH i2c: E2 08 00 D3 03 80 0D 03 02 00 00 00 00 51 [20:44:09]Write i2c OK [20:44:09]MH_I2C_Read... [20:44:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:10]Read from MH i2c: E2 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 0B 00 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 0B 00 D3 03 00 76 AB 32 BA 54 C5 CE 45 90 00 8B [20:44:10]RAPDU: 76 AB 32 BA 54 C5 CE 45 90 00 [20:44:10]wFMCommunicate OK [20:44:10]SAM_PROTO_SignData done [20:44:10]FM_MakeSignedData done [20:44:10]CreateOFDProtocolMessage [20:44:10]wFMCommunicate request_size=4 [20:44:10]MH_SAM_APDU [20:44:10]CAPDU: 80 11 00 00 [20:44:10]Write to MH i2c: E2 08 00 D4 03 80 11 00 00 00 00 00 00 51 [20:44:10]Write i2c OK [20:44:10]MH_I2C_Read... [20:44:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:10]Read from MH i2c: E2 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 17 00 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: E2 17 00 D4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A4 [20:44:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:44:10]wFMCommunicate OK [20:44:10]CreateOFDProtocolMessage done [20:44:10]OFDSenderStorePacket 76532 [20:44:10]StoreOFDPacket docnum=76532 [20:44:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 93 28 04 01 58 EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 98 00 00 00 F4 03 04 00 99 D7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F4 2A 01 00 35 04 06 00 D2 CB 2D C3 9B FF 76 AB 32 BA 54 C5 CE 45 [20:44:10]CheckFolder [20:44:10]dirname=/storage/ofd_packets [20:44:10]CheckFolder done [20:44:10]ProducePacketName [20:44:10]name=ofd_packets/00076532 [20:44:10]NVStorageSaveData ofd_packets/00076532 [20:44:10]File name is /storage/ofd_packets/00076532 [20:44:10]Write 298 bytes [20:44:10]NVStorageSaveData done [20:44:10]OFDSenderStorePacket done [20:44:10]KKMCreateOFDPacket done [20:44:10]NVStorageSaveData kkm_last_timestamp [20:44:10]File name is /storage/kkm_last_timestamp [20:44:10]Write 4 bytes [20:44:10]NVStorageSaveData done [20:44:10]ExternCall_PrintAddStr [20:44:10]wPrintStart [20:44:10]Write to MH i2c: 01 00 00 D5 03 D8 [20:44:10]Write i2c OK [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: 01 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: 01 07 00 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: 01 07 00 D5 03 00 00 00 00 00 FF 0F ED [20:44:10]RasterBufferAndPrint [20:44:10]line Счет N : (1)191026 [20:44:10]line ИНН: 02508201610067 [20:44:10]line Контрольно-Кассовый Чек [20:44:10]line ПРОДАЖА [20:44:10]line ТРК (МРК, ГНК) : 51 [20:44:10]line Товар: 2710194210 [20:44:10]line ДТ-К-5 [20:44:10]line 13.720 * 72.90 [20:44:10]line = 1000.19 [20:44:10]line НДС 12% НСП 1% [20:44:10]line > о реализуемом товаре [20:44:10]line ИТОГО: 1000.19 [20:44:10]line НСП 1% : 8.85 [20:44:10]line НДС 12% : 106.21 [20:44:10]line Наличными: 0.00 [20:44:10]line Безнал.: 1000.19 [20:44:10]line Место: АЗС № 106 "Партнер Нефть" [20:44:10]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:44:10]line СНО: Общий режим [20:44:10]line Чек 152 19.04.2024 20:44 [20:44:10]line Смена: 370 ФФД: 1.0 [20:44:10]line ЗНМ: 0300000141 [20:44:10]line РНМ: 0000000000091573 [20:44:10]line Версия ККМ: 001 [20:44:10]line Платежная система: О! деньги [20:44:10]line ФМ: 0000000000874652 [20:44:10]line ФД: 76532 [20:44:10]line ФПД: 231770087988223 [20:44:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T204409&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76532&fm=231770087988223&tin=02508201610067®Number=0000000000091573&sum=100019 [20:44:10]OFD Sender: Processing packet 76532 [packets to send 128, broken 127] [20:44:10]ProducePacketName [20:44:10]name=ofd_packets/00076532 [20:44:10]OFD Sender: To server: pG, [20:44:10]CommunicateWithHost lk.salyk.kg:30040 [20:44:10]ConnectInit lk.salyk.kg [20:44:10]written 0, free lines is 4095 [20:44:10]Connected sock=10 [20:44:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 93 28 04 01 58 EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 98 00 00 00 F4 03 04 00 99 D7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F4 2A 01 00 35 04 06 00 D2 CB 2D C3 9B FF 76 AB 32 BA 54 C5 CE 45 [20:44:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 E5 92 47 00 16 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F4 2A 01 00 F4 03 04 00 24 7F 22 66 B6 04 01 00 00 6B B8 B4 F5 96 84 92 36 [20:44:10]CommunicateWithHost err = 0 [20:44:10]CheckOFDResponse [20:44:10]1017 (14) - 77093643461234 [20:44:10]1041 (16) - 0000000000874652 [20:44:10]1040 (4) - 76532 [20:44:10]1012 (4) - 19.04.2024 14:26 [20:44:10]1206 (1) - 0 [20:44:10]OFD Sender: Remove packet 76532 [20:44:10]ProducePacketName [20:44:10]name=ofd_packets/00076532 [20:44:10]NVStorageDeleteData [20:44:10]Write to MH i2c: 01 00 00 FE 03 01 [20:44:10]Write i2c OK [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: 01 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: 01 07 00 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: 01 07 00 FE 03 00 00 00 00 00 FB 0C 0F [20:44:10]RasterBufferAndPrint [20:44:10]line [20:44:10]line [20:44:10]line [20:44:10]line [20:44:10]line [20:44:10]written 0, free lines is 3329 [20:44:10]MH_Cut [20:44:10]Write to MH i2c: D1 01 00 05 04 01 DB [20:44:10]Write i2c OK [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: D1 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: D1 01 00 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: D1 01 00 05 04 00 DA [20:44:10]Write to MH i2c: 01 00 00 06 04 0A [20:44:10]Write i2c OK [20:44:10]MH_I2C_Read... [20:44:11]OFD Sender: No OFD packet to send [20:44:11]*** Cut start [20:44:11]*** Partial cut [20:44:11]*** CUTSNS_PIN = 1 [20:44:11]*** CUTSNS_PIN = 0 [20:44:11]*** Brake cut motor [20:44:12]Read from MH i2c: 01 [20:44:12]MH_I2C_Read... [20:44:12]*** Stop cut motor [20:44:12]*** Cut end [20:44:12]Read from MH i2c: 01 07 00 [20:44:12]MH_I2C_Read... [20:44:12]Read from MH i2c: 01 07 00 06 04 00 00 00 00 00 FF 0F 1F [20:44:12]process_action close_receipt done [20:44:12]requested_data is exist [20:44:12]produce_requested_data [20:44:12]requested_item fm.sn is exist - process it [20:44:12]wFMCommunicate request_size=4 [20:44:12]MH_SAM_APDU [20:44:12]CAPDU: 80 11 00 00 [20:44:12]Write to MH i2c: E2 08 00 07 04 80 11 00 00 00 00 00 00 85 [20:44:12]Write i2c OK [20:44:12]MH_I2C_Read... [20:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:12]Read from MH i2c: E2 [20:44:12]MH_I2C_Read... [20:44:12]Read from MH i2c: E2 17 00 [20:44:12]MH_I2C_Read... [20:44:12]Read from MH i2c: E2 17 00 07 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D8 [20:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:44:12]wFMCommunicate OK [20:44:12]requested_item fd.num is exist - process it [20:44:12]SAM_PROTO_GetFieldsCounters [20:44:12]wFMCommunicate request_size=4 [20:44:12]MH_SAM_APDU [20:44:12]CAPDU: 80 13 00 00 [20:44:12]Write to MH i2c: E2 08 00 08 04 80 13 00 00 00 00 00 00 88 [20:44:12]Write i2c OK [20:44:12]MH_I2C_Read... [20:44:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:12]Read from MH i2c: E2 [20:44:12]MH_I2C_Read... [20:44:12]Read from MH i2c: E2 62 00 [20:44:12]MH_I2C_Read... [20:44:12]Read from MH i2c: E2 62 00 08 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F4 2A 01 00 0E 04 04 00 72 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 03 [20:44: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F4 2A 01 00 0E 04 04 00 72 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 [20:44:12]wFMCommunicate OK [20:44:12]SAM_PROTO_GetFieldsCounters done [20:44:12]requested_item shift.num is exist - process it [20:44:12]requested_item shift.opened is exist - process it [20:44:12]req_shift_opened [20:44:12]FM_GetShiftState [20:44:12]SAM_PROTO_GetShiftState [20:44:12]wFMCommunicate request_size=4 [20:44:12]MH_SAM_APDU [20:44:12]CAPDU: 80 13 01 00 [20:44:12]Write to MH i2c: E2 08 00 09 04 80 13 01 00 00 00 00 00 8A [20:44:12]Write i2c OK [20:44:12]MH_I2C_Read... [20:44:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:12]Read from MH i2c: E2 [20:44:12]MH_I2C_Read... [20:44:12]Read from MH i2c: E2 0E 00 [20:44:12]MH_I2C_Read... [20:44:12]Read from MH i2c: E2 0E 00 09 04 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 6F [20:44:12]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:44:12]wFMCommunicate OK [20:44:12]SAM_PROTO_GetShiftState done [20:44:12]FM_GetShiftState done [20:44:12]req_shift_opened done [20:44:12]requested_item shift.open_date is exist - process it [20:44:12]req_shift_open_date [20:44:12]req_shift_open_date done [20:44:12]produce_requested_data done [20:44:12]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76532,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [20:44:12]process_action_free close_receipt [20:44:12]json_value_free [20:44:12]json_value_free done [20:44:12]process_json_proto returns [20:44:12]Send response to host [20:44:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76532,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [20:44:12]free response buf [20:44:12]execute_script done [20:44:12]execute_script returns [20:44:12]free content buf [20:44:12]Sock 8.Close socket [20:44:12]Sock 8.Thread stoped [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:26]OFD Sender: No OFD packet to send [20:44:31]OFD Sender: No OFD packet to send [20:44:36]OFD Sender: No OFD packet to send [20:44:41]OFD Sender: No OFD packet to send [20:44:46]OFD Sender: No OFD packet to send [20:44:51]OFD Sender: No OFD packet to send [20:44:56]OFD Sender: No OFD packet to send [20:45:01]OFD Sender: No OFD packet to send [20:45:06]OFD Sender: No OFD packet to send [20:45:11]OFD Sender: No OFD packet to send [20:45:11]accept exits with 9 [20:45:11]New connection [20:45:11]New thread 3066592612 created [20:45:11]Thread 3066735972 joined [20:45:11]Waiting for new connection... [20:45:11] Sock 9.Parse request [20:45:11]Sock 9.Check first char [20:45:11]Sock 9.First char is OK [20:45:11]request: POST /json_proto HTTP/1.0 [20:45:11]Method: POST [20:45:11]URL: /json_proto [20:45:11]Method is POST - this is cgi request [20:45:11]url: /json_proto [20:45:11]query_string will be loaded in cgi processing [20:45:11]execute_cgi json_proto POST (null) [20:45:11]execute_cgi path=json_proto method=POST [20:45:11]POST find Content-Length [20:45:11]Host: 172.17.62.5:8080 [20:45:11]Content-Length: 677 [20:45:11]Content-Type: application/json [20:45:11] [20:45:11]POST finish read [20:45:11]Found Content-Length = 677 [20:45:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 9.320, "sum" : 600.21, "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:45:11]execute_script... [20:45: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)191027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 9.320, "sum" : 600.21, "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:45:11]POST & json_proto [20:45:11]process_json_proto [20:45:11]json parsed OK: [20:45:11]protocol is kg_v1.0 [20:45:11]action value=close_receipt [20:45:11]process_action close_receipt [20:45:11]cmd_close_receipt [20:45:11]MH_GetDate [20:45:11]Write to MH i2c: F0 00 00 0A 04 FD [20:45:11]Write i2c OK [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: F0 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: F0 09 00 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: F0 09 00 0A 04 00 D8 D7 22 66 F4 E9 65 64 E3 [20:45:11]GetLastDocTimeStamp 1713559449 [20:45:11]current date 1713559512 [20:45:11]FM_GetShiftState [20:45:11]SAM_PROTO_GetShiftState [20:45:11]wFMCommunicate request_size=4 [20:45:11]MH_SAM_APDU [20:45:11]CAPDU: 80 13 01 00 [20:45:11]Write to MH i2c: E2 08 00 0B 04 80 13 01 00 00 00 00 00 8C [20:45:11]Write i2c OK [20:45:11]MH_I2C_Read... [20:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:11]Read from MH i2c: E2 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: E2 0E 00 [20:45:11]MH_I2C_Read... [20:45:11]Read from MH i2c: E2 0E 00 0B 04 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 71 [20:45:11]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:45:11]wFMCommunicate OK [20:45:11]SAM_PROTO_GetShiftState done [20:45:11]FM_GetShiftState done [20:45:11]opened in 1713486233 [20:45:11]opened+sec_in_day 1713572633 [20:45:11]quantity*price = 60020 [20:45:11]sum+1 = 60022 [20:45:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 153 19.04.2024 20:45 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76533 ФПД: 263967203789115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T204512&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76533&fm=263967203789115&tin=02508201610067®Number=0000000000091573&sum=60000 [20:45:12]StoreToDocumentArchive [20:45:12]shift 370 fd 76533 [20:45:12]save to /storage/0370/doc_00076533 [20:45:12]save last doc name /storage/0370/doc_00076533 to /storage/kkm_last_doc_name [20:45:12]save OK [20:45:12]Clear old archive folders... [20:45:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:45:12]tlvbuf is 01624BA0 [20:45:12]SAM_PROTO_ClearQueue [20:45:12]wFMCommunicate request_size=4 [20:45:12]MH_SAM_APDU [20:45:12]CAPDU: 80 09 00 00 [20:45:12]Write to MH i2c: E2 08 00 18 04 80 09 00 00 00 00 00 00 8E [20:45:12]Write i2c OK [20:45:12]MH_I2C_Read... [20:45:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:45:12]Read from MH i2c: E2 [20:45:12]MH_I2C_Read... [20:45:12]Read from MH i2c: E2 03 00 [20:45:12]MH_I2C_Read... [20:45:12]Read from MH i2c: E2 03 00 18 04 00 90 00 90 [20:45:12]RAPDU: 90 00 [20:45:12]wFMCommunicate OK [20:45:12]SAM_PROTO_ClearQueue done [20:45:12]KKMCreateOFDPacket [20:45:12]OFDProtocolAddRootSTLVToBuf [20:45:12]FM_MakeSignedData [20:45:12]FM_MakeSignedData [20:45:12]SAM_PROTO_SignData [20:45:12]wFMCommunicate request_size=4 [20:45:12]MH_SAM_APDU [20:45:12]CAPDU: 80 0D 01 02 [20:45:12]Write to MH i2c: E2 08 00 19 04 80 0D 01 02 00 00 00 00 96 [20:45:12]Write i2c OK [20:45:12]MH_I2C_Read... [20:45:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:45:12]Read from MH i2c: E2 [20:45:12]MH_I2C_Read... [20:45:12]Read from MH i2c: E2 03 00 [20:45:12]MH_I2C_Read... [20:45:12]Read from MH i2c: E2 03 00 19 04 00 90 00 91 [20:45:12]RAPDU: 90 00 [20:45:12]wFMCommunicate OK [20:45:12]wFMCommunicate request_size=255 [20:45:12]MH_SAM_APDU [20:45: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 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 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 99 00 00 00 F4 03 04 00 D8 D7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F5 2A 01 00 35 04 06 00 F0 [20:45:12]Write to MH i2c: E2 02 01 1A 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 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 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 99 00 00 00 F4 03 04 00 D8 D7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F5 2A 01 00 35 04 06 00 F0 00 00 C6 [20:45:12]Write i2c OK [20:45:12]MH_I2C_Read... [20:45:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:12]Read from MH i2c: E2 [20:45:12]MH_I2C_Read... [20:45:12]Read from MH i2c: E2 03 00 [20:45:12]MH_I2C_Read... [20:45:12]Read from MH i2c: E2 03 00 1A 04 00 90 00 92 [20:45:12]RAPDU: 90 00 [20:45:12]wFMCommunicate OK [20:45:12]wFMCommunicate request_size=10 [20:45:12]MH_SAM_APDU [20:45:12]CAPDU: 80 0D 02 02 05 13 A7 6A 09 3B [20:45:12]Write to MH i2c: E2 0D 00 1B 04 80 0D 02 02 05 00 13 A7 6A 09 3B 00 00 0B [20:45:12]Write i2c OK [20:45:12]MH_I2C_Read... [20:45:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:12]Read from MH i2c: E2 [20:45:12]MH_I2C_Read... [20:45:12]Read from MH i2c: E2 03 00 [20:45:12]MH_I2C_Read... [20:45:12]Read from MH i2c: E2 03 00 1B 04 00 90 00 93 [20:45:12]RAPDU: 90 00 [20:45:12]wFMCommunicate OK [20:45:12]wFMCommunicate request_size=4 [20:45:12]MH_SAM_APDU [20:45:12]CAPDU: 80 0D 03 02 [20:45:12]Write to MH i2c: E2 08 00 1C 04 80 0D 03 02 00 00 00 00 9B [20:45:12]Write i2c OK [20:45:12]MH_I2C_Read... [20:45:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:45:13]Read from MH i2c: E2 [20:45:13]MH_I2C_Read... [20:45:13]Read from MH i2c: E2 0B 00 [20:45:13]MH_I2C_Read... [20:45:13]Read from MH i2c: E2 0B 00 1C 04 00 03 5C 05 8D 8E 09 66 7C 90 00 06 [20:45:13]RAPDU: 03 5C 05 8D 8E 09 66 7C 90 00 [20:45:13]wFMCommunicate OK [20:45:13]SAM_PROTO_SignData done [20:45:13]FM_MakeSignedData done [20:45:13]CreateOFDProtocolMessage [20:45:13]wFMCommunicate request_size=4 [20:45:13]MH_SAM_APDU [20:45:13]CAPDU: 80 11 00 00 [20:45:13]Write to MH i2c: E2 08 00 1D 04 80 11 00 00 00 00 00 00 9B [20:45:13]Write i2c OK [20:45:13]MH_I2C_Read... [20:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:13]Read from MH i2c: E2 [20:45:13]MH_I2C_Read... [20:45:13]Read from MH i2c: E2 17 00 [20:45:13]MH_I2C_Read... [20:45:13]Read from MH i2c: E2 17 00 1D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EE [20:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:45:13]wFMCommunicate OK [20:45:13]CreateOFDProtocolMessage done [20:45:13]OFDSenderStorePacket 76533 [20:45:13]StoreOFDPacket docnum=76533 [20:45:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 C8 FE 07 01 C8 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 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 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 99 00 00 00 F4 03 04 00 D8 D7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F5 2A 01 00 35 04 06 00 F0 13 A7 6A 09 3B 03 5C 05 8D 8E 09 66 7C [20:45:13]CheckFolder [20:45:13]dirname=/storage/ofd_packets [20:45:13]CheckFolder done [20:45:13]ProducePacketName [20:45:13]name=ofd_packets/00076533 [20:45:13]NVStorageSaveData ofd_packets/00076533 [20:45:13]File name is /storage/ofd_packets/00076533 [20:45:13]Write 301 bytes [20:45:13]NVStorageSaveData done [20:45:13]OFDSenderStorePacket done [20:45:13]KKMCreateOFDPacket done [20:45:13]NVStorageSaveData kkm_last_timestamp [20:45:13]File name is /storage/kkm_last_timestamp [20:45:13]Write 4 bytes [20:45:13]NVStorageSaveData done [20:45:13]ExternCall_PrintAddStr [20:45:13]wPrintStart [20:45:13]Write to MH i2c: 01 00 00 1E 04 22 [20:45:13]Write i2c OK [20:45:13]MH_I2C_Read... [20:45:13]Read from MH i2c: 01 [20:45:13]MH_I2C_Read... [20:45:13]Read from MH i2c: 01 07 00 [20:45:13]MH_I2C_Read... [20:45:13]Read from MH i2c: 01 07 00 1E 04 00 00 00 00 00 FF 0F 37 [20:45:13]RasterBufferAndPrint [20:45:13]line Счет N : (1)191027 [20:45:13]line ИНН: 02508201610067 [20:45:13]line Контрольно-Кассовый Чек [20:45:13]line ПРОДАЖА [20:45:13]line ТРК (МРК, ГНК) : 33 [20:45:13]line Товар: 2710124130 [20:45:13]line Аи-92-К-5 [20:45:13]line 9.320 * 64.40 [20:45:13]line = 600.21 [20:45:13]line НДС 12% НСП 1% [20:45:13]line > о реализуемом товаре [20:45:13]line ОКРУГЛЕНИЕ: -0.21 [20:45:13]line ИТОГО: 600.00 [20:45:13]line Внесено: 600.00 [20:45:13]line СДАЧА: 0.00 [20:45:13]line НСП 1% : 5.31 [20:45:13]line НДС 12% : 63.74 [20:45:13]line Наличными: 600.00 [20:45:13]line Безнал.: 0.00 [20:45:13]line Место: АЗС № 106 "Партнер Нефть" [20:45:13]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:45:13]line СНО: Общий режим [20:45:13]line Чек 153 19.04.2024 20:45 [20:45:13]line Смена: 370 ФФД: 1.0 [20:45:13]line ЗНМ: 0300000141 [20:45:13]line РНМ: 0000000000091573 [20:45:13]line Версия ККМ: 001 [20:45:13]line ФМ: 0000000000874652 [20:45:13]line ФД: 76533 [20:45:13]line ФПД: 263967203789115 [20:45:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T204512&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76533&fm=263967203789115&tin=02508201610067®Number=0000000000091573&sum=60000 [20:45:13]written 0, free lines is 4095 [20:45:13]OFD Sender: Processing packet 76533 [packets to send 128, broken 127] [20:45:13]ProducePacketName [20:45:13]name=ofd_packets/00076533 [20:45:13]OFD Sender: To server: pG, [20:45:13]CommunicateWithHost lk.salyk.kg:30040 [20:45:13]ConnectInit lk.salyk.kg [20:45:13]Connected sock=10 [20:45:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 C8 FE 07 01 C8 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 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 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 99 00 00 00 F4 03 04 00 D8 D7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F5 2A 01 00 35 04 06 00 F0 13 A7 6A 09 3B 03 5C 05 8D 8E 09 66 7C [20:45:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 19 91 47 00 33 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 34 36 35 32 10 04 04 00 F5 2A 01 00 F4 03 04 00 63 7F 22 66 B6 04 01 00 00 BC 4B 31 16 71 73 26 39 [20:45:13]CommunicateWithHost err = 0 [20:45:13]CheckOFDResponse [20:45:13]1017 (14) - 77093643461234 [20:45:13]1041 (16) - 0000000000874652 [20:45:13]1040 (4) - 76533 [20:45:13]1012 (4) - 19.04.2024 14:27 [20:45:13]1206 (1) - 0 [20:45:13]OFD Sender: Remove packet 76533 [20:45:13]ProducePacketName [20:45:13]name=ofd_packets/00076533 [20:45:13]NVStorageDeleteData [20:45:13]Write to MH i2c: 01 00 00 48 04 4C [20:45:13]Write i2c OK [20:45:13]MH_I2C_Read... [20:45:13]Read from MH i2c: 01 [20:45:13]MH_I2C_Read... [20:45:13]Read from MH i2c: 01 07 00 [20:45:13]MH_I2C_Read... [20:45:13]Read from MH i2c: 01 07 00 48 04 00 00 00 00 00 E3 0C 42 [20:45:13]RasterBufferAndPrint [20:45:13]line [20:45:13]line [20:45:13]line [20:45:13]line [20:45:13]line [20:45:13]written 0, free lines is 3307 [20:45:13]MH_Cut [20:45:13]Write to MH i2c: D1 01 00 4F 04 01 25 [20:45:13]Write i2c OK [20:45:13]MH_I2C_Read... [20:45:13]Read from MH i2c: D1 [20:45:13]MH_I2C_Read... [20:45:13]Read from MH i2c: D1 01 00 [20:45:13]MH_I2C_Read... [20:45:13]Read from MH i2c: D1 01 00 4F 04 00 24 [20:45:13]Write to MH i2c: 01 00 00 50 04 54 [20:45:13]Write i2c OK [20:45:13]MH_I2C_Read... [20:45:14]OFD Sender: No OFD packet to send [20:45:14]*** Cut start [20:45:14]*** Partial cut [20:45:14]*** CUTSNS_PIN = 1 [20:45:14]*** CUTSNS_PIN = 0 [20:45:14]*** Brake cut motor [20:45:15]Read from MH i2c: 01 [20:45:15]MH_I2C_Read... [20:45:15]*** Stop cut motor [20:45:15]*** Cut end [20:45:15]Read from MH i2c: 01 07 00 [20:45:15]MH_I2C_Read... [20:45:15]Read from MH i2c: 01 07 00 50 04 00 00 00 00 00 FF 0F 69 [20:45:15]process_action close_receipt done [20:45:15]requested_data is exist [20:45:15]produce_requested_data [20:45:15]requested_item fm.sn is exist - process it [20:45:15]wFMCommunicate request_size=4 [20:45:15]MH_SAM_APDU [20:45:15]CAPDU: 80 11 00 00 [20:45:15]Write to MH i2c: E2 08 00 51 04 80 11 00 00 00 00 00 00 CF [20:45:15]Write i2c OK [20:45:15]MH_I2C_Read... [20:45:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:15]Read from MH i2c: E2 [20:45:15]MH_I2C_Read... [20:45:15]Read from MH i2c: E2 17 00 [20:45:15]MH_I2C_Read... [20:45:15]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 34 36 35 32 90 00 22 [20:45:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:45:15]wFMCommunicate OK [20:45:15]requested_item fd.num is exist - process it [20:45:15]SAM_PROTO_GetFieldsCounters [20:45:15]wFMCommunicate request_size=4 [20:45:15]MH_SAM_APDU [20:45:15]CAPDU: 80 13 00 00 [20:45:15]Write to MH i2c: E2 08 00 52 04 80 13 00 00 00 00 00 00 D2 [20:45:15]Write i2c OK [20:45:15]MH_I2C_Read... [20:45:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:45:15]Read from MH i2c: E2 [20:45:15]MH_I2C_Read... [20:45:15]Read from MH i2c: E2 62 00 [20:45:15]MH_I2C_Read... [20:45:15]Read from MH i2c: E2 62 00 52 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F5 2A 01 00 0E 04 04 00 72 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 51 [20:45:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F5 2A 01 00 0E 04 04 00 72 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 [20:45:15]wFMCommunicate OK [20:45:15]SAM_PROTO_GetFieldsCounters done [20:45:15]requested_item shift.num is exist - process it [20:45:15]requested_item shift.opened is exist - process it [20:45:15]req_shift_opened [20:45:15]FM_GetShiftState [20:45:15]SAM_PROTO_GetShiftState [20:45:15]wFMCommunicate request_size=4 [20:45:15]MH_SAM_APDU [20:45:15]CAPDU: 80 13 01 00 [20:45:15]Write to MH i2c: E2 08 00 53 04 80 13 01 00 00 00 00 00 D4 [20:45:15]Write i2c OK [20:45:15]MH_I2C_Read... [20:45:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:15]Read from MH i2c: E2 [20:45:15]MH_I2C_Read... [20:45:15]Read from MH i2c: E2 0E 00 [20:45:15]MH_I2C_Read... [20:45:15]Read from MH i2c: E2 0E 00 53 04 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 B9 [20:45:15]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:45:15]wFMCommunicate OK [20:45:15]SAM_PROTO_GetShiftState done [20:45:15]FM_GetShiftState done [20:45:15]req_shift_opened done [20:45:15]requested_item shift.open_date is exist - process it [20:45:15]req_shift_open_date [20:45:15]req_shift_open_date done [20:45:15]produce_requested_data done [20:45:15]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76533,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [20:45:15]process_action_free close_receipt [20:45:15]json_value_free [20:45:15]json_value_free done [20:45:15]process_json_proto returns [20:45:15]Send response to host [20:45:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76533,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [20:45:15]free response buf [20:45:15]execute_script done [20:45:15]execute_script returns [20:45:15]free content buf [20:45:15]Sock 9.Close socket [20:45:15]Sock 9.Thread stoped [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:24]OFD Sender: No OFD packet to send [20:47:29]OFD Sender: No OFD packet to send [20:47:34]OFD Sender: No OFD packet to send [20:47:39]OFD Sender: No OFD packet to send [20:47:44]OFD Sender: No OFD packet to send [20:47:49]OFD Sender: No OFD packet to send [20:47:54]OFD Sender: No OFD packet to send [20:47:59]OFD Sender: No OFD packet to send [20:48:04]OFD Sender: No OFD packet to send [20:48:09]OFD Sender: No OFD packet to send [20:48:14]OFD Sender: No OFD packet to send [20:48:19]OFD Sender: No OFD packet to send [20:48:24]OFD Sender: No OFD packet to send [20:48:29]OFD Sender: No OFD packet to send [20:48:34]OFD Sender: No OFD packet to send [20:48:39]OFD Sender: No OFD packet to send [20:48:44]OFD Sender: No OFD packet to send [20:48:49]OFD Sender: No OFD packet to send [20:48:54]OFD Sender: No OFD packet to send [20:48:59]OFD Sender: No OFD packet to send [20:49:04]OFD Sender: No OFD packet to send [20:49:09]OFD Sender: No OFD packet to send [20:49:14]OFD Sender: No OFD packet to send [20:49:19]OFD Sender: No OFD packet to send [20:49:24]OFD Sender: No OFD packet to send [20:49:29]OFD Sender: No OFD packet to send [20:49:34]OFD Sender: No OFD packet to send [20:49:39]OFD Sender: No OFD packet to send [20:49:44]OFD Sender: No OFD packet to send [20:49:49]OFD Sender: No OFD packet to send [20:49:54]OFD Sender: No OFD packet to send [20:49:59]OFD Sender: No OFD packet to send [20:50:04]OFD Sender: No OFD packet to send [20:50:09]OFD Sender: No OFD packet to send [20:50:14]OFD Sender: No OFD packet to send [20:50:19]OFD Sender: No OFD packet to send [20:50:24]OFD Sender: No OFD packet to send [20:50:29]OFD Sender: No OFD packet to send [20:50:34]OFD Sender: No OFD packet to send [20:50:39]OFD Sender: No OFD packet to send [20:50:44]OFD Sender: No OFD packet to send [20:50:49]OFD Sender: No OFD packet to send [20:50:54]OFD Sender: No OFD packet to send [20:50:59]OFD Sender: No OFD packet to send [20:51:04]OFD Sender: No OFD packet to send [20:51:09]OFD Sender: No OFD packet to send [20:51:14]OFD Sender: No OFD packet to send [20:51:19]OFD Sender: No OFD packet to send [20:51:24]OFD Sender: No OFD packet to send [20:51:29]OFD Sender: No OFD packet to send [20:51:34]OFD Sender: No OFD packet to send [20:51:39]OFD Sender: No OFD packet to send [20:51:44]OFD Sender: No OFD packet to send [20:51:49]OFD Sender: No OFD packet to send [20:51:54]OFD Sender: No OFD packet to send [20:51:59]OFD Sender: No OFD packet to send [20:52:04]OFD Sender: No OFD packet to send [20:52:09]OFD Sender: No OFD packet to send [20:52:14]OFD Sender: No OFD packet to send [20:52:19]OFD Sender: No OFD packet to send [20:52:24]OFD Sender: No OFD packet to send [20:52:29]OFD Sender: No OFD packet to send [20:52:34]OFD Sender: No OFD packet to send [20:52:39]OFD Sender: No OFD packet to send [20:52:44]OFD Sender: No OFD packet to send [20:52:49]OFD Sender: No OFD packet to send [20:52:54]OFD Sender: No OFD packet to send [20:52:59]OFD Sender: No OFD packet to send [20:53:04]OFD Sender: No OFD packet to send [20:53:09]OFD Sender: No OFD packet to send [20:53:14]OFD Sender: No OFD packet to send [20:53:19]OFD Sender: No OFD packet to send [20:53:24]OFD Sender: No OFD packet to send [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:39]OFD Sender: No OFD packet to send [20:55:44]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]OFD Sender: No OFD packet to send [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:15]OFD Sender: No OFD packet to send [20:56:20]OFD Sender: No OFD packet to send [20:56:25]OFD Sender: No OFD packet to send [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:40]OFD Sender: No OFD packet to send [20:56:45]OFD Sender: No OFD packet to send [20:56:50]OFD Sender: No OFD packet to send [20:56:55]OFD Sender: No OFD packet to send [20:57:00]OFD Sender: No OFD packet to send [20:57:05]OFD Sender: No OFD packet to send [20:57:10]OFD Sender: No OFD packet to send [20:57:15]OFD Sender: No OFD packet to send [20:57:20]OFD Sender: No OFD packet to send [20:57:25]OFD Sender: No OFD packet to send [20:57:30]OFD Sender: No OFD packet to send [20:57:35]OFD Sender: No OFD packet to send [20:57:35]accept exits with 8 [20:57:35]New connection [20:57:35]New thread 3066735972 created [20:57:35]Thread 3066592612 joined [20:57:35]Waiting for new connection... [20:57:35] Sock 8.Parse request [20:57:35]Sock 8.Check first char [20:57:35]Sock 8.First char is OK [20:57:35]request: POST /json_proto HTTP/1.0 [20:57:35]Method: POST [20:57:35]URL: /json_proto [20:57:35]Method is POST - this is cgi request [20:57:35]url: /json_proto [20:57:35]query_string will be loaded in cgi processing [20:57:35]execute_cgi json_proto POST (null) [20:57:35]execute_cgi path=json_proto method=POST [20:57:35]POST find Content-Length [20:57:35]Host: 172.17.62.5:8080 [20:57:35]Content-Length: 671 [20:57:35]Content-Type: application/json [20:57:35] [20:57:35]POST finish read [20:57:35]Found Content-Length = 671 [20:57:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 10.710, "sum" : 700.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:35]execute_script... [20:57: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)191028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 10.710, "sum" : 700.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:35]POST & json_proto [20:57:35]process_json_proto [20:57:35]json parsed OK: [20:57:35]protocol is kg_v1.0 [20:57:35]action value=close_receipt [20:57:35]process_action close_receipt [20:57:35]cmd_close_receipt [20:57:35]MH_GetDate [20:57:35]Write to MH i2c: F0 00 00 54 04 47 [20:57:35]Write i2c OK [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: F0 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: F0 09 00 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: F0 09 00 54 04 00 C0 DA 22 66 F4 E9 65 64 18 [20:57:35]GetLastDocTimeStamp 1713559512 [20:57:35]current date 1713560256 [20:57:35]FM_GetShiftState [20:57:35]SAM_PROTO_GetShiftState [20:57:35]wFMCommunicate request_size=4 [20:57:35]MH_SAM_APDU [20:57:35]CAPDU: 80 13 01 00 [20:57:35]Write to MH i2c: E2 08 00 55 04 80 13 01 00 00 00 00 00 D6 [20:57:35]Write i2c OK [20:57:35]MH_I2C_Read... [20:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:35]Read from MH i2c: E2 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: E2 0E 00 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: E2 0E 00 55 04 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 BB [20:57:35]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:57:35]wFMCommunicate OK [20:57:35]SAM_PROTO_GetShiftState done [20:57:35]FM_GetShiftState done [20:57:35]opened in 1713486233 [20:57:35]opened+sec_in_day 1713572633 [20:57:35]quantity*price = 70043 [20:57:35]sum+1 = 70044 [20:57:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 154 19.04.2024 20:57 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76534 ФПД: 181173845661774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T205736&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76534&fm=181173845661774&tin=02508201610067®Number=0000000000091573&sum=70000 [20:57:36]StoreToDocumentArchive [20:57:36]shift 370 fd 76534 [20:57:36]save to /storage/0370/doc_00076534 [20:57:36]save last doc name /storage/0370/doc_00076534 to /storage/kkm_last_doc_name [20:57:36]save OK [20:57:36]Clear old archive folders... [20:57:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:57:36]tlvbuf is 01627520 [20:57:36]SAM_PROTO_ClearQueue [20:57:36]wFMCommunicate request_size=4 [20:57:36]MH_SAM_APDU [20:57:36]CAPDU: 80 09 00 00 [20:57:36]Write to MH i2c: E2 08 00 62 04 80 09 00 00 00 00 00 00 D8 [20:57:36]Write i2c OK [20:57:36]MH_I2C_Read... [20:57:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:36]Read from MH i2c: E2 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 03 00 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 03 00 62 04 00 90 00 DA [20:57:36]RAPDU: 90 00 [20:57:36]wFMCommunicate OK [20:57:36]SAM_PROTO_ClearQueue done [20:57:36]KKMCreateOFDPacket [20:57:36]OFDProtocolAddRootSTLVToBuf [20:57:36]FM_MakeSignedData [20:57:36]FM_MakeSignedData [20:57:36]SAM_PROTO_SignData [20:57:36]wFMCommunicate request_size=4 [20:57:36]MH_SAM_APDU [20:57:36]CAPDU: 80 0D 01 02 [20:57:36]Write to MH i2c: E2 08 00 63 04 80 0D 01 02 00 00 00 00 E0 [20:57:36]Write i2c OK [20:57:36]MH_I2C_Read... [20:57:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:36]Read from MH i2c: E2 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 03 00 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 03 00 63 04 00 90 00 DB [20:57:36]RAPDU: 90 00 [20:57:36]wFMCommunicate OK [20:57:36]wFMCommunicate request_size=255 [20:57:36]MH_SAM_APDU [20:57:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 D6 29 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 9B 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 9A 00 00 00 F4 03 04 00 C0 DA 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F6 2A 01 00 35 04 06 00 [20:57:36]Write to MH i2c: E2 02 01 64 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 9B 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 9A 00 00 00 F4 03 04 00 C0 DA 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F6 2A 01 00 35 04 06 00 00 00 C5 [20:57:36]Write i2c OK [20:57:36]MH_I2C_Read... [20:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:36]Read from MH i2c: E2 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 03 00 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 03 00 64 04 00 90 00 DC [20:57:36]RAPDU: 90 00 [20:57:36]wFMCommunicate OK [20:57:36]wFMCommunicate request_size=11 [20:57:36]MH_SAM_APDU [20:57:36]CAPDU: 80 0D 02 02 06 A4 C6 D2 B6 98 4E [20:57:36]Write to MH i2c: E2 0E 00 65 04 80 0D 02 02 06 00 A4 C6 D2 B6 98 4E 00 00 C7 [20:57:36]Write i2c OK [20:57:36]MH_I2C_Read... [20:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:36]Read from MH i2c: E2 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 03 00 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 03 00 65 04 00 90 00 DD [20:57:36]RAPDU: 90 00 [20:57:36]wFMCommunicate OK [20:57:36]wFMCommunicate request_size=4 [20:57:36]MH_SAM_APDU [20:57:36]CAPDU: 80 0D 03 02 [20:57:36]Write to MH i2c: E2 08 00 66 04 80 0D 03 02 00 00 00 00 E5 [20:57:36]Write i2c OK [20:57:36]MH_I2C_Read... [20:57:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:36]Read from MH i2c: E2 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 0B 00 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 0B 00 66 04 00 33 5B 49 E0 20 6B AB CD 90 00 A0 [20:57:36]RAPDU: 33 5B 49 E0 20 6B AB CD 90 00 [20:57:36]wFMCommunicate OK [20:57:36]SAM_PROTO_SignData done [20:57:36]FM_MakeSignedData done [20:57:36]CreateOFDProtocolMessage [20:57:36]wFMCommunicate request_size=4 [20:57:36]MH_SAM_APDU [20:57:36]CAPDU: 80 11 00 00 [20:57:36]Write to MH i2c: E2 08 00 67 04 80 11 00 00 00 00 00 00 E5 [20:57:36]Write i2c OK [20:57:36]MH_I2C_Read... [20:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:36]Read from MH i2c: E2 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 17 00 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 17 00 67 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 38 [20:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:57:36]wFMCommunicate OK [20:57:36]CreateOFDProtocolMessage done [20:57:36]OFDSenderStorePacket 76534 [20:57:36]StoreOFDPacket docnum=76534 [20:57:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 B5 9A 08 01 28 D5 5A 03 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 D6 29 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 9B 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 9A 00 00 00 F4 03 04 00 C0 DA 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F6 2A 01 00 35 04 06 00 A4 C6 D2 B6 98 4E 33 5B 49 E0 20 6B AB CD [20:57:36]CheckFolder [20:57:36]dirname=/storage/ofd_packets [20:57:36]CheckFolder done [20:57:36]ProducePacketName [20:57:36]name=ofd_packets/00076534 [20:57:36]NVStorageSaveData ofd_packets/00076534 [20:57:36]File name is /storage/ofd_packets/00076534 [20:57:36]Write 302 bytes [20:57:36]NVStorageSaveData done [20:57:36]OFDSenderStorePacket done [20:57:36]KKMCreateOFDPacket done [20:57:36]NVStorageSaveData kkm_last_timestamp [20:57:36]File name is /storage/kkm_last_timestamp [20:57:36]Write 4 bytes [20:57:36]NVStorageSaveData done [20:57:36]ExternCall_PrintAddStr [20:57:36]wPrintStart [20:57:36]Write to MH i2c: 01 00 00 68 04 6C [20:57:36]Write i2c OK [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: 01 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: 01 07 00 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: 01 07 00 68 04 00 00 00 00 00 FF 0F 81 [20:57:36]RasterBufferAndPrint [20:57:36]line Счет N : (1)191028 [20:57:36]line ИНН: 02508201610067 [20:57:36]line Контрольно-Кассовый Чек [20:57:36]line ПРОДАЖА [20:57:36]line ТРК (МРК, ГНК) : 41 [20:57:36]line Товар: 2710124130 [20:57:36]line SUPER 92-К-5 [20:57:36]line 10.710 * 65.40 [20:57:36]line = 700.43 [20:57:36]line НДС 12% НСП 1% [20:57:36]line > о реализуемом товаре [20:57:36]line ОКРУГЛЕНИЕ: -0.43 [20:57:36]line ИТОГО: 700.00 [20:57:36]line Внесено: 700.00 [20:57:36]line СДАЧА: 0.00 [20:57:36]line НСП 1% : 6.20 [20:57:36]line НДС 12% : 74.38 [20:57:36]line Наличными: 700.00 [20:57:36]line Безнал.: 0.00 [20:57:36]line Место: АЗС № 106 "Партнер Нефть" [20:57:36]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [20:57:36]line СНО: Общий режим [20:57:36]line Чек 154 19.04.2024 20:57 [20:57:36]line Смена: 370 ФФД: 1.0 [20:57:36]line ЗНМ: 0300000141 [20:57:36]line РНМ: 0000000000091573 [20:57:36]line Версия ККМ: 001 [20:57:36]line ФМ: 0000000000874652 [20:57:36]line ФД: 76534 [20:57:36]line ФПД: 181173845661774 [20:57:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T205736&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76534&fm=181173845661774&tin=02508201610067®Number=0000000000091573&sum=70000 [20:57:37]written 0, free lines is 4095 [20:57:37]OFD Sender: Processing packet 76534 [packets to send 128, broken 127] [20:57:37]ProducePacketName [20:57:37]name=ofd_packets/00076534 [20:57:37]OFD Sender: To server: pG, [20:57:37]CommunicateWithHost lk.salyk.kg:30040 [20:57:37]ConnectInit lk.salyk.kg [20:57:37]Connected sock=10 [20:57:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 B5 9A 08 01 28 D5 5A 03 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 D6 29 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 9B 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 9A 00 00 00 F4 03 04 00 C0 DA 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F6 2A 01 00 35 04 06 00 A4 C6 D2 B6 98 4E 33 5B 49 E0 20 6B AB CD [20:57:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 00 CF 47 00 B1 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F6 2A 01 00 F4 03 04 00 4A 82 22 66 B6 04 01 00 00 BE F3 38 8A A6 02 F0 29 [20:57:37]CommunicateWithHost err = 0 [20:57:37]CheckOFDResponse [20:57:37]1017 (14) - 77093643461234 [20:57:37]1041 (16) - 0000000000874652 [20:57:37]1040 (4) - 76534 [20:57:37]1012 (4) - 19.04.2024 14:40 [20:57:37]1206 (1) - 0 [20:57:37]OFD Sender: Remove packet 76534 [20:57:37]ProducePacketName [20:57:37]name=ofd_packets/00076534 [20:57:37]NVStorageDeleteData [20:57:37]Write to MH i2c: 01 00 00 92 04 96 [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: 01 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: 01 07 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: 01 07 00 92 04 00 00 00 00 00 EB 0C 94 [20:57:37]RasterBufferAndPrint [20:57:37]line [20:57:37]line [20:57:37]line [20:57:37]line [20:57:37]line [20:57:37]written 0, free lines is 3313 [20:57:37]MH_Cut [20:57:37]Write to MH i2c: D1 01 00 99 04 01 6F [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: D1 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: D1 01 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: D1 01 00 99 04 00 6E [20:57:37]Write to MH i2c: 01 00 00 9A 04 9E [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:38]OFD Sender: No OFD packet to send [20:57:38]*** Cut start [20:57:38]*** Partial cut [20:57:38]*** CUTSNS_PIN = 1 [20:57:38]*** CUTSNS_PIN = 0 [20:57:38]*** Brake cut motor [20:57:39]Read from MH i2c: 01 [20:57:39]MH_I2C_Read... [20:57:39]*** Stop cut motor [20:57:39]*** Cut end [20:57:39]Read from MH i2c: 01 07 00 [20:57:39]MH_I2C_Read... [20:57:39]Read from MH i2c: 01 07 00 9A 04 00 00 00 00 00 FF 0F B3 [20:57:39]process_action close_receipt done [20:57:39]requested_data is exist [20:57:39]produce_requested_data [20:57:39]requested_item fm.sn is exist - process it [20:57:39]wFMCommunicate request_size=4 [20:57:39]MH_SAM_APDU [20:57:39]CAPDU: 80 11 00 00 [20:57:39]Write to MH i2c: E2 08 00 9B 04 80 11 00 00 00 00 00 00 19 [20:57:39]Write i2c OK [20:57:39]MH_I2C_Read... [20:57:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:39]Read from MH i2c: E2 [20:57:39]MH_I2C_Read... [20:57:39]Read from MH i2c: E2 17 00 [20:57:39]MH_I2C_Read... [20:57:39]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 34 36 35 32 90 00 6C [20:57:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [20:57:39]wFMCommunicate OK [20:57:39]requested_item fd.num is exist - process it [20:57:39]SAM_PROTO_GetFieldsCounters [20:57:39]wFMCommunicate request_size=4 [20:57:39]MH_SAM_APDU [20:57:39]CAPDU: 80 13 00 00 [20:57:39]Write to MH i2c: E2 08 00 9C 04 80 13 00 00 00 00 00 00 1C [20:57:39]Write i2c OK [20:57:39]MH_I2C_Read... [20:57:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:39]Read from MH i2c: E2 [20:57:39]MH_I2C_Read... [20:57:39]Read from MH i2c: E2 62 00 [20:57:39]MH_I2C_Read... [20:57:39]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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F6 2A 01 00 0E 04 04 00 72 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 9F [20:57:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F6 2A 01 00 0E 04 04 00 72 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 [20:57:39]wFMCommunicate OK [20:57:39]SAM_PROTO_GetFieldsCounters done [20:57:39]requested_item shift.num is exist - process it [20:57:39]requested_item shift.opened is exist - process it [20:57:39]req_shift_opened [20:57:39]FM_GetShiftState [20:57:39]SAM_PROTO_GetShiftState [20:57:39]wFMCommunicate request_size=4 [20:57:39]MH_SAM_APDU [20:57:39]CAPDU: 80 13 01 00 [20:57:39]Write to MH i2c: E2 08 00 9D 04 80 13 01 00 00 00 00 00 1E [20:57:39]Write i2c OK [20:57:39]MH_I2C_Read... [20:57:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:39]Read from MH i2c: E2 [20:57:39]MH_I2C_Read... [20:57:39]Read from MH i2c: E2 0E 00 [20:57:39]MH_I2C_Read... [20:57:39]Read from MH i2c: E2 0E 00 9D 04 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 03 [20:57:39]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [20:57:39]wFMCommunicate OK [20:57:39]SAM_PROTO_GetShiftState done [20:57:39]FM_GetShiftState done [20:57:39]req_shift_opened done [20:57:39]requested_item shift.open_date is exist - process it [20:57:39]req_shift_open_date [20:57:39]req_shift_open_date done [20:57:39]produce_requested_data done [20:57:39]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76534,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [20:57:39]process_action_free close_receipt [20:57:39]json_value_free [20:57:39]json_value_free done [20:57:39]process_json_proto returns [20:57:39]Send response to host [20:57:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76534,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [20:57:39]free response buf [20:57:39]execute_script done [20:57:39]execute_script returns [20:57:39]free content buf [20:57:39]Sock 8.Close socket [20:57:39]Sock 8.Thread stoped [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:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:34]recv_with_timeout no data received [21:07:38]OFD Sender: No OFD packet to send [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:50]accept exits with 9 [21:08:50]New connection [21:08:50]New thread 3066592612 created [21:08:50]Thread 3066735972 joined [21:08:50]Waiting for new connection... [21:08:50] Sock 9.Parse request [21:08:50]Sock 9.Check first char [21:08:50]Sock 9.First char is OK [21:08:50]request: POST /json_proto HTTP/1.0 [21:08:50]Method: POST [21:08:50]URL: /json_proto [21:08:50]Method is POST - this is cgi request [21:08:50]url: /json_proto [21:08:50]query_string will be loaded in cgi processing [21:08:50]execute_cgi json_proto POST (null) [21:08:50]execute_cgi path=json_proto method=POST [21:08:50]POST find Content-Length [21:08:50]Host: 172.17.62.5:8080 [21:08:50]Content-Length: 678 [21:08:50]Content-Type: application/json [21:08:50] [21:08:50]POST finish read [21:08:50]Found Content-Length = 678 [21:08:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 12.430, "sum" : 800.49, "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:08:50]execute_script... [21: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)191029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 12.430, "sum" : 800.49, "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:08:50]POST & json_proto [21:08:50]process_json_proto [21:08:50]json parsed OK: [21:08:50]protocol is kg_v1.0 [21:08:50]action value=close_receipt [21:08:50]process_action close_receipt [21:08:50]cmd_close_receipt [21:08:50]MH_GetDate [21:08:50]Write to MH i2c: F0 00 00 9E 04 91 [21:08:50]Write i2c OK [21:08:50]MH_I2C_Read... [21:08:50]Read from MH i2c: F0 [21:08:50]MH_I2C_Read... [21:08:50]Read from MH i2c: F0 09 00 [21:08:50]MH_I2C_Read... [21:08:50]Read from MH i2c: F0 09 00 9E 04 00 63 DD 22 66 F4 E9 65 64 08 [21:08:50]GetLastDocTimeStamp 1713560256 [21:08:50]current date 1713560931 [21:08:50]FM_GetShiftState [21:08:50]SAM_PROTO_GetShiftState [21:08:50]wFMCommunicate request_size=4 [21:08:50]MH_SAM_APDU [21:08:50]CAPDU: 80 13 01 00 [21:08:50]Write to MH i2c: E2 08 00 9F 04 80 13 01 00 00 00 00 00 20 [21:08:50]Write i2c OK [21:08:50]MH_I2C_Read... [21:08:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:50]Read from MH i2c: E2 [21:08:50]MH_I2C_Read... [21:08:50]Read from MH i2c: E2 0E 00 [21:08:50]MH_I2C_Read... [21:08:50]Read from MH i2c: E2 0E 00 9F 04 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 05 [21:08:50]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [21:08:50]wFMCommunicate OK [21:08:50]SAM_PROTO_GetShiftState done [21:08:50]FM_GetShiftState done [21:08:50]opened in 1713486233 [21:08:50]opened+sec_in_day 1713572633 [21:08:50]quantity*price = 80049 [21:08:50]sum+1 = 80050 [21:08:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 155 19.04.2024 21:08 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76535 ФПД: 161961265802217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T210851&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76535&fm=161961265802217&tin=02508201610067®Number=0000000000091573&sum=80000 [21:08:51]StoreToDocumentArchive [21:08:51]shift 370 fd 76535 [21:08:51]save to /storage/0370/doc_00076535 [21:08:51]save last doc name /storage/0370/doc_00076535 to /storage/kkm_last_doc_name [21:08:51]save OK [21:08:51]Clear old archive folders... [21:08:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:08:51]tlvbuf is 01633200 [21:08:51]SAM_PROTO_ClearQueue [21:08:51]wFMCommunicate request_size=4 [21:08:51]MH_SAM_APDU [21:08:51]CAPDU: 80 09 00 00 [21:08:51]Write to MH i2c: E2 08 00 AC 04 80 09 00 00 00 00 00 00 22 [21:08:51]Write i2c OK [21:08:51]MH_I2C_Read... [21:08:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:51]Read from MH i2c: E2 [21:08:51]MH_I2C_Read... [21:08:51]Read from MH i2c: E2 03 00 [21:08:51]MH_I2C_Read... [21:08:51]Read from MH i2c: E2 03 00 AC 04 00 90 00 24 [21:08:51]RAPDU: 90 00 [21:08:51]wFMCommunicate OK [21:08:51]SAM_PROTO_ClearQueue done [21:08:51]KKMCreateOFDPacket [21:08:51]OFDProtocolAddRootSTLVToBuf [21:08:51]FM_MakeSignedData [21:08:51]FM_MakeSignedData [21:08:51]SAM_PROTO_SignData [21:08:51]wFMCommunicate request_size=4 [21:08:51]MH_SAM_APDU [21:08:51]CAPDU: 80 0D 01 02 [21:08:51]Write to MH i2c: E2 08 00 AD 04 80 0D 01 02 00 00 00 00 2A [21:08:51]Write i2c OK [21:08:51]MH_I2C_Read... [21:08:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:51]Read from MH i2c: E2 [21:08:51]MH_I2C_Read... [21:08:51]Read from MH i2c: E2 03 00 [21:08:51]MH_I2C_Read... [21:08:51]Read from MH i2c: E2 03 00 AD 04 00 90 00 25 [21:08:51]RAPDU: 90 00 [21:08:51]wFMCommunicate OK [21:08:51]wFMCommunicate request_size=255 [21:08:51]MH_SAM_APDU [21:08: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 8E 30 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 B1 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 9B 00 00 00 F4 03 04 00 63 DD 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F7 2A 01 00 35 04 06 00 93 [21:08:51]Write to MH i2c: E2 02 01 AE 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 8E 30 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 B1 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 9B 00 00 00 F4 03 04 00 63 DD 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F7 2A 01 00 35 04 06 00 93 00 00 36 [21:08:51]Write i2c OK [21:08:51]MH_I2C_Read... [21:08:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:52]Read from MH i2c: E2 [21:08:52]MH_I2C_Read... [21:08:52]Read from MH i2c: E2 03 00 [21:08:52]MH_I2C_Read... [21:08:52]Read from MH i2c: E2 03 00 AE 04 00 90 00 26 [21:08:52]RAPDU: 90 00 [21:08:52]wFMCommunicate OK [21:08:52]wFMCommunicate request_size=10 [21:08:52]MH_SAM_APDU [21:08:52]CAPDU: 80 0D 02 02 05 4D 8B B7 2B E9 [21:08:52]Write to MH i2c: E2 0D 00 AF 04 80 0D 02 02 05 00 4D 8B B7 2B E9 00 00 DA [21:08:52]Write i2c OK [21:08:52]MH_I2C_Read... [21:08:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:52]Read from MH i2c: E2 [21:08:52]MH_I2C_Read... [21:08:52]Read from MH i2c: E2 03 00 [21:08:52]MH_I2C_Read... [21:08:52]Read from MH i2c: E2 03 00 AF 04 00 90 00 27 [21:08:52]RAPDU: 90 00 [21:08:52]wFMCommunicate OK [21:08:52]wFMCommunicate request_size=4 [21:08:52]MH_SAM_APDU [21:08:52]CAPDU: 80 0D 03 02 [21:08:52]Write to MH i2c: E2 08 00 B0 04 80 0D 03 02 00 00 00 00 2F [21:08:52]Write i2c OK [21:08:52]MH_I2C_Read... [21:08:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:52]Read from MH i2c: E2 [21:08:52]MH_I2C_Read... [21:08:52]Read from MH i2c: E2 0B 00 [21:08:52]MH_I2C_Read... [21:08:52]Read from MH i2c: E2 0B 00 B0 04 00 57 9B 0E C5 13 13 88 43 90 00 E6 [21:08:52]RAPDU: 57 9B 0E C5 13 13 88 43 90 00 [21:08:52]wFMCommunicate OK [21:08:52]SAM_PROTO_SignData done [21:08:52]FM_MakeSignedData done [21:08:52]CreateOFDProtocolMessage [21:08:52]wFMCommunicate request_size=4 [21:08:52]MH_SAM_APDU [21:08:52]CAPDU: 80 11 00 00 [21:08:52]Write to MH i2c: E2 08 00 B1 04 80 11 00 00 00 00 00 00 2F [21:08:52]Write i2c OK [21:08:52]MH_I2C_Read... [21:08:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:52]Read from MH i2c: E2 [21:08:52]MH_I2C_Read... [21:08:52]Read from MH i2c: E2 17 00 [21:08:52]MH_I2C_Read... [21:08:52]Read from MH i2c: E2 17 00 B1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 82 [21:08:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:08:52]wFMCommunicate OK [21:08:52]CreateOFDProtocolMessage done [21:08:52]OFDSenderStorePacket 76535 [21:08:52]StoreOFDPacket docnum=76535 [21:08:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 A2 B9 07 01 38 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 8E 30 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 B1 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 9B 00 00 00 F4 03 04 00 63 DD 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F7 2A 01 00 35 04 06 00 93 4D 8B B7 2B E9 57 9B 0E C5 13 13 88 43 [21:08:52]CheckFolder [21:08:52]dirname=/storage/ofd_packets [21:08:52]CheckFolder done [21:08:52]ProducePacketName [21:08:52]name=ofd_packets/00076535 [21:08:52]NVStorageSaveData ofd_packets/00076535 [21:08:52]File name is /storage/ofd_packets/00076535 [21:08:52]Write 301 bytes [21:08:52]NVStorageSaveData done [21:08:52]OFDSenderStorePacket done [21:08:52]KKMCreateOFDPacket done [21:08:52]NVStorageSaveData kkm_last_timestamp [21:08:52]File name is /storage/kkm_last_timestamp [21:08:52]Write 4 bytes [21:08:52]NVStorageSaveData done [21:08:52]ExternCall_PrintAddStr [21:08:52]wPrintStart [21:08:52]Write to MH i2c: 01 00 00 B2 04 B6 [21:08:52]Write i2c OK [21:08:52]MH_I2C_Read... [21:08:52]Read from MH i2c: 01 [21:08:52]MH_I2C_Read... [21:08:52]Read from MH i2c: 01 07 00 [21:08:52]MH_I2C_Read... [21:08:52]Read from MH i2c: 01 07 00 B2 04 00 00 00 00 00 FF 0F CB [21:08:52]RasterBufferAndPrint [21:08:52]line Счет N : (1)191029 [21:08:52]line ИНН: 02508201610067 [21:08:52]line Контрольно-Кассовый Чек [21:08:52]line ПРОДАЖА [21:08:52]line ТРК (МРК, ГНК) : 43 [21:08:52]line Товар: 2710124130 [21:08:52]line Аи-92-К-5 [21:08:52]line 12.430 * 64.40 [21:08:52]line = 800.49 [21:08:52]line НДС 12% НСП 1% [21:08:52]line > о реализуемом товаре [21:08:52]line ОКРУГЛЕНИЕ: -0.49 [21:08:52]line ИТОГО: 800.00 [21:08:52]line Внесено: 800.00 [21:08:52]line СДАЧА: 0.00 [21:08:52]line НСП 1% : 7.08 [21:08:52]line НДС 12% : 85.01 [21:08:52]line Наличными: 800.00 [21:08:52]line Безнал.: 0.00 [21:08:52]line Место: АЗС № 106 "Партнер Нефть" [21:08:52]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:08:52]line СНО: Общий режим [21:08:52]line Чек 155 19.04.2024 21:08 [21:08:52]line Смена: 370 ФФД: 1.0 [21:08:52]line ЗНМ: 0300000141 [21:08:52]line РНМ: 0000000000091573 [21:08:52]line Версия ККМ: 001 [21:08:52]line ФМ: 0000000000874652 [21:08:52]line ФД: 76535 [21:08:52]line ФПД: 161961265802217 [21:08:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T210851&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76535&fm=161961265802217&tin=02508201610067®Number=0000000000091573&sum=80000 [21:08:52]OFD Sender: Processing packet 76535 [packets to send 128, broken 127] [21:08:52]ProducePacketName [21:08:52]name=ofd_packets/00076535 [21:08:52]OFD Sender: To server: pG, [21:08:52]CommunicateWithHost lk.salyk.kg:30040 [21:08:52]ConnectInit lk.salyk.kg [21:08:52]written 0, free lines is 4095 [21:08:52]Connected sock=10 [21: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 34 36 35 32 0F 01 00 00 A2 B9 07 01 38 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 8E 30 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 B1 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 9B 00 00 00 F4 03 04 00 63 DD 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F7 2A 01 00 35 04 06 00 93 4D 8B B7 2B E9 57 9B 0E C5 13 13 88 43 [21:08:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 25 B9 47 00 A6 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F7 2A 01 00 F4 03 04 00 EE 84 22 66 B6 04 01 00 00 F8 AD EF D9 12 F1 C3 AE [21:08:53]CommunicateWithHost err = 0 [21:08:53]CheckOFDResponse [21:08:53]1017 (14) - 77093643461234 [21:08:53]1041 (16) - 0000000000874652 [21:08:53]1040 (4) - 76535 [21:08:53]1012 (4) - 19.04.2024 14:51 [21:08:53]1206 (1) - 0 [21:08:53]OFD Sender: Remove packet 76535 [21:08:53]ProducePacketName [21:08:53]name=ofd_packets/00076535 [21:08:53]NVStorageDeleteData [21:08:53]Write to MH i2c: 01 00 00 DC 04 E0 [21:08:53]Write i2c OK [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: 01 [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: 01 07 00 [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: 01 07 00 DC 04 00 00 00 00 00 F4 0C E7 [21:08:53]RasterBufferAndPrint [21:08:53]line [21:08:53]line [21:08:53]line [21:08:53]line [21:08:53]line [21:08:53]written 0, free lines is 3323 [21:08:53]MH_Cut [21:08:53]Write to MH i2c: D1 01 00 E3 04 01 B9 [21:08:53]Write i2c OK [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: D1 [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: D1 01 00 [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: D1 01 00 E3 04 00 B8 [21:08:53]Write to MH i2c: 01 00 00 E4 04 E8 [21:08:53]Write i2c OK [21:08:53]MH_I2C_Read... [21:08:53]OFD Sender: No OFD packet to send [21:08:53]*** Cut start [21:08:53]*** Partial cut [21:08:53]*** CUTSNS_PIN = 1 [21:08:53]*** CUTSNS_PIN = 0 [21:08:54]*** Brake cut motor [21:08:54]Read from MH i2c: 01 [21:08:54]MH_I2C_Read... [21:08:54]*** Stop cut motor [21:08:54]*** Cut end [21:08:54]Read from MH i2c: 01 07 00 [21:08:54]MH_I2C_Read... [21:08:54]Read from MH i2c: 01 07 00 E4 04 00 00 00 00 00 FF 0F FD [21:08:54]process_action close_receipt done [21:08:54]requested_data is exist [21:08:54]produce_requested_data [21:08:54]requested_item fm.sn is exist - process it [21:08:54]wFMCommunicate request_size=4 [21:08:54]MH_SAM_APDU [21:08:54]CAPDU: 80 11 00 00 [21:08:54]Write to MH i2c: E2 08 00 E5 04 80 11 00 00 00 00 00 00 63 [21:08:54]Write i2c OK [21:08:54]MH_I2C_Read... [21:08:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:54]Read from MH i2c: E2 [21:08:54]MH_I2C_Read... [21:08:54]Read from MH i2c: E2 17 00 [21:08:54]MH_I2C_Read... [21:08:54]Read from MH i2c: E2 17 00 E5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B6 [21:08:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:08:54]wFMCommunicate OK [21:08:54]requested_item fd.num is exist - process it [21:08:54]SAM_PROTO_GetFieldsCounters [21:08:54]wFMCommunicate request_size=4 [21:08:54]MH_SAM_APDU [21:08:54]CAPDU: 80 13 00 00 [21:08:54]Write to MH i2c: E2 08 00 E6 04 80 13 00 00 00 00 00 00 66 [21:08:54]Write i2c OK [21:08:54]MH_I2C_Read... [21:08:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:54]Read from MH i2c: E2 [21:08:54]MH_I2C_Read... [21:08:54]Read from MH i2c: E2 62 00 [21:08:54]MH_I2C_Read... [21:08:54]Read from MH i2c: E2 62 00 E6 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F7 2A 01 00 0E 04 04 00 72 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 ED [21:08:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F7 2A 01 00 0E 04 04 00 72 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 [21:08:54]wFMCommunicate OK [21:08:54]SAM_PROTO_GetFieldsCounters done [21:08:54]requested_item shift.num is exist - process it [21:08:54]requested_item shift.opened is exist - process it [21:08:54]req_shift_opened [21:08:54]FM_GetShiftState [21:08:54]SAM_PROTO_GetShiftState [21:08:54]wFMCommunicate request_size=4 [21:08:54]MH_SAM_APDU [21:08:54]CAPDU: 80 13 01 00 [21:08:54]Write to MH i2c: E2 08 00 E7 04 80 13 01 00 00 00 00 00 68 [21:08:54]Write i2c OK [21:08:54]MH_I2C_Read... [21:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:54]Read from MH i2c: E2 [21:08:54]MH_I2C_Read... [21:08:54]Read from MH i2c: E2 0E 00 [21:08:54]MH_I2C_Read... [21:08:54]Read from MH i2c: E2 0E 00 E7 04 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 4D [21:08:54]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [21:08:54]wFMCommunicate OK [21:08:54]SAM_PROTO_GetShiftState done [21:08:54]FM_GetShiftState done [21:08:54]req_shift_opened done [21:08:54]requested_item shift.open_date is exist - process it [21:08:54]req_shift_open_date [21:08:54]req_shift_open_date done [21:08:54]produce_requested_data done [21:08:54]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76535,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [21:08:54]process_action_free close_receipt [21:08:54]json_value_free [21:08:54]json_value_free done [21:08:54]process_json_proto returns [21:08:54]Send response to host [21:08:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76535,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [21:08:54]free response buf [21:08:54]execute_script done [21:08:54]execute_script returns [21:08:54]free content buf [21:08:54]Sock 9.Close socket [21:08:54]Sock 9.Thread stoped [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:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:48]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:19]accept exits with 8 [21:21:19]New connection [21:21:19]New thread 3066735972 created [21:21:19]Thread 3066592612 joined [21:21:19]Waiting for new connection... [21:21:19] Sock 8.Parse request [21:21:19]Sock 8.Check first char [21:21:19]Sock 8.First char is OK [21:21:19]request: POST /json_proto HTTP/1.0 [21:21:19]Method: POST [21:21:19]URL: /json_proto [21:21:19]Method is POST - this is cgi request [21:21:19]url: /json_proto [21:21:19]query_string will be loaded in cgi processing [21:21:19]execute_cgi json_proto POST (null) [21:21:19]execute_cgi path=json_proto method=POST [21:21:19]POST find Content-Length [21:21:19]Host: 172.17.62.5:8080 [21:21:19]Content-Length: 677 [21:21:19]Content-Type: application/json [21:21:19] [21:21:19]POST finish read [21:21:19]Found Content-Length = 677 [21:21:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 6.220, "sum" : 400.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:19]execute_script... [21:21: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)191031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 6.220, "sum" : 400.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:19]POST & json_proto [21:21:19]process_json_proto [21:21:19]json parsed OK: [21:21:19]protocol is kg_v1.0 [21:21:19]action value=close_receipt [21:21:19]process_action close_receipt [21:21:19]cmd_close_receipt [21:21:19]MH_GetDate [21:21:19]Write to MH i2c: F0 00 00 E8 04 DB [21:21:19]Write i2c OK [21:21:19]MH_I2C_Read... [21:21:19]Read from MH i2c: F0 [21:21:19]MH_I2C_Read... [21:21:19]Read from MH i2c: F0 09 00 [21:21:19]MH_I2C_Read... [21:21:19]Read from MH i2c: F0 09 00 E8 04 00 50 E0 22 66 F4 E9 65 64 42 [21:21:19]GetLastDocTimeStamp 1713560931 [21:21:19]current date 1713561680 [21:21:19]FM_GetShiftState [21:21:19]SAM_PROTO_GetShiftState [21:21:19]wFMCommunicate request_size=4 [21:21:19]MH_SAM_APDU [21:21:19]CAPDU: 80 13 01 00 [21:21:19]Write to MH i2c: E2 08 00 E9 04 80 13 01 00 00 00 00 00 6A [21:21:19]Write i2c OK [21:21:19]MH_I2C_Read... [21:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:19]Read from MH i2c: E2 [21:21:19]MH_I2C_Read... [21:21:19]Read from MH i2c: E2 0E 00 [21:21:19]MH_I2C_Read... [21:21:19]Read from MH i2c: E2 0E 00 E9 04 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 4F [21:21:19]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [21:21:19]wFMCommunicate OK [21:21:19]SAM_PROTO_GetShiftState done [21:21:19]FM_GetShiftState done [21:21:19]opened in 1713486233 [21:21:19]opened+sec_in_day 1713572633 [21:21:19]quantity*price = 40056 [21:21:19]sum+1 = 40058 [21:21:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 156 19.04.2024 21:21 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76536 ФПД: 30540086455707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T212120&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76536&fm=30540086455707&tin=02508201610067®Number=0000000000091573&sum=40000 [21:21:20]StoreToDocumentArchive [21:21:20]shift 370 fd 76536 [21:21:20]save to /storage/0370/doc_00076536 [21:21:20]save last doc name /storage/0370/doc_00076536 to /storage/kkm_last_doc_name [21:21:20]save OK [21:21:20]Clear old archive folders... [21:21:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:21:20]tlvbuf is 01617790 [21:21:20]SAM_PROTO_ClearQueue [21:21:20]wFMCommunicate request_size=4 [21:21:20]MH_SAM_APDU [21:21:20]CAPDU: 80 09 00 00 [21:21:20]Write to MH i2c: E2 08 00 F6 04 80 09 00 00 00 00 00 00 6C [21:21:20]Write i2c OK [21:21:20]MH_I2C_Read... [21:21:20]*** iso7816_exchange 80 09 00 00... 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 F6 04 00 90 00 6E [21:21:20]RAPDU: 90 00 [21:21:20]wFMCommunicate OK [21:21:20]SAM_PROTO_ClearQueue done [21:21:20]KKMCreateOFDPacket [21:21:20]OFDProtocolAddRootSTLVToBuf [21:21:20]FM_MakeSignedData [21:21:20]FM_MakeSignedData [21:21:20]SAM_PROTO_SignData [21:21:20]wFMCommunicate request_size=4 [21:21:20]MH_SAM_APDU [21:21:20]CAPDU: 80 0D 01 02 [21:21:20]Write to MH i2c: E2 08 00 F7 04 80 0D 01 02 00 00 00 00 74 [21:21:20]Write i2c OK [21:21:20]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 F7 04 00 90 00 6F [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 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9C 00 00 00 F4 03 04 00 50 E0 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F8 2A 01 00 35 04 06 00 1B [21:21:20]Write to MH i2c: E2 02 01 F8 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 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9C 00 00 00 F4 03 04 00 50 E0 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F8 2A 01 00 35 04 06 00 1B 00 00 06 [21:21:20]Write i2c OK [21:21:20]MH_I2C_Read... [21:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:21]Read from MH i2c: E2 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 03 00 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 03 00 F8 04 00 90 00 70 [21:21:21]RAPDU: 90 00 [21:21:21]wFMCommunicate OK [21:21:21]wFMCommunicate request_size=10 [21:21:21]MH_SAM_APDU [21:21:21]CAPDU: 80 0D 02 02 05 C6 AB 01 2D 9B [21:21:21]Write to MH i2c: E2 0D 00 F9 04 80 0D 02 02 05 00 C6 AB 01 2D 9B 00 00 BB [21:21:21]Write i2c OK [21:21:21]MH_I2C_Read... [21:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:21]Read from MH i2c: E2 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 03 00 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 03 00 F9 04 00 90 00 71 [21:21:21]RAPDU: 90 00 [21:21:21]wFMCommunicate OK [21:21:21]wFMCommunicate request_size=4 [21:21:21]MH_SAM_APDU [21:21:21]CAPDU: 80 0D 03 02 [21:21:21]Write to MH i2c: E2 08 00 FA 04 80 0D 03 02 00 00 00 00 79 [21:21:21]Write i2c OK [21:21:21]MH_I2C_Read... [21:21:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:21:21]Read from MH i2c: E2 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 0B 00 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 0B 00 FA 04 00 EA 5E A2 DD D3 24 8B DE 90 00 A1 [21:21:21]RAPDU: EA 5E A2 DD D3 24 8B DE 90 00 [21:21:21]wFMCommunicate OK [21:21:21]SAM_PROTO_SignData done [21:21:21]FM_MakeSignedData done [21:21:21]CreateOFDProtocolMessage [21:21:21]wFMCommunicate request_size=4 [21:21:21]MH_SAM_APDU [21:21:21]CAPDU: 80 11 00 00 [21:21:21]Write to MH i2c: E2 08 00 FB 04 80 11 00 00 00 00 00 00 79 [21:21:21]Write i2c OK [21:21:21]MH_I2C_Read... [21:21:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:21]Read from MH i2c: E2 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 17 00 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 17 00 FB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CC [21:21:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:21:21]wFMCommunicate OK [21:21:21]CreateOFDProtocolMessage done [21:21:21]OFDSenderStorePacket 76536 [21:21:21]StoreOFDPacket docnum=76536 [21:21:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 2D EB 07 01 96 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 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9C 00 00 00 F4 03 04 00 50 E0 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F8 2A 01 00 35 04 06 00 1B C6 AB 01 2D 9B EA 5E A2 DD D3 24 8B DE [21:21:21]CheckFolder [21:21:21]dirname=/storage/ofd_packets [21:21:21]CheckFolder done [21:21:21]ProducePacketName [21:21:21]name=ofd_packets/00076536 [21:21:21]NVStorageSaveData ofd_packets/00076536 [21:21:21]File name is /storage/ofd_packets/00076536 [21:21:21]Write 301 bytes [21:21:21]NVStorageSaveData done [21:21:21]OFDSenderStorePacket done [21:21:21]KKMCreateOFDPacket done [21:21:21]NVStorageSaveData kkm_last_timestamp [21:21:21]File name is /storage/kkm_last_timestamp [21:21:21]Write 4 bytes [21:21:21]NVStorageSaveData done [21:21:21]ExternCall_PrintAddStr [21:21:21]wPrintStart [21:21:21]Write to MH i2c: 01 00 00 FC 04 00 [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 FC 04 00 00 00 00 00 FF 0F 15 [21:21:21]RasterBufferAndPrint [21:21:21]line Счет N : (1)191031 [21:21:21]line ИНН: 02508201610067 [21:21:21]line Контрольно-Кассовый Чек [21:21:21]line ПРОДАЖА [21:21:21]line ТРК (МРК, ГНК) : 43 [21:21:21]line Товар: 2710124130 [21:21:21]line Аи-92-К-5 [21:21:21]line 6.220 * 64.40 [21:21:21]line = 400.57 [21:21:21]line НДС 12% НСП 1% [21:21:21]line > о реализуемом товаре [21:21:21]line ОКРУГЛЕНИЕ: -0.57 [21:21:21]line ИТОГО: 400.00 [21:21:21]line Внесено: 400.00 [21:21:21]line СДАЧА: 0.00 [21:21:21]line НСП 1% : 3.54 [21:21:21]line НДС 12% : 42.54 [21:21:21]line Наличными: 400.00 [21:21:21]line Безнал.: 0.00 [21:21:21]line Место: АЗС № 106 "Партнер Нефть" [21:21:21]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:21:21]line СНО: Общий режим [21:21:21]line Чек 156 19.04.2024 21:21 [21:21:21]line Смена: 370 ФФД: 1.0 [21:21:21]line ЗНМ: 0300000141 [21:21:21]line РНМ: 0000000000091573 [21:21:21]line Версия ККМ: 001 [21:21:21]line ФМ: 0000000000874652 [21:21:21]line ФД: 76536 [21:21:21]line ФПД: 30540086455707 [21:21:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T212120&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76536&fm=30540086455707&tin=02508201610067®Number=0000000000091573&sum=40000 [21:21:21]written 0, free lines is 4095 [21:21:21]OFD Sender: Processing packet 76536 [packets to send 128, broken 127] [21:21:21]ProducePacketName [21:21:21]name=ofd_packets/00076536 [21:21:21]OFD Sender: To server: pG, [21:21:21]CommunicateWithHost lk.salyk.kg:30040 [21:21:21]ConnectInit lk.salyk.kg [21:21:22]Write to MH i2c: 01 00 00 26 05 2B [21:21:22]Write i2c OK [21:21:22]MH_I2C_Read... [21:21:22]Read from MH i2c: 01 [21:21:22]MH_I2C_Read... [21:21:22]Read from MH i2c: 01 07 00 [21:21:22]MH_I2C_Read... [21:21:22]Read from MH i2c: 01 07 00 26 05 00 00 00 00 00 EE 0C 2C [21:21:22]RasterBufferAndPrint [21:21:22]line [21:21:22]line [21:21:22]line [21:21:22]line [21:21:22]line [21:21:22]written 0, free lines is 3318 [21:21:22]MH_Cut [21:21:22]Write to MH i2c: D1 01 00 2D 05 01 04 [21:21:22]Write i2c OK [21:21:22]MH_I2C_Read... [21:21:22]Read from MH i2c: D1 [21:21:22]MH_I2C_Read... [21:21:22]Read from MH i2c: D1 01 00 [21:21:22]MH_I2C_Read... [21:21:22]Read from MH i2c: D1 01 00 2D 05 00 03 [21:21:22]Write to MH i2c: 01 00 00 2E 05 33 [21:21:22]Write i2c OK [21:21:22]MH_I2C_Read... [21:21:22]Connected sock=10 [21:21:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 2D EB 07 01 96 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 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9C 00 00 00 F4 03 04 00 50 E0 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F8 2A 01 00 35 04 06 00 1B C6 AB 01 2D 9B EA 5E A2 DD D3 24 8B DE [21:21:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 64 4C 47 00 57 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 34 36 35 32 10 04 04 00 F8 2A 01 00 F4 03 04 00 DB 87 22 66 B6 04 01 00 00 E2 88 4A B3 41 14 D1 A1 [21:21:22]CommunicateWithHost err = 0 [21:21:22]CheckOFDResponse [21:21:22]1017 (14) - 77093643461234 [21:21:22]1041 (16) - 0000000000874652 [21:21:22]1040 (4) - 76536 [21:21:22]1012 (4) - 19.04.2024 15:03 [21:21:22]1206 (1) - 0 [21:21:22]OFD Sender: Remove packet 76536 [21:21:22]ProducePacketName [21:21:22]name=ofd_packets/00076536 [21:21:22]NVStorageDeleteData [21:21:22]*** Cut start [21:21:22]*** Partial cut [21:21:22]*** CUTSNS_PIN = 1 [21:21:22]*** CUTSNS_PIN = 0 [21:21:23]OFD Sender: No OFD packet to send [21:21:23]*** 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 2E 05 00 00 00 00 00 FF 0F 48 [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 2F 05 80 11 00 00 00 00 00 00 AE [21:21:23]Write i2c OK [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 [21:21:23]MH_I2C_Read... [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 2F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 01 [21:21:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 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 30 05 80 13 00 00 00 00 00 00 B1 [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 30 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F8 2A 01 00 0E 04 04 00 72 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 3C [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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F8 2A 01 00 0E 04 04 00 72 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 [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 31 05 80 13 01 00 00 00 00 00 B3 [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 31 05 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 98 [21:21:23]RAPDU: 09 00 01 99 B9 21 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":"0000000000874652","fd.num":76536,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [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":"0000000000874652","fd.num":76536,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [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 8.Close socket [21:21:23]Sock 8.Thread stoped [21:21:28]OFD Sender: No OFD packet to send [21:21:33]OFD Sender: No OFD packet to send [21:21:38]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:48]OFD Sender: No OFD packet to send [21:21:53]OFD Sender: No OFD packet to send [21:21:58]OFD Sender: No OFD packet to send [21:22:03]OFD Sender: No OFD packet to send [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]OFD Sender: No OFD packet to send [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:38]OFD Sender: No OFD packet to send [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:03]OFD Sender: No OFD packet to send [21:23:08]OFD Sender: No OFD packet to send [21:23:13]OFD Sender: No OFD packet to send [21:23:18]OFD Sender: No OFD packet to send [21:23:23]OFD Sender: No OFD packet to send [21:23:28]OFD Sender: No OFD packet to send [21:23:33]OFD Sender: No OFD packet to send [21:23:38]OFD Sender: No OFD packet to send [21:23:43]OFD Sender: No OFD packet to send [21:23:48]OFD Sender: No OFD packet to send [21:23:53]OFD Sender: No OFD packet to send [21:23:58]OFD Sender: No OFD packet to send [21:24:03]OFD Sender: No OFD packet to send [21:24:08]OFD Sender: No OFD packet to send [21:24:13]OFD Sender: No OFD packet to send [21:24:18]OFD Sender: No OFD packet to send [21:24:23]OFD Sender: No OFD packet to send [21:24:28]OFD Sender: No OFD packet to send [21:24:33]OFD Sender: No OFD packet to send [21:24:38]OFD Sender: No OFD packet to send [21:24:43]OFD Sender: No OFD packet to send [21:24:48]OFD Sender: No OFD packet to send [21:24:53]OFD Sender: No OFD packet to send [21:24:58]OFD Sender: No OFD packet to send [21:25:03]OFD Sender: No OFD packet to send [21:25:08]OFD Sender: No OFD packet to send [21:25:13]OFD Sender: No OFD packet to send [21:25:18]OFD Sender: No OFD packet to send [21:25:23]OFD Sender: No OFD packet to send [21:25:28]OFD Sender: No OFD packet to send [21:25:32]accept exits with 9 [21:25:32]New connection [21:25:32]New thread 3066592612 created [21:25:32]Thread 3066735972 joined [21:25:32]Waiting for new connection... [21:25:32] Sock 9.Parse request [21:25:32]Sock 9.Check first char [21:25:32]Sock 9.First char is OK [21:25:32]request: POST /json_proto HTTP/1.0 [21:25:32]Method: POST [21:25:32]URL: /json_proto [21:25:32]Method is POST - this is cgi request [21:25:32]url: /json_proto [21:25:32]query_string will be loaded in cgi processing [21:25:32]execute_cgi json_proto POST (null) [21:25:32]execute_cgi path=json_proto method=POST [21:25:32]POST find Content-Length [21:25:32]Host: 172.17.62.5:8080 [21:25:32]Content-Length: 811 [21:25:32]Content-Type: application/json [21:25:32] [21:25:32]POST finish read [21:25:32]Found Content-Length = 811 [21:25:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 51.210, "sum" : 1674.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1674.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:32]execute_script... [21: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)191030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 51.210, "sum" : 1674.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1674.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:32]POST & json_proto [21:25:32]process_json_proto [21:25:32]json parsed OK: [21:25:32]protocol is kg_v1.0 [21:25:32]action value=close_receipt [21:25:32]process_action close_receipt [21:25:32]cmd_close_receipt [21:25:32]MH_GetDate [21:25:32]Write to MH i2c: F0 00 00 32 05 26 [21:25:32]Write i2c OK [21:25:32]MH_I2C_Read... [21:25:32]Read from MH i2c: F0 [21:25:32]MH_I2C_Read... [21:25:32]Read from MH i2c: F0 09 00 [21:25:32]MH_I2C_Read... [21:25:32]Read from MH i2c: F0 09 00 32 05 00 4D E1 22 66 F4 E9 65 64 8B [21:25:32]GetLastDocTimeStamp 1713561680 [21:25:32]current date 1713561933 [21:25:32]FM_GetShiftState [21:25:32]SAM_PROTO_GetShiftState [21:25:32]wFMCommunicate request_size=4 [21:25:32]MH_SAM_APDU [21:25:32]CAPDU: 80 13 01 00 [21:25:32]Write to MH i2c: E2 08 00 33 05 80 13 01 00 00 00 00 00 B5 [21:25:32]Write i2c OK [21:25:32]MH_I2C_Read... [21:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:32]Read from MH i2c: E2 [21:25:32]MH_I2C_Read... [21:25:32]Read from MH i2c: E2 0E 00 [21:25:32]MH_I2C_Read... [21:25:32]Read from MH i2c: E2 0E 00 33 05 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 9A [21:25:32]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [21:25:32]wFMCommunicate OK [21:25:32]SAM_PROTO_GetShiftState done [21:25:32]FM_GetShiftState done [21:25:32]opened in 1713486233 [21:25:32]opened+sec_in_day 1713572633 [21:25:32]quantity*price = 167456 [21:25:32]sum+1 = 167458 [21:25:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1674.57 НСП 1% : 14.82 НДС 12% : 177.83 Наличными: 0.00 Безнал.: 1674.57 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 157 19.04.2024 21:25 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76537 ФПД: 166881066019022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T212533&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76537&fm=166881066019022&tin=02508201610067®Number=0000000000091573&sum=167457 [21:25:33]StoreToDocumentArchive [21:25:33]shift 370 fd 76537 [21:25:33]save to /storage/0370/doc_00076537 [21:25:33]save last doc name /storage/0370/doc_00076537 to /storage/kkm_last_doc_name [21:25:33]save OK [21:25:33]Clear old archive folders... [21:25:33]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:25:33]tlvbuf is 01618EA0 [21:25:33]SAM_PROTO_ClearQueue [21:25:33]wFMCommunicate request_size=4 [21:25:33]MH_SAM_APDU [21:25:33]CAPDU: 80 09 00 00 [21:25:33]Write to MH i2c: E2 08 00 40 05 80 09 00 00 00 00 00 00 B7 [21:25:33]Write i2c OK [21:25:33]MH_I2C_Read... [21:25:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:33]Read from MH i2c: E2 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 03 00 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 03 00 40 05 00 90 00 B9 [21:25:33]RAPDU: 90 00 [21:25:33]wFMCommunicate OK [21:25:33]SAM_PROTO_ClearQueue done [21:25:33]KKMCreateOFDPacket [21:25:33]OFDProtocolAddRootSTLVToBuf [21:25:33]FM_MakeSignedData [21:25:33]FM_MakeSignedData [21:25:33]SAM_PROTO_SignData [21:25:33]wFMCommunicate request_size=4 [21:25:33]MH_SAM_APDU [21:25:33]CAPDU: 80 0D 01 02 [21:25:33]Write to MH i2c: E2 08 00 41 05 80 0D 01 02 00 00 00 00 BF [21:25:33]Write i2c OK [21:25:33]MH_I2C_Read... [21:25:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:33]Read from MH i2c: E2 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 03 00 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 03 00 41 05 00 90 00 BA [21:25:33]RAPDU: 90 00 [21:25:33]wFMCommunicate OK [21:25:33]wFMCommunicate request_size=255 [21:25:33]MH_SAM_APDU [21:25:33]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 0A C8 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 21 8E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 8E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 45 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 8E 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 4D E1 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F9 2A 01 00 35 04 06 00 97 C7 [21:25:33]Write to MH i2c: E2 02 01 42 05 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 0A C8 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 21 8E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 8E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 45 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 8E 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 4D E1 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F9 2A 01 00 35 04 06 00 97 C7 00 00 FA [21:25:33]Write i2c OK [21:25:33]MH_I2C_Read... [21:25:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:33]Read from MH i2c: E2 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 03 00 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 03 00 42 05 00 90 00 BB [21:25:33]RAPDU: 90 00 [21:25:33]wFMCommunicate OK [21:25:33]wFMCommunicate request_size=9 [21:25:33]MH_SAM_APDU [21:25:33]CAPDU: 80 0D 02 02 04 06 A8 E8 CE [21:25:33]Write to MH i2c: E2 0C 00 43 05 80 0D 02 02 04 00 06 A8 E8 CE 00 00 2E [21:25:33]Write i2c OK [21:25:33]MH_I2C_Read... [21:25:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:33]Read from MH i2c: E2 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 03 00 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 03 00 43 05 00 90 00 BC [21:25:33]RAPDU: 90 00 [21:25:33]wFMCommunicate OK [21:25:33]wFMCommunicate request_size=4 [21:25:33]MH_SAM_APDU [21:25:33]CAPDU: 80 0D 03 02 [21:25:33]Write to MH i2c: E2 08 00 44 05 80 0D 03 02 00 00 00 00 C4 [21:25:33]Write i2c OK [21:25:33]MH_I2C_Read... [21:25:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:34]Read from MH i2c: E2 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: E2 0B 00 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: E2 0B 00 44 05 00 6B B6 63 29 74 F3 75 2A 90 00 78 [21:25:34]RAPDU: 6B B6 63 29 74 F3 75 2A 90 00 [21:25:34]wFMCommunicate OK [21:25:34]SAM_PROTO_SignData done [21:25:34]FM_MakeSignedData done [21:25:34]CreateOFDProtocolMessage [21:25:34]wFMCommunicate request_size=4 [21:25:34]MH_SAM_APDU [21:25:34]CAPDU: 80 11 00 00 [21:25:34]Write to MH i2c: E2 08 00 45 05 80 11 00 00 00 00 00 00 C4 [21:25:34]Write i2c OK [21:25:34]MH_I2C_Read... [21:25:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:34]Read from MH i2c: E2 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: E2 17 00 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: E2 17 00 45 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 17 [21:25:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:25:34]wFMCommunicate OK [21:25:34]CreateOFDProtocolMessage done [21:25:34]OFDSenderStorePacket 76537 [21:25:34]StoreOFDPacket docnum=76537 [21:25:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 9A 3B 06 01 C6 58 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 0A C8 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 21 8E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 8E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 45 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 8E 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 4D E1 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F9 2A 01 00 35 04 06 00 97 C7 06 A8 E8 CE 6B B6 63 29 74 F3 75 2A [21:25:34]CheckFolder [21:25:34]dirname=/storage/ofd_packets [21:25:34]CheckFolder done [21:25:34]ProducePacketName [21:25:34]name=ofd_packets/00076537 [21:25:34]NVStorageSaveData ofd_packets/00076537 [21:25:34]File name is /storage/ofd_packets/00076537 [21:25:34]Write 300 bytes [21:25:34]NVStorageSaveData done [21:25:34]OFDSenderStorePacket done [21:25:34]KKMCreateOFDPacket done [21:25:34]NVStorageSaveData kkm_last_timestamp [21:25:34]File name is /storage/kkm_last_timestamp [21:25:34]Write 4 bytes [21:25:34]NVStorageSaveData done [21:25:34]ExternCall_PrintAddStr [21:25:34]wPrintStart [21:25:34]Write to MH i2c: 01 00 00 46 05 4B [21:25:34]Write i2c OK [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: 01 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: 01 07 00 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: 01 07 00 46 05 00 00 00 00 00 FF 0F 60 [21:25:34]RasterBufferAndPrint [21:25:34]line Счет N : (1)191030 [21:25:34]line ИНН: 02508201610067 [21:25:34]line Контрольно-Кассовый Чек [21:25:34]line ПРОДАЖА [21:25:34]line ТРК (МРК, ГНК) : 71 [21:25:34]line Товар: 2711190000 [21:25:34]line ГАЗ-К-5 [21:25:34]line 51.210 * 32.70 [21:25:34]line = 1674.57 [21:25:34]line НДС 12% НСП 1% [21:25:34]line > о реализуемом товаре [21:25:34]line ИТОГО: 1674.57 [21:25:34]line НСП 1% : 14.82 [21:25:34]line НДС 12% : 177.83 [21:25:34]line Наличными: 0.00 [21:25:34]line Безнал.: 1674.57 [21:25:34]line Место: АЗС № 106 "Партнер Нефть" [21:25:34]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:25:34]line СНО: Общий режим [21:25:34]line Чек 157 19.04.2024 21:25 [21:25:34]line Смена: 370 ФФД: 1.0 [21:25:34]line ЗНМ: 0300000141 [21:25:34]line РНМ: 0000000000091573 [21:25:34]line Версия ККМ: 001 [21:25:34]line Платежная система: О! деньги [21:25:34]line ФМ: 0000000000874652 [21:25:34]line ФД: 76537 [21:25:34]line ФПД: 166881066019022 [21:25:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T212533&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76537&fm=166881066019022&tin=02508201610067®Number=0000000000091573&sum=167457 [21:25:34]OFD Sender: Processing packet 76537 [packets to send 128, broken 127] [21:25:34]ProducePacketName [21:25:34]name=ofd_packets/00076537 [21:25:34]OFD Sender: To server: pG, [21:25:34]CommunicateWithHost lk.salyk.kg:30040 [21:25:34]ConnectInit lk.salyk.kg [21:25:34]written 0, free lines is 4095 [21:25:34]Connected sock=10 [21: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 34 36 35 32 0E 01 00 00 9A 3B 06 01 C6 58 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 0A C8 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 21 8E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 8E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 45 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 8E 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 4D E1 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F9 2A 01 00 35 04 06 00 97 C7 06 A8 E8 CE 6B B6 63 29 74 F3 75 2A [21:25:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 19 7C 47 00 C5 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 34 36 35 32 10 04 04 00 F9 2A 01 00 F4 03 04 00 D8 88 22 66 B6 04 01 00 00 0A CF 71 8F 09 42 78 60 [21:25:34]CommunicateWithHost err = 0 [21:25:34]CheckOFDResponse [21:25:34]1017 (14) - 77093643461234 [21:25:34]1041 (16) - 0000000000874652 [21:25:34]1040 (4) - 76537 [21:25:34]1012 (4) - 19.04.2024 15:08 [21:25:34]1206 (1) - 0 [21:25:34]OFD Sender: Remove packet 76537 [21:25:34]ProducePacketName [21:25:34]name=ofd_packets/00076537 [21:25:34]NVStorageDeleteData [21:25:34]Write to MH i2c: 01 00 00 6F 05 74 [21:25:34]Write i2c OK [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: 01 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: 01 07 00 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: 01 07 00 6F 05 00 00 00 00 00 F4 0C 7B [21:25:34]RasterBufferAndPrint [21:25:34]line [21:25:34]line [21:25:34]line [21:25:34]line [21:25:34]line [21:25:34]written 0, free lines is 3323 [21:25:34]MH_Cut [21:25:34]Write to MH i2c: D1 01 00 76 05 01 4D [21:25:34]Write i2c OK [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: D1 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: D1 01 00 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: D1 01 00 76 05 00 4C [21:25:34]Write to MH i2c: 01 00 00 77 05 7C [21:25:34]Write i2c OK [21:25:34]MH_I2C_Read... [21:25:35]OFD Sender: No OFD packet to send [21:25:35]*** Cut start [21:25:35]*** Partial cut [21:25:35]*** CUTSNS_PIN = 1 [21:25:35]*** CUTSNS_PIN = 0 [21:25:35]*** Brake cut motor [21:25:36]Read from MH i2c: 01 [21:25:36]MH_I2C_Read... [21:25:36]*** Stop cut motor [21:25:36]*** Cut end [21:25:36]Read from MH i2c: 01 07 00 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: 01 07 00 77 05 00 00 00 00 00 FF 0F 91 [21:25:36]process_action close_receipt done [21:25:36]requested_data is exist [21:25:36]produce_requested_data [21:25:36]requested_item fm.sn is exist - process it [21:25:36]wFMCommunicate request_size=4 [21:25:36]MH_SAM_APDU [21:25:36]CAPDU: 80 11 00 00 [21:25:36]Write to MH i2c: E2 08 00 78 05 80 11 00 00 00 00 00 00 F7 [21:25:36]Write i2c OK [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: E2 [21:25:36]MH_I2C_Read... [21:25:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:36]Read from MH i2c: E2 17 00 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: E2 17 00 78 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4A [21:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:25:36]wFMCommunicate OK [21:25:36]requested_item fd.num is exist - process it [21:25:36]SAM_PROTO_GetFieldsCounters [21:25:36]wFMCommunicate request_size=4 [21:25:36]MH_SAM_APDU [21:25:36]CAPDU: 80 13 00 00 [21:25:36]Write to MH i2c: E2 08 00 79 05 80 13 00 00 00 00 00 00 FA [21:25:36]Write i2c OK [21:25:36]MH_I2C_Read... [21:25:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:36]Read from MH i2c: E2 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: E2 62 00 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: E2 62 00 79 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F9 2A 01 00 0E 04 04 00 72 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 89 [21:25:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F9 2A 01 00 0E 04 04 00 72 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 [21:25:36]wFMCommunicate OK [21:25:36]SAM_PROTO_GetFieldsCounters done [21:25:36]requested_item shift.num is exist - process it [21:25:36]requested_item shift.opened is exist - process it [21:25:36]req_shift_opened [21:25:36]FM_GetShiftState [21:25:36]SAM_PROTO_GetShiftState [21:25:36]wFMCommunicate request_size=4 [21:25:36]MH_SAM_APDU [21:25:36]CAPDU: 80 13 01 00 [21:25:36]Write to MH i2c: E2 08 00 7A 05 80 13 01 00 00 00 00 00 FC [21:25:36]Write i2c OK [21:25:36]MH_I2C_Read... [21:25:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:36]Read from MH i2c: E2 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: E2 0E 00 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: E2 0E 00 7A 05 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E1 [21:25:36]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [21:25:36]wFMCommunicate OK [21:25:36]SAM_PROTO_GetShiftState done [21:25:36]FM_GetShiftState done [21:25:36]req_shift_opened done [21:25:36]requested_item shift.open_date is exist - process it [21:25:36]req_shift_open_date [21:25:36]req_shift_open_date done [21:25:36]produce_requested_data done [21:25:36]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76537,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [21:25:36]process_action_free close_receipt [21:25:36]json_value_free [21:25:36]json_value_free done [21:25:36]process_json_proto returns [21:25:36]Send response to host [21:25:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76537,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [21:25:36]free response buf [21:25:36]execute_script done [21:25:36]execute_script returns [21:25:36]free content buf [21:25:36]Sock 9.Close socket [21:25:36]Sock 9.Thread stoped [21:25:40]OFD Sender: No OFD packet to send [21:25:45]OFD Sender: No OFD packet to send [21:25:50]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]OFD Sender: No OFD packet to send [21:26:15]OFD Sender: No OFD packet to send [21:26:20]OFD Sender: No OFD packet to send [21:26:25]OFD Sender: No OFD packet to send [21:26:30]OFD Sender: No OFD packet to send [21:26:35]OFD Sender: No OFD packet to send [21:26:40]OFD Sender: No OFD packet to send [21:26:45]OFD Sender: No OFD packet to send [21:26:50]OFD Sender: No OFD packet to send [21:26:55]OFD Sender: No OFD packet to send [21:27:00]OFD Sender: No OFD packet to send [21:27:05]OFD Sender: No OFD packet to send [21:27:10]OFD Sender: No OFD packet to send [21:27:15]OFD Sender: No OFD packet to send [21:27:20]OFD Sender: No OFD packet to send [21:27:25]OFD Sender: No OFD packet to send [21:27:30]OFD Sender: No OFD packet to send [21:27:35]OFD Sender: No OFD packet to send [21:27:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:50]OFD Sender: No OFD packet to send [21:27:55]OFD Sender: No OFD packet to send [21:28:00]OFD Sender: No OFD packet to send [21:28:05]OFD Sender: No OFD packet to send [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:40]accept exits with 8 [21:28:40]New connection [21:28:40]New thread 3066735972 created [21:28:40]Thread 3066592612 joined [21:28:40]Waiting for new connection... [21:28:40] Sock 8.Parse request [21:28:40]Sock 8.Check first char [21:28:40]Sock 8.First char is OK [21:28:40]request: POST /json_proto HTTP/1.0 [21:28:40]Method: POST [21:28:40]URL: /json_proto [21:28:40]Method is POST - this is cgi request [21:28:40]url: /json_proto [21:28:40]query_string will be loaded in cgi processing [21:28:40]execute_cgi json_proto POST (null) [21:28:40]execute_cgi path=json_proto method=POST [21:28:40]POST find Content-Length [21:28:40]Host: 172.17.62.5:8080 [21:28:40]Content-Length: 978 [21:28:40]Content-Type: application/json [21:28:40] [21:28:40]POST finish read [21:28:40]Found Content-Length = 978 [21:28:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 41.73 \u0441\u043E\u043C", "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" ] } } [21:28:40]execute_script... [21:28:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 41.73 \u0441\u043E\u043C", "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" ] } } [21:28:40]POST & json_proto [21:28:40]process_json_proto [21:28:40]json parsed OK: [21:28:40]protocol is kg_v1.0 [21:28:40]action value=close_receipt [21:28:40]process_action close_receipt [21:28:40]cmd_close_receipt [21:28:40]MH_GetDate [21:28:40]Write to MH i2c: F0 00 00 7B 05 6F [21:28:40]Write i2c OK [21:28:40]MH_I2C_Read... [21:28:40]Read from MH i2c: F0 [21:28:40]MH_I2C_Read... [21:28:40]Read from MH i2c: F0 09 00 [21:28:40]MH_I2C_Read... [21:28:40]Read from MH i2c: F0 09 00 7B 05 00 09 E2 22 66 F4 E9 65 64 91 [21:28:40]GetLastDocTimeStamp 1713561933 [21:28:40]current date 1713562121 [21:28:40]FM_GetShiftState [21:28:40]SAM_PROTO_GetShiftState [21:28:40]wFMCommunicate request_size=4 [21:28:40]MH_SAM_APDU [21:28:40]CAPDU: 80 13 01 00 [21:28:40]Write to MH i2c: E2 08 00 7C 05 80 13 01 00 00 00 00 00 FE [21:28:40]Write i2c OK [21:28:40]MH_I2C_Read... [21:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:40]Read from MH i2c: E2 [21:28:40]MH_I2C_Read... [21:28:40]Read from MH i2c: E2 0E 00 [21:28:40]MH_I2C_Read... [21:28:40]Read from MH i2c: E2 0E 00 7C 05 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E3 [21:28:40]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [21:28:40]wFMCommunicate OK [21:28:40]SAM_PROTO_GetShiftState done [21:28:40]FM_GetShiftState done [21:28:40]opened in 1713486233 [21:28:40]opened+sec_in_day 1713572633 [21:28:40]quantity*price = 300038 [21:28:40]sum+1 = 300040 [21:28:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 158 19.04.2024 21:28 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 41.73 сом ФМ: 0000000000874652 ФД: 76538 ФПД: 1358048770653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T212842&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76538&fm=1358048770653&tin=02508201610067®Number=0000000000091573&sum=300000 [21:28:41]StoreToDocumentArchive [21:28:41]shift 370 fd 76538 [21:28:41]save to /storage/0370/doc_00076538 [21:28:41]save last doc name /storage/0370/doc_00076538 to /storage/kkm_last_doc_name [21:28:41]save OK [21:28:41]Clear old archive folders... [21:28:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:28:41]tlvbuf is 016347D0 [21:28:41]SAM_PROTO_ClearQueue [21:28:41]wFMCommunicate request_size=4 [21:28:41]MH_SAM_APDU [21:28:41]CAPDU: 80 09 00 00 [21:28:41]Write to MH i2c: E2 08 00 89 05 80 09 00 00 00 00 00 00 00 [21:28:41]Write i2c OK [21:28:41]MH_I2C_Read... [21:28:41]Read from MH i2c: E2 [21:28:41]MH_I2C_Read... [21:28:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:41]Read from MH i2c: E2 03 00 [21:28:41]MH_I2C_Read... [21:28:41]Read from MH i2c: E2 03 00 89 05 00 90 00 02 [21:28:41]RAPDU: 90 00 [21:28:41]wFMCommunicate OK [21:28:41]SAM_PROTO_ClearQueue done [21:28:41]KKMCreateOFDPacket [21:28:41]OFDProtocolAddRootSTLVToBuf [21:28:41]FM_MakeSignedData [21:28:41]FM_MakeSignedData [21:28:41]SAM_PROTO_SignData [21:28:41]wFMCommunicate request_size=4 [21:28:41]MH_SAM_APDU [21:28:41]CAPDU: 80 0D 01 02 [21:28:41]Write to MH i2c: E2 08 00 8A 05 80 0D 01 02 00 00 00 00 08 [21:28:41]Write i2c OK [21:28:41]MH_I2C_Read... [21:28:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:42]Read from MH i2c: E2 [21:28:42]MH_I2C_Read... [21:28:42]Read from MH i2c: E2 03 00 [21:28:42]MH_I2C_Read... [21:28:42]Read from MH i2c: E2 03 00 8A 05 00 90 00 03 [21:28:42]RAPDU: 90 00 [21:28:42]wFMCommunicate OK [21:28:42]wFMCommunicate request_size=255 [21:28:42]MH_SAM_APDU [21:28: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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 0A E2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FA 2A 01 00 35 04 06 00 01 3C 32 03 [21:28:42]Write to MH i2c: E2 02 01 8B 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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 0A E2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FA 2A 01 00 35 04 06 00 01 3C 32 03 00 00 40 [21:28:42]Write i2c OK [21:28:42]MH_I2C_Read... [21:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:42]Read from MH i2c: E2 [21:28:42]MH_I2C_Read... [21:28:42]Read from MH i2c: E2 03 00 [21:28:42]MH_I2C_Read... [21:28:42]Read from MH i2c: E2 03 00 8B 05 00 90 00 04 [21:28:42]RAPDU: 90 00 [21:28:42]wFMCommunicate OK [21:28:42]wFMCommunicate request_size=7 [21:28:42]MH_SAM_APDU [21:28:42]CAPDU: 80 0D 02 02 02 BA 5D [21:28:42]Write to MH i2c: E2 0A 00 8C 05 80 0D 02 02 02 00 BA 5D 00 00 26 [21:28:42]Write i2c OK [21:28:42]MH_I2C_Read... [21:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:42]Read from MH i2c: E2 [21:28:42]MH_I2C_Read... [21:28:42]Read from MH i2c: E2 03 00 [21:28:42]MH_I2C_Read... [21:28:42]Read from MH i2c: E2 03 00 8C 05 00 90 00 05 [21:28:42]RAPDU: 90 00 [21:28:42]wFMCommunicate OK [21:28:42]wFMCommunicate request_size=4 [21:28:42]MH_SAM_APDU [21:28:42]CAPDU: 80 0D 03 02 [21:28:42]Write to MH i2c: E2 08 00 8D 05 80 0D 03 02 00 00 00 00 0D [21:28:42]Write i2c OK [21:28:42]MH_I2C_Read... [21:28:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:42]Read from MH i2c: E2 [21:28:42]MH_I2C_Read... [21:28:42]Read from MH i2c: E2 0B 00 [21:28:42]MH_I2C_Read... [21:28:42]Read from MH i2c: E2 0B 00 8D 05 00 5D 5D B9 DE C0 59 73 F4 90 00 DF [21:28:42]RAPDU: 5D 5D B9 DE C0 59 73 F4 90 00 [21:28:42]wFMCommunicate OK [21:28:42]SAM_PROTO_SignData done [21:28:42]FM_MakeSignedData done [21:28:42]CreateOFDProtocolMessage [21:28:42]wFMCommunicate request_size=4 [21:28:42]MH_SAM_APDU [21:28:42]CAPDU: 80 11 00 00 [21:28:42]Write to MH i2c: E2 08 00 8E 05 80 11 00 00 00 00 00 00 0D [21:28:42]Write i2c OK [21:28:42]MH_I2C_Read... [21:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:42]Read from MH i2c: E2 [21:28:42]MH_I2C_Read... [21:28:42]Read from MH i2c: E2 17 00 [21:28:42]MH_I2C_Read... [21:28:42]Read from MH i2c: E2 17 00 8E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 60 [21:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:28:42]wFMCommunicate OK [21:28:42]CreateOFDProtocolMessage done [21:28:42]OFDSenderStorePacket 76538 [21:28:42]StoreOFDPacket docnum=76538 [21:28:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 EE E7 04 01 5E 44 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 0A E2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FA 2A 01 00 35 04 06 00 01 3C 32 03 BA 5D 5D 5D B9 DE C0 59 73 F4 [21:28:42]CheckFolder [21:28:42]dirname=/storage/ofd_packets [21:28:42]CheckFolder done [21:28:42]ProducePacketName [21:28:42]name=ofd_packets/00076538 [21:28:42]NVStorageSaveData ofd_packets/00076538 [21:28:42]File name is /storage/ofd_packets/00076538 [21:28:42]Write 298 bytes [21:28:42]NVStorageSaveData done [21:28:42]OFDSenderStorePacket done [21:28:42]KKMCreateOFDPacket done [21:28:42]NVStorageSaveData kkm_last_timestamp [21:28:42]File name is /storage/kkm_last_timestamp [21:28:42]Write 4 bytes [21:28:42]NVStorageSaveData done [21:28:42]ExternCall_PrintAddStr [21:28:42]wPrintStart [21:28:42]Write to MH i2c: 01 00 00 8F 05 94 [21:28:42]Write i2c OK [21:28:42]MH_I2C_Read... [21:28:42]Read from MH i2c: 01 [21:28:42]MH_I2C_Read... [21:28:42]Read from MH i2c: 01 07 00 [21:28:42]MH_I2C_Read... [21:28:42]Read from MH i2c: 01 07 00 8F 05 00 00 00 00 00 FF 0F A9 [21:28:42]RasterBufferAndPrint [21:28:42]line Счет N : (1)191032 [21:28:42]line ИНН: 02508201610067 [21:28:42]line Контрольно-Кассовый Чек [21:28:42]line ПРОДАЖА [21:28:42]line ТРК (МРК, ГНК) : 13 [21:28:42]line Товар: 2710194210 [21:28:42]line ДТ-К-5 [21:28:42]line 41.730 * 71.90 [21:28:42]line = 3000.39 [21:28:42]line НДС 12% НСП 1% [21:28:42]line > о реализуемом товаре [21:28:42]line ОКРУГЛЕНИЕ: -0.39 [21:28:42]line ИТОГО: 3000.00 [21:28:42]line Внесено: 3000.00 [21:28:42]line СДАЧА: 0.00 [21:28:42]line НСП 1% : 26.55 [21:28:42]line НДС 12% : 318.62 [21:28:42]line Наличными: 3000.00 [21:28:42]line Безнал.: 0.00 [21:28:42]line Место: АЗС № 106 "Партнер Нефть" [21:28:42]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:28:42]line СНО: Общий режим [21:28:42]line Чек 158 19.04.2024 21:28 [21:28:42]line Смена: 370 ФФД: 1.0 [21:28:42]line ЗНМ: 0300000141 [21:28:42]line РНМ: 0000000000091573 [21:28:42]line Версия ККМ: 001 [21:28:42]line [21:28:42]line Дисконтная программа [21:28:42]line ДТ [21:28:42]line номер 106 [21:28:42]line сэкономлено 41.73 сом [21:28:42]line ФМ: 0000000000874652 [21:28:42]line ФД: 76538 [21:28:42]line ФПД: 1358048770653 [21:28:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T212842&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76538&fm=1358048770653&tin=02508201610067®Number=0000000000091573&sum=300000 [21:28:42]OFD Sender: Processing packet 76538 [packets to send 128, broken 127] [21:28:42]ProducePacketName [21:28:42]name=ofd_packets/00076538 [21:28:42]OFD Sender: To server: pG, [21:28:42]CommunicateWithHost lk.salyk.kg:30040 [21:28:42]ConnectInit lk.salyk.kg [21:28:42]written 0, free lines is 4095 [21:28:42]Connected sock=10 [21:28:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 EE E7 04 01 5E 44 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 0A E2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FA 2A 01 00 35 04 06 00 01 3C 32 03 BA 5D 5D 5D B9 DE C0 59 73 F4 [21:28:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 36 AF 47 00 7F 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FA 2A 01 00 F4 03 04 00 94 89 22 66 B6 04 01 00 00 5C 7D E1 D2 16 4F 60 A4 [21:28:43]CommunicateWithHost err = 0 [21:28:43]CheckOFDResponse [21:28:43]1017 (14) - 77093643461234 [21:28:43]1041 (16) - 0000000000874652 [21:28:43]1040 (4) - 76538 [21:28:43]1012 (4) - 19.04.2024 15:11 [21:28:43]1206 (1) - 0 [21:28:43]OFD Sender: Remove packet 76538 [21:28:43]ProducePacketName [21:28:43]name=ofd_packets/00076538 [21:28:43]NVStorageDeleteData [21:28:43]Write to MH i2c: 01 00 00 BE 05 C3 [21:28:43]Write i2c OK [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: 01 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: 01 07 00 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: 01 07 00 BE 05 00 00 00 00 00 A5 0C 7B [21:28:43]RasterBufferAndPrint [21:28:43]line [21:28:43]line [21:28:43]line [21:28:43]line [21:28:43]line [21:28:43]written 0, free lines is 3243 [21:28:43]MH_Cut [21:28:43]Write to MH i2c: D1 01 00 C5 05 01 9C [21:28:43]Write i2c OK [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: D1 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: D1 01 00 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: D1 01 00 C5 05 00 9B [21:28:43]Write to MH i2c: 01 00 00 C6 05 CB [21:28:43]Write i2c OK [21:28:43]MH_I2C_Read... [21:28:43]OFD Sender: No OFD packet to send [21:28:44]*** Cut start [21:28:44]*** Partial cut [21:28:44]*** CUTSNS_PIN = 1 [21:28:44]*** CUTSNS_PIN = 0 [21:28:44]*** Brake cut motor [21:28:44]Read from MH i2c: 01 [21:28:44]MH_I2C_Read... [21:28:44]*** Stop cut motor [21:28:44]*** Cut end [21:28:44]Read from MH i2c: 01 07 00 [21:28:44]MH_I2C_Read... [21:28:44]Read from MH i2c: 01 07 00 C6 05 00 00 00 00 00 FF 0F E0 [21:28:44]process_action close_receipt done [21:28:44]requested_data is exist [21:28:44]produce_requested_data [21:28:44]requested_item fm.sn is exist - process it [21:28:44]wFMCommunicate request_size=4 [21:28:44]MH_SAM_APDU [21:28:44]CAPDU: 80 11 00 00 [21:28:44]Write to MH i2c: E2 08 00 C7 05 80 11 00 00 00 00 00 00 46 [21:28:44]Write i2c OK [21:28:44]MH_I2C_Read... [21:28:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:44]Read from MH i2c: E2 [21:28:44]MH_I2C_Read... [21:28:44]Read from MH i2c: E2 17 00 [21:28:44]MH_I2C_Read... [21:28:44]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 34 36 35 32 90 00 99 [21:28:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:28:44]wFMCommunicate OK [21:28:44]requested_item fd.num is exist - process it [21:28:44]SAM_PROTO_GetFieldsCounters [21:28:44]wFMCommunicate request_size=4 [21:28:44]MH_SAM_APDU [21:28:44]CAPDU: 80 13 00 00 [21:28:44]Write to MH i2c: E2 08 00 C8 05 80 13 00 00 00 00 00 00 49 [21:28:44]Write i2c OK [21:28:44]MH_I2C_Read... [21:28:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:44]Read from MH i2c: E2 [21:28:44]MH_I2C_Read... [21:28:44]Read from MH i2c: E2 62 00 [21:28:44]MH_I2C_Read... [21:28:44]Read from MH i2c: E2 62 00 C8 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FA 2A 01 00 0E 04 04 00 72 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 DC [21:28:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FA 2A 01 00 0E 04 04 00 72 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 [21:28:44]wFMCommunicate OK [21:28:44]SAM_PROTO_GetFieldsCounters done [21:28:44]requested_item shift.num is exist - process it [21:28:44]requested_item shift.opened is exist - process it [21:28:44]req_shift_opened [21:28:44]FM_GetShiftState [21:28:44]SAM_PROTO_GetShiftState [21:28:44]wFMCommunicate request_size=4 [21:28:44]MH_SAM_APDU [21:28:44]CAPDU: 80 13 01 00 [21:28:44]Write to MH i2c: E2 08 00 C9 05 80 13 01 00 00 00 00 00 4B [21:28:44]Write i2c OK [21:28:44]MH_I2C_Read... [21:28:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:44]Read from MH i2c: E2 [21:28:44]MH_I2C_Read... [21:28:44]Read from MH i2c: E2 0E 00 [21:28:44]MH_I2C_Read... [21:28:44]Read from MH i2c: E2 0E 00 C9 05 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 30 [21:28:44]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [21:28:44]wFMCommunicate OK [21:28:44]SAM_PROTO_GetShiftState done [21:28:44]FM_GetShiftState done [21:28:44]req_shift_opened done [21:28:44]requested_item shift.open_date is exist - process it [21:28:44]req_shift_open_date [21:28:44]req_shift_open_date done [21:28:44]produce_requested_data done [21:28:44]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76538,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [21:28:44]process_action_free close_receipt [21:28:44]json_value_free [21:28:44]json_value_free done [21:28:44]process_json_proto returns [21:28:44]Send response to host [21:28:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76538,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [21:28:44]free response buf [21:28:44]execute_script done [21:28:44]execute_script returns [21:28:44]free content buf [21:28:44]Sock 8.Close socket [21:28:44]Sock 8.Thread stoped [21:28:48]OFD Sender: No OFD packet to send [21:28:53]OFD Sender: No OFD packet to send [21:28:58]OFD Sender: No OFD packet to send [21:29:03]OFD Sender: No OFD packet to send [21:29:08]OFD Sender: No OFD packet to send [21:29:13]OFD Sender: No OFD packet to send [21:29:18]OFD Sender: No OFD packet to send [21:29:23]OFD Sender: No OFD packet to send [21:29:28]OFD Sender: No OFD packet to send [21:29:33]OFD Sender: No OFD packet to send [21:29:38]OFD Sender: No OFD packet to send [21:29:43]OFD Sender: No OFD packet to send [21:29:48]OFD Sender: No OFD packet to send [21:29:53]OFD Sender: No OFD packet to send [21:29:58]OFD Sender: No OFD packet to send [21:30:03]OFD Sender: No OFD packet to send [21:30:08]OFD Sender: No OFD packet to send [21:30:13]OFD Sender: No OFD packet to send [21:30:18]OFD Sender: No OFD packet to send [21:30:23]OFD Sender: No OFD packet to send [21:30:28]OFD Sender: No OFD packet to send [21:30:33]OFD Sender: No OFD packet to send [21:30:38]OFD Sender: No OFD packet to send [21:30:43]OFD Sender: No OFD packet to send [21:30:48]OFD Sender: No OFD packet to send [21:30:53]OFD Sender: No OFD packet to send [21:30:58]OFD Sender: No OFD packet to send [21:31:03]OFD Sender: No OFD packet to send [21:31:08]OFD Sender: No OFD packet to send [21:31:13]OFD Sender: No OFD packet to send [21:31:17]accept exits with 9 [21:31:17]New connection [21:31:17]New thread 3066592612 created [21:31:17]Thread 3066735972 joined [21:31:17]Waiting for new connection... [21:31:17] Sock 9.Parse request [21:31:17]Sock 9.Check first char [21:31:17]Sock 9.First char is OK [21:31:17]request: POST /json_proto HTTP/1.0 [21:31:17]Method: POST [21:31:17]URL: /json_proto [21:31:17]Method is POST - this is cgi request [21:31:17]url: /json_proto [21:31:17]query_string will be loaded in cgi processing [21:31:17]execute_cgi json_proto POST (null) [21:31:17]execute_cgi path=json_proto method=POST [21:31:17]POST find Content-Length [21:31:17]Host: 172.17.62.5:8080 [21:31:17]Content-Length: 986 [21:31:17]Content-Type: application/json [21:31:17] [21:31:17]POST finish read [21:31:17]Found Content-Length = 986 [21:31:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 29.970, "sum" : 950.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 29.97 \u0441\u043E\u043C", "deposit" : 950.00, "total" : 950.00, "payments": [ { "type": 0, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:17]execute_script... [21:31: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)191033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 29.970, "sum" : 950.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 29.97 \u0441\u043E\u043C", "deposit" : 950.00, "total" : 950.00, "payments": [ { "type": 0, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:17]POST & json_proto [21:31:17]process_json_proto [21:31:17]json parsed OK: [21:31:17]protocol is kg_v1.0 [21:31:17]action value=close_receipt [21:31:17]process_action close_receipt [21:31:17]cmd_close_receipt [21:31:17]MH_GetDate [21:31:17]Write to MH i2c: F0 00 00 CA 05 BE [21:31:17]Write i2c OK [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: F0 [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: F0 09 00 [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: F0 09 00 CA 05 00 A6 E2 22 66 F4 E9 65 64 7D [21:31:17]GetLastDocTimeStamp 1713562122 [21:31:17]current date 1713562278 [21:31:17]FM_GetShiftState [21:31:17]SAM_PROTO_GetShiftState [21:31:17]wFMCommunicate request_size=4 [21:31:17]MH_SAM_APDU [21:31:17]CAPDU: 80 13 01 00 [21:31:17]Write to MH i2c: E2 08 00 CB 05 80 13 01 00 00 00 00 00 4D [21:31:17]Write i2c OK [21:31:17]MH_I2C_Read... [21:31:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:17]Read from MH i2c: E2 [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: E2 0E 00 [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: E2 0E 00 CB 05 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 32 [21:31:17]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [21:31:17]wFMCommunicate OK [21:31:17]SAM_PROTO_GetShiftState done [21:31:17]FM_GetShiftState done [21:31:17]opened in 1713486233 [21:31:17]opened+sec_in_day 1713572633 [21:31:17]quantity*price = 95004 [21:31:17]sum+1 = 95006 [21:31:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 950.00 Внесено: 950.00 СДАЧА: 0.00 НСП 1% : 8.41 НДС 12% : 100.89 Наличными: 950.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 159 19.04.2024 21:31 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 29.97 сом ФМ: 0000000000874652 ФД: 76539 ФПД: 25576746632749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T213118&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76539&fm=25576746632749&tin=02508201610067®Number=0000000000091573&sum=95000 [21:31:18]StoreToDocumentArchive [21:31:18]shift 370 fd 76539 [21:31:18]save to /storage/0370/doc_00076539 [21:31:18]save last doc name /storage/0370/doc_00076539 to /storage/kkm_last_doc_name [21:31:18]save OK [21:31:18]Clear old archive folders... [21:31:18]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:31:18]tlvbuf is 01633130 [21:31:18]SAM_PROTO_ClearQueue [21:31:18]wFMCommunicate request_size=4 [21:31:18]MH_SAM_APDU [21:31:18]CAPDU: 80 09 00 00 [21:31:18]Write to MH i2c: E2 08 00 D8 05 80 09 00 00 00 00 00 00 4F [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:18]Read from MH i2c: E2 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 03 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 03 00 D8 05 00 90 00 51 [21:31:18]RAPDU: 90 00 [21:31:18]wFMCommunicate OK [21:31:18]SAM_PROTO_ClearQueue done [21:31:18]KKMCreateOFDPacket [21:31:18]OFDProtocolAddRootSTLVToBuf [21:31:18]FM_MakeSignedData [21:31:18]FM_MakeSignedData [21:31:18]SAM_PROTO_SignData [21:31:18]wFMCommunicate request_size=4 [21:31:18]MH_SAM_APDU [21:31:18]CAPDU: 80 0D 01 02 [21:31:18]Write to MH i2c: E2 08 00 D9 05 80 0D 01 02 00 00 00 00 57 [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:18]Read from MH i2c: E2 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 03 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 03 00 D9 05 00 90 00 52 [21:31:18]RAPDU: 90 00 [21:31:18]wFMCommunicate OK [21:31:18]wFMCommunicate request_size=255 [21:31:18]MH_SAM_APDU [21:31:18]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 12 75 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 1D 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 27 00 00 00 00 07 04 06 00 18 73 01 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 A6 E2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FB 2A 01 00 35 04 06 00 17 43 [21:31:18]Write to MH i2c: E2 02 01 DA 05 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 12 75 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 1D 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 27 00 00 00 00 07 04 06 00 18 73 01 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 A6 E2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FB 2A 01 00 35 04 06 00 17 43 00 00 24 [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:18]Read from MH i2c: E2 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 03 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 03 00 DA 05 00 90 00 53 [21:31:18]RAPDU: 90 00 [21:31:18]wFMCommunicate OK [21:31:18]wFMCommunicate request_size=9 [21:31:18]MH_SAM_APDU [21:31:18]CAPDU: 80 0D 02 02 04 0C E5 C6 2D [21:31:18]Write to MH i2c: E2 0C 00 DB 05 80 0D 02 02 04 00 0C E5 C6 2D 00 00 46 [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:18]Read from MH i2c: E2 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 03 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 03 00 DB 05 00 90 00 54 [21:31:18]RAPDU: 90 00 [21:31:18]wFMCommunicate OK [21:31:18]wFMCommunicate request_size=4 [21:31:18]MH_SAM_APDU [21:31:18]CAPDU: 80 0D 03 02 [21:31:18]Write to MH i2c: E2 08 00 DC 05 80 0D 03 02 00 00 00 00 5C [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]OFD Sender: No OFD packet to send [21:31:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:18]Read from MH i2c: E2 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 0B 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 0B 00 DC 05 00 AB C1 C0 8F 3C 20 80 60 90 00 54 [21:31:18]RAPDU: AB C1 C0 8F 3C 20 80 60 90 00 [21:31:18]wFMCommunicate OK [21:31:18]SAM_PROTO_SignData done [21:31:18]FM_MakeSignedData done [21:31:18]CreateOFDProtocolMessage [21:31:18]wFMCommunicate request_size=4 [21:31:18]MH_SAM_APDU [21:31:18]CAPDU: 80 11 00 00 [21:31:18]Write to MH i2c: E2 08 00 DD 05 80 11 00 00 00 00 00 00 5C [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:18]Read from MH i2c: E2 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 17 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 17 00 DD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AF [21:31:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:31:18]wFMCommunicate OK [21:31:18]CreateOFDProtocolMessage done [21:31:18]OFDSenderStorePacket 76539 [21:31:18]StoreOFDPacket docnum=76539 [21:31:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 06 B0 06 01 AC 6D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 12 75 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 1D 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 27 00 00 00 00 07 04 06 00 18 73 01 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 A6 E2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FB 2A 01 00 35 04 06 00 17 43 0C E5 C6 2D AB C1 C0 8F 3C 20 80 60 [21:31:18]CheckFolder [21:31:18]dirname=/storage/ofd_packets [21:31:18]CheckFolder done [21:31:18]ProducePacketName [21:31:18]name=ofd_packets/00076539 [21:31:18]NVStorageSaveData ofd_packets/00076539 [21:31:18]File name is /storage/ofd_packets/00076539 [21:31:18]Write 300 bytes [21:31:18]NVStorageSaveData done [21:31:18]OFDSenderStorePacket done [21:31:18]KKMCreateOFDPacket done [21:31:18]NVStorageSaveData kkm_last_timestamp [21:31:18]File name is /storage/kkm_last_timestamp [21:31:18]Write 4 bytes [21:31:18]NVStorageSaveData done [21:31:18]ExternCall_PrintAddStr [21:31:18]wPrintStart [21:31:18]Write to MH i2c: 01 00 00 DE 05 E3 [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: 01 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: 01 07 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: 01 07 00 DE 05 00 00 00 00 00 FF 0F F8 [21:31:18]RasterBufferAndPrint [21:31:18]line Счет N : (1)191033 [21:31:18]line ИНН: 02508201610067 [21:31:18]line Контрольно-Кассовый Чек [21:31:18]line ПРОДАЖА [21:31:18]line ТРК (МРК, ГНК) : 71 [21:31:18]line Товар: 2711190000 [21:31:18]line ГАЗ-К-5 [21:31:18]line 29.970 * 31.70 [21:31:18]line = 950.05 [21:31:18]line НДС 12% НСП 1% [21:31:18]line > о реализуемом товаре [21:31:18]line ОКРУГЛЕНИЕ: -0.05 [21:31:18]line ИТОГО: 950.00 [21:31:18]line Внесено: 950.00 [21:31:18]line СДАЧА: 0.00 [21:31:18]line НСП 1% : 8.41 [21:31:18]line НДС 12% : 100.89 [21:31:18]line Наличными: 950.00 [21:31:18]line Безнал.: 0.00 [21:31:18]line Место: АЗС № 106 "Партнер Нефть" [21:31:18]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:31:18]line СНО: Общий режим [21:31:18]line Чек 159 19.04.2024 21:31 [21:31:18]line Смена: 370 ФФД: 1.0 [21:31:18]line ЗНМ: 0300000141 [21:31:18]line РНМ: 0000000000091573 [21:31:18]line Версия ККМ: 001 [21:31:18]line [21:31:18]line Дисконтная программа [21:31:18]line СУГ [21:31:18]line номер 106 [21:31:18]line сэкономлено 29.97 сом [21:31:18]line ФМ: 0000000000874652 [21:31:18]line ФД: 76539 [21:31:18]line ФПД: 25576746632749 [21:31:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T213118&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76539&fm=25576746632749&tin=02508201610067®Number=0000000000091573&sum=95000 [21:31:19]OFD Sender: Processing packet 76539 [packets to send 128, broken 127] [21:31:19]ProducePacketName [21:31:19]name=ofd_packets/00076539 [21:31:19]OFD Sender: To server: pG, [21:31:19]CommunicateWithHost lk.salyk.kg:30040 [21:31:19]ConnectInit lk.salyk.kg [21:31:19]written 0, free lines is 4095 [21:31:19]Connected sock=11 [21:31:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 06 B0 06 01 AC 6D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 12 75 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 1D 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 27 00 00 00 00 07 04 06 00 18 73 01 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 A6 E2 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FB 2A 01 00 35 04 06 00 17 43 0C E5 C6 2D AB C1 C0 8F 3C 20 80 60 [21:31:19]Write to MH i2c: 01 00 00 0D 06 13 [21:31:19]Write i2c OK [21:31:19]MH_I2C_Read... [21:31:19]Read from MH i2c: 01 [21:31:19]MH_I2C_Read... [21:31:19]Read from MH i2c: 01 07 00 [21:31:19]MH_I2C_Read... [21:31:19]Read from MH i2c: 01 07 00 0D 06 00 00 00 00 00 8C 0C B2 [21:31:19]RasterBufferAndPrint [21:31:19]line [21:31:19]line [21:31:19]line [21:31:19]line [21:31:19]line [21:31:19]written 0, free lines is 3218 [21:31:19]MH_Cut [21:31:19]Write to MH i2c: D1 01 00 14 06 01 EC [21:31:19]Write i2c OK [21:31:19]MH_I2C_Read... [21:31:19]Read from MH i2c: D1 [21:31:19]MH_I2C_Read... [21:31:19]Read from MH i2c: D1 01 00 [21:31:19]MH_I2C_Read... [21:31:19]Read from MH i2c: D1 01 00 14 06 00 EB [21:31:19]Write to MH i2c: 01 00 00 15 06 1B [21:31:19]Write i2c OK [21:31:19]MH_I2C_Read... [21:31:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 8D 00 47 00 50 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 34 36 35 32 10 04 04 00 FB 2A 01 00 F4 03 04 00 31 8A 22 66 B6 04 01 00 00 B1 19 4E 58 AF 48 C7 B8 [21:31:19]CommunicateWithHost err = 0 [21:31:19]CheckOFDResponse [21:31:19]1017 (14) - 77093643461234 [21:31:19]1041 (16) - 0000000000874652 [21:31:19]1040 (4) - 76539 [21:31:19]1012 (4) - 19.04.2024 15:13 [21:31:19]1206 (1) - 0 [21:31:19]OFD Sender: Remove packet 76539 [21:31:19]ProducePacketName [21:31:19]name=ofd_packets/00076539 [21:31:19]NVStorageDeleteData [21:31:20]OFD Sender: No OFD packet to send [21:31:20]*** Cut start [21:31:20]*** Partial cut [21:31:20]*** CUTSNS_PIN = 1 [21:31:20]*** CUTSNS_PIN = 0 [21:31:20]*** Brake cut motor [21:31:21]Read from MH i2c: 01 [21:31:21]MH_I2C_Read... [21:31:21]*** Stop cut motor [21:31:21]*** Cut end [21:31:21]Read from MH i2c: 01 07 00 [21:31:21]MH_I2C_Read... [21:31:21]Read from MH i2c: 01 07 00 15 06 00 00 00 00 00 FF 0F 30 [21:31:21]process_action close_receipt done [21:31:21]requested_data is exist [21:31:21]produce_requested_data [21:31:21]requested_item fm.sn is exist - process it [21:31:21]wFMCommunicate request_size=4 [21:31:21]MH_SAM_APDU [21:31:21]CAPDU: 80 11 00 00 [21:31:21]Write to MH i2c: E2 08 00 16 06 80 11 00 00 00 00 00 00 96 [21:31:21]Write i2c OK [21:31:21]MH_I2C_Read... [21:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:21]Read from MH i2c: E2 [21:31:21]MH_I2C_Read... [21:31:21]Read from MH i2c: E2 17 00 [21:31:21]MH_I2C_Read... [21:31:21]Read from MH i2c: E2 17 00 16 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E9 [21:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:31:21]wFMCommunicate OK [21:31:21]requested_item fd.num is exist - process it [21:31:21]SAM_PROTO_GetFieldsCounters [21:31:21]wFMCommunicate request_size=4 [21:31:21]MH_SAM_APDU [21:31:21]CAPDU: 80 13 00 00 [21:31:21]Write to MH i2c: E2 08 00 17 06 80 13 00 00 00 00 00 00 99 [21:31:21]Write i2c OK [21:31:21]MH_I2C_Read... [21:31:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:21]Read from MH i2c: E2 [21:31:21]MH_I2C_Read... [21:31:21]Read from MH i2c: E2 62 00 [21:31:21]MH_I2C_Read... [21:31:21]Read from MH i2c: E2 62 00 17 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FB 2A 01 00 0E 04 04 00 72 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 30 [21:31:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FB 2A 01 00 0E 04 04 00 72 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 [21:31:21]wFMCommunicate OK [21:31:21]SAM_PROTO_GetFieldsCounters done [21:31:21]requested_item shift.num is exist - process it [21:31:21]requested_item shift.opened is exist - process it [21:31:21]req_shift_opened [21:31:21]FM_GetShiftState [21:31:21]SAM_PROTO_GetShiftState [21:31:21]wFMCommunicate request_size=4 [21:31:21]MH_SAM_APDU [21:31:21]CAPDU: 80 13 01 00 [21:31:21]Write to MH i2c: E2 08 00 18 06 80 13 01 00 00 00 00 00 9B [21:31:21]Write i2c OK [21:31:21]MH_I2C_Read... [21:31:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:21]Read from MH i2c: E2 [21:31:21]MH_I2C_Read... [21:31:21]Read from MH i2c: E2 0E 00 [21:31:21]MH_I2C_Read... [21:31:21]Read from MH i2c: E2 0E 00 18 06 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 80 [21:31:21]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [21:31:21]wFMCommunicate OK [21:31:21]SAM_PROTO_GetShiftState done [21:31:21]FM_GetShiftState done [21:31:21]req_shift_opened done [21:31:21]requested_item shift.open_date is exist - process it [21:31:21]req_shift_open_date [21:31:21]req_shift_open_date done [21:31:21]produce_requested_data done [21:31:21]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76539,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [21:31:21]process_action_free close_receipt [21:31:21]json_value_free [21:31:21]json_value_free done [21:31:21]process_json_proto returns [21:31:21]Send response to host [21:31:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76539,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [21:31:21]free response buf [21:31:21]execute_script done [21:31:21]execute_script returns [21:31:21]free content buf [21:31:21]Sock 9.Close socket [21:31:21]Sock 9.Thread stoped [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:46]accept exits with 8 [21:39:46]New connection [21:39:46]New thread 3066735972 created [21:39:46]Thread 3066592612 joined [21:39:46]Waiting for new connection... [21:39:46] Sock 8.Parse request [21:39:46]Sock 8.Check first char [21:39:46]Sock 8.First char is OK [21:39:46]request: POST /json_proto HTTP/1.0 [21:39:46]Method: POST [21:39:46]URL: /json_proto [21:39:46]Method is POST - this is cgi request [21:39:46]url: /json_proto [21:39:46]query_string will be loaded in cgi processing [21:39:46]execute_cgi json_proto POST (null) [21:39:46]execute_cgi path=json_proto method=POST [21:39:46]POST find Content-Length [21:39:46]Host: 172.17.62.5:8080 [21:39:46]Content-Length: 677 [21:39:46]Content-Type: application/json [21:39:46] [21:39:46]POST finish read [21:39:46]Found Content-Length = 677 [21:39:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191034", "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" : 64.40, "quantity" : 9.630, "sum" : 620.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:46]execute_script... [21:39: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)191034", "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" : 64.40, "quantity" : 9.630, "sum" : 620.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:46]POST & json_proto [21:39:46]process_json_proto [21:39:46]json parsed OK: [21:39:46]protocol is kg_v1.0 [21:39:46]action value=close_receipt [21:39:46]process_action close_receipt [21:39:46]cmd_close_receipt [21:39:46]MH_GetDate [21:39:46]Write to MH i2c: F0 00 00 19 06 0E [21:39:46]Write i2c OK [21:39:46]MH_I2C_Read... [21:39:46]Read from MH i2c: F0 [21:39:46]MH_I2C_Read... [21:39:46]Read from MH i2c: F0 09 00 [21:39:46]MH_I2C_Read... [21:39:46]Read from MH i2c: F0 09 00 19 06 00 A4 E4 22 66 F4 E9 65 64 CD [21:39:46]GetLastDocTimeStamp 1713562278 [21:39:46]current date 1713562788 [21:39:46]FM_GetShiftState [21:39:46]SAM_PROTO_GetShiftState [21:39:46]wFMCommunicate request_size=4 [21:39:46]MH_SAM_APDU [21:39:46]CAPDU: 80 13 01 00 [21:39:46]Write to MH i2c: E2 08 00 1A 06 80 13 01 00 00 00 00 00 9D [21:39:46]Write i2c OK [21:39:46]MH_I2C_Read... [21:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:46]Read from MH i2c: E2 [21:39:46]MH_I2C_Read... [21:39:46]Read from MH i2c: E2 0E 00 [21:39:46]MH_I2C_Read... [21:39:46]Read from MH i2c: E2 0E 00 1A 06 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 82 [21:39:46]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [21:39:46]wFMCommunicate OK [21:39:46]SAM_PROTO_GetShiftState done [21:39:46]FM_GetShiftState done [21:39:46]opened in 1713486233 [21:39:46]opened+sec_in_day 1713572633 [21:39:46]quantity*price = 62017 [21:39:46]sum+1 = 62018 [21:39:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.86 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 160 19.04.2024 21:39 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76540 ФПД: 61322412403516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T213948&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76540&fm=61322412403516&tin=02508201610067®Number=0000000000091573&sum=62000 [21:39:47]StoreToDocumentArchive [21:39:47]shift 370 fd 76540 [21:39:47]save to /storage/0370/doc_00076540 [21:39:47]save last doc name /storage/0370/doc_00076540 to /storage/kkm_last_doc_name [21:39:47]save OK [21:39:47]Clear old archive folders... [21:39:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:39:47]tlvbuf is 0161EB60 [21:39:47]SAM_PROTO_ClearQueue [21:39:47]wFMCommunicate request_size=4 [21:39:47]MH_SAM_APDU [21:39:47]CAPDU: 80 09 00 00 [21:39:47]Write to MH i2c: E2 08 00 27 06 80 09 00 00 00 00 00 00 9F [21:39:47]Write i2c OK [21:39:47]MH_I2C_Read... [21:39:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:48]Read from MH i2c: E2 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: E2 03 00 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: E2 03 00 27 06 00 90 00 A1 [21:39:48]RAPDU: 90 00 [21:39:48]wFMCommunicate OK [21:39:48]SAM_PROTO_ClearQueue done [21:39:48]KKMCreateOFDPacket [21:39:48]OFDProtocolAddRootSTLVToBuf [21:39:48]FM_MakeSignedData [21:39:48]FM_MakeSignedData [21:39:48]SAM_PROTO_SignData [21:39:48]wFMCommunicate request_size=4 [21:39:48]MH_SAM_APDU [21:39:48]CAPDU: 80 0D 01 02 [21:39:48]Write to MH i2c: E2 08 00 28 06 80 0D 01 02 00 00 00 00 A7 [21:39:48]Write i2c OK [21:39:48]MH_I2C_Read... [21:39:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:48]Read from MH i2c: E2 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: E2 03 00 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: E2 03 00 28 06 00 90 00 A2 [21:39:48]RAPDU: 90 00 [21:39:48]wFMCommunicate OK [21:39:48]wFMCommunicate request_size=255 [21:39:48]MH_SAM_APDU [21:39: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 9E 25 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 41 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 A4 E4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FC 2A 01 00 35 04 06 00 37 [21:39:48]Write to MH i2c: E2 02 01 29 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 9E 25 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 41 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 A4 E4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FC 2A 01 00 35 04 06 00 37 00 00 A7 [21:39:48]Write i2c OK [21:39:48]MH_I2C_Read... [21:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:48]Read from MH i2c: E2 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: E2 03 00 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: E2 03 00 29 06 00 90 00 A3 [21:39:48]RAPDU: 90 00 [21:39:48]wFMCommunicate OK [21:39:48]wFMCommunicate request_size=10 [21:39:48]MH_SAM_APDU [21:39:48]CAPDU: 80 0D 02 02 05 C5 BC 9B AB 3C [21:39:48]Write to MH i2c: E2 0D 00 2A 06 80 0D 02 02 05 00 C5 BC 9B AB 3C 00 00 B7 [21:39:48]Write i2c OK [21:39:48]MH_I2C_Read... [21:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:48]Read from MH i2c: E2 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: E2 03 00 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: E2 03 00 2A 06 00 90 00 A4 [21:39:48]RAPDU: 90 00 [21:39:48]wFMCommunicate OK [21:39:48]wFMCommunicate request_size=4 [21:39:48]MH_SAM_APDU [21:39:48]CAPDU: 80 0D 03 02 [21:39:48]Write to MH i2c: E2 08 00 2B 06 80 0D 03 02 00 00 00 00 AC [21:39:48]Write i2c OK [21:39:48]MH_I2C_Read... [21:39:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:48]Read from MH i2c: E2 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: E2 0B 00 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: E2 0B 00 2B 06 00 7A EF 59 B1 D7 27 3D EF 90 00 4A [21:39:48]RAPDU: 7A EF 59 B1 D7 27 3D EF 90 00 [21:39:48]wFMCommunicate OK [21:39:48]SAM_PROTO_SignData done [21:39:48]FM_MakeSignedData done [21:39:48]CreateOFDProtocolMessage [21:39:48]wFMCommunicate request_size=4 [21:39:48]MH_SAM_APDU [21:39:48]CAPDU: 80 11 00 00 [21:39:48]Write to MH i2c: E2 08 00 2C 06 80 11 00 00 00 00 00 00 AC [21:39:48]Write i2c OK [21:39:48]MH_I2C_Read... [21:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:48]Read from MH i2c: E2 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: E2 17 00 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: E2 17 00 2C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FF [21:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:39:48]wFMCommunicate OK [21:39:48]CreateOFDProtocolMessage done [21:39:48]OFDSenderStorePacket 76540 [21:39:48]StoreOFDPacket docnum=76540 [21:39:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 7F 6D 07 01 D5 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 25 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 41 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 A4 E4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FC 2A 01 00 35 04 06 00 37 C5 BC 9B AB 3C 7A EF 59 B1 D7 27 3D EF [21:39:48]CheckFolder [21:39:48]dirname=/storage/ofd_packets [21:39:48]CheckFolder done [21:39:48]ProducePacketName [21:39:48]name=ofd_packets/00076540 [21:39:48]NVStorageSaveData ofd_packets/00076540 [21:39:48]File name is /storage/ofd_packets/00076540 [21:39:48]Write 301 bytes [21:39:48]NVStorageSaveData done [21:39:48]OFDSenderStorePacket done [21:39:48]KKMCreateOFDPacket done [21:39:48]NVStorageSaveData kkm_last_timestamp [21:39:48]File name is /storage/kkm_last_timestamp [21:39:48]Write 4 bytes [21:39:48]NVStorageSaveData done [21:39:48]ExternCall_PrintAddStr [21:39:48]wPrintStart [21:39:48]Write to MH i2c: 01 00 00 2D 06 33 [21:39:48]Write i2c OK [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: 01 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: 01 07 00 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: 01 07 00 2D 06 00 00 00 00 00 FF 0F 48 [21:39:48]RasterBufferAndPrint [21:39:48]line Счет N : (1)191034 [21:39:48]line ИНН: 02508201610067 [21:39:48]line Контрольно-Кассовый Чек [21:39:48]line ПРОДАЖА [21:39:48]line ТРК (МРК, ГНК) : 12 [21:39:48]line Товар: 2710124130 [21:39:48]line Аи-92-К-5 [21:39:48]line 9.630 * 64.40 [21:39:48]line = 620.17 [21:39:48]line НДС 12% НСП 1% [21:39:48]line > о реализуемом товаре [21:39:48]line ОКРУГЛЕНИЕ: -0.17 [21:39:48]line ИТОГО: 620.00 [21:39:48]line Внесено: 620.00 [21:39:48]line СДАЧА: 0.00 [21:39:48]line НСП 1% : 5.49 [21:39:48]line НДС 12% : 65.86 [21:39:48]line Наличными: 620.00 [21:39:48]line Безнал.: 0.00 [21:39:48]line Место: АЗС № 106 "Партнер Нефть" [21:39:48]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [21:39:48]line СНО: Общий режим [21:39:48]line Чек 160 19.04.2024 21:39 [21:39:48]line Смена: 370 ФФД: 1.0 [21:39:48]line ЗНМ: 0300000141 [21:39:48]line РНМ: 0000000000091573 [21:39:48]line Версия ККМ: 001 [21:39:48]line ФМ: 0000000000874652 [21:39:48]line ФД: 76540 [21:39:48]line ФПД: 61322412403516 [21:39:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T213948&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76540&fm=61322412403516&tin=02508201610067®Number=0000000000091573&sum=62000 [21:39:48]OFD Sender: Processing packet 76540 [packets to send 128, broken 127] [21:39:48]ProducePacketName [21:39:48]name=ofd_packets/00076540 [21:39:48]OFD Sender: To server: pG, [21:39:48]CommunicateWithHost lk.salyk.kg:30040 [21:39:48]ConnectInit lk.salyk.kg [21:39:48]written 0, free lines is 4095 [21:39:49]Connected sock=10 [21:39:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 7F 6D 07 01 D5 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 25 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 41 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 A4 E4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FC 2A 01 00 35 04 06 00 37 C5 BC 9B AB 3C 7A EF 59 B1 D7 27 3D EF [21:39:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D8 D4 47 00 C2 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 34 36 35 32 10 04 04 00 FC 2A 01 00 F4 03 04 00 2E 8C 22 66 B6 04 01 00 00 7B A8 EF 08 6F 88 97 CA [21:39:49]CommunicateWithHost err = 0 [21:39:49]CheckOFDResponse [21:39:49]1017 (14) - 77093643461234 [21:39:49]1041 (16) - 0000000000874652 [21:39:49]1040 (4) - 76540 [21:39:49]1012 (4) - 19.04.2024 15:22 [21:39:49]1206 (1) - 0 [21:39:49]OFD Sender: Remove packet 76540 [21:39:49]ProducePacketName [21:39:49]name=ofd_packets/00076540 [21:39:49]NVStorageDeleteData [21:39:49]Write to MH i2c: 01 00 00 57 06 5D [21:39:49]Write i2c OK [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: 01 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: 01 07 00 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: 01 07 00 57 06 00 00 00 00 00 EB 0C 5B [21:39:49]RasterBufferAndPrint [21:39:49]line [21:39:49]line [21:39:49]line [21:39:49]line [21:39:49]line [21:39:49]written 0, free lines is 3313 [21:39:49]MH_Cut [21:39:49]Write to MH i2c: D1 01 00 5E 06 01 36 [21:39:49]Write i2c OK [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: D1 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: D1 01 00 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: D1 01 00 5E 06 00 35 [21:39:49]Write to MH i2c: 01 00 00 5F 06 65 [21:39:49]Write i2c OK [21:39:49]MH_I2C_Read... [21:39:49]OFD Sender: No OFD packet to send [21:39:50]*** Cut start [21:39:50]*** Partial cut [21:39:50]*** CUTSNS_PIN = 1 [21:39:50]*** CUTSNS_PIN = 0 [21:39:50]*** Brake cut motor [21:39:50]Read from MH i2c: 01 [21:39:50]MH_I2C_Read... [21:39:50]*** Stop cut motor [21:39:50]*** Cut end [21:39:50]Read from MH i2c: 01 07 00 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: 01 07 00 5F 06 00 00 00 00 00 FF 0F 7A [21:39:50]process_action close_receipt done [21:39:50]requested_data is exist [21:39:50]produce_requested_data [21:39:50]requested_item fm.sn is exist - process it [21:39:50]wFMCommunicate request_size=4 [21:39:50]MH_SAM_APDU [21:39:50]CAPDU: 80 11 00 00 [21:39:50]Write to MH i2c: E2 08 00 60 06 80 11 00 00 00 00 00 00 E0 [21:39:50]Write i2c OK [21:39:50]MH_I2C_Read... [21:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:50]Read from MH i2c: E2 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: E2 17 00 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: E2 17 00 60 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 33 [21:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [21:39:50]wFMCommunicate OK [21:39:50]requested_item fd.num is exist - process it [21:39:50]SAM_PROTO_GetFieldsCounters [21:39:50]wFMCommunicate request_size=4 [21:39:50]MH_SAM_APDU [21:39:50]CAPDU: 80 13 00 00 [21:39:50]Write to MH i2c: E2 08 00 61 06 80 13 00 00 00 00 00 00 E3 [21:39:50]Write i2c OK [21:39:50]MH_I2C_Read... [21:39:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:50]Read from MH i2c: E2 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: E2 62 00 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: E2 62 00 61 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FC 2A 01 00 0E 04 04 00 72 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 7E [21:39: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FC 2A 01 00 0E 04 04 00 72 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 [21:39:50]wFMCommunicate OK [21:39:50]SAM_PROTO_GetFieldsCounters done [21:39:50]requested_item shift.num is exist - process it [21:39:50]requested_item shift.opened is exist - process it [21:39:50]req_shift_opened [21:39:50]FM_GetShiftState [21:39:50]SAM_PROTO_GetShiftState [21:39:50]wFMCommunicate request_size=4 [21:39:50]MH_SAM_APDU [21:39:50]CAPDU: 80 13 01 00 [21:39:50]Write to MH i2c: E2 08 00 62 06 80 13 01 00 00 00 00 00 E5 [21:39:50]Write i2c OK [21:39:50]MH_I2C_Read... [21:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:50]Read from MH i2c: E2 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: E2 0E 00 [21:39:50]MH_I2C_Read... [21:39:50]Read from MH i2c: E2 0E 00 62 06 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 CA [21:39:50]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [21:39:50]wFMCommunicate OK [21:39:50]SAM_PROTO_GetShiftState done [21:39:50]FM_GetShiftState done [21:39:50]req_shift_opened done [21:39:50]requested_item shift.open_date is exist - process it [21:39:50]req_shift_open_date [21:39:50]req_shift_open_date done [21:39:50]produce_requested_data done [21:39:50]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76540,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [21:39:50]process_action_free close_receipt [21:39:50]json_value_free [21:39:50]json_value_free done [21:39:50]process_json_proto returns [21:39:50]Send response to host [21:39:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76540,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [21:39:50]free response buf [21:39:50]execute_script done [21:39:50]execute_script returns [21:39:50]free content buf [21:39:50]Sock 8.Close socket [21:39:50]Sock 8.Thread stoped [21:39:54]OFD Sender: No OFD packet to send [21:39:59]OFD Sender: No OFD packet to send [21:40:04]OFD Sender: No OFD packet to send [21:40:09]OFD Sender: No OFD packet to send [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [21:42:04]OFD Sender: No OFD packet to send [21:42:09]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:19]OFD Sender: No OFD packet to send [21:43:24]OFD Sender: No OFD packet to send [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:39]OFD Sender: No OFD packet to send [21:43:44]OFD Sender: No OFD packet to send [21:43:49]OFD Sender: No OFD packet to send [21:43:54]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48: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:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54: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]OFD Sender: No OFD packet to send [21:55:55]OFD Sender: No OFD packet to send [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:06]OFD Sender: No OFD packet to send [21:58:11]OFD Sender: No OFD packet to send [21:58:16]OFD Sender: No OFD packet to send [21:58:21]OFD Sender: No OFD packet to send [21:58:26]OFD Sender: No OFD packet to send [21:58:31]OFD Sender: No OFD packet to send [21:58:36]OFD Sender: No OFD packet to send [21:58:41]OFD Sender: No OFD packet to send [21:58:46]OFD Sender: No OFD packet to send [21:58:51]OFD Sender: No OFD packet to send [21:58:56]OFD Sender: No OFD packet to send [21:59:01]OFD Sender: No OFD packet to send [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:26]OFD Sender: No OFD packet to send [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:51]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:01:56]accept exits with 9 [22:01:56]New connection [22:01:56]New thread 3066592612 created [22:01:56]Thread 3066735972 joined [22:01:56]Waiting for new connection... [22:01:56] Sock 9.Parse request [22:01:56]Sock 9.Check first char [22:01:56]Sock 9.First char is OK [22:01:56]request: POST /json_proto HTTP/1.0 [22:01:56]Method: POST [22:01:56]URL: /json_proto [22:01:56]Method is POST - this is cgi request [22:01:56]url: /json_proto [22:01:56]query_string will be loaded in cgi processing [22:01:56]execute_cgi json_proto POST (null) [22:01:56]execute_cgi path=json_proto method=POST [22:01:56]POST find Content-Length [22:01:56]Host: 172.17.62.5:8080 [22:01:56]Content-Length: 1169 [22:01:56]Content-Type: application/json [22:01:56] [22:01:56]POST finish read [22:01:56]Found Content-Length = 1169 [22:01:56]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)191035\u000A19.04.2024 21:43\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 60.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 3864.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102836\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:56]execute_script... [22:01:56]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)191035\u000A19.04.2024 21:43\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 60.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 3864.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102836\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:56]POST & json_proto [22:01:56]process_json_proto [22:01:56]json parsed OK: [22:01:56]protocol is kg_v1.0 [22:01:56]action value=print_text [22:01:56]process_action print_text [22:01:56]cmd_print_text [22:01:56]ExternCall_PrintAddStr [22:01:56]wPrintStart [22:01:56]Write to MH i2c: 01 00 00 63 06 69 [22:01:56]Write i2c OK [22:01:56]MH_I2C_Read... [22:01:56]Read from MH i2c: 01 [22:01:56]MH_I2C_Read... [22:01:56]Read from MH i2c: 01 07 00 [22:01:56]MH_I2C_Read... [22:01:56]Read from MH i2c: 01 07 00 63 06 00 00 00 00 00 FF 0F 7E [22:01:56]RasterBufferAndPrint [22:01:56]line *****ТОВАРНЫЙ ЧЕК***** [22:01:56]line АЗС 106 [22:01:56]line Партнер нефть [22:01:56]line 02508201610067 [22:01:56]line Кассир : Табалдиева М. [22:01:56]line Счет N : (1)191035 [22:01:56]line 19.04.2024 21:43 [22:01:56]line ПРОДАЖА [22:01:56]line ТРК (МРК, ГНК): 22 [22:01:56]line Вид ГСМ : 2710124130 [22:01:56]line Аи-92-К-5 [22:01:56]line 60.000 x 64.40 [22:01:56]line ИТОГ: 3864.00 [22:01:56]line Тип оплаты: Талоны: ТК ГПНА Online [22:01:56]line 30102836 [22:01:56]line ______________________ [22:01:56]line (подпись) [22:01:56]written 0, free lines is 4095 [22:01:56]Write to MH i2c: 01 00 00 77 06 7D [22:01:56]Write i2c OK [22:01:56]MH_I2C_Read... [22:01:56]Read from MH i2c: 01 [22:01:56]MH_I2C_Read... [22:01:56]Read from MH i2c: 01 07 00 [22:01:56]MH_I2C_Read... [22:01:56]Read from MH i2c: 01 07 00 77 06 00 00 00 00 00 10 0E A2 [22:01:56]RasterBufferAndPrint [22:01:56]line [22:01:56]line [22:01:56]line [22:01:56]line [22:01:56]line [22:01:56]written 0, free lines is 3602 [22:01:56]MH_Cut [22:01:56]Write to MH i2c: D1 01 00 7E 06 01 56 [22:01:56]Write i2c OK [22:01:56]MH_I2C_Read... [22:01:56]Read from MH i2c: D1 [22:01:56]MH_I2C_Read... [22:01:56]Read from MH i2c: D1 01 00 [22:01:56]MH_I2C_Read... [22:01:56]Read from MH i2c: D1 01 00 7E 06 00 55 [22:01:56]Write to MH i2c: 01 00 00 7F 06 85 [22:01:56]Write i2c OK [22:01:56]MH_I2C_Read... [22:01:57]*** Cut start [22:01:57]*** Partial cut [22:01:57]*** CUTSNS_PIN = 1 [22:01:57]*** CUTSNS_PIN = 0 [22:01:57]*** Brake cut motor [22:01:57]Read from MH i2c: 01 [22:01:57]MH_I2C_Read... [22:01:57]*** Stop cut motor [22:01:57]*** Cut end [22:01:57]Read from MH i2c: 01 07 00 [22:01:57]MH_I2C_Read... [22:01:57]Read from MH i2c: 01 07 00 7F 06 00 00 00 00 00 FF 0F 9A [22:01:57]process_action print_text done [22:01:57]requested_data is exist [22:01:57]produce_requested_data [22:01:57]requested_item fm.sn is exist - process it [22:01:57]wFMCommunicate request_size=4 [22:01:57]MH_SAM_APDU [22:01:57]CAPDU: 80 11 00 00 [22:01:57]Write to MH i2c: E2 08 00 80 06 80 11 00 00 00 00 00 00 00 [22:01:57]Write i2c OK [22:01:57]MH_I2C_Read... [22:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:57]Read from MH i2c: E2 [22:01:57]MH_I2C_Read... [22:01:57]Read from MH i2c: E2 17 00 [22:01:57]MH_I2C_Read... [22:01:57]Read from MH i2c: E2 17 00 80 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 53 [22:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:01:57]wFMCommunicate OK [22:01:57]requested_item fd.num is exist - process it [22:01:57]SAM_PROTO_GetFieldsCounters [22:01:57]wFMCommunicate request_size=4 [22:01:57]MH_SAM_APDU [22:01:57]CAPDU: 80 13 00 00 [22:01:57]Write to MH i2c: E2 08 00 81 06 80 13 00 00 00 00 00 00 03 [22:01:57]Write i2c OK [22:01:57]MH_I2C_Read... [22:01:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:58]Read from MH i2c: E2 [22:01:58]MH_I2C_Read... [22:01:58]Read from MH i2c: E2 62 00 [22:01:58]MH_I2C_Read... [22:01:58]Read from MH i2c: E2 62 00 81 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FC 2A 01 00 0E 04 04 00 72 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 9E [22:01:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FC 2A 01 00 0E 04 04 00 72 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 [22:01:58]wFMCommunicate OK [22:01:58]SAM_PROTO_GetFieldsCounters done [22:01:58]requested_item shift.num is exist - process it [22:01:58]requested_item shift.opened is exist - process it [22:01:58]req_shift_opened [22:01:58]FM_GetShiftState [22:01:58]SAM_PROTO_GetShiftState [22:01:58]wFMCommunicate request_size=4 [22:01:58]MH_SAM_APDU [22:01:58]CAPDU: 80 13 01 00 [22:01:58]Write to MH i2c: E2 08 00 82 06 80 13 01 00 00 00 00 00 05 [22:01:58]Write i2c OK [22:01:58]MH_I2C_Read... [22:01:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:58]Read from MH i2c: E2 [22:01:58]MH_I2C_Read... [22:01:58]Read from MH i2c: E2 0E 00 [22:01:58]MH_I2C_Read... [22:01:58]Read from MH i2c: E2 0E 00 82 06 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 EA [22:01:58]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [22:01:58]wFMCommunicate OK [22:01:58]SAM_PROTO_GetShiftState done [22:01:58]FM_GetShiftState done [22:01:58]req_shift_opened done [22:01:58]requested_item shift.open_date is exist - process it [22:01:58]req_shift_open_date [22:01:58]req_shift_open_date done [22:01:58]produce_requested_data done [22:01:58]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76540,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [22:01:58]process_action_free print_text [22:01:58]json_value_free [22:01:58]json_value_free done [22:01:58]process_json_proto returns [22:01:58]Send response to host [22:01:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76540,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [22:01:58]free response buf [22:01:58]execute_script done [22:01:58]execute_script returns [22:01:58]free content buf [22:01:58]Sock 9.Close socket [22:01:58]Sock 9.Thread stoped [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:19]accept exits with 8 [22:09:19]New connection [22:09:19]New thread 3066735972 created [22:09:19]Thread 3066592612 joined [22:09:19]Waiting for new connection... [22:09:19] Sock 8.Parse request [22:09:19]Sock 8.Check first char [22:09:19]Sock 8.First char is OK [22:09:19]request: POST /json_proto HTTP/1.0 [22:09:19]Method: POST [22:09:19]URL: /json_proto [22:09:19]Method is POST - this is cgi request [22:09:19]url: /json_proto [22:09:19]query_string will be loaded in cgi processing [22:09:19]execute_cgi json_proto POST (null) [22:09:19]execute_cgi path=json_proto method=POST [22:09:19]POST find Content-Length [22:09:19]Host: 172.17.62.5:8080 [22:09:19]Content-Length: 971 [22:09:19]Content-Type: application/json [22:09:19] [22:09:19]POST finish read [22:09:19]Found Content-Length = 971 [22:09:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 43.060, "sum" : 1365.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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 43.06 \u0441\u043E\u043C", "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 1365.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:19]execute_script... [22:09: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)191036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 43.060, "sum" : 1365.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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 43.06 \u0441\u043E\u043C", "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 1365.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:19]POST & json_proto [22:09:19]process_json_proto [22:09:19]json parsed OK: [22:09:19]protocol is kg_v1.0 [22:09:19]action value=close_receipt [22:09:19]process_action close_receipt [22:09:19]cmd_close_receipt [22:09:19]MH_GetDate [22:09:19]Write to MH i2c: F0 00 00 83 06 78 [22:09:19]Write i2c OK [22:09:19]MH_I2C_Read... [22:09:19]Read from MH i2c: F0 [22:09:19]MH_I2C_Read... [22:09:19]Read from MH i2c: F0 09 00 [22:09:19]MH_I2C_Read... [22:09:19]Read from MH i2c: F0 09 00 83 06 00 90 EB 22 66 F4 E9 65 64 2A [22:09:19]GetLastDocTimeStamp 1713562788 [22:09:19]current date 1713564560 [22:09:19]FM_GetShiftState [22:09:19]SAM_PROTO_GetShiftState [22:09:19]wFMCommunicate request_size=4 [22:09:19]MH_SAM_APDU [22:09:19]CAPDU: 80 13 01 00 [22:09:19]Write to MH i2c: E2 08 00 84 06 80 13 01 00 00 00 00 00 07 [22:09:19]Write i2c OK [22:09:19]MH_I2C_Read... [22:09:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:19]Read from MH i2c: E2 [22:09:19]MH_I2C_Read... [22:09:19]Read from MH i2c: E2 0E 00 [22:09:19]MH_I2C_Read... [22:09:19]Read from MH i2c: E2 0E 00 84 06 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 EC [22:09:19]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [22:09:19]wFMCommunicate OK [22:09:19]SAM_PROTO_GetShiftState done [22:09:19]FM_GetShiftState done [22:09:19]opened in 1713486233 [22:09:19]opened+sec_in_day 1713572633 [22:09:19]quantity*price = 136500 [22:09:19]sum+1 = 136501 [22:09:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1365.00 Внесено: 2000.00 СДАЧА: 635.00 НСП 1% : 12.08 НДС 12% : 144.96 Наличными: 1365.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 161 19.04.2024 22:09 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 43.06 сом ФМ: 0000000000874652 ФД: 76541 ФПД: 109239579460664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T220920&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76541&fm=109239579460664&tin=02508201610067®Number=0000000000091573&sum=136500 [22:09:20]StoreToDocumentArchive [22:09:20]shift 370 fd 76541 [22:09:20]save to /storage/0370/doc_00076541 [22:09:20]save last doc name /storage/0370/doc_00076541 to /storage/kkm_last_doc_name [22:09:20]save OK [22:09:20]Clear old archive folders... [22:09:20]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:09:20]tlvbuf is 01618B40 [22:09:20]SAM_PROTO_ClearQueue [22:09:20]wFMCommunicate request_size=4 [22:09:20]MH_SAM_APDU [22:09:20]CAPDU: 80 09 00 00 [22:09:20]Write to MH i2c: E2 08 00 91 06 80 09 00 00 00 00 00 00 09 [22:09:20]Write i2c OK [22:09:20]MH_I2C_Read... [22:09:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:09:20]Read from MH i2c: E2 [22:09:20]MH_I2C_Read... [22:09:20]Read from MH i2c: E2 03 00 [22:09:20]MH_I2C_Read... [22:09:20]Read from MH i2c: E2 03 00 91 06 00 90 00 0B [22:09:20]RAPDU: 90 00 [22:09:20]wFMCommunicate OK [22:09:20]SAM_PROTO_ClearQueue done [22:09:20]KKMCreateOFDPacket [22:09:20]OFDProtocolAddRootSTLVToBuf [22:09:20]FM_MakeSignedData [22:09:20]FM_MakeSignedData [22:09:20]SAM_PROTO_SignData [22:09:20]wFMCommunicate request_size=4 [22:09:20]MH_SAM_APDU [22:09:20]CAPDU: 80 0D 01 02 [22:09:20]Write to MH i2c: E2 08 00 92 06 80 0D 01 02 00 00 00 00 11 [22:09:20]Write i2c OK [22:09:20]MH_I2C_Read... [22:09:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:09:20]Read from MH i2c: E2 [22:09:20]MH_I2C_Read... [22:09:20]Read from MH i2c: E2 03 00 [22:09:20]MH_I2C_Read... [22:09:20]Read from MH i2c: E2 03 00 92 06 00 90 00 0C [22:09:20]RAPDU: 90 00 [22:09:20]wFMCommunicate OK [22:09:20]wFMCommunicate request_size=255 [22:09:20]MH_SAM_APDU [22:09:20]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 34 A8 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 34 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 A0 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 A1 00 00 00 F4 03 04 00 90 EB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FD 2A 01 00 35 04 06 00 63 5A [22:09:20]Write to MH i2c: E2 02 01 93 06 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 34 A8 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 34 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 A0 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 A1 00 00 00 F4 03 04 00 90 EB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FD 2A 01 00 35 04 06 00 63 5A 00 00 7D [22:09:20]Write i2c OK [22:09:20]MH_I2C_Read... [22:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:20]Read from MH i2c: E2 [22:09:20]MH_I2C_Read... [22:09:20]Read from MH i2c: E2 03 00 [22:09:20]MH_I2C_Read... [22:09:20]Read from MH i2c: E2 03 00 93 06 00 90 00 0D [22:09:20]RAPDU: 90 00 [22:09:20]wFMCommunicate OK [22:09:20]wFMCommunicate request_size=9 [22:09:20]MH_SAM_APDU [22:09:20]CAPDU: 80 0D 02 02 04 52 54 44 38 [22:09:20]Write to MH i2c: E2 0C 00 94 06 80 0D 02 02 04 00 52 54 44 38 00 00 3E [22:09:20]Write i2c OK [22:09:20]MH_I2C_Read... [22:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:21]Read from MH i2c: E2 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: E2 03 00 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: E2 03 00 94 06 00 90 00 0E [22:09:21]RAPDU: 90 00 [22:09:21]wFMCommunicate OK [22:09:21]wFMCommunicate request_size=4 [22:09:21]MH_SAM_APDU [22:09:21]CAPDU: 80 0D 03 02 [22:09:21]Write to MH i2c: E2 08 00 95 06 80 0D 03 02 00 00 00 00 16 [22:09:21]Write i2c OK [22:09:21]MH_I2C_Read... [22:09:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:09:21]Read from MH i2c: E2 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: E2 0B 00 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: E2 0B 00 95 06 00 8A 21 76 00 07 61 BC DD 90 00 39 [22:09:21]RAPDU: 8A 21 76 00 07 61 BC DD 90 00 [22:09:21]wFMCommunicate OK [22:09:21]SAM_PROTO_SignData done [22:09:21]FM_MakeSignedData done [22:09:21]CreateOFDProtocolMessage [22:09:21]wFMCommunicate request_size=4 [22:09:21]MH_SAM_APDU [22:09:21]CAPDU: 80 11 00 00 [22:09:21]Write to MH i2c: E2 08 00 96 06 80 11 00 00 00 00 00 00 16 [22:09:21]Write i2c OK [22:09:21]MH_I2C_Read... [22:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:21]Read from MH i2c: E2 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: E2 17 00 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: E2 17 00 96 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 69 [22:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:09:21]wFMCommunicate OK [22:09:21]CreateOFDProtocolMessage done [22:09:21]OFDSenderStorePacket 76541 [22:09:21]StoreOFDPacket docnum=76541 [22:09:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 5E 9F 06 01 E3 64 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 34 A8 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 34 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 A0 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 A1 00 00 00 F4 03 04 00 90 EB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FD 2A 01 00 35 04 06 00 63 5A 52 54 44 38 8A 21 76 00 07 61 BC DD [22:09:21]CheckFolder [22:09:21]dirname=/storage/ofd_packets [22:09:21]CheckFolder done [22:09:21]ProducePacketName [22:09:21]name=ofd_packets/00076541 [22:09:21]NVStorageSaveData ofd_packets/00076541 [22:09:21]File name is /storage/ofd_packets/00076541 [22:09:21]Write 300 bytes [22:09:21]NVStorageSaveData done [22:09:21]OFDSenderStorePacket done [22:09:21]KKMCreateOFDPacket done [22:09:21]NVStorageSaveData kkm_last_timestamp [22:09:21]File name is /storage/kkm_last_timestamp [22:09:21]Write 4 bytes [22:09:21]NVStorageSaveData done [22:09:21]ExternCall_PrintAddStr [22:09:21]wPrintStart [22:09:21]Write to MH i2c: 01 00 00 97 06 9D [22:09:21]Write i2c OK [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: 01 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: 01 07 00 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: 01 07 00 97 06 00 00 00 00 00 FF 0F B2 [22:09:21]RasterBufferAndPrint [22:09:21]line Счет N : (1)191036 [22:09:21]line ИНН: 02508201610067 [22:09:21]line Контрольно-Кассовый Чек [22:09:21]line ПРОДАЖА [22:09:21]line ТРК (МРК, ГНК) : 71 [22:09:21]line Товар: 2711190000 [22:09:21]line ГАЗ-К-5 [22:09:21]line 43.060 * 31.70 [22:09:21]line = 1365.00 [22:09:21]line НДС 12% НСП 1% [22:09:21]line > о реализуемом товаре [22:09:21]line ИТОГО: 1365.00 [22:09:21]line Внесено: 2000.00 [22:09:21]line СДАЧА: 635.00 [22:09:21]line НСП 1% : 12.08 [22:09:21]line НДС 12% : 144.96 [22:09:21]line Наличными: 1365.00 [22:09:21]line Безнал.: 0.00 [22:09:21]line Место: АЗС № 106 "Партнер Нефть" [22:09:21]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [22:09:21]line СНО: Общий режим [22:09:21]line Чек 161 19.04.2024 22:09 [22:09:21]line Смена: 370 ФФД: 1.0 [22:09:21]line ЗНМ: 0300000141 [22:09:21]line РНМ: 0000000000091573 [22:09:21]line Версия ККМ: 001 [22:09:21]line [22:09:21]line Дисконтная программа [22:09:21]line СУГ [22:09:21]line номер 106 [22:09:21]line сэкономлено 43.06 сом [22:09:21]line ФМ: 0000000000874652 [22:09:21]line ФД: 76541 [22:09:21]line ФПД: 109239579460664 [22:09:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T220920&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76541&fm=109239579460664&tin=02508201610067®Number=0000000000091573&sum=136500 [22:09:21]OFD Sender: Processing packet 76541 [packets to send 128, broken 127] [22:09:21]ProducePacketName [22:09:21]name=ofd_packets/00076541 [22:09:21]OFD Sender: To server: pG, [22:09:21]CommunicateWithHost lk.salyk.kg:30040 [22:09:21]ConnectInit lk.salyk.kg [22:09:21]written 0, free lines is 4095 [22:09:21]Connected sock=10 [22:09:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 5E 9F 06 01 E3 64 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 34 A8 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 34 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 A0 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 A1 00 00 00 F4 03 04 00 90 EB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FD 2A 01 00 35 04 06 00 63 5A 52 54 44 38 8A 21 76 00 07 61 BC DD [22:09:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 67 EA 47 00 16 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FD 2A 01 00 F4 03 04 00 1B 93 22 66 B6 04 01 00 00 4D B1 19 91 57 BB F0 BD [22:09:21]CommunicateWithHost err = 0 [22:09:21]CheckOFDResponse [22:09:21]1017 (14) - 77093643461234 [22:09:21]1041 (16) - 0000000000874652 [22:09:21]1040 (4) - 76541 [22:09:21]1012 (4) - 19.04.2024 15:51 [22:09:21]1206 (1) - 0 [22:09:21]OFD Sender: Remove packet 76541 [22:09:21]ProducePacketName [22:09:21]name=ofd_packets/00076541 [22:09:21]NVStorageDeleteData [22:09:21]Write to MH i2c: 01 00 00 C5 06 CB [22:09:21]Write i2c OK [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: 01 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: 01 07 00 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: 01 07 00 C5 06 00 00 00 00 00 B6 0C 94 [22:09:21]RasterBufferAndPrint [22:09:21]line [22:09:21]line [22:09:21]line [22:09:21]line [22:09:21]line [22:09:21]written 0, free lines is 3258 [22:09:21]MH_Cut [22:09:21]Write to MH i2c: D1 01 00 CC 06 01 A4 [22:09:21]Write i2c OK [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: D1 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: D1 01 00 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: D1 01 00 CC 06 00 A3 [22:09:21]Write to MH i2c: 01 00 00 CD 06 D3 [22:09:21]Write i2c OK [22:09:21]MH_I2C_Read... [22:09:22]OFD Sender: No OFD packet to send [22:09:22]*** Cut start [22:09:22]*** Partial cut [22:09:22]*** CUTSNS_PIN = 1 [22:09:22]*** CUTSNS_PIN = 0 [22:09:23]*** Brake cut motor [22:09:23]Read from MH i2c: 01 [22:09:23]MH_I2C_Read... [22:09:23]*** Stop cut motor [22:09:23]*** Cut end [22:09:23]Read from MH i2c: 01 07 00 [22:09:23]MH_I2C_Read... [22:09:23]Read from MH i2c: 01 07 00 CD 06 00 00 00 00 00 FF 0F E8 [22:09:23]process_action close_receipt done [22:09:23]requested_data is exist [22:09:23]produce_requested_data [22:09:23]requested_item fm.sn is exist - process it [22:09:23]wFMCommunicate request_size=4 [22:09:23]MH_SAM_APDU [22:09:23]CAPDU: 80 11 00 00 [22:09:23]Write to MH i2c: E2 08 00 CE 06 80 11 00 00 00 00 00 00 4E [22:09:23]Write i2c OK [22:09:23]MH_I2C_Read... [22:09:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:23]Read from MH i2c: E2 [22:09:23]MH_I2C_Read... [22:09:23]Read from MH i2c: E2 17 00 [22:09:23]MH_I2C_Read... [22:09:23]Read from MH i2c: E2 17 00 CE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A1 [22:09:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:09:23]wFMCommunicate OK [22:09:23]requested_item fd.num is exist - process it [22:09:23]SAM_PROTO_GetFieldsCounters [22:09:23]wFMCommunicate request_size=4 [22:09:23]MH_SAM_APDU [22:09:23]CAPDU: 80 13 00 00 [22:09:23]Write to MH i2c: E2 08 00 CF 06 80 13 00 00 00 00 00 00 51 [22:09:23]Write i2c OK [22:09:23]MH_I2C_Read... [22:09:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:09:23]Read from MH i2c: E2 [22:09:23]MH_I2C_Read... [22:09:23]Read from MH i2c: E2 62 00 [22:09:23]MH_I2C_Read... [22:09:23]Read from MH i2c: E2 62 00 CF 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FD 2A 01 00 0E 04 04 00 72 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 F0 [22:09:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FD 2A 01 00 0E 04 04 00 72 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 [22:09:23]wFMCommunicate OK [22:09:23]SAM_PROTO_GetFieldsCounters done [22:09:23]requested_item shift.num is exist - process it [22:09:23]requested_item shift.opened is exist - process it [22:09:23]req_shift_opened [22:09:23]FM_GetShiftState [22:09:23]SAM_PROTO_GetShiftState [22:09:23]wFMCommunicate request_size=4 [22:09:23]MH_SAM_APDU [22:09:23]CAPDU: 80 13 01 00 [22:09:23]Write to MH i2c: E2 08 00 D0 06 80 13 01 00 00 00 00 00 53 [22:09:23]Write i2c OK [22:09:23]MH_I2C_Read... [22:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:23]Read from MH i2c: E2 [22:09:23]MH_I2C_Read... [22:09:23]Read from MH i2c: E2 0E 00 [22:09:23]MH_I2C_Read... [22:09:23]Read from MH i2c: E2 0E 00 D0 06 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 38 [22:09:23]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [22:09:23]wFMCommunicate OK [22:09:23]SAM_PROTO_GetShiftState done [22:09:23]FM_GetShiftState done [22:09:23]req_shift_opened done [22:09:23]requested_item shift.open_date is exist - process it [22:09:23]req_shift_open_date [22:09:23]req_shift_open_date done [22:09:23]produce_requested_data done [22:09:23]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76541,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [22:09:23]process_action_free close_receipt [22:09:23]json_value_free [22:09:23]json_value_free done [22:09:23]process_json_proto returns [22:09:23]Send response to host [22:09:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76541,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [22:09:23]free response buf [22:09:23]execute_script done [22:09:23]execute_script returns [22:09:23]free content buf [22:09:23]Sock 8.Close socket [22:09:23]Sock 8.Thread stoped [22:09:27]OFD Sender: No OFD packet to send [22:09:32]OFD Sender: No OFD packet to send [22:09:37]OFD Sender: No OFD packet to send [22:09:38]accept exits with 9 [22:09:38]New connection [22:09:38]New thread 3066592612 created [22:09:38]Thread 3066735972 joined [22:09:38]Waiting for new connection... [22:09:38] Sock 9.Parse request [22:09:38]Sock 9.Check first char [22:09:38]Sock 9.First char is OK [22:09:38]request: POST /json_proto HTTP/1.0 [22:09:38]Method: POST [22:09:38]URL: /json_proto [22:09:38]Method is POST - this is cgi request [22:09:38]url: /json_proto [22:09:38]query_string will be loaded in cgi processing [22:09:38]execute_cgi json_proto POST (null) [22:09:38]execute_cgi path=json_proto method=POST [22:09:38]POST find Content-Length [22:09:38]Host: 172.17.62.5:8080 [22:09:38]Content-Length: 805 [22:09:38]Content-Type: application/json [22:09:38] [22:09:38]POST finish read [22:09:38]Found Content-Length = 805 [22:09:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191037", "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" : 64.40, "quantity" : 5.000, "sum" : 322.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 322.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:38]execute_script... [22:09: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)191037", "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" : 64.40, "quantity" : 5.000, "sum" : 322.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 322.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:38]POST & json_proto [22:09:38]process_json_proto [22:09:38]json parsed OK: [22:09:38]protocol is kg_v1.0 [22:09:38]action value=close_receipt [22:09:38]process_action close_receipt [22:09:38]cmd_close_receipt [22:09:38]MH_GetDate [22:09:38]Write to MH i2c: F0 00 00 D1 06 C6 [22:09:38]Write i2c OK [22:09:38]MH_I2C_Read... [22:09:38]Read from MH i2c: F0 [22:09:38]MH_I2C_Read... [22:09:38]Read from MH i2c: F0 09 00 [22:09:38]MH_I2C_Read... [22:09:38]Read from MH i2c: F0 09 00 D1 06 00 A4 EB 22 66 F4 E9 65 64 8C [22:09:38]GetLastDocTimeStamp 1713564560 [22:09:38]current date 1713564580 [22:09:38]FM_GetShiftState [22:09:38]SAM_PROTO_GetShiftState [22:09:38]wFMCommunicate request_size=4 [22:09:38]MH_SAM_APDU [22:09:38]CAPDU: 80 13 01 00 [22:09:38]Write to MH i2c: E2 08 00 D2 06 80 13 01 00 00 00 00 00 55 [22:09:38]Write i2c OK [22:09:38]MH_I2C_Read... [22:09:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:39]Read from MH i2c: E2 [22:09:39]MH_I2C_Read... [22:09:39]Read from MH i2c: E2 0E 00 [22:09:39]MH_I2C_Read... [22:09:39]Read from MH i2c: E2 0E 00 D2 06 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 3A [22:09:39]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [22:09:39]wFMCommunicate OK [22:09:39]SAM_PROTO_GetShiftState done [22:09:39]FM_GetShiftState done [22:09:39]opened in 1713486233 [22:09:39]opened+sec_in_day 1713572633 [22:09:39]quantity*price = 32200 [22:09:39]sum+1 = 32201 [22:09:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 322.00 НСП 1% : 2.85 НДС 12% : 34.19 Наличными: 0.00 Безнал.: 322.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 162 19.04.2024 22:09 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76542 ФПД: 92825676845809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T220940&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76542&fm=92825676845809&tin=02508201610067®Number=0000000000091573&sum=32200 [22:09:40]StoreToDocumentArchive [22:09:40]shift 370 fd 76542 [22:09:40]save to /storage/0370/doc_00076542 [22:09:40]save last doc name /storage/0370/doc_00076542 to /storage/kkm_last_doc_name [22:09:40]save OK [22:09:40]Clear old archive folders... [22:09:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:09:40]tlvbuf is 01618F00 [22:09:40]SAM_PROTO_ClearQueue [22:09:40]wFMCommunicate request_size=4 [22:09:40]MH_SAM_APDU [22:09:40]CAPDU: 80 09 00 00 [22:09:40]Write to MH i2c: E2 08 00 DF 06 80 09 00 00 00 00 00 00 57 [22:09:40]Write i2c OK [22:09:40]MH_I2C_Read... [22:09:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:09:40]Read from MH i2c: E2 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 03 00 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 03 00 DF 06 00 90 00 59 [22:09:40]RAPDU: 90 00 [22:09:40]wFMCommunicate OK [22:09:40]SAM_PROTO_ClearQueue done [22:09:40]KKMCreateOFDPacket [22:09:40]OFDProtocolAddRootSTLVToBuf [22:09:40]FM_MakeSignedData [22:09:40]FM_MakeSignedData [22:09:40]SAM_PROTO_SignData [22:09:40]wFMCommunicate request_size=4 [22:09:40]MH_SAM_APDU [22:09:40]CAPDU: 80 0D 01 02 [22:09:40]Write to MH i2c: E2 08 00 E0 06 80 0D 01 02 00 00 00 00 5F [22:09:40]Write i2c OK [22:09:40]MH_I2C_Read... [22:09:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:09:40]Read from MH i2c: E2 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 03 00 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 03 00 E0 06 00 90 00 5A [22:09:40]RAPDU: 90 00 [22:09:40]wFMCommunicate OK [22:09:40]wFMCommunicate request_size=255 [22:09:40]MH_SAM_APDU [22:09: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 88 13 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 C8 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 A4 EB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FE 2A 01 00 35 04 06 00 54 [22:09:40]Write to MH i2c: E2 02 01 E1 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 88 13 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 C8 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 A4 EB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FE 2A 01 00 35 04 06 00 54 00 00 43 [22:09:40]Write i2c OK [22:09:40]MH_I2C_Read... [22:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:40]Read from MH i2c: E2 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 03 00 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 03 00 E1 06 00 90 00 5B [22:09:40]RAPDU: 90 00 [22:09:40]wFMCommunicate OK [22:09:40]wFMCommunicate request_size=10 [22:09:40]MH_SAM_APDU [22:09:40]CAPDU: 80 0D 02 02 05 6C A9 7E 92 F1 [22:09:40]Write to MH i2c: E2 0D 00 E2 06 80 0D 02 02 05 00 6C A9 7E 92 F1 00 00 82 [22:09:40]Write i2c OK [22:09:40]MH_I2C_Read... [22:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:40]Read from MH i2c: E2 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 03 00 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 03 00 E2 06 00 90 00 5C [22:09:40]RAPDU: 90 00 [22:09:40]wFMCommunicate OK [22:09:40]wFMCommunicate request_size=4 [22:09:40]MH_SAM_APDU [22:09:40]CAPDU: 80 0D 03 02 [22:09:40]Write to MH i2c: E2 08 00 E3 06 80 0D 03 02 00 00 00 00 64 [22:09:40]Write i2c OK [22:09:40]MH_I2C_Read... [22:09:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:09:40]Read from MH i2c: E2 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 0B 00 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 0B 00 E3 06 00 9F 47 57 52 8A A3 CA 39 90 00 24 [22:09:40]RAPDU: 9F 47 57 52 8A A3 CA 39 90 00 [22:09:40]wFMCommunicate OK [22:09:40]SAM_PROTO_SignData done [22:09:40]FM_MakeSignedData done [22:09:40]CreateOFDProtocolMessage [22:09:40]wFMCommunicate request_size=4 [22:09:40]MH_SAM_APDU [22:09:40]CAPDU: 80 11 00 00 [22:09:40]Write to MH i2c: E2 08 00 E4 06 80 11 00 00 00 00 00 00 64 [22:09:40]Write i2c OK [22:09:40]MH_I2C_Read... [22:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:40]Read from MH i2c: E2 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 17 00 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 17 00 E4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B7 [22:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:09:40]wFMCommunicate OK [22:09:40]CreateOFDProtocolMessage done [22:09:40]OFDSenderStorePacket 76542 [22:09:40]StoreOFDPacket docnum=76542 [22:09:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 71 27 07 01 E6 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 88 13 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 C8 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 A4 EB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FE 2A 01 00 35 04 06 00 54 6C A9 7E 92 F1 9F 47 57 52 8A A3 CA 39 [22:09:40]CheckFolder [22:09:40]dirname=/storage/ofd_packets [22:09:40]CheckFolder done [22:09:40]ProducePacketName [22:09:40]name=ofd_packets/00076542 [22:09:40]NVStorageSaveData ofd_packets/00076542 [22:09:40]File name is /storage/ofd_packets/00076542 [22:09:40]Write 301 bytes [22:09:40]NVStorageSaveData done [22:09:40]OFDSenderStorePacket done [22:09:40]KKMCreateOFDPacket done [22:09:40]NVStorageSaveData kkm_last_timestamp [22:09:40]File name is /storage/kkm_last_timestamp [22:09:40]Write 4 bytes [22:09:40]NVStorageSaveData done [22:09:40]ExternCall_PrintAddStr [22:09:40]wPrintStart [22:09:40]Write to MH i2c: 01 00 00 E5 06 EB [22:09:40]Write i2c OK [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: 01 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: 01 07 00 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: 01 07 00 E5 06 00 00 00 00 00 FF 0F 00 [22:09:40]RasterBufferAndPrint [22:09:40]line Счет N : (1)191037 [22:09:40]line ИНН: 02508201610067 [22:09:40]line Контрольно-Кассовый Чек [22:09:40]line ПРОДАЖА [22:09:40]line ТРК (МРК, ГНК) : 12 [22:09:40]line Товар: 2710124130 [22:09:40]line Аи-92-К-5 [22:09:40]line 5.000 * 64.40 [22:09:40]line = 322.00 [22:09:40]line НДС 12% НСП 1% [22:09:40]line > о реализуемом товаре [22:09:40]line ИТОГО: 322.00 [22:09:40]line НСП 1% : 2.85 [22:09:40]line НДС 12% : 34.19 [22:09:40]line Наличными: 0.00 [22:09:40]line Безнал.: 322.00 [22:09:40]line Место: АЗС № 106 "Партнер Нефть" [22:09:40]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [22:09:40]line СНО: Общий режим [22:09:40]line Чек 162 19.04.2024 22:09 [22:09:40]line Смена: 370 ФФД: 1.0 [22:09:40]line ЗНМ: 0300000141 [22:09:40]line РНМ: 0000000000091573 [22:09:40]line Версия ККМ: 001 [22:09:40]line Платежная система: О! деньги [22:09:40]line ФМ: 0000000000874652 [22:09:40]line ФД: 76542 [22:09:40]line ФПД: 92825676845809 [22:09:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T220940&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76542&fm=92825676845809&tin=02508201610067®Number=0000000000091573&sum=32200 [22:09:40]written 0, free lines is 4095 [22:09:40]OFD Sender: Processing packet 76542 [packets to send 128, broken 127] [22:09:40]ProducePacketName [22:09:40]name=ofd_packets/00076542 [22:09:40]OFD Sender: To server: pG, [22:09:40]CommunicateWithHost lk.salyk.kg:30040 [22:09:40]ConnectInit lk.salyk.kg [22:09:40]Connected sock=10 [22:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 71 27 07 01 E6 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 88 13 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 C8 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 A4 EB 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FE 2A 01 00 35 04 06 00 54 6C A9 7E 92 F1 9F 47 57 52 8A A3 CA 39 [22:09:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 47 3F 47 00 52 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FE 2A 01 00 F4 03 04 00 2E 93 22 66 B6 04 01 00 00 B1 29 DB E2 B0 4A 0F 6A [22:09:41]CommunicateWithHost err = 0 [22:09:41]CheckOFDResponse [22:09:41]1017 (14) - 77093643461234 [22:09:41]1041 (16) - 0000000000874652 [22:09:41]1040 (4) - 76542 [22:09:41]1012 (4) - 19.04.2024 15:52 [22:09:41]1206 (1) - 0 [22:09:41]OFD Sender: Remove packet 76542 [22:09:41]ProducePacketName [22:09:41]name=ofd_packets/00076542 [22:09:41]NVStorageDeleteData [22:09:41]Write to MH i2c: 01 00 00 0E 07 15 [22:09:41]Write i2c OK [22:09:41]MH_I2C_Read... [22:09:41]Read from MH i2c: 01 [22:09:41]MH_I2C_Read... [22:09:41]Read from MH i2c: 01 07 00 [22:09:41]MH_I2C_Read... [22:09:41]Read from MH i2c: 01 07 00 0E 07 00 00 00 00 00 0E 0D 37 [22:09:41]RasterBufferAndPrint [22:09:41]line [22:09:41]line [22:09:41]line [22:09:41]line [22:09:41]line [22:09:41]written 0, free lines is 3348 [22:09:41]MH_Cut [22:09:41]Write to MH i2c: D1 01 00 15 07 01 EE [22:09:41]Write i2c OK [22:09:41]MH_I2C_Read... [22:09:41]Read from MH i2c: D1 [22:09:41]MH_I2C_Read... [22:09:41]Read from MH i2c: D1 01 00 [22:09:41]MH_I2C_Read... [22:09:41]Read from MH i2c: D1 01 00 15 07 00 ED [22:09:41]Write to MH i2c: 01 00 00 16 07 1D [22:09:41]Write i2c OK [22:09:41]MH_I2C_Read... [22:09:41]OFD Sender: No OFD packet to send [22:09:41]*** Cut start [22:09:41]*** Partial cut [22:09:41]*** CUTSNS_PIN = 1 [22:09:41]*** CUTSNS_PIN = 0 [22:09:42]*** Brake cut motor [22:09:42]Read from MH i2c: 01 [22:09:42]MH_I2C_Read... [22:09:42]*** Stop cut motor [22:09:42]*** Cut end [22:09:42]Read from MH i2c: 01 07 00 [22:09:42]MH_I2C_Read... [22:09:42]Read from MH i2c: 01 07 00 16 07 00 00 00 00 00 FF 0F 32 [22:09:42]process_action close_receipt done [22:09:42]requested_data is exist [22:09:42]produce_requested_data [22:09:42]requested_item fm.sn is exist - process it [22:09:42]wFMCommunicate request_size=4 [22:09:42]MH_SAM_APDU [22:09:42]CAPDU: 80 11 00 00 [22:09:42]Write to MH i2c: E2 08 00 17 07 80 11 00 00 00 00 00 00 98 [22:09:42]Write i2c OK [22:09:42]MH_I2C_Read... [22:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:42]Read from MH i2c: E2 [22:09:42]MH_I2C_Read... [22:09:42]Read from MH i2c: E2 17 00 [22:09:42]MH_I2C_Read... [22:09:42]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 34 36 35 32 90 00 EB [22:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:09:42]wFMCommunicate OK [22:09:42]requested_item fd.num is exist - process it [22:09:42]SAM_PROTO_GetFieldsCounters [22:09:42]wFMCommunicate request_size=4 [22:09:42]MH_SAM_APDU [22:09:42]CAPDU: 80 13 00 00 [22:09:42]Write to MH i2c: E2 08 00 18 07 80 13 00 00 00 00 00 00 9B [22:09:42]Write i2c OK [22:09:42]MH_I2C_Read... [22:09:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:09:42]Read from MH i2c: E2 [22:09:42]MH_I2C_Read... [22:09:42]Read from MH i2c: E2 62 00 [22:09:42]MH_I2C_Read... [22:09:42]Read from MH i2c: E2 62 00 18 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FE 2A 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [22:09: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FE 2A 01 00 0E 04 04 00 72 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 [22:09:42]wFMCommunicate OK [22:09:42]SAM_PROTO_GetFieldsCounters done [22:09:42]requested_item shift.num is exist - process it [22:09:42]requested_item shift.opened is exist - process it [22:09:42]req_shift_opened [22:09:42]FM_GetShiftState [22:09:42]SAM_PROTO_GetShiftState [22:09:42]wFMCommunicate request_size=4 [22:09:42]MH_SAM_APDU [22:09:42]CAPDU: 80 13 01 00 [22:09:42]Write to MH i2c: E2 08 00 19 07 80 13 01 00 00 00 00 00 9D [22:09:42]Write i2c OK [22:09:42]MH_I2C_Read... [22:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:42]Read from MH i2c: E2 [22:09:42]MH_I2C_Read... [22:09:42]Read from MH i2c: E2 0E 00 [22:09:42]MH_I2C_Read... [22:09:42]Read from MH i2c: E2 0E 00 19 07 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 82 [22:09:42]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [22:09:42]wFMCommunicate OK [22:09:42]SAM_PROTO_GetShiftState done [22:09:42]FM_GetShiftState done [22:09:42]req_shift_opened done [22:09:42]requested_item shift.open_date is exist - process it [22:09:42]req_shift_open_date [22:09:42]req_shift_open_date done [22:09:42]produce_requested_data done [22:09:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76542,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [22:09:42]process_action_free close_receipt [22:09:42]json_value_free [22:09:42]json_value_free done [22:09:42]process_json_proto returns [22:09:42]Send response to host [22:09:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76542,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [22:09:42]free response buf [22:09:42]execute_script done [22:09:42]execute_script returns [22:09:42]free content buf [22:09:42]Sock 9.Close socket [22:09:42]Sock 9.Thread stoped [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [22:11:16]OFD Sender: No OFD packet to send [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:52]accept exits with 8 [22:11:52]New connection [22:11:52]New thread 3066735972 created [22:11:52]Thread 3066592612 joined [22:11:52]Waiting for new connection... [22:11:52] Sock 8.Parse request [22:11:52]Sock 8.Check first char [22:11:52]Sock 8.First char is OK [22:11:52]request: POST /json_proto HTTP/1.0 [22:11:52]Method: POST [22:11:52]URL: /json_proto [22:11:52]Method is POST - this is cgi request [22:11:52]url: /json_proto [22:11:52]query_string will be loaded in cgi processing [22:11:52]execute_cgi json_proto POST (null) [22:11:52]execute_cgi path=json_proto method=POST [22:11:52]POST find Content-Length [22:11:52]Host: 172.17.62.5:8080 [22:11:52]Content-Length: 805 [22:11:52]Content-Type: application/json [22:11:52] [22:11:52]POST finish read [22:11:52]Found Content-Length = 805 [22:11:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191038", "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" : 64.40, "quantity" : 4.000, "sum" : 257.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 257.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:52]execute_script... [22:11: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)191038", "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" : 64.40, "quantity" : 4.000, "sum" : 257.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 257.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:52]POST & json_proto [22:11:52]process_json_proto [22:11:52]json parsed OK: [22:11:52]protocol is kg_v1.0 [22:11:52]action value=close_receipt [22:11:52]process_action close_receipt [22:11:52]cmd_close_receipt [22:11:52]MH_GetDate [22:11:52]Write to MH i2c: F0 00 00 1A 07 10 [22:11:52]Write i2c OK [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: F0 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: F0 09 00 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: F0 09 00 1A 07 00 2A EC 22 66 F4 E9 65 64 5D [22:11:52]GetLastDocTimeStamp 1713564580 [22:11:52]current date 1713564714 [22:11:52]FM_GetShiftState [22:11:52]SAM_PROTO_GetShiftState [22:11:52]wFMCommunicate request_size=4 [22:11:52]MH_SAM_APDU [22:11:52]CAPDU: 80 13 01 00 [22:11:52]Write to MH i2c: E2 08 00 1B 07 80 13 01 00 00 00 00 00 9F [22:11:52]Write i2c OK [22:11:52]MH_I2C_Read... [22:11:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:52]Read from MH i2c: E2 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: E2 0E 00 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: E2 0E 00 1B 07 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 84 [22:11:52]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [22:11:52]wFMCommunicate OK [22:11:52]SAM_PROTO_GetShiftState done [22:11:52]FM_GetShiftState done [22:11:52]opened in 1713486233 [22:11:52]opened+sec_in_day 1713572633 [22:11:52]quantity*price = 25760 [22:11:52]sum+1 = 25761 [22:11:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 257.60 НСП 1% : 2.28 НДС 12% : 27.36 Наличными: 0.00 Безнал.: 257.60 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 163 19.04.2024 22:11 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76543 ФПД: 276270199357687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T221154&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76543&fm=276270199357687&tin=02508201610067®Number=0000000000091573&sum=25760 [22:11:54]StoreToDocumentArchive [22:11:54]shift 370 fd 76543 [22:11:54]save to /storage/0370/doc_00076543 [22:11:54]save last doc name /storage/0370/doc_00076543 to /storage/kkm_last_doc_name [22:11:54]save OK [22:11:54]Clear old archive folders... [22:11:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:11:54]tlvbuf is 0163A260 [22:11:54]SAM_PROTO_ClearQueue [22:11:54]wFMCommunicate request_size=4 [22:11:54]MH_SAM_APDU [22:11:54]CAPDU: 80 09 00 00 [22:11:54]Write to MH i2c: E2 08 00 28 07 80 09 00 00 00 00 00 00 A1 [22:11:54]Write i2c OK [22:11:54]MH_I2C_Read... [22:11:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:54]Read from MH i2c: E2 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 03 00 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 03 00 28 07 00 90 00 A3 [22:11:54]RAPDU: 90 00 [22:11:54]wFMCommunicate OK [22:11:54]SAM_PROTO_ClearQueue done [22:11:54]KKMCreateOFDPacket [22:11:54]OFDProtocolAddRootSTLVToBuf [22:11:54]FM_MakeSignedData [22:11:54]FM_MakeSignedData [22:11:54]SAM_PROTO_SignData [22:11:54]wFMCommunicate request_size=4 [22:11:54]MH_SAM_APDU [22:11:54]CAPDU: 80 0D 01 02 [22:11:54]Write to MH i2c: E2 08 00 29 07 80 0D 01 02 00 00 00 00 A9 [22:11:54]Write i2c OK [22:11:54]MH_I2C_Read... [22:11:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:54]Read from MH i2c: E2 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 03 00 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 03 00 29 07 00 90 00 A4 [22:11:54]RAPDU: 90 00 [22:11:54]wFMCommunicate OK [22:11:54]wFMCommunicate request_size=255 [22:11:54]MH_SAM_APDU [22:11: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 A0 0F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A0 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 2A EC 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FF 2A 01 00 35 04 06 00 FB [22:11:54]Write to MH i2c: E2 02 01 2A 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 A0 0F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A0 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 2A EC 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FF 2A 01 00 35 04 06 00 FB 00 00 26 [22:11:54]Write i2c OK [22:11:54]MH_I2C_Read... [22:11:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:54]Read from MH i2c: E2 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 03 00 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 03 00 2A 07 00 90 00 A5 [22:11:54]RAPDU: 90 00 [22:11:54]wFMCommunicate OK [22:11:54]wFMCommunicate request_size=10 [22:11:54]MH_SAM_APDU [22:11:54]CAPDU: 80 0D 02 02 05 44 2B 18 40 F7 [22:11:54]Write to MH i2c: E2 0D 00 2B 07 80 0D 02 02 05 00 44 2B 18 40 F7 00 00 74 [22:11:54]Write i2c OK [22:11:54]MH_I2C_Read... [22:11:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:54]Read from MH i2c: E2 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 03 00 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 03 00 2B 07 00 90 00 A6 [22:11:54]RAPDU: 90 00 [22:11:54]wFMCommunicate OK [22:11:54]wFMCommunicate request_size=4 [22:11:54]MH_SAM_APDU [22:11:54]CAPDU: 80 0D 03 02 [22:11:54]Write to MH i2c: E2 08 00 2C 07 80 0D 03 02 00 00 00 00 AE [22:11:54]Write i2c OK [22:11:54]MH_I2C_Read... [22:11:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:54]Read from MH i2c: E2 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 0B 00 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 0B 00 2C 07 00 1A 97 D7 06 22 75 26 01 90 00 FB [22:11:54]RAPDU: 1A 97 D7 06 22 75 26 01 90 00 [22:11:54]wFMCommunicate OK [22:11:54]SAM_PROTO_SignData done [22:11:54]FM_MakeSignedData done [22:11:54]CreateOFDProtocolMessage [22:11:54]wFMCommunicate request_size=4 [22:11:54]MH_SAM_APDU [22:11:54]CAPDU: 80 11 00 00 [22:11:54]Write to MH i2c: E2 08 00 2D 07 80 11 00 00 00 00 00 00 AE [22:11:54]Write i2c OK [22:11:54]MH_I2C_Read... [22:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:54]Read from MH i2c: E2 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 17 00 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 17 00 2D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 01 [22:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:11:54]wFMCommunicate OK [22:11:54]CreateOFDProtocolMessage done [22:11:54]OFDSenderStorePacket 76543 [22:11:54]StoreOFDPacket docnum=76543 [22:11:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 2F 58 07 01 6A 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 A0 0F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A0 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 2A EC 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FF 2A 01 00 35 04 06 00 FB 44 2B 18 40 F7 1A 97 D7 06 22 75 26 01 [22:11:54]CheckFolder [22:11:54]dirname=/storage/ofd_packets [22:11:54]CheckFolder done [22:11:54]ProducePacketName [22:11:54]name=ofd_packets/00076543 [22:11:54]NVStorageSaveData ofd_packets/00076543 [22:11:54]File name is /storage/ofd_packets/00076543 [22:11:54]Write 301 bytes [22:11:54]NVStorageSaveData done [22:11:54]OFDSenderStorePacket done [22:11:54]KKMCreateOFDPacket done [22:11:54]NVStorageSaveData kkm_last_timestamp [22:11:54]File name is /storage/kkm_last_timestamp [22:11:54]Write 4 bytes [22:11:54]NVStorageSaveData done [22:11:54]ExternCall_PrintAddStr [22:11:54]wPrintStart [22:11:54]Write to MH i2c: 01 00 00 2E 07 35 [22:11:54]Write i2c OK [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: 01 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: 01 07 00 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: 01 07 00 2E 07 00 00 00 00 00 FF 0F 4A [22:11:54]RasterBufferAndPrint [22:11:54]line Счет N : (1)191038 [22:11:54]line ИНН: 02508201610067 [22:11:54]line Контрольно-Кассовый Чек [22:11:54]line ПРОДАЖА [22:11:54]line ТРК (МРК, ГНК) : 12 [22:11:54]line Товар: 2710124130 [22:11:54]line Аи-92-К-5 [22:11:54]line 4.000 * 64.40 [22:11:54]line = 257.60 [22:11:54]line НДС 12% НСП 1% [22:11:54]line > о реализуемом товаре [22:11:54]line ИТОГО: 257.60 [22:11:54]line НСП 1% : 2.28 [22:11:54]line НДС 12% : 27.36 [22:11:54]line Наличными: 0.00 [22:11:54]line Безнал.: 257.60 [22:11:54]line Место: АЗС № 106 "Партнер Нефть" [22:11:54]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [22:11:54]line СНО: Общий режим [22:11:54]line Чек 163 19.04.2024 22:11 [22:11:54]line Смена: 370 ФФД: 1.0 [22:11:54]line ЗНМ: 0300000141 [22:11:54]line РНМ: 0000000000091573 [22:11:54]line Версия ККМ: 001 [22:11:54]line Платежная система: О! деньги [22:11:54]line ФМ: 0000000000874652 [22:11:54]line ФД: 76543 [22:11:54]line ФПД: 276270199357687 [22:11:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T221154&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76543&fm=276270199357687&tin=02508201610067®Number=0000000000091573&sum=25760 [22:11:54]written 0, free lines is 4095 [22:11:54]OFD Sender: Processing packet 76543 [packets to send 128, broken 127] [22:11:54]ProducePacketName [22:11:54]name=ofd_packets/00076543 [22:11:54]OFD Sender: To server: pG, [22:11:54]CommunicateWithHost lk.salyk.kg:30040 [22:11:54]ConnectInit lk.salyk.kg [22:11:54]Connected sock=10 [22:11:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 2F 58 07 01 6A 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 A0 0F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A0 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 2A EC 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FF 2A 01 00 35 04 06 00 FB 44 2B 18 40 F7 1A 97 D7 06 22 75 26 01 [22:11:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 88 09 47 00 98 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 34 36 35 32 10 04 04 00 FF 2A 01 00 F4 03 04 00 B4 93 22 66 B6 04 01 00 00 09 6C BE 8F 09 D6 E0 86 [22:11:55]CommunicateWithHost err = 0 [22:11:55]CheckOFDResponse [22:11:55]1017 (14) - 77093643461234 [22:11:55]1041 (16) - 0000000000874652 [22:11:55]1040 (4) - 76543 [22:11:55]1012 (4) - 19.04.2024 15:54 [22:11:55]1206 (1) - 0 [22:11:55]OFD Sender: Remove packet 76543 [22:11:55]ProducePacketName [22:11:55]name=ofd_packets/00076543 [22:11:55]NVStorageDeleteData [22:11:55]Write to MH i2c: 01 00 00 57 07 5E [22:11:55]Write i2c OK [22:11:55]MH_I2C_Read... [22:11:55]Read from MH i2c: 01 [22:11:55]MH_I2C_Read... [22:11:55]Read from MH i2c: 01 07 00 [22:11:55]MH_I2C_Read... [22:11:55]Read from MH i2c: 01 07 00 57 07 00 00 00 00 00 F5 0C 66 [22:11:55]RasterBufferAndPrint [22:11:55]line [22:11:55]line [22:11:55]line [22:11:55]line [22:11:55]line [22:11:55]written 0, free lines is 3324 [22:11:55]MH_Cut [22:11:55]Write to MH i2c: D1 01 00 5E 07 01 37 [22:11:55]Write i2c OK [22:11:55]MH_I2C_Read... [22:11:55]Read from MH i2c: D1 [22:11:55]MH_I2C_Read... [22:11:55]Read from MH i2c: D1 01 00 [22:11:55]MH_I2C_Read... [22:11:55]Read from MH i2c: D1 01 00 5E 07 00 36 [22:11:55]Write to MH i2c: 01 00 00 5F 07 66 [22:11:55]Write i2c OK [22:11:55]MH_I2C_Read... [22:11:55]OFD Sender: No OFD packet to send [22:11:55]*** Cut start [22:11:55]*** Partial cut [22:11:55]*** CUTSNS_PIN = 1 [22:11:55]*** CUTSNS_PIN = 0 [22:11:56]*** Brake cut motor [22:11:56]Read from MH i2c: 01 [22:11:56]MH_I2C_Read... [22:11:56]*** Stop cut motor [22:11:56]*** Cut end [22:11:56]Read from MH i2c: 01 07 00 [22:11:56]MH_I2C_Read... [22:11:56]Read from MH i2c: 01 07 00 5F 07 00 00 00 00 00 FF 0F 7B [22:11:56]process_action close_receipt done [22:11:56]requested_data is exist [22:11:56]produce_requested_data [22:11:56]requested_item fm.sn is exist - process it [22:11:56]wFMCommunicate request_size=4 [22:11:56]MH_SAM_APDU [22:11:56]CAPDU: 80 11 00 00 [22:11:56]Write to MH i2c: E2 08 00 60 07 80 11 00 00 00 00 00 00 E1 [22:11:56]Write i2c OK [22:11:56]MH_I2C_Read... [22:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:56]Read from MH i2c: E2 [22:11:56]MH_I2C_Read... [22:11:56]Read from MH i2c: E2 17 00 [22:11:56]MH_I2C_Read... [22:11:56]Read from MH i2c: E2 17 00 60 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 34 [22:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:11:56]wFMCommunicate OK [22:11:56]requested_item fd.num is exist - process it [22:11:56]SAM_PROTO_GetFieldsCounters [22:11:56]wFMCommunicate request_size=4 [22:11:56]MH_SAM_APDU [22:11:56]CAPDU: 80 13 00 00 [22:11:56]Write to MH i2c: E2 08 00 61 07 80 13 00 00 00 00 00 00 E4 [22:11:56]Write i2c OK [22:11:56]MH_I2C_Read... [22:11:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:56]Read from MH i2c: E2 [22:11:56]MH_I2C_Read... [22:11:56]Read from MH i2c: E2 62 00 [22:11:56]MH_I2C_Read... [22:11:56]Read from MH i2c: E2 62 00 61 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FF 2A 01 00 0E 04 04 00 72 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 8B [22:11: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FF 2A 01 00 0E 04 04 00 72 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 [22:11:56]wFMCommunicate OK [22:11:56]SAM_PROTO_GetFieldsCounters done [22:11:56]requested_item shift.num is exist - process it [22:11:56]requested_item shift.opened is exist - process it [22:11:56]req_shift_opened [22:11:56]FM_GetShiftState [22:11:56]SAM_PROTO_GetShiftState [22:11:56]wFMCommunicate request_size=4 [22:11:56]MH_SAM_APDU [22:11:56]CAPDU: 80 13 01 00 [22:11:56]Write to MH i2c: E2 08 00 62 07 80 13 01 00 00 00 00 00 E6 [22:11:56]Write i2c OK [22:11:56]MH_I2C_Read... [22:11:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:56]Read from MH i2c: E2 [22:11:56]MH_I2C_Read... [22:11:56]Read from MH i2c: E2 0E 00 [22:11:56]MH_I2C_Read... [22:11:56]Read from MH i2c: E2 0E 00 62 07 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 CB [22:11:56]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [22:11:56]wFMCommunicate OK [22:11:56]SAM_PROTO_GetShiftState done [22:11:56]FM_GetShiftState done [22:11:56]req_shift_opened done [22:11:56]requested_item shift.open_date is exist - process it [22:11:56]req_shift_open_date [22:11:56]req_shift_open_date done [22:11:56]produce_requested_data done [22:11:56]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76543,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [22:11:56]process_action_free close_receipt [22:11:56]json_value_free [22:11:56]json_value_free done [22:11:56]process_json_proto returns [22:11:56]Send response to host [22:11:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76543,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [22:11:56]free response buf [22:11:56]execute_script done [22:11:56]execute_script returns [22:11:56]free content buf [22:11:56]Sock 8.Close socket [22:11:56]Sock 8.Thread stoped [22:12:00]OFD Sender: No OFD packet to send [22:12:05]OFD Sender: No OFD packet to send [22:12:10]OFD Sender: No OFD packet to send [22:12:15]OFD Sender: No OFD packet to send [22:12:20]OFD Sender: No OFD packet to send [22:12:25]OFD Sender: No OFD packet to send [22:12:30]OFD Sender: No OFD packet to send [22:12:35]OFD Sender: No OFD packet to send [22:12:40]OFD Sender: No OFD packet to send [22:12:45]OFD Sender: No OFD packet to send [22:12:50]OFD Sender: No OFD packet to send [22:12:55]OFD Sender: No OFD packet to send [22:13:00]OFD Sender: No OFD packet to send [22:13:05]OFD Sender: No OFD packet to send [22:13:10]OFD Sender: No OFD packet to send [22:13:15]OFD Sender: No OFD packet to send [22:13:20]OFD Sender: No OFD packet to send [22:13:25]OFD Sender: No OFD packet to send [22:13:30]OFD Sender: No OFD packet to send [22:13:35]OFD Sender: No OFD packet to send [22:13:40]OFD Sender: No OFD packet to send [22:13:45]OFD Sender: No OFD packet to send [22:13:50]OFD Sender: No OFD packet to send [22:13:55]OFD Sender: No OFD packet to send [22:14:00]OFD Sender: No OFD packet to send [22:14:05]OFD Sender: No OFD packet to send [22:14:10]OFD Sender: No OFD packet to send [22:14:15]OFD Sender: No OFD packet to send [22:14:20]OFD Sender: No OFD packet to send [22:14:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [22:14:35]OFD Sender: No OFD packet to send [22:14:40]OFD Sender: No OFD packet to send [22:14:45]OFD Sender: No OFD packet to send [22:14:50]OFD Sender: No OFD packet to send [22:14:55]OFD Sender: No OFD packet to send [22:15:00]OFD Sender: No OFD packet to send [22:15:05]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:15]OFD Sender: No OFD packet to send [22:15:20]OFD Sender: No OFD packet to send [22:15:25]OFD Sender: No OFD packet to send [22:15:30]OFD Sender: No OFD packet to send [22:15:35]OFD Sender: No OFD packet to send [22:15:40]OFD Sender: No OFD packet to send [22:15:45]OFD Sender: No OFD packet to send [22:15:50]OFD Sender: No OFD packet to send [22:15:55]OFD Sender: No OFD packet to send [22:16:00]OFD Sender: No OFD packet to send [22:16:05]OFD Sender: No OFD packet to send [22:16:10]OFD Sender: No OFD packet to send [22:16:15]OFD Sender: No OFD packet to send [22:16:20]OFD Sender: No OFD packet to send [22:16:25]OFD Sender: No OFD packet to send [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:40]OFD Sender: No OFD packet to send [22:16:45]OFD Sender: No OFD packet to send [22:16:50]OFD Sender: No OFD packet to send [22:16:55]OFD Sender: No OFD packet to send [22:17:00]OFD Sender: No OFD packet to send [22:17:05]OFD Sender: No OFD packet to send [22:17:10]OFD Sender: No OFD packet to send [22:17:15]OFD Sender: No OFD packet to send [22:17:20]OFD Sender: No OFD packet to send [22:17:25]OFD Sender: No OFD packet to send [22:17:30]OFD Sender: No OFD packet to send [22:17:35]OFD Sender: No OFD packet to send [22:17:40]OFD Sender: No OFD packet to send [22:17:45]OFD Sender: No OFD packet to send [22:17:50]OFD Sender: No OFD packet to send [22:17:55]OFD Sender: No OFD packet to send [22:18:00]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:16]OFD Sender: No OFD packet to send [22:22:21]OFD Sender: No OFD packet to send [22:22:26]OFD Sender: No OFD packet to send [22:22:31]OFD Sender: No OFD packet to send [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:41]OFD Sender: No OFD packet to send [22:25:46]OFD Sender: No OFD packet to send [22:25:51]OFD Sender: No OFD packet to send [22:25:56]OFD Sender: No OFD packet to send [22:26:01]OFD Sender: No OFD packet to send [22:26:06]OFD Sender: No OFD packet to send [22:26:10]accept exits with 9 [22:26:10]New connection [22:26:10]New thread 3066592612 created [22:26:10]Thread 3066735972 joined [22:26:10]Waiting for new connection... [22:26:10] Sock 9.Parse request [22:26:10]Sock 9.Check first char [22:26:10]Sock 9.First char is OK [22:26:10]request: POST /json_proto HTTP/1.0 [22:26:10]Method: POST [22:26:10]URL: /json_proto [22:26:10]Method is POST - this is cgi request [22:26:10]url: /json_proto [22:26:10]query_string will be loaded in cgi processing [22:26:10]execute_cgi json_proto POST (null) [22:26:10]execute_cgi path=json_proto method=POST [22:26:10]POST find Content-Length [22:26:10]Host: 172.17.62.5:8080 [22:26:10]Content-Length: 990 [22:26:10]Content-Type: application/json [22:26:10] [22:26:10]POST finish read [22:26:10]Found Content-Length = 990 [22:26:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 55.220, "sum" : 1750.47, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 55.22 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1750.00, "payments": [ { "type": 0, "sum" : 1750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:10]execute_script... [22:26:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 55.220, "sum" : 1750.47, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 55.22 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1750.00, "payments": [ { "type": 0, "sum" : 1750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:10]POST & json_proto [22:26:10]process_json_proto [22:26:10]json parsed OK: [22:26:10]protocol is kg_v1.0 [22:26:10]action value=close_receipt [22:26:10]process_action close_receipt [22:26:10]cmd_close_receipt [22:26:10]MH_GetDate [22:26:10]Write to MH i2c: F0 00 00 63 07 59 [22:26:10]Write i2c OK [22:26:10]MH_I2C_Read... [22:26:10]Read from MH i2c: F0 [22:26:10]MH_I2C_Read... [22:26:10]Read from MH i2c: F0 09 00 [22:26:10]MH_I2C_Read... [22:26:10]Read from MH i2c: F0 09 00 63 07 00 84 EF 22 66 F4 E9 65 64 03 [22:26:10]GetLastDocTimeStamp 1713564714 [22:26:10]current date 1713565572 [22:26:10]FM_GetShiftState [22:26:10]SAM_PROTO_GetShiftState [22:26:10]wFMCommunicate request_size=4 [22:26:10]MH_SAM_APDU [22:26:10]CAPDU: 80 13 01 00 [22:26:10]Write to MH i2c: E2 08 00 64 07 80 13 01 00 00 00 00 00 E8 [22:26:10]Write i2c OK [22:26:10]MH_I2C_Read... [22:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:10]Read from MH i2c: E2 [22:26:10]MH_I2C_Read... [22:26:10]Read from MH i2c: E2 0E 00 [22:26:10]MH_I2C_Read... [22:26:10]Read from MH i2c: E2 0E 00 64 07 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 CD [22:26:10]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [22:26:10]wFMCommunicate OK [22:26:10]SAM_PROTO_GetShiftState done [22:26:10]FM_GetShiftState done [22:26:10]opened in 1713486233 [22:26:10]opened+sec_in_day 1713572633 [22:26:10]quantity*price = 175047 [22:26:10]sum+1 = 175048 [22:26:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1750.00 Внесено: 2000.00 СДАЧА: 250.00 НСП 1% : 15.49 НДС 12% : 185.89 Наличными: 1750.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 164 19.04.2024 22:26 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 55.22 сом ФМ: 0000000000874652 ФД: 76544 ФПД: 60033455679663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T222612&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76544&fm=60033455679663&tin=02508201610067®Number=0000000000091573&sum=175000 [22:26:11]StoreToDocumentArchive [22:26:11]shift 370 fd 76544 [22:26:11]save to /storage/0370/doc_00076544 [22:26:11]save last doc name /storage/0370/doc_00076544 to /storage/kkm_last_doc_name [22:26:11]save OK [22:26:11]Clear old archive folders... [22:26:11]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:26:11]tlvbuf is 0162DDF0 [22:26:11]SAM_PROTO_ClearQueue [22:26:11]wFMCommunicate request_size=4 [22:26:11]MH_SAM_APDU [22:26:11]CAPDU: 80 09 00 00 [22:26:11]Write to MH i2c: E2 08 00 71 07 80 09 00 00 00 00 00 00 EA [22:26:11]Write i2c OK [22:26:11]MH_I2C_Read... [22:26:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:11]Read from MH i2c: E2 [22:26:11]MH_I2C_Read... [22:26:11]Read from MH i2c: E2 03 00 [22:26:11]MH_I2C_Read... [22:26:11]Read from MH i2c: E2 03 00 71 07 00 90 00 EC [22:26:11]RAPDU: 90 00 [22:26:11]wFMCommunicate OK [22:26:11]SAM_PROTO_ClearQueue done [22:26:11]KKMCreateOFDPacket [22:26:11]OFDProtocolAddRootSTLVToBuf [22:26:11]FM_MakeSignedData [22:26:11]FM_MakeSignedData [22:26:11]SAM_PROTO_SignData [22:26:11]wFMCommunicate request_size=4 [22:26:11]MH_SAM_APDU [22:26:11]CAPDU: 80 0D 01 02 [22:26:11]Write to MH i2c: E2 08 00 72 07 80 0D 01 02 00 00 00 00 F2 [22:26:11]Write i2c OK [22:26:11]MH_I2C_Read... [22:26:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:11]Read from MH i2c: E2 [22:26:11]MH_I2C_Read... [22:26:11]Read from MH i2c: E2 03 00 [22:26:11]MH_I2C_Read... [22:26:11]Read from MH i2c: E2 03 00 72 07 00 90 00 ED [22:26:11]RAPDU: 90 00 [22:26:11]wFMCommunicate OK [22:26:11]wFMCommunicate request_size=255 [22:26:11]MH_SAM_APDU [22:26:11]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B4 D7 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 C7 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 48 00 00 00 00 07 04 06 00 98 AB 02 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 84 EF 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 00 2B 01 00 35 04 06 00 36 99 [22:26:11]Write to MH i2c: E2 02 01 73 07 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B4 D7 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 C7 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 48 00 00 00 00 07 04 06 00 98 AB 02 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 84 EF 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 00 2B 01 00 35 04 06 00 36 99 00 00 9F [22:26:11]Write i2c OK [22:26:11]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 73 07 00 90 00 EE [22:26:12]RAPDU: 90 00 [22:26:12]wFMCommunicate OK [22:26:12]wFMCommunicate request_size=9 [22:26:12]MH_SAM_APDU [22:26:12]CAPDU: 80 0D 02 02 04 A0 CC E8 AF [22:26:12]Write to MH i2c: E2 0C 00 74 07 80 0D 02 02 04 00 A0 CC E8 AF 00 00 00 [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:12]Read from MH i2c: E2 03 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 74 07 00 90 00 EF [22:26:12]RAPDU: 90 00 [22:26:12]wFMCommunicate OK [22:26:12]wFMCommunicate request_size=4 [22:26:12]MH_SAM_APDU [22:26:12]CAPDU: 80 0D 03 02 [22:26:12]Write to MH i2c: E2 08 00 75 07 80 0D 03 02 00 00 00 00 F7 [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 0B 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 0B 00 75 07 00 4B 6C EA D8 7D F7 58 E2 90 00 1F [22:26:12]RAPDU: 4B 6C EA D8 7D F7 58 E2 90 00 [22:26:12]wFMCommunicate OK [22:26:12]SAM_PROTO_SignData done [22:26:12]FM_MakeSignedData done [22:26:12]CreateOFDProtocolMessage [22:26:12]wFMCommunicate request_size=4 [22:26:12]MH_SAM_APDU [22:26:12]CAPDU: 80 11 00 00 [22:26:12]Write to MH i2c: E2 08 00 76 07 80 11 00 00 00 00 00 00 F7 [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 17 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 17 00 76 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4A [22:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:26:12]wFMCommunicate OK [22:26:12]CreateOFDProtocolMessage done [22:26:12]OFDSenderStorePacket 76544 [22:26:12]StoreOFDPacket docnum=76544 [22:26:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 E7 85 06 01 0D A1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B4 D7 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 C7 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 48 00 00 00 00 07 04 06 00 98 AB 02 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 84 EF 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 00 2B 01 00 35 04 06 00 36 99 A0 CC E8 AF 4B 6C EA D8 7D F7 58 E2 [22:26:12]CheckFolder [22:26:12]dirname=/storage/ofd_packets [22:26:12]CheckFolder done [22:26:12]ProducePacketName [22:26:12]name=ofd_packets/00076544 [22:26:12]NVStorageSaveData ofd_packets/00076544 [22:26:12]File name is /storage/ofd_packets/00076544 [22:26:12]Write 300 bytes [22:26:12]NVStorageSaveData done [22:26:12]OFDSenderStorePacket done [22:26:12]KKMCreateOFDPacket done [22:26:12]NVStorageSaveData kkm_last_timestamp [22:26:12]File name is /storage/kkm_last_timestamp [22:26:12]Write 4 bytes [22:26:12]NVStorageSaveData done [22:26:12]ExternCall_PrintAddStr [22:26:12]wPrintStart [22:26:12]Write to MH i2c: 01 00 00 77 07 7E [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: 01 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: 01 07 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: 01 07 00 77 07 00 00 00 00 00 FF 0F 93 [22:26:12]RasterBufferAndPrint [22:26:12]line Счет N : (1)191039 [22:26:12]line ИНН: 02508201610067 [22:26:12]line Контрольно-Кассовый Чек [22:26:12]line ПРОДАЖА [22:26:12]line ТРК (МРК, ГНК) : 71 [22:26:12]line Товар: 2711190000 [22:26:12]line ГАЗ-К-5 [22:26:12]line 55.220 * 31.70 [22:26:12]line = 1750.47 [22:26:12]line НДС 12% НСП 1% [22:26:12]line > о реализуемом товаре [22:26:12]line ОКРУГЛЕНИЕ: -0.47 [22:26:12]line ИТОГО: 1750.00 [22:26:12]line Внесено: 2000.00 [22:26:12]line СДАЧА: 250.00 [22:26:12]line НСП 1% : 15.49 [22:26:12]line НДС 12% : 185.89 [22:26:12]line Наличными: 1750.00 [22:26:12]line Безнал.: 0.00 [22:26:12]line Место: АЗС № 106 "Партнер Нефть" [22:26:12]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [22:26:12]line СНО: Общий режим [22:26:12]line Чек 164 19.04.2024 22:26 [22:26:12]line Смена: 370 ФФД: 1.0 [22:26:12]line ЗНМ: 0300000141 [22:26:12]line РНМ: 0000000000091573 [22:26:12]line Версия ККМ: 001 [22:26:12]line [22:26:12]line Дисконтная программа [22:26:12]line СУГ [22:26:12]line номер 106 [22:26:12]line сэкономлено 55.22 сом [22:26:12]line ФМ: 0000000000874652 [22:26:12]line ФД: 76544 [22:26:12]line ФПД: 60033455679663 [22:26:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T222612&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76544&fm=60033455679663&tin=02508201610067®Number=0000000000091573&sum=175000 [22:26:12]OFD Sender: Processing packet 76544 [packets to send 128, broken 127] [22:26:12]ProducePacketName [22:26:12]name=ofd_packets/00076544 [22:26:12]OFD Sender: To server: pG, [22:26:12]CommunicateWithHost lk.salyk.kg:30040 [22:26:12]ConnectInit lk.salyk.kg [22:26:12]written 0, free lines is 4095 [22:26:12]Connected sock=10 [22:26:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 E7 85 06 01 0D A1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B4 D7 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 C7 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 48 00 00 00 00 07 04 06 00 98 AB 02 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 84 EF 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 00 2B 01 00 35 04 06 00 36 99 A0 CC E8 AF 4B 6C EA D8 7D F7 58 E2 [22:26:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 0F F6 47 00 CC 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 34 36 35 32 10 04 04 00 00 2B 01 00 F4 03 04 00 0E 97 22 66 B6 04 01 00 00 DC 22 B5 35 AC E1 50 89 [22:26:13]CommunicateWithHost err = 0 [22:26:13]CheckOFDResponse [22:26:13]1017 (14) - 77093643461234 [22:26:13]1041 (16) - 0000000000874652 [22:26:13]1040 (4) - 76544 [22:26:13]1012 (4) - 19.04.2024 16:08 [22:26:13]1206 (1) - 0 [22:26:13]OFD Sender: Remove packet 76544 [22:26:13]ProducePacketName [22:26:13]name=ofd_packets/00076544 [22:26:13]NVStorageDeleteData [22:26:13]Write to MH i2c: 01 00 00 A6 07 AD [22:26:13]Write i2c OK [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: 01 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: 01 07 00 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: 01 07 00 A6 07 00 00 00 00 00 9C 0C 5C [22:26:13]RasterBufferAndPrint [22:26:13]line [22:26:13]line [22:26:13]line [22:26:13]line [22:26:13]line [22:26:13]written 0, free lines is 3233 [22:26:13]MH_Cut [22:26:13]Write to MH i2c: D1 01 00 AD 07 01 86 [22:26:13]Write i2c OK [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: D1 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: D1 01 00 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: D1 01 00 AD 07 00 85 [22:26:13]Write to MH i2c: 01 00 00 AE 07 B5 [22:26:13]Write i2c OK [22:26:13]MH_I2C_Read... [22:26:13]OFD Sender: No OFD packet to send [22:26:13]*** Cut start [22:26:13]*** Partial cut [22:26:13]*** CUTSNS_PIN = 1 [22:26:14]*** CUTSNS_PIN = 0 [22:26:14]*** Brake cut motor [22:26:14]Read from MH i2c: 01 [22:26:14]MH_I2C_Read... [22:26:14]*** Stop cut motor [22:26:14]*** Cut end [22:26:14]Read from MH i2c: 01 07 00 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: 01 07 00 AE 07 00 00 00 00 00 FF 0F CA [22:26:14]process_action close_receipt done [22:26:14]requested_data is exist [22:26:14]produce_requested_data [22:26:14]requested_item fm.sn is exist - process it [22:26:14]wFMCommunicate request_size=4 [22:26:14]MH_SAM_APDU [22:26:14]CAPDU: 80 11 00 00 [22:26:14]Write to MH i2c: E2 08 00 AF 07 80 11 00 00 00 00 00 00 30 [22:26:14]Write i2c OK [22:26:14]MH_I2C_Read... [22:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:14]Read from MH i2c: E2 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: E2 17 00 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: E2 17 00 AF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 83 [22:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:26:14]wFMCommunicate OK [22:26:14]requested_item fd.num is exist - process it [22:26:14]SAM_PROTO_GetFieldsCounters [22:26:14]wFMCommunicate request_size=4 [22:26:14]MH_SAM_APDU [22:26:14]CAPDU: 80 13 00 00 [22:26:14]Write to MH i2c: E2 08 00 B0 07 80 13 00 00 00 00 00 00 33 [22:26:14]Write i2c OK [22:26:14]MH_I2C_Read... [22:26:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:14]Read from MH i2c: E2 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: E2 62 00 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: E2 62 00 B0 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 00 2B 01 00 0E 04 04 00 72 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 DF [22:26:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 00 2B 01 00 0E 04 04 00 72 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 [22:26:14]wFMCommunicate OK [22:26:14]SAM_PROTO_GetFieldsCounters done [22:26:14]requested_item shift.num is exist - process it [22:26:14]requested_item shift.opened is exist - process it [22:26:14]req_shift_opened [22:26:14]FM_GetShiftState [22:26:14]SAM_PROTO_GetShiftState [22:26:14]wFMCommunicate request_size=4 [22:26:14]MH_SAM_APDU [22:26:14]CAPDU: 80 13 01 00 [22:26:14]Write to MH i2c: E2 08 00 B1 07 80 13 01 00 00 00 00 00 35 [22:26:14]Write i2c OK [22:26:14]MH_I2C_Read... [22:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:14]Read from MH i2c: E2 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: E2 0E 00 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: E2 0E 00 B1 07 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 1A [22:26:14]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [22:26:14]wFMCommunicate OK [22:26:14]SAM_PROTO_GetShiftState done [22:26:14]FM_GetShiftState done [22:26:14]req_shift_opened done [22:26:14]requested_item shift.open_date is exist - process it [22:26:14]req_shift_open_date [22:26:14]req_shift_open_date done [22:26:14]produce_requested_data done [22:26:14]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76544,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [22:26:14]process_action_free close_receipt [22:26:14]json_value_free [22:26:14]json_value_free done [22:26:14]process_json_proto returns [22:26:14]Send response to host [22:26:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76544,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [22:26:14]free response buf [22:26:14]execute_script done [22:26:14]execute_script returns [22:26:14]free content buf [22:26:14]Sock 9.Close socket [22:26:14]Sock 9.Thread stoped [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:23]OFD Sender: No OFD packet to send [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:08]OFD Sender: No OFD packet to send [22:28:13]OFD Sender: No OFD packet to send [22:28:18]OFD Sender: No OFD packet to send [22:28:23]OFD Sender: No OFD packet to send [22:28:28]OFD Sender: No OFD packet to send [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:19]OFD Sender: No OFD packet to send [22:32:24]OFD Sender: No OFD packet to send [22:32:29]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:39]OFD Sender: No OFD packet to send [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:54]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:29]OFD Sender: No OFD packet to send [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:59]OFD Sender: No OFD packet to send [22:42:04]OFD Sender: No OFD packet to send [22:42:09]OFD Sender: No OFD packet to send [22:42:14]OFD Sender: No OFD packet to send [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:44]accept exits with 8 [22:42:44]New connection [22:42:44]New thread 3066735972 created [22:42:44]Thread 3066592612 joined [22:42:44]Waiting for new connection... [22:42:44] Sock 8.Parse request [22:42:44]Sock 8.Check first char [22:42:44]Sock 8.First char is OK [22:42:44]request: POST /json_proto HTTP/1.0 [22:42:44]Method: POST [22:42:44]URL: /json_proto [22:42:44]Method is POST - this is cgi request [22:42:44]url: /json_proto [22:42:44]query_string will be loaded in cgi processing [22:42:44]execute_cgi json_proto POST (null) [22:42:44]execute_cgi path=json_proto method=POST [22:42:44]POST find Content-Length [22:42:44]Host: 172.17.62.5:8080 [22:42:44]Content-Length: 806 [22:42:44]Content-Type: application/json [22:42:44] [22:42:44]POST finish read [22:42:44]Found Content-Length = 806 [22:42:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191040", "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" : 64.40, "quantity" : 10.000, "sum" : 644.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 644.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:44]execute_script... [22:42: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)191040", "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" : 64.40, "quantity" : 10.000, "sum" : 644.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 644.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:44]POST & json_proto [22:42:44]process_json_proto [22:42:44]json parsed OK: [22:42:44]protocol is kg_v1.0 [22:42:44]action value=close_receipt [22:42:44]process_action close_receipt [22:42:44]cmd_close_receipt [22:42:44]MH_GetDate [22:42:44]Write to MH i2c: F0 00 00 B2 07 A8 [22:42:44]Write i2c OK [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: F0 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: F0 09 00 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: F0 09 00 B2 07 00 66 F3 22 66 F4 E9 65 64 38 [22:42:44]GetLastDocTimeStamp 1713565572 [22:42:44]current date 1713566566 [22:42:44]FM_GetShiftState [22:42:44]SAM_PROTO_GetShiftState [22:42:44]wFMCommunicate request_size=4 [22:42:44]MH_SAM_APDU [22:42:44]CAPDU: 80 13 01 00 [22:42:44]Write to MH i2c: E2 08 00 B3 07 80 13 01 00 00 00 00 00 37 [22:42:44]Write i2c OK [22:42:44]MH_I2C_Read... [22:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:44]Read from MH i2c: E2 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 0E 00 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 0E 00 B3 07 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 1C [22:42:44]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [22:42:44]wFMCommunicate OK [22:42:44]SAM_PROTO_GetShiftState done [22:42:44]FM_GetShiftState done [22:42:44]opened in 1713486233 [22:42:44]opened+sec_in_day 1713572633 [22:42:44]quantity*price = 64400 [22:42:44]sum+1 = 64401 [22:42:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 644.00 НСП 1% : 5.70 НДС 12% : 68.39 Наличными: 0.00 Безнал.: 644.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 165 19.04.2024 22:42 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76545 ФПД: 175085493861349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T224246&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76545&fm=175085493861349&tin=02508201610067®Number=0000000000091573&sum=64400 [22:42:46]StoreToDocumentArchive [22:42:46]shift 370 fd 76545 [22:42:46]save to /storage/0370/doc_00076545 [22:42:46]save last doc name /storage/0370/doc_00076545 to /storage/kkm_last_doc_name [22:42:46]save OK [22:42:46]Clear old archive folders... [22:42:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:42:46]tlvbuf is 01632EC0 [22:42:46]SAM_PROTO_ClearQueue [22:42:46]wFMCommunicate request_size=4 [22:42:46]MH_SAM_APDU [22:42:46]CAPDU: 80 09 00 00 [22:42:46]Write to MH i2c: E2 08 00 C0 07 80 09 00 00 00 00 00 00 39 [22:42:46]Write i2c OK [22:42:46]MH_I2C_Read... [22:42:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:42:46]Read from MH i2c: E2 [22:42:46]MH_I2C_Read... [22:42:46]Read from MH i2c: E2 03 00 [22:42:46]MH_I2C_Read... [22:42:46]Read from MH i2c: E2 03 00 C0 07 00 90 00 3B [22:42:46]RAPDU: 90 00 [22:42:46]wFMCommunicate OK [22:42:46]SAM_PROTO_ClearQueue done [22:42:46]KKMCreateOFDPacket [22:42:46]OFDProtocolAddRootSTLVToBuf [22:42:46]FM_MakeSignedData [22:42:46]FM_MakeSignedData [22:42:46]SAM_PROTO_SignData [22:42:46]wFMCommunicate request_size=4 [22:42:46]MH_SAM_APDU [22:42:46]CAPDU: 80 0D 01 02 [22:42:46]Write to MH i2c: E2 08 00 C1 07 80 0D 01 02 00 00 00 00 41 [22:42:46]Write i2c OK [22:42:46]MH_I2C_Read... [22:42:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:42:46]Read from MH i2c: E2 [22:42:46]MH_I2C_Read... [22:42:46]Read from MH i2c: E2 03 00 [22:42:46]MH_I2C_Read... [22:42:46]Read from MH i2c: E2 03 00 C1 07 00 90 00 3C [22:42:46]RAPDU: 90 00 [22:42:46]wFMCommunicate OK [22:42:46]wFMCommunicate request_size=255 [22:42:46]MH_SAM_APDU [22:42: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 10 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 90 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 66 F3 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 01 2B 01 00 35 04 06 00 9F [22:42:46]Write to MH i2c: E2 02 01 C2 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 10 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 90 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 66 F3 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 01 2B 01 00 35 04 06 00 9F 00 00 36 [22:42:46]Write i2c OK [22:42:46]MH_I2C_Read... [22:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:46]Read from MH i2c: E2 [22:42:46]MH_I2C_Read... [22:42:46]Read from MH i2c: E2 03 00 [22:42:46]MH_I2C_Read... [22:42:46]Read from MH i2c: E2 03 00 C2 07 00 90 00 3D [22:42:46]RAPDU: 90 00 [22:42:46]wFMCommunicate OK [22:42:46]wFMCommunicate request_size=10 [22:42:46]MH_SAM_APDU [22:42:46]CAPDU: 80 0D 02 02 05 3D 44 AA BB E5 [22:42:46]Write to MH i2c: E2 0D 00 C3 07 80 0D 02 02 05 00 3D 44 AA BB E5 00 00 19 [22:42:46]Write i2c OK [22:42:46]MH_I2C_Read... [22:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:46]Read from MH i2c: E2 [22:42:46]MH_I2C_Read... [22:42:46]Read from MH i2c: E2 03 00 [22:42:46]MH_I2C_Read... [22:42:46]Read from MH i2c: E2 03 00 C3 07 00 90 00 3E [22:42:46]RAPDU: 90 00 [22:42:46]wFMCommunicate OK [22:42:46]wFMCommunicate request_size=4 [22:42:46]MH_SAM_APDU [22:42:46]CAPDU: 80 0D 03 02 [22:42:46]Write to MH i2c: E2 08 00 C4 07 80 0D 03 02 00 00 00 00 46 [22:42:46]Write i2c OK [22:42:46]MH_I2C_Read... [22:42:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:42:46]Read from MH i2c: E2 [22:42:46]MH_I2C_Read... [22:42:46]Read from MH i2c: E2 0B 00 [22:42:46]MH_I2C_Read... [22:42:46]Read from MH i2c: E2 0B 00 C4 07 00 52 49 72 C4 83 7E B5 7B 90 00 49 [22:42:46]RAPDU: 52 49 72 C4 83 7E B5 7B 90 00 [22:42:46]wFMCommunicate OK [22:42:46]SAM_PROTO_SignData done [22:42:46]FM_MakeSignedData done [22:42:46]CreateOFDProtocolMessage [22:42:46]wFMCommunicate request_size=4 [22:42:46]MH_SAM_APDU [22:42:46]CAPDU: 80 11 00 00 [22:42:46]Write to MH i2c: E2 08 00 C5 07 80 11 00 00 00 00 00 00 46 [22:42:46]Write i2c OK [22:42:46]MH_I2C_Read... [22:42:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:46]Read from MH i2c: E2 [22:42:46]MH_I2C_Read... [22:42:46]Read from MH i2c: E2 17 00 [22:42:46]MH_I2C_Read... [22:42:46]Read from MH i2c: E2 17 00 C5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 99 [22:42:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:42:46]wFMCommunicate OK [22:42:46]CreateOFDProtocolMessage done [22:42:46]OFDSenderStorePacket 76545 [22:42:46]StoreOFDPacket docnum=76545 [22:42:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 BD D4 07 01 13 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 10 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 90 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 66 F3 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 01 2B 01 00 35 04 06 00 9F 3D 44 AA BB E5 52 49 72 C4 83 7E B5 7B [22:42:46]CheckFolder [22:42:46]dirname=/storage/ofd_packets [22:42:46]CheckFolder done [22:42:46]ProducePacketName [22:42:46]name=ofd_packets/00076545 [22:42:46]NVStorageSaveData ofd_packets/00076545 [22:42:46]File name is /storage/ofd_packets/00076545 [22:42:46]Write 301 bytes [22:42:46]NVStorageSaveData done [22:42:46]OFDSenderStorePacket done [22:42:46]KKMCreateOFDPacket done [22:42:46]NVStorageSaveData kkm_last_timestamp [22:42:46]File name is /storage/kkm_last_timestamp [22:42:46]Write 4 bytes [22:42:46]NVStorageSaveData done [22:42:46]ExternCall_PrintAddStr [22:42:46]wPrintStart [22:42:46]Write to MH i2c: 01 00 00 C6 07 CD [22:42:46]Write i2c OK [22:42:46]MH_I2C_Read... [22:42:46]Read from MH i2c: 01 [22:42:46]MH_I2C_Read... [22:42:46]Read from MH i2c: 01 07 00 [22:42:46]MH_I2C_Read... [22:42:46]Read from MH i2c: 01 07 00 C6 07 00 00 00 00 00 FF 0F E2 [22:42:46]RasterBufferAndPrint [22:42:46]line Счет N : (1)191040 [22:42:46]line ИНН: 02508201610067 [22:42:46]line Контрольно-Кассовый Чек [22:42:46]line ПРОДАЖА [22:42:46]line ТРК (МРК, ГНК) : 22 [22:42:46]line Товар: 2710124130 [22:42:46]line Аи-92-К-5 [22:42:46]line 10.000 * 64.40 [22:42:46]line = 644.00 [22:42:46]line НДС 12% НСП 1% [22:42:46]line > о реализуемом товаре [22:42:46]line ИТОГО: 644.00 [22:42:46]line НСП 1% : 5.70 [22:42:46]line НДС 12% : 68.39 [22:42:46]line Наличными: 0.00 [22:42:46]line Безнал.: 644.00 [22:42:46]line Место: АЗС № 106 "Партнер Нефть" [22:42:46]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [22:42:46]line СНО: Общий режим [22:42:46]line Чек 165 19.04.2024 22:42 [22:42:46]line Смена: 370 ФФД: 1.0 [22:42:46]line ЗНМ: 0300000141 [22:42:46]line РНМ: 0000000000091573 [22:42:46]line Версия ККМ: 001 [22:42:46]line Платежная система: О! деньги [22:42:46]line ФМ: 0000000000874652 [22:42:46]line ФД: 76545 [22:42:46]line ФПД: 175085493861349 [22:42:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T224246&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76545&fm=175085493861349&tin=02508201610067®Number=0000000000091573&sum=64400 [22:42:46]written 0, free lines is 4095 [22:42:46]OFD Sender: Processing packet 76545 [packets to send 128, broken 127] [22:42:46]ProducePacketName [22:42:46]name=ofd_packets/00076545 [22:42:47]OFD Sender: To server: pG, [22:42:47]CommunicateWithHost lk.salyk.kg:30040 [22:42:47]ConnectInit lk.salyk.kg [22:42:47]Write to MH i2c: 01 00 00 EF 07 F6 [22:42:47]Write i2c OK [22:42:47]MH_I2C_Read... [22:42:47]Read from MH i2c: 01 [22:42:47]MH_I2C_Read... [22:42:47]Read from MH i2c: 01 07 00 [22:42:47]MH_I2C_Read... [22:42:47]Read from MH i2c: 01 07 00 EF 07 00 00 00 00 00 FD 0C 06 [22:42:47]RasterBufferAndPrint [22:42:47]line [22:42:47]line [22:42:47]line [22:42:47]line [22:42:47]line [22:42:47]written 0, free lines is 3331 [22:42:47]MH_Cut [22:42:47]Write to MH i2c: D1 01 00 F6 07 01 CF [22:42:47]Write i2c OK [22:42:47]MH_I2C_Read... [22:42:47]Read from MH i2c: D1 [22:42:47]MH_I2C_Read... [22:42:47]Read from MH i2c: D1 01 00 [22:42:47]MH_I2C_Read... [22:42:47]Read from MH i2c: D1 01 00 F6 07 00 CE [22:42:47]Write to MH i2c: 01 00 00 F7 07 FE [22:42:47]Write i2c OK [22:42:47]MH_I2C_Read... [22:42:47]Connected sock=10 [22:42:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 BD D4 07 01 13 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 10 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 90 FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 66 F3 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 01 2B 01 00 35 04 06 00 9F 3D 44 AA BB E5 52 49 72 C4 83 7E B5 7B [22:42:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 88 9C 47 00 E5 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 01 2B 01 00 F4 03 04 00 F0 9A 22 66 B6 04 01 00 00 66 A5 73 AF DD DA 0F 45 [22:42:47]CommunicateWithHost err = 0 [22:42:47]CheckOFDResponse [22:42:47]1017 (14) - 77093643461234 [22:42:47]1041 (16) - 0000000000874652 [22:42:47]1040 (4) - 76545 [22:42:47]1012 (4) - 19.04.2024 16:25 [22:42:47]1206 (1) - 0 [22:42:47]OFD Sender: Remove packet 76545 [22:42:47]ProducePacketName [22:42:47]name=ofd_packets/00076545 [22:42:47]NVStorageDeleteData [22:42:47]*** Cut start [22:42:47]*** Partial cut [22:42:47]*** CUTSNS_PIN = 1 [22:42:47]OFD Sender: No OFD packet to send [22:42:47]*** CUTSNS_PIN = 0 [22:42:48]*** Brake cut motor [22:42:48]Read from MH i2c: 01 [22:42:48]MH_I2C_Read... [22:42:48]*** Stop cut motor [22:42:48]*** Cut end [22:42:48]Read from MH i2c: 01 07 00 [22:42:48]MH_I2C_Read... [22:42:48]Read from MH i2c: 01 07 00 F7 07 00 00 00 00 00 FF 0F 13 [22:42:48]process_action close_receipt done [22:42:48]requested_data is exist [22:42:48]produce_requested_data [22:42:48]requested_item fm.sn is exist - process it [22:42:48]wFMCommunicate request_size=4 [22:42:48]MH_SAM_APDU [22:42:48]CAPDU: 80 11 00 00 [22:42:48]Write to MH i2c: E2 08 00 F8 07 80 11 00 00 00 00 00 00 79 [22:42:48]Write i2c OK [22:42:48]MH_I2C_Read... [22:42:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:48]Read from MH i2c: E2 [22:42:48]MH_I2C_Read... [22:42:48]Read from MH i2c: E2 17 00 [22:42:48]MH_I2C_Read... [22:42:48]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 34 36 35 32 90 00 CC [22:42:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:42:48]wFMCommunicate OK [22:42:48]requested_item fd.num is exist - process it [22:42:48]SAM_PROTO_GetFieldsCounters [22:42:48]wFMCommunicate request_size=4 [22:42:48]MH_SAM_APDU [22:42:48]CAPDU: 80 13 00 00 [22:42:48]Write to MH i2c: E2 08 00 F9 07 80 13 00 00 00 00 00 00 7C [22:42:48]Write i2c OK [22:42:48]MH_I2C_Read... [22:42:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:48]Read from MH i2c: E2 [22:42:48]MH_I2C_Read... [22:42:48]Read from MH i2c: E2 62 00 [22:42:48]MH_I2C_Read... [22:42:48]Read from MH i2c: E2 62 00 F9 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 01 2B 01 00 0E 04 04 00 72 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 2C [22:42: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 01 2B 01 00 0E 04 04 00 72 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 [22:42:48]wFMCommunicate OK [22:42:48]SAM_PROTO_GetFieldsCounters done [22:42:48]requested_item shift.num is exist - process it [22:42:48]requested_item shift.opened is exist - process it [22:42:48]req_shift_opened [22:42:48]FM_GetShiftState [22:42:48]SAM_PROTO_GetShiftState [22:42:48]wFMCommunicate request_size=4 [22:42:48]MH_SAM_APDU [22:42:48]CAPDU: 80 13 01 00 [22:42:48]Write to MH i2c: E2 08 00 FA 07 80 13 01 00 00 00 00 00 7E [22:42:48]Write i2c OK [22:42:48]MH_I2C_Read... [22:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:48]Read from MH i2c: E2 [22:42:48]MH_I2C_Read... [22:42:48]Read from MH i2c: E2 0E 00 [22:42:48]MH_I2C_Read... [22:42:48]Read from MH i2c: E2 0E 00 FA 07 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 63 [22:42:48]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [22:42:48]wFMCommunicate OK [22:42:48]SAM_PROTO_GetShiftState done [22:42:48]FM_GetShiftState done [22:42:48]req_shift_opened done [22:42:48]requested_item shift.open_date is exist - process it [22:42:48]req_shift_open_date [22:42:48]req_shift_open_date done [22:42:48]produce_requested_data done [22:42:48]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76545,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [22:42:48]process_action_free close_receipt [22:42:48]json_value_free [22:42:48]json_value_free done [22:42:48]process_json_proto returns [22:42:48]Send response to host [22:42:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76545,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [22:42:48]free response buf [22:42:48]execute_script done [22:42:48]execute_script returns [22:42:48]free content buf [22:42:48]Sock 8.Close socket [22:42:48]Sock 8.Thread stoped [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:12]OFD Sender: No OFD packet to send [22:43:17]OFD Sender: No OFD packet to send [22:43:22]OFD Sender: No OFD packet to send [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:44:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:37]accept exits with 9 [22:45:37]New connection [22:45:37]New thread 3066592612 created [22:45:37]Thread 3066735972 joined [22:45:37]Waiting for new connection... [22:45:37] Sock 9.Parse request [22:45:37]Sock 9.Check first char [22:45:37]Sock 9.First char is OK [22:45:37]request: POST /json_proto HTTP/1.0 [22:45:37]Method: POST [22:45:37]URL: /json_proto [22:45:37]Method is POST - this is cgi request [22:45:37]url: /json_proto [22:45:37]query_string will be loaded in cgi processing [22:45:37]execute_cgi json_proto POST (null) [22:45:37]execute_cgi path=json_proto method=POST [22:45:37]POST find Content-Length [22:45:37]Host: 172.17.62.5:8080 [22:45:37]Content-Length: 978 [22:45:37]Content-Type: application/json [22:45:37] [22:45:37]POST finish read [22:45:37]Found Content-Length = 978 [22:45:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191041", "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" : 27.820, "sum" : 2000.26, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.82 \u0441\u043E\u043C", "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" ] } } [22:45:37]execute_script... [22:45: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)191041", "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" : 27.820, "sum" : 2000.26, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.82 \u0441\u043E\u043C", "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" ] } } [22:45:37]POST & json_proto [22:45:37]process_json_proto [22:45:37]json parsed OK: [22:45:37]protocol is kg_v1.0 [22:45:37]action value=close_receipt [22:45:37]process_action close_receipt [22:45:37]cmd_close_receipt [22:45:37]MH_GetDate [22:45:37]Write to MH i2c: F0 00 00 FB 07 F1 [22:45:37]Write i2c OK [22:45:37]MH_I2C_Read... [22:45:37]Read from MH i2c: F0 [22:45:37]MH_I2C_Read... [22:45:37]Read from MH i2c: F0 09 00 [22:45:37]MH_I2C_Read... [22:45:37]Read from MH i2c: F0 09 00 FB 07 00 13 F4 22 66 F4 E9 65 64 2F [22:45:37]GetLastDocTimeStamp 1713566566 [22:45:37]current date 1713566739 [22:45:37]FM_GetShiftState [22:45:37]SAM_PROTO_GetShiftState [22:45:37]wFMCommunicate request_size=4 [22:45:37]MH_SAM_APDU [22:45:37]CAPDU: 80 13 01 00 [22:45:37]Write to MH i2c: E2 08 00 FC 07 80 13 01 00 00 00 00 00 80 [22:45:37]Write i2c OK [22:45:37]MH_I2C_Read... [22:45:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:37]Read from MH i2c: E2 [22:45:37]MH_I2C_Read... [22:45:37]Read from MH i2c: E2 0E 00 [22:45:37]MH_I2C_Read... [22:45:37]Read from MH i2c: E2 0E 00 FC 07 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 65 [22:45:37]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [22:45:37]wFMCommunicate OK [22:45:37]SAM_PROTO_GetShiftState done [22:45:37]FM_GetShiftState done [22:45:37]opened in 1713486233 [22:45:37]opened+sec_in_day 1713572633 [22:45:37]quantity*price = 200025 [22:45:37]sum+1 = 200027 [22:45:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 166 19.04.2024 22:45 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 27.82 сом ФМ: 0000000000874652 ФД: 76546 ФПД: 22246524996208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T224539&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76546&fm=22246524996208&tin=02508201610067®Number=0000000000091573&sum=200000 [22:45:38]StoreToDocumentArchive [22:45:38]shift 370 fd 76546 [22:45:38]save to /storage/0370/doc_00076546 [22:45:38]save last doc name /storage/0370/doc_00076546 to /storage/kkm_last_doc_name [22:45:38]save OK [22:45:38]Clear old archive folders... [22:45:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:45:38]tlvbuf is 0163A9C0 [22:45:38]SAM_PROTO_ClearQueue [22:45:38]wFMCommunicate request_size=4 [22:45:38]MH_SAM_APDU [22:45:38]CAPDU: 80 09 00 00 [22:45:38]Write to MH i2c: E2 08 00 09 08 80 09 00 00 00 00 00 00 83 [22:45:38]Write i2c OK [22:45:38]MH_I2C_Read... [22:45:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:45:38]Read from MH i2c: E2 [22:45:38]MH_I2C_Read... [22:45:38]Read from MH i2c: E2 03 00 [22:45:38]MH_I2C_Read... [22:45:38]Read from MH i2c: E2 03 00 09 08 00 90 00 85 [22:45:38]RAPDU: 90 00 [22:45:38]wFMCommunicate OK [22:45:38]SAM_PROTO_ClearQueue done [22:45:38]KKMCreateOFDPacket [22:45:38]OFDProtocolAddRootSTLVToBuf [22:45:38]FM_MakeSignedData [22:45:38]FM_MakeSignedData [22:45:38]SAM_PROTO_SignData [22:45:38]wFMCommunicate request_size=4 [22:45:38]MH_SAM_APDU [22:45:38]CAPDU: 80 0D 01 02 [22:45:38]Write to MH i2c: E2 08 00 0A 08 80 0D 01 02 00 00 00 00 8B [22:45:38]Write i2c OK [22:45:38]MH_I2C_Read... [22:45:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:45:39]Read from MH i2c: E2 [22:45:39]MH_I2C_Read... [22:45:39]Read from MH i2c: E2 03 00 [22:45:39]MH_I2C_Read... [22:45:39]Read from MH i2c: E2 03 00 0A 08 00 90 00 86 [22:45:39]RAPDU: 90 00 [22:45:39]wFMCommunicate OK [22:45:39]wFMCommunicate request_size=255 [22:45:39]MH_SAM_APDU [22:45:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 13 F4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 02 2B 01 00 35 04 06 00 14 3B AC 38 [22:45:39]Write to MH i2c: E2 02 01 0B 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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 13 F4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 02 2B 01 00 35 04 06 00 14 3B AC 38 00 00 81 [22:45:39]Write i2c OK [22:45:39]MH_I2C_Read... [22:45:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:39]Read from MH i2c: E2 [22:45:39]MH_I2C_Read... [22:45:39]Read from MH i2c: E2 03 00 [22:45:39]MH_I2C_Read... [22:45:39]Read from MH i2c: E2 03 00 0B 08 00 90 00 87 [22:45:39]RAPDU: 90 00 [22:45:39]wFMCommunicate OK [22:45:39]wFMCommunicate request_size=7 [22:45:39]MH_SAM_APDU [22:45:39]CAPDU: 80 0D 02 02 02 4A 70 [22:45:39]Write to MH i2c: E2 0A 00 0C 08 80 0D 02 02 02 00 4A 70 00 00 4C [22:45:39]Write i2c OK [22:45:39]MH_I2C_Read... [22:45:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:39]Read from MH i2c: E2 [22:45:39]MH_I2C_Read... [22:45:39]Read from MH i2c: E2 03 00 [22:45:39]MH_I2C_Read... [22:45:39]Read from MH i2c: E2 03 00 0C 08 00 90 00 88 [22:45:39]RAPDU: 90 00 [22:45:39]wFMCommunicate OK [22:45:39]wFMCommunicate request_size=4 [22:45:39]MH_SAM_APDU [22:45:39]CAPDU: 80 0D 03 02 [22:45:39]Write to MH i2c: E2 08 00 0D 08 80 0D 03 02 00 00 00 00 90 [22:45:39]Write i2c OK [22:45:39]MH_I2C_Read... [22:45:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:45:39]Read from MH i2c: E2 [22:45:39]MH_I2C_Read... [22:45:39]Read from MH i2c: E2 0B 00 [22:45:39]MH_I2C_Read... [22:45:39]Read from MH i2c: E2 0B 00 0D 08 00 3B DC 8D DC 87 8F F1 B5 90 00 CD [22:45:39]RAPDU: 3B DC 8D DC 87 8F F1 B5 90 00 [22:45:39]wFMCommunicate OK [22:45:39]SAM_PROTO_SignData done [22:45:39]FM_MakeSignedData done [22:45:39]CreateOFDProtocolMessage [22:45:39]wFMCommunicate request_size=4 [22:45:39]MH_SAM_APDU [22:45:39]CAPDU: 80 11 00 00 [22:45:39]Write to MH i2c: E2 08 00 0E 08 80 11 00 00 00 00 00 00 90 [22:45:39]Write i2c OK [22:45:39]MH_I2C_Read... [22:45:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:39]Read from MH i2c: E2 [22:45:39]MH_I2C_Read... [22:45:39]Read from MH i2c: E2 17 00 [22:45:39]MH_I2C_Read... [22:45:39]Read from MH i2c: E2 17 00 0E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E3 [22:45:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:45:39]wFMCommunicate OK [22:45:39]CreateOFDProtocolMessage done [22:45:39]OFDSenderStorePacket 76546 [22:45:39]StoreOFDPacket docnum=76546 [22:45:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 0A CA 04 01 EF 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 13 F4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 02 2B 01 00 35 04 06 00 14 3B AC 38 4A 70 3B DC 8D DC 87 8F F1 B5 [22:45:39]CheckFolder [22:45:39]dirname=/storage/ofd_packets [22:45:39]CheckFolder done [22:45:39]ProducePacketName [22:45:39]name=ofd_packets/00076546 [22:45:39]NVStorageSaveData ofd_packets/00076546 [22:45:39]File name is /storage/ofd_packets/00076546 [22:45:39]Write 298 bytes [22:45:39]NVStorageSaveData done [22:45:39]OFDSenderStorePacket done [22:45:39]KKMCreateOFDPacket done [22:45:39]NVStorageSaveData kkm_last_timestamp [22:45:39]File name is /storage/kkm_last_timestamp [22:45:39]Write 4 bytes [22:45:39]NVStorageSaveData done [22:45:39]ExternCall_PrintAddStr [22:45:39]wPrintStart [22:45:39]Write to MH i2c: 01 00 00 0F 08 17 [22:45:39]Write i2c OK [22:45:39]MH_I2C_Read... [22:45:39]Read from MH i2c: 01 [22:45:39]MH_I2C_Read... [22:45:39]Read from MH i2c: 01 07 00 [22:45:39]MH_I2C_Read... [22:45:39]Read from MH i2c: 01 07 00 0F 08 00 00 00 00 00 FF 0F 2C [22:45:39]RasterBufferAndPrint [22:45:39]line Счет N : (1)191041 [22:45:39]line ИНН: 02508201610067 [22:45:39]line Контрольно-Кассовый Чек [22:45:39]line ПРОДАЖА [22:45:39]line ТРК (МРК, ГНК) : 51 [22:45:39]line Товар: 2710194210 [22:45:39]line ДТ-К-5 [22:45:39]line 27.820 * 71.90 [22:45:39]line = 2000.26 [22:45:39]line НДС 12% НСП 1% [22:45:39]line > о реализуемом товаре [22:45:39]line ОКРУГЛЕНИЕ: -0.26 [22:45:39]line ИТОГО: 2000.00 [22:45:39]line Внесено: 2000.00 [22:45:39]line СДАЧА: 0.00 [22:45:39]line НСП 1% : 17.70 [22:45:39]line НДС 12% : 212.42 [22:45:39]line Наличными: 2000.00 [22:45:39]line Безнал.: 0.00 [22:45:39]line Место: АЗС № 106 "Партнер Нефть" [22:45:39]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [22:45:39]line СНО: Общий режим [22:45:39]line Чек 166 19.04.2024 22:45 [22:45:39]line Смена: 370 ФФД: 1.0 [22:45:39]line ЗНМ: 0300000141 [22:45:39]line РНМ: 0000000000091573 [22:45:39]line Версия ККМ: 001 [22:45:39]line [22:45:39]line Дисконтная программа [22:45:39]line ДТ [22:45:39]line номер 106 [22:45:39]line сэкономлено 27.82 сом [22:45:39]line ФМ: 0000000000874652 [22:45:39]line ФД: 76546 [22:45:39]line ФПД: 22246524996208 [22:45:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T224539&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76546&fm=22246524996208&tin=02508201610067®Number=0000000000091573&sum=200000 [22:45:39]OFD Sender: Processing packet 76546 [packets to send 128, broken 127] [22:45:39]ProducePacketName [22:45:39]name=ofd_packets/00076546 [22:45:39]OFD Sender: To server: pG, [22:45:39]CommunicateWithHost lk.salyk.kg:30040 [22:45:39]ConnectInit lk.salyk.kg [22:45:39]written 0, free lines is 4095 [22:45:39]Connected sock=10 [22:45:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 0A CA 04 01 EF 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 13 F4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 02 2B 01 00 35 04 06 00 14 3B AC 38 4A 70 3B DC 8D DC 87 8F F1 B5 [22:45:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 66 D8 47 00 DB 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 34 36 35 32 10 04 04 00 02 2B 01 00 F4 03 04 00 9D 9B 22 66 B6 04 01 00 00 B6 B2 3B FD 76 72 EE 9C [22:45:40]CommunicateWithHost err = 0 [22:45:40]CheckOFDResponse [22:45:40]1017 (14) - 77093643461234 [22:45:40]1041 (16) - 0000000000874652 [22:45:40]1040 (4) - 76546 [22:45:40]1012 (4) - 19.04.2024 16:28 [22:45:40]1206 (1) - 0 [22:45:40]OFD Sender: Remove packet 76546 [22:45:40]ProducePacketName [22:45:40]name=ofd_packets/00076546 [22:45:40]NVStorageDeleteData [22:45:40]Write to MH i2c: 01 00 00 3E 08 46 [22:45:40]Write i2c OK [22:45:40]MH_I2C_Read... [22:45:40]Read from MH i2c: 01 [22:45:40]MH_I2C_Read... [22:45:40]Read from MH i2c: 01 07 00 [22:45:40]MH_I2C_Read... [22:45:40]Read from MH i2c: 01 07 00 3E 08 00 00 00 00 00 8A 0C E3 [22:45:40]RasterBufferAndPrint [22:45:40]line [22:45:40]line [22:45:40]line [22:45:40]line [22:45:40]line [22:45:40]written 0, free lines is 3217 [22:45:40]MH_Cut [22:45:40]Write to MH i2c: D1 01 00 45 08 01 1F [22:45:40]Write i2c OK [22:45:40]MH_I2C_Read... [22:45:40]Read from MH i2c: D1 [22:45:40]MH_I2C_Read... [22:45:40]Read from MH i2c: D1 01 00 [22:45:40]MH_I2C_Read... [22:45:40]Read from MH i2c: D1 01 00 45 08 00 1E [22:45:40]Write to MH i2c: 01 00 00 46 08 4E [22:45:40]Write i2c OK [22:45:40]MH_I2C_Read... [22:45:40]OFD Sender: No OFD packet to send [22:45:41]*** Cut start [22:45:41]*** Partial cut [22:45:41]*** CUTSNS_PIN = 1 [22:45:41]*** CUTSNS_PIN = 0 [22:45:41]*** Brake cut motor [22:45:41]Read from MH i2c: 01 [22:45:41]MH_I2C_Read... [22:45:41]*** Stop cut motor [22:45:41]*** Cut end [22:45:41]Read from MH i2c: 01 07 00 [22:45:41]MH_I2C_Read... [22:45:41]Read from MH i2c: 01 07 00 46 08 00 00 00 00 00 FF 0F 63 [22:45:41]process_action close_receipt done [22:45:41]requested_data is exist [22:45:41]produce_requested_data [22:45:41]requested_item fm.sn is exist - process it [22:45:41]wFMCommunicate request_size=4 [22:45:41]MH_SAM_APDU [22:45:41]CAPDU: 80 11 00 00 [22:45:41]Write to MH i2c: E2 08 00 47 08 80 11 00 00 00 00 00 00 C9 [22:45:41]Write i2c OK [22:45:41]MH_I2C_Read... [22:45:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:41]Read from MH i2c: E2 [22:45:41]MH_I2C_Read... [22:45:41]Read from MH i2c: E2 17 00 [22:45:41]MH_I2C_Read... [22:45:41]Read from MH i2c: E2 17 00 47 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 1C [22:45:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:45:41]wFMCommunicate OK [22:45:41]requested_item fd.num is exist - process it [22:45:41]SAM_PROTO_GetFieldsCounters [22:45:41]wFMCommunicate request_size=4 [22:45:41]MH_SAM_APDU [22:45:41]CAPDU: 80 13 00 00 [22:45:41]Write to MH i2c: E2 08 00 48 08 80 13 00 00 00 00 00 00 CC [22:45:41]Write i2c OK [22:45:41]MH_I2C_Read... [22:45:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:45:41]Read from MH i2c: E2 [22:45:41]MH_I2C_Read... [22:45:41]Read from MH i2c: E2 62 00 [22:45:41]MH_I2C_Read... [22:45:41]Read from MH i2c: E2 62 00 48 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 02 2B 01 00 0E 04 04 00 72 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 80 [22:45:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 02 2B 01 00 0E 04 04 00 72 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 [22:45:41]wFMCommunicate OK [22:45:41]SAM_PROTO_GetFieldsCounters done [22:45:41]requested_item shift.num is exist - process it [22:45:41]requested_item shift.opened is exist - process it [22:45:41]req_shift_opened [22:45:41]FM_GetShiftState [22:45:41]SAM_PROTO_GetShiftState [22:45:41]wFMCommunicate request_size=4 [22:45:41]MH_SAM_APDU [22:45:41]CAPDU: 80 13 01 00 [22:45:41]Write to MH i2c: E2 08 00 49 08 80 13 01 00 00 00 00 00 CE [22:45:41]Write i2c OK [22:45:41]MH_I2C_Read... [22:45:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:41]Read from MH i2c: E2 [22:45:41]MH_I2C_Read... [22:45:41]Read from MH i2c: E2 0E 00 [22:45:41]MH_I2C_Read... [22:45:41]Read from MH i2c: E2 0E 00 49 08 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 B3 [22:45:41]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [22:45:41]wFMCommunicate OK [22:45:41]SAM_PROTO_GetShiftState done [22:45:41]FM_GetShiftState done [22:45:41]req_shift_opened done [22:45:41]requested_item shift.open_date is exist - process it [22:45:41]req_shift_open_date [22:45:41]req_shift_open_date done [22:45:41]produce_requested_data done [22:45:41]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76546,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [22:45:41]process_action_free close_receipt [22:45:41]json_value_free [22:45:41]json_value_free done [22:45:41]process_json_proto returns [22:45:41]Send response to host [22:45:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76546,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [22:45:41]free response buf [22:45:41]execute_script done [22:45:41]execute_script returns [22:45:41]free content buf [22:45:41]Sock 9.Close socket [22:45:41]Sock 9.Thread stoped [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:25]OFD Sender: No OFD packet to send [22:46:30]OFD Sender: No OFD packet to send [22:46:35]OFD Sender: No OFD packet to send [22:46:40]OFD Sender: No OFD packet to send [22:46:45]OFD Sender: No OFD packet to send [22:46:50]OFD Sender: No OFD packet to send [22:46:55]OFD Sender: No OFD packet to send [22:47:00]OFD Sender: No OFD packet to send [22:47:05]OFD Sender: No OFD packet to send [22:47:06]accept exits with 8 [22:47:06]New connection [22:47:06]New thread 3066735972 created [22:47:06]Thread 3066592612 joined [22:47:06]Waiting for new connection... [22:47:06] Sock 8.Parse request [22:47:06]Sock 8.Check first char [22:47:06]Sock 8.First char is OK [22:47:06]request: POST /json_proto HTTP/1.0 [22:47:06]Method: POST [22:47:06]URL: /json_proto [22:47:06]Method is POST - this is cgi request [22:47:06]url: /json_proto [22:47:06]query_string will be loaded in cgi processing [22:47:06]execute_cgi json_proto POST (null) [22:47:06]execute_cgi path=json_proto method=POST [22:47:06]POST find Content-Length [22:47:06]Host: 172.17.62.5:8080 [22:47:06]Content-Length: 682 [22:47:06]Content-Type: application/json [22:47:06] [22:47:06]POST finish read [22:47:06]Found Content-Length = 682 [22:47:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [22:47:06]execute_script... [22:47: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)191042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\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" ] } } [22:47:06]POST & json_proto [22:47:06]process_json_proto [22:47:06]json parsed OK: [22:47:06]protocol is kg_v1.0 [22:47:06]action value=close_receipt [22:47:06]process_action close_receipt [22:47:06]cmd_close_receipt [22:47:06]MH_GetDate [22:47:06]Write to MH i2c: F0 00 00 4A 08 41 [22:47:06]Write i2c OK [22:47:06]MH_I2C_Read... [22:47:06]Read from MH i2c: F0 [22:47:06]MH_I2C_Read... [22:47:06]Read from MH i2c: F0 09 00 [22:47:06]MH_I2C_Read... [22:47:06]Read from MH i2c: F0 09 00 4A 08 00 6B F4 22 66 F4 E9 65 64 D7 [22:47:06]GetLastDocTimeStamp 1713566739 [22:47:06]current date 1713566827 [22:47:06]FM_GetShiftState [22:47:06]SAM_PROTO_GetShiftState [22:47:06]wFMCommunicate request_size=4 [22:47:06]MH_SAM_APDU [22:47:06]CAPDU: 80 13 01 00 [22:47:06]Write to MH i2c: E2 08 00 4B 08 80 13 01 00 00 00 00 00 D0 [22:47:06]Write i2c OK [22:47:06]MH_I2C_Read... [22:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:06]Read from MH i2c: E2 [22:47:06]MH_I2C_Read... [22:47:06]Read from MH i2c: E2 0E 00 [22:47:06]MH_I2C_Read... [22:47:06]Read from MH i2c: E2 0E 00 4B 08 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 B5 [22:47:06]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [22:47:06]wFMCommunicate OK [22:47:06]SAM_PROTO_GetShiftState done [22:47:06]FM_GetShiftState done [22:47:06]opened in 1713486233 [22:47:06]opened+sec_in_day 1713572633 [22:47:06]quantity*price = 200037 [22:47:06]sum+1 = 200039 [22:47:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 167 19.04.2024 22:47 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76547 ФПД: 85470361529797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T224707&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76547&fm=85470361529797&tin=02508201610067®Number=0000000000091573&sum=200000 [22:47:07]StoreToDocumentArchive [22:47:07]shift 370 fd 76547 [22:47:07]save to /storage/0370/doc_00076547 [22:47:07]save last doc name /storage/0370/doc_00076547 to /storage/kkm_last_doc_name [22:47:07]save OK [22:47:07]Clear old archive folders... [22:47:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:47:07]tlvbuf is 01637C10 [22:47:07]SAM_PROTO_ClearQueue [22:47:07]wFMCommunicate request_size=4 [22:47:07]MH_SAM_APDU [22:47:07]CAPDU: 80 09 00 00 [22:47:07]Write to MH i2c: E2 08 00 58 08 80 09 00 00 00 00 00 00 D2 [22:47:07]Write i2c OK [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: E2 [22:47:07]MH_I2C_Read... [22:47:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:47:07]Read from MH i2c: E2 03 00 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: E2 03 00 58 08 00 90 00 D4 [22:47:07]RAPDU: 90 00 [22:47:07]wFMCommunicate OK [22:47:07]SAM_PROTO_ClearQueue done [22:47:07]KKMCreateOFDPacket [22:47:07]OFDProtocolAddRootSTLVToBuf [22:47:07]FM_MakeSignedData [22:47:07]FM_MakeSignedData [22:47:07]SAM_PROTO_SignData [22:47:07]wFMCommunicate request_size=4 [22:47:07]MH_SAM_APDU [22:47:07]CAPDU: 80 0D 01 02 [22:47:07]Write to MH i2c: E2 08 00 59 08 80 0D 01 02 00 00 00 00 DA [22:47:07]Write i2c OK [22:47:07]MH_I2C_Read... [22:47:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:47:07]Read from MH i2c: E2 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: E2 03 00 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: E2 03 00 59 08 00 90 00 D5 [22:47:07]RAPDU: 90 00 [22:47:07]wFMCommunicate OK [22:47:07]wFMCommunicate request_size=255 [22:47:07]MH_SAM_APDU [22:47:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 A7 00 00 00 F4 03 04 00 6B F4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 03 2B 01 00 35 04 06 00 4D [22:47:07]Write to MH i2c: E2 02 01 5A 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 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 A7 00 00 00 F4 03 04 00 6B F4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 03 2B 01 00 35 04 06 00 4D 00 00 E9 [22:47:07]Write i2c OK [22:47:07]MH_I2C_Read... [22:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:07]Read from MH i2c: E2 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: E2 03 00 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: E2 03 00 5A 08 00 90 00 D6 [22:47:07]RAPDU: 90 00 [22:47:07]wFMCommunicate OK [22:47:07]wFMCommunicate request_size=10 [22:47:07]MH_SAM_APDU [22:47:07]CAPDU: 80 0D 02 02 05 BC 1E 89 AD C5 [22:47:07]Write to MH i2c: E2 0D 00 5B 08 80 0D 02 02 05 00 BC 1E 89 AD C5 00 00 BC [22:47:07]Write i2c OK [22:47:07]MH_I2C_Read... [22:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:07]Read from MH i2c: E2 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: E2 03 00 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: E2 03 00 5B 08 00 90 00 D7 [22:47:07]RAPDU: 90 00 [22:47:07]wFMCommunicate OK [22:47:07]wFMCommunicate request_size=4 [22:47:07]MH_SAM_APDU [22:47:07]CAPDU: 80 0D 03 02 [22:47:07]Write to MH i2c: E2 08 00 5C 08 80 0D 03 02 00 00 00 00 DF [22:47:07]Write i2c OK [22:47:07]MH_I2C_Read... [22:47:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:47:08]Read from MH i2c: E2 [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: E2 0B 00 [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: E2 0B 00 5C 08 00 7B 0E 50 A4 E7 4D 5A F8 90 00 E3 [22:47:08]RAPDU: 7B 0E 50 A4 E7 4D 5A F8 90 00 [22:47:08]wFMCommunicate OK [22:47:08]SAM_PROTO_SignData done [22:47:08]FM_MakeSignedData done [22:47:08]CreateOFDProtocolMessage [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 5D 08 80 11 00 00 00 00 00 00 DF [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 5D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 32 [22:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:47:08]wFMCommunicate OK [22:47:08]CreateOFDProtocolMessage done [22:47:08]OFDSenderStorePacket 76547 [22:47:08]StoreOFDPacket docnum=76547 [22:47:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 11 12 07 01 9F 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 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 A7 00 00 00 F4 03 04 00 6B F4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 03 2B 01 00 35 04 06 00 4D BC 1E 89 AD C5 7B 0E 50 A4 E7 4D 5A F8 [22:47:08]CheckFolder [22:47:08]dirname=/storage/ofd_packets [22:47:08]CheckFolder done [22:47:08]ProducePacketName [22:47:08]name=ofd_packets/00076547 [22:47:08]NVStorageSaveData ofd_packets/00076547 [22:47:08]File name is /storage/ofd_packets/00076547 [22:47:08]Write 301 bytes [22:47:08]NVStorageSaveData done [22:47:08]OFDSenderStorePacket done [22:47:08]KKMCreateOFDPacket done [22:47:08]NVStorageSaveData kkm_last_timestamp [22:47:08]File name is /storage/kkm_last_timestamp [22:47:08]Write 4 bytes [22:47:08]NVStorageSaveData done [22:47:08]ExternCall_PrintAddStr [22:47:08]wPrintStart [22:47:08]Write to MH i2c: 01 00 00 5E 08 66 [22:47:08]Write i2c OK [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: 01 [22:47:08]MH_I2C_Read... [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 5E 08 00 00 00 00 00 FF 0F 7B [22:47:08]RasterBufferAndPrint [22:47:08]line Счет N : (1)191042 [22:47:08]line ИНН: 02508201610067 [22:47:08]line Контрольно-Кассовый Чек [22:47:08]line ПРОДАЖА [22:47:08]line ТРК (МРК, ГНК) : 21 [22:47:08]line Товар: 2710124500 [22:47:08]line Аи-95-К-5 [22:47:08]line 27.440 * 72.90 [22:47:08]line = 2000.38 [22:47:08]line НДС 12% НСП 1% [22:47:08]line > о реализуемом товаре [22:47:08]line ОКРУГЛЕНИЕ: -0.38 [22:47:08]line ИТОГО: 2000.00 [22:47:08]line Внесено: 2000.00 [22:47:08]line СДАЧА: 0.00 [22:47:08]line НСП 1% : 17.70 [22:47:08]line НДС 12% : 212.43 [22:47:08]line Наличными: 2000.00 [22:47:08]line Безнал.: 0.00 [22:47:08]line Место: АЗС № 106 "Партнер Нефть" [22:47:08]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [22:47:08]line СНО: Общий режим [22:47:08]line Чек 167 19.04.2024 22:47 [22:47:08]line Смена: 370 ФФД: 1.0 [22:47:08]line ЗНМ: 0300000141 [22:47:08]line РНМ: 0000000000091573 [22:47:08]line Версия ККМ: 001 [22:47:08]line ФМ: 0000000000874652 [22:47:08]line ФД: 76547 [22:47:08]line ФПД: 85470361529797 [22:47:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T224707&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76547&fm=85470361529797&tin=02508201610067®Number=0000000000091573&sum=200000 [22:47:08]written 0, free lines is 4095 [22:47:08]OFD Sender: Processing packet 76547 [packets to send 128, broken 127] [22:47:08]ProducePacketName [22:47:08]name=ofd_packets/00076547 [22:47:08]OFD Sender: To server: pG, [22:47:08]CommunicateWithHost lk.salyk.kg:30040 [22:47:08]ConnectInit lk.salyk.kg [22:47:08]Connected sock=9 [22:47:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 11 12 07 01 9F 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 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 A7 00 00 00 F4 03 04 00 6B F4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 03 2B 01 00 35 04 06 00 4D BC 1E 89 AD C5 7B 0E 50 A4 E7 4D 5A F8 [22:47:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 92 F1 47 00 3E 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 34 36 35 32 10 04 04 00 03 2B 01 00 F4 03 04 00 F6 9B 22 66 B6 04 01 00 00 55 32 04 46 36 5C 65 53 [22:47:08]CommunicateWithHost err = 0 [22:47:08]CheckOFDResponse [22:47:08]1017 (14) - 77093643461234 [22:47:08]1041 (16) - 0000000000874652 [22:47:08]1040 (4) - 76547 [22:47:08]1012 (4) - 19.04.2024 16:29 [22:47:08]1206 (1) - 0 [22:47:08]OFD Sender: Remove packet 76547 [22:47:08]ProducePacketName [22:47:08]name=ofd_packets/00076547 [22:47:08]NVStorageDeleteData [22:47:08]Write to MH i2c: 01 00 00 88 08 90 [22:47:08]Write i2c OK [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: 01 [22:47:08]MH_I2C_Read... [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 88 08 00 00 00 00 00 FD 0C A0 [22:47:08]RasterBufferAndPrint [22:47:08]line [22:47:08]line [22:47:08]line [22:47:08]line [22:47:08]line [22:47:08]written 0, free lines is 3331 [22:47:08]MH_Cut [22:47:08]Write to MH i2c: D1 01 00 8F 08 01 69 [22:47:08]Write i2c OK [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: D1 [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: D1 01 00 [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: D1 01 00 8F 08 00 68 [22:47:08]Write to MH i2c: 01 00 00 90 08 98 [22:47:08]Write i2c OK [22:47:08]MH_I2C_Read... [22:47:09]OFD Sender: No OFD packet to send [22:47:09]*** Cut start [22:47:09]*** Partial cut [22:47:09]*** CUTSNS_PIN = 1 [22:47:09]*** CUTSNS_PIN = 0 [22:47:09]*** Brake cut motor [22:47:10]Read from MH i2c: 01 [22:47:10]MH_I2C_Read... [22:47:10]*** Stop cut motor [22:47:10]*** Cut end [22:47:10]Read from MH i2c: 01 07 00 [22:47:10]MH_I2C_Read... [22:47:10]Read from MH i2c: 01 07 00 90 08 00 00 00 00 00 FF 0F AD [22:47:10]process_action close_receipt done [22:47:10]requested_data is exist [22:47:10]produce_requested_data [22:47:10]requested_item fm.sn is exist - process it [22:47:10]wFMCommunicate request_size=4 [22:47:10]MH_SAM_APDU [22:47:10]CAPDU: 80 11 00 00 [22:47:10]Write to MH i2c: E2 08 00 91 08 80 11 00 00 00 00 00 00 13 [22:47:10]Write i2c OK [22:47:10]MH_I2C_Read... [22:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:10]Read from MH i2c: E2 [22:47:10]MH_I2C_Read... [22:47:10]Read from MH i2c: E2 17 00 [22:47:10]MH_I2C_Read... [22:47:10]Read from MH i2c: E2 17 00 91 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 66 [22:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:47:10]wFMCommunicate OK [22:47:10]requested_item fd.num is exist - process it [22:47:10]SAM_PROTO_GetFieldsCounters [22:47:10]wFMCommunicate request_size=4 [22:47:10]MH_SAM_APDU [22:47:10]CAPDU: 80 13 00 00 [22:47:10]Write to MH i2c: E2 08 00 92 08 80 13 00 00 00 00 00 00 16 [22:47:10]Write i2c OK [22:47:10]MH_I2C_Read... [22:47:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:47:10]Read from MH i2c: E2 [22:47:10]MH_I2C_Read... [22:47:10]Read from MH i2c: E2 62 00 [22:47:10]MH_I2C_Read... [22:47:10]Read from MH i2c: E2 62 00 92 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 03 2B 01 00 0E 04 04 00 72 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 CE [22:47: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 03 2B 01 00 0E 04 04 00 72 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 [22:47:10]wFMCommunicate OK [22:47:10]SAM_PROTO_GetFieldsCounters done [22:47:10]requested_item shift.num is exist - process it [22:47:10]requested_item shift.opened is exist - process it [22:47:10]req_shift_opened [22:47:10]FM_GetShiftState [22:47:10]SAM_PROTO_GetShiftState [22:47:10]wFMCommunicate request_size=4 [22:47:10]MH_SAM_APDU [22:47:10]CAPDU: 80 13 01 00 [22:47:10]Write to MH i2c: E2 08 00 93 08 80 13 01 00 00 00 00 00 18 [22:47:10]Write i2c OK [22:47:10]MH_I2C_Read... [22:47:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:10]Read from MH i2c: E2 [22:47:10]MH_I2C_Read... [22:47:10]Read from MH i2c: E2 0E 00 [22:47:10]MH_I2C_Read... [22:47:10]Read from MH i2c: E2 0E 00 93 08 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 FD [22:47:10]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [22:47:10]wFMCommunicate OK [22:47:10]SAM_PROTO_GetShiftState done [22:47:10]FM_GetShiftState done [22:47:10]req_shift_opened done [22:47:10]requested_item shift.open_date is exist - process it [22:47:10]req_shift_open_date [22:47:10]req_shift_open_date done [22:47:10]produce_requested_data done [22:47:10]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76547,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [22:47:10]process_action_free close_receipt [22:47:10]json_value_free [22:47:10]json_value_free done [22:47:10]process_json_proto returns [22:47:10]Send response to host [22:47:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76547,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [22:47:10]free response buf [22:47:10]execute_script done [22:47:10]execute_script returns [22:47:10]free content buf [22:47:10]Sock 8.Close socket [22:47:10]Sock 8.Thread stoped [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:20]accept exits with 10 [22:47:20]New connection [22:47:20]New thread 3066592612 created [22:47:20]Thread 3066735972 joined [22:47:20]Waiting for new connection... [22:47:20] Sock 10.Parse request [22:47:20]Sock 10.Check first char [22:47:20]Sock 10.First char is OK [22:47:20]request: POST /json_proto HTTP/1.0 [22:47:20]Method: POST [22:47:20]URL: /json_proto [22:47:20]Method is POST - this is cgi request [22:47:20]url: /json_proto [22:47:20]query_string will be loaded in cgi processing [22:47:20]execute_cgi json_proto POST (null) [22:47:20]execute_cgi path=json_proto method=POST [22:47:20]POST find Content-Length [22:47:20]Host: 172.17.62.5:8080 [22:47:20]Content-Length: 678 [22:47:20]Content-Type: application/json [22:47:20] [22:47:20]POST finish read [22:47:20]Found Content-Length = 678 [22:47:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.560, "sum" : 680.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:20]execute_script... [22:47: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)191043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.560, "sum" : 680.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:20]POST & json_proto [22:47:20]process_json_proto [22:47:20]json parsed OK: [22:47:20]protocol is kg_v1.0 [22:47:20]action value=close_receipt [22:47:20]process_action close_receipt [22:47:20]cmd_close_receipt [22:47:20]MH_GetDate [22:47:20]Write to MH i2c: F0 00 00 94 08 8B [22:47:20]Write i2c OK [22:47:20]MH_I2C_Read... [22:47:20]Read from MH i2c: F0 [22:47:20]MH_I2C_Read... [22:47:20]Read from MH i2c: F0 09 00 [22:47:20]MH_I2C_Read... [22:47:20]Read from MH i2c: F0 09 00 94 08 00 79 F4 22 66 F4 E9 65 64 2F [22:47:20]GetLastDocTimeStamp 1713566827 [22:47:20]current date 1713566841 [22:47:20]FM_GetShiftState [22:47:20]SAM_PROTO_GetShiftState [22:47:20]wFMCommunicate request_size=4 [22:47:20]MH_SAM_APDU [22:47:20]CAPDU: 80 13 01 00 [22:47:20]Write to MH i2c: E2 08 00 95 08 80 13 01 00 00 00 00 00 1A [22:47:20]Write i2c OK [22:47:20]MH_I2C_Read... [22:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:20]Read from MH i2c: E2 [22:47:20]MH_I2C_Read... [22:47:20]Read from MH i2c: E2 0E 00 [22:47:20]MH_I2C_Read... [22:47:20]Read from MH i2c: E2 0E 00 95 08 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 FF [22:47:20]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [22:47:20]wFMCommunicate OK [22:47:20]SAM_PROTO_GetShiftState done [22:47:20]FM_GetShiftState done [22:47:20]opened in 1713486233 [22:47:20]opened+sec_in_day 1713572633 [22:47:20]quantity*price = 68006 [22:47:20]sum+1 = 68007 [22:47:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.22 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 168 19.04.2024 22:47 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76548 ФПД: 268380911007237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T224722&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76548&fm=268380911007237&tin=02508201610067®Number=0000000000091573&sum=68000 [22:47:21]StoreToDocumentArchive [22:47:21]shift 370 fd 76548 [22:47:21]save to /storage/0370/doc_00076548 [22:47:21]save last doc name /storage/0370/doc_00076548 to /storage/kkm_last_doc_name [22:47:21]save OK [22:47:21]Clear old archive folders... [22:47:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:47:21]tlvbuf is 0162DDC0 [22:47:21]SAM_PROTO_ClearQueue [22:47:21]wFMCommunicate request_size=4 [22:47:21]MH_SAM_APDU [22:47:21]CAPDU: 80 09 00 00 [22:47:21]Write to MH i2c: E2 08 00 A2 08 80 09 00 00 00 00 00 00 1C [22:47:21]Write i2c OK [22:47:21]MH_I2C_Read... [22:47:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:47:21]Read from MH i2c: E2 [22:47:21]MH_I2C_Read... [22:47:21]Read from MH i2c: E2 03 00 [22:47:21]MH_I2C_Read... [22:47:21]Read from MH i2c: E2 03 00 A2 08 00 90 00 1E [22:47:21]RAPDU: 90 00 [22:47:21]wFMCommunicate OK [22:47:21]SAM_PROTO_ClearQueue done [22:47:21]KKMCreateOFDPacket [22:47:21]OFDProtocolAddRootSTLVToBuf [22:47:21]FM_MakeSignedData [22:47:21]FM_MakeSignedData [22:47:21]SAM_PROTO_SignData [22:47:21]wFMCommunicate request_size=4 [22:47:21]MH_SAM_APDU [22:47:21]CAPDU: 80 0D 01 02 [22:47:21]Write to MH i2c: E2 08 00 A3 08 80 0D 01 02 00 00 00 00 24 [22:47:21]Write i2c OK [22:47:21]MH_I2C_Read... [22:47:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:47:21]Read from MH i2c: E2 [22:47:21]MH_I2C_Read... [22:47:21]Read from MH i2c: E2 03 00 [22:47:21]MH_I2C_Read... [22:47:21]Read from MH i2c: E2 03 00 A3 08 00 90 00 1F [22:47:21]RAPDU: 90 00 [22:47:21]wFMCommunicate OK [22:47:21]wFMCommunicate request_size=255 [22:47:21]MH_SAM_APDU [22:47: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 40 29 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A6 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 7A F4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 04 2B 01 00 35 04 06 00 F4 [22:47:21]Write to MH i2c: E2 02 01 A4 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 40 29 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A6 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 7A F4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 04 2B 01 00 35 04 06 00 F4 00 00 BF [22:47:21]Write i2c OK [22:47:21]MH_I2C_Read... [22:47:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:21]Read from MH i2c: E2 [22:47:21]MH_I2C_Read... [22:47:21]Read from MH i2c: E2 03 00 [22:47:21]MH_I2C_Read... [22:47:21]Read from MH i2c: E2 03 00 A4 08 00 90 00 20 [22:47:21]RAPDU: 90 00 [22:47:21]wFMCommunicate OK [22:47:21]wFMCommunicate request_size=10 [22:47:21]MH_SAM_APDU [22:47:21]CAPDU: 80 0D 02 02 05 17 4C DD 76 05 [22:47:21]Write to MH i2c: E2 0D 00 A5 08 80 0D 02 02 05 00 17 4C DD 76 05 00 00 EC [22:47:21]Write i2c OK [22:47:21]MH_I2C_Read... [22:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:22]Read from MH i2c: E2 [22:47:22]MH_I2C_Read... [22:47:22]Read from MH i2c: E2 03 00 [22:47:22]MH_I2C_Read... [22:47:22]Read from MH i2c: E2 03 00 A5 08 00 90 00 21 [22:47:22]RAPDU: 90 00 [22:47:22]wFMCommunicate OK [22:47:22]wFMCommunicate request_size=4 [22:47:22]MH_SAM_APDU [22:47:22]CAPDU: 80 0D 03 02 [22:47:22]Write to MH i2c: E2 08 00 A6 08 80 0D 03 02 00 00 00 00 29 [22:47:22]Write i2c OK [22:47:22]MH_I2C_Read... [22:47:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:47:22]Read from MH i2c: E2 [22:47:22]MH_I2C_Read... [22:47:22]Read from MH i2c: E2 0B 00 [22:47:22]MH_I2C_Read... [22:47:22]Read from MH i2c: E2 0B 00 A6 08 00 91 55 34 3B 7D D6 BF 1C 90 00 AD [22:47:22]RAPDU: 91 55 34 3B 7D D6 BF 1C 90 00 [22:47:22]wFMCommunicate OK [22:47:22]SAM_PROTO_SignData done [22:47:22]FM_MakeSignedData done [22:47:22]CreateOFDProtocolMessage [22:47:22]wFMCommunicate request_size=4 [22:47:22]MH_SAM_APDU [22:47:22]CAPDU: 80 11 00 00 [22:47:22]Write to MH i2c: E2 08 00 A7 08 80 11 00 00 00 00 00 00 29 [22:47:22]Write i2c OK [22:47:22]MH_I2C_Read... [22:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:22]Read from MH i2c: E2 [22:47:22]MH_I2C_Read... [22:47:22]Read from MH i2c: E2 17 00 [22:47:22]MH_I2C_Read... [22:47:22]Read from MH i2c: E2 17 00 A7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7C [22:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:47:22]wFMCommunicate OK [22:47:22]CreateOFDProtocolMessage done [22:47:22]OFDSenderStorePacket 76548 [22:47:22]StoreOFDPacket docnum=76548 [22:47:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 ED 7B 07 01 4B B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A6 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 7A F4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 04 2B 01 00 35 04 06 00 F4 17 4C DD 76 05 91 55 34 3B 7D D6 BF 1C [22:47:22]CheckFolder [22:47:22]dirname=/storage/ofd_packets [22:47:22]CheckFolder done [22:47:22]ProducePacketName [22:47:22]name=ofd_packets/00076548 [22:47:22]NVStorageSaveData ofd_packets/00076548 [22:47:22]File name is /storage/ofd_packets/00076548 [22:47:22]Write 301 bytes [22:47:22]NVStorageSaveData done [22:47:22]OFDSenderStorePacket done [22:47:22]KKMCreateOFDPacket done [22:47:22]NVStorageSaveData kkm_last_timestamp [22:47:22]File name is /storage/kkm_last_timestamp [22:47:22]Write 4 bytes [22:47:22]NVStorageSaveData done [22:47:22]ExternCall_PrintAddStr [22:47:22]wPrintStart [22:47:22]Write to MH i2c: 01 00 00 A8 08 B0 [22:47:22]Write i2c OK [22:47:22]MH_I2C_Read... [22:47:22]Read from MH i2c: 01 [22:47:22]MH_I2C_Read... [22:47:22]Read from MH i2c: 01 07 00 [22:47:22]MH_I2C_Read... [22:47:22]Read from MH i2c: 01 07 00 A8 08 00 00 00 00 00 FF 0F C5 [22:47:22]RasterBufferAndPrint [22:47:22]line Счет N : (1)191043 [22:47:22]line ИНН: 02508201610067 [22:47:22]line Контрольно-Кассовый Чек [22:47:22]line ПРОДАЖА [22:47:22]line ТРК (МРК, ГНК) : 33 [22:47:22]line Товар: 2710124130 [22:47:22]line Аи-92-К-5 [22:47:22]line 10.560 * 64.40 [22:47:22]line = 680.06 [22:47:22]line НДС 12% НСП 1% [22:47:22]line > о реализуемом товаре [22:47:22]line ОКРУГЛЕНИЕ: -0.06 [22:47:22]line ИТОГО: 680.00 [22:47:22]line Внесено: 680.00 [22:47:22]line СДАЧА: 0.00 [22:47:22]line НСП 1% : 6.02 [22:47:22]line НДС 12% : 72.22 [22:47:22]line Наличными: 680.00 [22:47:22]line Безнал.: 0.00 [22:47:22]line Место: АЗС № 106 "Партнер Нефть" [22:47:22]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [22:47:22]line СНО: Общий режим [22:47:22]line Чек 168 19.04.2024 22:47 [22:47:22]line Смена: 370 ФФД: 1.0 [22:47:22]line ЗНМ: 0300000141 [22:47:22]line РНМ: 0000000000091573 [22:47:22]line Версия ККМ: 001 [22:47:22]line ФМ: 0000000000874652 [22:47:22]line ФД: 76548 [22:47:22]line ФПД: 268380911007237 [22:47:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T224722&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76548&fm=268380911007237&tin=02508201610067®Number=0000000000091573&sum=68000 [22:47:22]OFD Sender: Processing packet 76548 [packets to send 128, broken 127] [22:47:22]ProducePacketName [22:47:22]name=ofd_packets/00076548 [22:47:22]OFD Sender: To server: pG, [22:47:22]CommunicateWithHost lk.salyk.kg:30040 [22:47:22]ConnectInit lk.salyk.kg [22:47:22]written 0, free lines is 4095 [22:47:22]Connected sock=11 [22:47:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 ED 7B 07 01 4B B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A6 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 7A F4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 04 2B 01 00 35 04 06 00 F4 17 4C DD 76 05 91 55 34 3B 7D D6 BF 1C [22:47:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 2F 2C 47 00 67 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 04 2B 01 00 F4 03 04 00 04 9C 22 66 B6 04 01 00 00 2B B1 72 1C FC A7 53 68 [22:47:22]CommunicateWithHost err = 0 [22:47:22]CheckOFDResponse [22:47:22]1017 (14) - 77093643461234 [22:47:22]1041 (16) - 0000000000874652 [22:47:22]1040 (4) - 76548 [22:47:22]1012 (4) - 19.04.2024 16:29 [22:47:22]1206 (1) - 0 [22:47:22]OFD Sender: Remove packet 76548 [22:47:22]ProducePacketName [22:47:22]name=ofd_packets/00076548 [22:47:22]NVStorageDeleteData [22:47:22]Write to MH i2c: 01 00 00 D2 08 DA [22:47:22]Write i2c OK [22:47:22]MH_I2C_Read... [22:47:22]Read from MH i2c: 01 [22:47:22]MH_I2C_Read... [22:47:22]Read from MH i2c: 01 07 00 [22:47:22]MH_I2C_Read... [22:47:22]Read from MH i2c: 01 07 00 D2 08 00 00 00 00 00 00 0D EE [22:47:22]RasterBufferAndPrint [22:47:22]line [22:47:22]line [22:47:22]line [22:47:22]line [22:47:22]line [22:47:22]written 0, free lines is 3337 [22:47:22]MH_Cut [22:47:22]Write to MH i2c: D1 01 00 D9 08 01 B3 [22:47:22]Write i2c OK [22:47:22]MH_I2C_Read... [22:47:22]Read from MH i2c: D1 [22:47:22]MH_I2C_Read... [22:47:22]Read from MH i2c: D1 01 00 [22:47:22]MH_I2C_Read... [22:47:22]Read from MH i2c: D1 01 00 D9 08 00 B2 [22:47:22]Write to MH i2c: 01 00 00 DA 08 E2 [22:47:22]Write i2c OK [22:47:22]MH_I2C_Read... [22:47:23]OFD Sender: No OFD packet to send [22:47:23]*** Cut start [22:47:23]*** Partial cut [22:47:23]*** CUTSNS_PIN = 1 [22:47:23]*** CUTSNS_PIN = 0 [22:47:23]*** Brake cut motor [22:47:24]Read from MH i2c: 01 [22:47:24]MH_I2C_Read... [22:47:24]*** Stop cut motor [22:47:24]*** Cut end [22:47:24]Read from MH i2c: 01 07 00 [22:47:24]MH_I2C_Read... [22:47:24]Read from MH i2c: 01 07 00 DA 08 00 00 00 00 00 FF 0F F7 [22:47:24]process_action close_receipt done [22:47:24]requested_data is exist [22:47:24]produce_requested_data [22:47:24]requested_item fm.sn is exist - process it [22:47:24]wFMCommunicate request_size=4 [22:47:24]MH_SAM_APDU [22:47:24]CAPDU: 80 11 00 00 [22:47:24]Write to MH i2c: E2 08 00 DB 08 80 11 00 00 00 00 00 00 5D [22:47:24]Write i2c OK [22:47:24]MH_I2C_Read... [22:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:24]Read from MH i2c: E2 [22:47:24]MH_I2C_Read... [22:47:24]Read from MH i2c: E2 17 00 [22:47:24]MH_I2C_Read... [22:47:24]Read from MH i2c: E2 17 00 DB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B0 [22:47:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:47:24]wFMCommunicate OK [22:47:24]requested_item fd.num is exist - process it [22:47:24]SAM_PROTO_GetFieldsCounters [22:47:24]wFMCommunicate request_size=4 [22:47:24]MH_SAM_APDU [22:47:24]CAPDU: 80 13 00 00 [22:47:24]Write to MH i2c: E2 08 00 DC 08 80 13 00 00 00 00 00 00 60 [22:47:24]Write i2c OK [22:47:24]MH_I2C_Read... [22:47:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:47:24]Read from MH i2c: E2 [22:47:24]MH_I2C_Read... [22:47:24]Read from MH i2c: E2 62 00 [22:47:24]MH_I2C_Read... [22:47:24]Read from MH i2c: E2 62 00 DC 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 04 2B 01 00 0E 04 04 00 72 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 1C [22:47: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 04 2B 01 00 0E 04 04 00 72 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 [22:47:24]wFMCommunicate OK [22:47:24]SAM_PROTO_GetFieldsCounters done [22:47:24]requested_item shift.num is exist - process it [22:47:24]requested_item shift.opened is exist - process it [22:47:24]req_shift_opened [22:47:24]FM_GetShiftState [22:47:24]SAM_PROTO_GetShiftState [22:47:24]wFMCommunicate request_size=4 [22:47:24]MH_SAM_APDU [22:47:24]CAPDU: 80 13 01 00 [22:47:24]Write to MH i2c: E2 08 00 DD 08 80 13 01 00 00 00 00 00 62 [22:47:24]Write i2c OK [22:47:24]MH_I2C_Read... [22:47:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:24]Read from MH i2c: E2 [22:47:24]MH_I2C_Read... [22:47:24]Read from MH i2c: E2 0E 00 [22:47:24]MH_I2C_Read... [22:47:24]Read from MH i2c: E2 0E 00 DD 08 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 47 [22:47:24]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [22:47:24]wFMCommunicate OK [22:47:24]SAM_PROTO_GetShiftState done [22:47:24]FM_GetShiftState done [22:47:24]req_shift_opened done [22:47:24]requested_item shift.open_date is exist - process it [22:47:24]req_shift_open_date [22:47:24]req_shift_open_date done [22:47:24]produce_requested_data done [22:47:24]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76548,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [22:47:24]process_action_free close_receipt [22:47:24]json_value_free [22:47:24]json_value_free done [22:47:24]process_json_proto returns [22:47:24]Send response to host [22:47:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76548,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [22:47:24]free response buf [22:47:24]execute_script done [22:47:24]execute_script returns [22:47:24]free content buf [22:47:24]Sock 10.Close socket [22:47:24]Sock 10.Thread stoped [22:47:28]OFD Sender: No OFD packet to send [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:49]accept exits with 8 [22:48:49]New connection [22:48:49]New thread 3066735972 created [22:48:49]Thread 3066592612 joined [22:48:49]Waiting for new connection... [22:48:49] Sock 8.Parse request [22:48:49]Sock 8.Check first char [22:48:49]Sock 8.First char is OK [22:48:49]request: POST /json_proto HTTP/1.0 [22:48:49]Method: POST [22:48:49]URL: /json_proto [22:48:49]Method is POST - this is cgi request [22:48:49]url: /json_proto [22:48:49]query_string will be loaded in cgi processing [22:48:49]execute_cgi json_proto POST (null) [22:48:49]execute_cgi path=json_proto method=POST [22:48:49]POST find Content-Length [22:48:49]Host: 172.17.62.5:8080 [22:48:49]Content-Length: 819 [22:48:49]Content-Type: application/json [22:48:49] [22:48:49]POST finish read [22:48:49]Found Content-Length = 819 [22:48:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:49]execute_script... [22:48: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)191044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:49]POST & json_proto [22:48:49]process_json_proto [22:48:49]json parsed OK: [22:48:49]protocol is kg_v1.0 [22:48:49]action value=close_receipt [22:48:49]process_action close_receipt [22:48:49]cmd_close_receipt [22:48:49]MH_GetDate [22:48:49]Write to MH i2c: F0 00 00 DE 08 D5 [22:48:49]Write i2c OK [22:48:49]MH_I2C_Read... [22:48:49]Read from MH i2c: F0 [22:48:49]MH_I2C_Read... [22:48:49]Read from MH i2c: F0 09 00 [22:48:49]MH_I2C_Read... [22:48:49]Read from MH i2c: F0 09 00 DE 08 00 D2 F4 22 66 F4 E9 65 64 D2 [22:48:49]GetLastDocTimeStamp 1713566842 [22:48:49]current date 1713566930 [22:48:49]FM_GetShiftState [22:48:49]SAM_PROTO_GetShiftState [22:48:49]wFMCommunicate request_size=4 [22:48:49]MH_SAM_APDU [22:48:49]CAPDU: 80 13 01 00 [22:48:49]Write to MH i2c: E2 08 00 DF 08 80 13 01 00 00 00 00 00 64 [22:48:49]Write i2c OK [22:48:49]MH_I2C_Read... [22:48:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:49]Read from MH i2c: E2 [22:48:49]MH_I2C_Read... [22:48:49]Read from MH i2c: E2 0E 00 [22:48:49]MH_I2C_Read... [22:48:49]Read from MH i2c: E2 0E 00 DF 08 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 49 [22:48:49]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [22:48:49]wFMCommunicate OK [22:48:49]SAM_PROTO_GetShiftState done [22:48:49]FM_GetShiftState done [22:48:49]opened in 1713486233 [22:48:49]opened+sec_in_day 1713572633 [22:48:49]quantity*price = 100013 [22:48:49]sum+1 = 100014 [22:48:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.13 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.13 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 169 19.04.2024 22:48 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 76549 ФПД: 32861214997476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T224850&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76549&fm=32861214997476&tin=02508201610067®Number=0000000000091573&sum=100013 [22:48:50]StoreToDocumentArchive [22:48:50]shift 370 fd 76549 [22:48:50]save to /storage/0370/doc_00076549 [22:48:50]save last doc name /storage/0370/doc_00076549 to /storage/kkm_last_doc_name [22:48:50]save OK [22:48:50]Clear old archive folders... [22:48:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:48:50]tlvbuf is 01633AD0 [22:48:50]SAM_PROTO_ClearQueue [22:48:50]wFMCommunicate request_size=4 [22:48:50]MH_SAM_APDU [22:48:50]CAPDU: 80 09 00 00 [22:48:50]Write to MH i2c: E2 08 00 EC 08 80 09 00 00 00 00 00 00 66 [22:48:50]Write i2c OK [22:48:50]MH_I2C_Read... [22:48:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:50]Read from MH i2c: E2 [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: E2 03 00 [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: E2 03 00 EC 08 00 90 00 68 [22:48:50]RAPDU: 90 00 [22:48:50]wFMCommunicate OK [22:48:50]SAM_PROTO_ClearQueue done [22:48:50]KKMCreateOFDPacket [22:48:50]OFDProtocolAddRootSTLVToBuf [22:48:50]FM_MakeSignedData [22:48:50]FM_MakeSignedData [22:48:50]SAM_PROTO_SignData [22:48:50]wFMCommunicate request_size=4 [22:48:50]MH_SAM_APDU [22:48:50]CAPDU: 80 0D 01 02 [22:48:50]Write to MH i2c: E2 08 00 ED 08 80 0D 01 02 00 00 00 00 6E [22:48:50]Write i2c OK [22:48:50]MH_I2C_Read... [22:48:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:50]Read from MH i2c: E2 [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: E2 03 00 [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: E2 03 00 ED 08 00 90 00 69 [22:48:50]RAPDU: 90 00 [22:48:50]wFMCommunicate OK [22:48:50]wFMCommunicate request_size=255 [22:48:50]MH_SAM_APDU [22:48: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 D2 F4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 05 2B 01 00 35 04 06 00 1D [22:48:50]Write to MH i2c: E2 02 01 EE 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 D2 F4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 05 2B 01 00 35 04 06 00 1D 00 00 11 [22:48:50]Write i2c OK [22:48:50]MH_I2C_Read... [22:48:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:50]Read from MH i2c: E2 [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: E2 03 00 [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: E2 03 00 EE 08 00 90 00 6A [22:48:50]RAPDU: 90 00 [22:48:50]wFMCommunicate OK [22:48:50]wFMCommunicate request_size=10 [22:48:50]MH_SAM_APDU [22:48:50]CAPDU: 80 0D 02 02 05 E3 19 0B FB E4 [22:48:50]Write to MH i2c: E2 0D 00 EF 08 80 0D 02 02 05 00 E3 19 0B FB E4 00 00 61 [22:48:50]Write i2c OK [22:48:50]MH_I2C_Read... [22:48:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:50]Read from MH i2c: E2 [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: E2 03 00 [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: E2 03 00 EF 08 00 90 00 6B [22:48:50]RAPDU: 90 00 [22:48:50]wFMCommunicate OK [22:48:50]wFMCommunicate request_size=4 [22:48:50]MH_SAM_APDU [22:48:50]CAPDU: 80 0D 03 02 [22:48:50]Write to MH i2c: E2 08 00 F0 08 80 0D 03 02 00 00 00 00 73 [22:48:50]Write i2c OK [22:48:50]MH_I2C_Read... [22:48:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:50]Read from MH i2c: E2 [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: E2 0B 00 [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: E2 0B 00 F0 08 00 EE DF FD A0 3A AC 45 D3 90 00 DC [22:48:50]RAPDU: EE DF FD A0 3A AC 45 D3 90 00 [22:48:50]wFMCommunicate OK [22:48:50]SAM_PROTO_SignData done [22:48:50]FM_MakeSignedData done [22:48:50]CreateOFDProtocolMessage [22:48:50]wFMCommunicate request_size=4 [22:48:50]MH_SAM_APDU [22:48:50]CAPDU: 80 11 00 00 [22:48:50]Write to MH i2c: E2 08 00 F1 08 80 11 00 00 00 00 00 00 73 [22:48:50]Write i2c OK [22:48:50]MH_I2C_Read... [22:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:50]Read from MH i2c: E2 [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: E2 17 00 [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: E2 17 00 F1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C6 [22:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:48:50]wFMCommunicate OK [22:48:50]CreateOFDProtocolMessage done [22:48:50]OFDSenderStorePacket 76549 [22:48:50]StoreOFDPacket docnum=76549 [22:48:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 8E 88 07 01 47 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 D2 F4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 05 2B 01 00 35 04 06 00 1D E3 19 0B FB E4 EE DF FD A0 3A AC 45 D3 [22:48:50]CheckFolder [22:48:50]dirname=/storage/ofd_packets [22:48:50]CheckFolder done [22:48:50]ProducePacketName [22:48:50]name=ofd_packets/00076549 [22:48:50]NVStorageSaveData ofd_packets/00076549 [22:48:50]File name is /storage/ofd_packets/00076549 [22:48:50]Write 301 bytes [22:48:50]NVStorageSaveData done [22:48:50]OFDSenderStorePacket done [22:48:50]KKMCreateOFDPacket done [22:48:50]NVStorageSaveData kkm_last_timestamp [22:48:50]File name is /storage/kkm_last_timestamp [22:48:50]Write 4 bytes [22:48:50]NVStorageSaveData done [22:48:50]ExternCall_PrintAddStr [22:48:50]wPrintStart [22:48:50]Write to MH i2c: 01 00 00 F2 08 FA [22:48:50]Write i2c OK [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: 01 [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: 01 07 00 [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: 01 07 00 F2 08 00 00 00 00 00 FF 0F 0F [22:48:50]RasterBufferAndPrint [22:48:50]line Счет N : (1)191044 [22:48:50]line ИНН: 02508201610067 [22:48:50]line Контрольно-Кассовый Чек [22:48:50]line ПРОДАЖА [22:48:50]line ТРК (МРК, ГНК) : 43 [22:48:50]line Товар: 2710124130 [22:48:50]line Аи-92-К-5 [22:48:50]line 15.530 * 64.40 [22:48:50]line = 1000.13 [22:48:50]line НДС 12% НСП 1% [22:48:50]line > о реализуемом товаре [22:48:50]line ИТОГО: 1000.13 [22:48:50]line НСП 1% : 8.85 [22:48:50]line НДС 12% : 106.21 [22:48:50]line Наличными: 0.00 [22:48:50]line Безнал.: 1000.13 [22:48:50]line Место: АЗС № 106 "Партнер Нефть" [22:48:50]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [22:48:50]line СНО: Общий режим [22:48:50]line Чек 169 19.04.2024 22:48 [22:48:50]line Смена: 370 ФФД: 1.0 [22:48:50]line ЗНМ: 0300000141 [22:48:50]line РНМ: 0000000000091573 [22:48:50]line Версия ККМ: 001 [22:48:50]line Платежная система: Бакай Банк [22:48:50]line ФМ: 0000000000874652 [22:48:50]line ФД: 76549 [22:48:50]line ФПД: 32861214997476 [22:48:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T224850&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76549&fm=32861214997476&tin=02508201610067®Number=0000000000091573&sum=100013 [22:48:50]written 0, free lines is 4095 [22:48:50]OFD Sender: Processing packet 76549 [packets to send 128, broken 127] [22:48:50]ProducePacketName [22:48:50]name=ofd_packets/00076549 [22:48:51]OFD Sender: To server: pG, [22:48:51]CommunicateWithHost lk.salyk.kg:30040 [22:48:51]ConnectInit lk.salyk.kg [22:48:51]Write to MH i2c: 01 00 00 1B 09 24 [22:48:51]Write i2c OK [22:48:51]MH_I2C_Read... [22:48:51]Read from MH i2c: 01 [22:48:51]MH_I2C_Read... [22:48:51]Read from MH i2c: 01 07 00 [22:48:51]MH_I2C_Read... [22:48:51]Read from MH i2c: 01 07 00 1B 09 00 00 00 00 00 FC 0C 33 [22:48:51]RasterBufferAndPrint [22:48:51]line [22:48:51]line [22:48:51]line [22:48:51]line [22:48:51]line [22:48:51]written 0, free lines is 3330 [22:48:51]MH_Cut [22:48:51]Write to MH i2c: D1 01 00 22 09 01 FD [22:48:51]Write i2c OK [22:48:51]MH_I2C_Read... [22:48:51]Read from MH i2c: D1 [22:48:51]MH_I2C_Read... [22:48:51]Read from MH i2c: D1 01 00 [22:48:51]MH_I2C_Read... [22:48:51]Read from MH i2c: D1 01 00 22 09 00 FC [22:48:51]Write to MH i2c: 01 00 00 23 09 2C [22:48:51]Write i2c OK [22:48:51]MH_I2C_Read... [22:48:51]Connected sock=10 [22:48:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 8E 88 07 01 47 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 D2 F4 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 05 2B 01 00 35 04 06 00 1D E3 19 0B FB E4 EE DF FD A0 3A AC 45 D3 [22:48:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C8 5B 47 00 FA 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 34 36 35 32 10 04 04 00 05 2B 01 00 F4 03 04 00 5C 9C 22 66 B6 04 01 00 00 7D B6 05 E5 1C BA 04 B5 [22:48:51]CommunicateWithHost err = 0 [22:48:51]CheckOFDResponse [22:48:51]1017 (14) - 77093643461234 [22:48:51]1041 (16) - 0000000000874652 [22:48:51]1040 (4) - 76549 [22:48:51]1012 (4) - 19.04.2024 16:31 [22:48:51]1206 (1) - 0 [22:48:51]OFD Sender: Remove packet 76549 [22:48:51]ProducePacketName [22:48:51]name=ofd_packets/00076549 [22:48:51]NVStorageDeleteData [22:48:51]*** Cut start [22:48:51]*** Partial cut [22:48:51]*** CUTSNS_PIN = 1 [22:48:51]OFD Sender: No OFD packet to send [22:48:52]*** CUTSNS_PIN = 0 [22:48:52]*** Brake cut motor [22:48:52]Read from MH i2c: 01 [22:48:52]MH_I2C_Read... [22:48:52]*** Stop cut motor [22:48:52]*** Cut end [22:48:52]Read from MH i2c: 01 07 00 [22:48:52]MH_I2C_Read... [22:48:52]Read from MH i2c: 01 07 00 23 09 00 00 00 00 00 FF 0F 41 [22:48:52]process_action close_receipt done [22:48:52]requested_data is exist [22:48:52]produce_requested_data [22:48:52]requested_item fm.sn is exist - process it [22:48:52]wFMCommunicate request_size=4 [22:48:52]MH_SAM_APDU [22:48:52]CAPDU: 80 11 00 00 [22:48:52]Write to MH i2c: E2 08 00 24 09 80 11 00 00 00 00 00 00 A7 [22:48:52]Write i2c OK [22:48:52]MH_I2C_Read... [22:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:52]Read from MH i2c: E2 [22:48:52]MH_I2C_Read... [22:48:52]Read from MH i2c: E2 17 00 [22:48:52]MH_I2C_Read... [22:48:52]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 34 36 35 32 90 00 FA [22:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [22:48:52]wFMCommunicate OK [22:48:52]requested_item fd.num is exist - process it [22:48:52]SAM_PROTO_GetFieldsCounters [22:48:52]wFMCommunicate request_size=4 [22:48:52]MH_SAM_APDU [22:48:52]CAPDU: 80 13 00 00 [22:48:52]Write to MH i2c: E2 08 00 25 09 80 13 00 00 00 00 00 00 AA [22:48:52]Write i2c OK [22:48:52]MH_I2C_Read... [22:48:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:52]Read from MH i2c: E2 [22:48:52]MH_I2C_Read... [22:48:52]Read from MH i2c: E2 62 00 [22:48:52]MH_I2C_Read... [22:48:52]Read from MH i2c: E2 62 00 25 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 05 2B 01 00 0E 04 04 00 72 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 6A [22:48:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 05 2B 01 00 0E 04 04 00 72 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 [22:48:52]wFMCommunicate OK [22:48:52]SAM_PROTO_GetFieldsCounters done [22:48:52]requested_item shift.num is exist - process it [22:48:52]requested_item shift.opened is exist - process it [22:48:52]req_shift_opened [22:48:52]FM_GetShiftState [22:48:52]SAM_PROTO_GetShiftState [22:48:52]wFMCommunicate request_size=4 [22:48:52]MH_SAM_APDU [22:48:52]CAPDU: 80 13 01 00 [22:48:52]Write to MH i2c: E2 08 00 26 09 80 13 01 00 00 00 00 00 AC [22:48:52]Write i2c OK [22:48:52]MH_I2C_Read... [22:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:52]Read from MH i2c: E2 [22:48:52]MH_I2C_Read... [22:48:52]Read from MH i2c: E2 0E 00 [22:48:52]MH_I2C_Read... [22:48:52]Read from MH i2c: E2 0E 00 26 09 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 91 [22:48:52]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [22:48:52]wFMCommunicate OK [22:48:52]SAM_PROTO_GetShiftState done [22:48:52]FM_GetShiftState done [22:48:52]req_shift_opened done [22:48:52]requested_item shift.open_date is exist - process it [22:48:52]req_shift_open_date [22:48:52]req_shift_open_date done [22:48:52]produce_requested_data done [22:48:52]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76549,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [22:48:52]process_action_free close_receipt [22:48:52]json_value_free [22:48:52]json_value_free done [22:48:52]process_json_proto returns [22:48:52]Send response to host [22:48:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76549,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [22:48:52]free response buf [22:48:52]execute_script done [22:48:52]execute_script returns [22:48:52]free content buf [22:48:52]Sock 8.Close socket [22:48:52]Sock 8.Thread stoped [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:32]OFD Sender: No OFD packet to send [22:49:37]OFD Sender: No OFD packet to send [22:49:42]OFD Sender: No OFD packet to send [22:49:47]OFD Sender: No OFD packet to send [22:49:52]OFD Sender: No OFD packet to send [22:49:57]OFD Sender: No OFD packet to send [22:50:02]OFD Sender: No OFD packet to send [22:50:07]OFD Sender: No OFD packet to send [22:50:12]OFD Sender: No OFD packet to send [22:50:17]OFD Sender: No OFD packet to send [22:50:22]OFD Sender: No OFD packet to send [22:50:27]OFD Sender: No OFD packet to send [22:50:32]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:50]recv_with_timeout no data received [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54: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:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:45]accept exits with 9 [23:01:45]New connection [23:01:45]New thread 3066592612 created [23:01:45]Thread 3066735972 joined [23:01:45]Waiting for new connection... [23:01:45] Sock 9.Parse request [23:01:45]Sock 9.Check first char [23:01:45]Sock 9.First char is OK [23:01:45]request: POST /json_proto HTTP/1.0 [23:01:45]Method: POST [23:01:45]URL: /json_proto [23:01:45]Method is POST - this is cgi request [23:01:45]url: /json_proto [23:01:45]query_string will be loaded in cgi processing [23:01:45]execute_cgi json_proto POST (null) [23:01:45]execute_cgi path=json_proto method=POST [23:01:45]POST find Content-Length [23:01:45]Host: 172.17.62.5:8080 [23:01:45]Content-Length: 990 [23:01:45]Content-Type: application/json [23:01:45] [23:01:45]POST finish read [23:01:45]Found Content-Length = 990 [23:01:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 36.280, "sum" : 1150.08, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 36.28 \u0441\u043E\u043C", "deposit" : 1150.00, "total" : 1150.00, "payments": [ { "type": 0, "sum" : 1150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:45]execute_script... [23:01: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)191045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 36.280, "sum" : 1150.08, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 36.28 \u0441\u043E\u043C", "deposit" : 1150.00, "total" : 1150.00, "payments": [ { "type": 0, "sum" : 1150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:45]POST & json_proto [23:01:45]process_json_proto [23:01:45]json parsed OK: [23:01:45]protocol is kg_v1.0 [23:01:45]action value=close_receipt [23:01:45]process_action close_receipt [23:01:45]cmd_close_receipt [23:01:45]MH_GetDate [23:01:45]Write to MH i2c: F0 00 00 27 09 1F [23:01:45]Write i2c OK [23:01:45]MH_I2C_Read... [23:01:45]Read from MH i2c: F0 [23:01:45]MH_I2C_Read... [23:01:45]Read from MH i2c: F0 09 00 [23:01:45]MH_I2C_Read... [23:01:45]Read from MH i2c: F0 09 00 27 09 00 DA F7 22 66 F4 E9 65 64 27 [23:01:45]GetLastDocTimeStamp 1713566930 [23:01:45]current date 1713567706 [23:01:45]FM_GetShiftState [23:01:45]SAM_PROTO_GetShiftState [23:01:45]wFMCommunicate request_size=4 [23:01:45]MH_SAM_APDU [23:01:45]CAPDU: 80 13 01 00 [23:01:45]Write to MH i2c: E2 08 00 28 09 80 13 01 00 00 00 00 00 AE [23:01:45]Write i2c OK [23:01:45]MH_I2C_Read... [23:01:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:45]Read from MH i2c: E2 [23:01:45]MH_I2C_Read... [23:01:45]Read from MH i2c: E2 0E 00 [23:01:45]MH_I2C_Read... [23:01:45]Read from MH i2c: E2 0E 00 28 09 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 93 [23:01:45]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [23:01:45]wFMCommunicate OK [23:01:45]SAM_PROTO_GetShiftState done [23:01:45]FM_GetShiftState done [23:01:45]opened in 1713486233 [23:01:45]opened+sec_in_day 1713572633 [23:01:45]quantity*price = 115007 [23:01:45]sum+1 = 115009 [23:01:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1150.00 Внесено: 1150.00 СДАЧА: 0.00 НСП 1% : 10.18 НДС 12% : 122.13 Наличными: 1150.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 170 19.04.2024 23:01 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 36.28 сом ФМ: 0000000000874652 ФД: 76550 ФПД: 115401723501452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T230146&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76550&fm=115401723501452&tin=02508201610067®Number=0000000000091573&sum=115000 [23:01:46]StoreToDocumentArchive [23:01:46]shift 370 fd 76550 [23:01:46]save to /storage/0370/doc_00076550 [23:01:46]save last doc name /storage/0370/doc_00076550 to /storage/kkm_last_doc_name [23:01:46]save OK [23:01:46]Clear old archive folders... [23:01:46]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:01:46]tlvbuf is 01633580 [23:01:46]SAM_PROTO_ClearQueue [23:01:46]wFMCommunicate request_size=4 [23:01:46]MH_SAM_APDU [23:01:46]CAPDU: 80 09 00 00 [23:01:46]Write to MH i2c: E2 08 00 35 09 80 09 00 00 00 00 00 00 B0 [23:01:46]Write i2c OK [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 [23:01:46]MH_I2C_Read... [23:01:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:01:46]Read from MH i2c: E2 03 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 03 00 35 09 00 90 00 B2 [23:01:46]RAPDU: 90 00 [23:01:46]wFMCommunicate OK [23:01:46]SAM_PROTO_ClearQueue done [23:01:46]KKMCreateOFDPacket [23:01:46]OFDProtocolAddRootSTLVToBuf [23:01:46]FM_MakeSignedData [23:01:46]FM_MakeSignedData [23:01:46]SAM_PROTO_SignData [23:01:46]wFMCommunicate request_size=4 [23:01:46]MH_SAM_APDU [23:01:46]CAPDU: 80 0D 01 02 [23:01:46]Write to MH i2c: E2 08 00 36 09 80 0D 01 02 00 00 00 00 B8 [23:01:46]Write i2c OK [23:01:46]MH_I2C_Read... [23:01:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:01:46]Read from MH i2c: E2 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 03 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 03 00 36 09 00 90 00 B3 [23:01:46]RAPDU: 90 00 [23:01:46]wFMCommunicate OK [23:01:46]wFMCommunicate request_size=255 [23:01:46]MH_SAM_APDU [23:01:46]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B8 8D 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 40 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 2F 00 00 00 00 07 04 06 00 38 C1 01 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 DA F7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 06 2B 01 00 35 04 06 00 68 F5 [23:01:46]Write to MH i2c: E2 02 01 37 09 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B8 8D 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 40 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 2F 00 00 00 00 07 04 06 00 38 C1 01 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 DA F7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 06 2B 01 00 35 04 06 00 68 F5 00 00 F8 [23:01:46]Write i2c OK [23:01:46]MH_I2C_Read... [23:01:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:46]Read from MH i2c: E2 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 03 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 03 00 37 09 00 90 00 B4 [23:01:46]RAPDU: 90 00 [23:01:46]wFMCommunicate OK [23:01:46]wFMCommunicate request_size=9 [23:01:46]MH_SAM_APDU [23:01:46]CAPDU: 80 0D 02 02 04 0E BC 5B 8C [23:01:46]Write to MH i2c: E2 0C 00 38 09 80 0D 02 02 04 00 0E BC 5B 8C 00 00 74 [23:01:46]Write i2c OK [23:01:46]MH_I2C_Read... [23:01:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:46]Read from MH i2c: E2 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 03 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 03 00 38 09 00 90 00 B5 [23:01:46]RAPDU: 90 00 [23:01:46]wFMCommunicate OK [23:01:46]wFMCommunicate request_size=4 [23:01:46]MH_SAM_APDU [23:01:46]CAPDU: 80 0D 03 02 [23:01:46]Write to MH i2c: E2 08 00 39 09 80 0D 03 02 00 00 00 00 BD [23:01:46]Write i2c OK [23:01:46]MH_I2C_Read... [23:01:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:01:46]Read from MH i2c: E2 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 0B 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 0B 00 39 09 00 A0 EA A2 9D CF E2 0F 3F 90 00 86 [23:01:46]RAPDU: A0 EA A2 9D CF E2 0F 3F 90 00 [23:01:46]wFMCommunicate OK [23:01:46]SAM_PROTO_SignData done [23:01:46]FM_MakeSignedData done [23:01:46]CreateOFDProtocolMessage [23:01:46]wFMCommunicate request_size=4 [23:01:46]MH_SAM_APDU [23:01:46]CAPDU: 80 11 00 00 [23:01:46]Write to MH i2c: E2 08 00 3A 09 80 11 00 00 00 00 00 00 BD [23:01:46]Write i2c OK [23:01:46]MH_I2C_Read... [23:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:46]Read from MH i2c: E2 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 17 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 17 00 3A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 10 [23:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:01:46]wFMCommunicate OK [23:01:46]CreateOFDProtocolMessage done [23:01:46]OFDSenderStorePacket 76550 [23:01:46]StoreOFDPacket docnum=76550 [23:01:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 6A EC 06 01 93 6B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B8 8D 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 40 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 2F 00 00 00 00 07 04 06 00 38 C1 01 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 DA F7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 06 2B 01 00 35 04 06 00 68 F5 0E BC 5B 8C A0 EA A2 9D CF E2 0F 3F [23:01:46]CheckFolder [23:01:46]dirname=/storage/ofd_packets [23:01:46]CheckFolder done [23:01:46]ProducePacketName [23:01:46]name=ofd_packets/00076550 [23:01:46]NVStorageSaveData ofd_packets/00076550 [23:01:46]File name is /storage/ofd_packets/00076550 [23:01:46]Write 300 bytes [23:01:46]NVStorageSaveData done [23:01:46]OFDSenderStorePacket done [23:01:46]KKMCreateOFDPacket done [23:01:46]NVStorageSaveData kkm_last_timestamp [23:01:46]File name is /storage/kkm_last_timestamp [23:01:46]Write 4 bytes [23:01:46]NVStorageSaveData done [23:01:46]ExternCall_PrintAddStr [23:01:46]wPrintStart [23:01:46]Write to MH i2c: 01 00 00 3B 09 44 [23:01:46]Write i2c OK [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: 01 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: 01 07 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: 01 07 00 3B 09 00 00 00 00 00 FF 0F 59 [23:01:46]RasterBufferAndPrint [23:01:46]line Счет N : (1)191045 [23:01:46]line ИНН: 02508201610067 [23:01:46]line Контрольно-Кассовый Чек [23:01:46]line ПРОДАЖА [23:01:46]line ТРК (МРК, ГНК) : 71 [23:01:46]line Товар: 2711190000 [23:01:46]line ГАЗ-К-5 [23:01:46]line 36.280 * 31.70 [23:01:46]line = 1150.08 [23:01:46]line НДС 12% НСП 1% [23:01:46]line > о реализуемом товаре [23:01:46]line ОКРУГЛЕНИЕ: -0.08 [23:01:46]line ИТОГО: 1150.00 [23:01:46]line Внесено: 1150.00 [23:01:46]line СДАЧА: 0.00 [23:01:46]line НСП 1% : 10.18 [23:01:46]line НДС 12% : 122.13 [23:01:46]line Наличными: 1150.00 [23:01:46]line Безнал.: 0.00 [23:01:46]line Место: АЗС № 106 "Партнер Нефть" [23:01:46]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [23:01:46]line СНО: Общий режим [23:01:46]line Чек 170 19.04.2024 23:01 [23:01:46]line Смена: 370 ФФД: 1.0 [23:01:46]line ЗНМ: 0300000141 [23:01:46]line РНМ: 0000000000091573 [23:01:46]line Версия ККМ: 001 [23:01:46]line [23:01:46]line Дисконтная программа [23:01:46]line СУГ [23:01:46]line номер 106 [23:01:46]line сэкономлено 36.28 сом [23:01:46]line ФМ: 0000000000874652 [23:01:46]line ФД: 76550 [23:01:46]line ФПД: 115401723501452 [23:01:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T230146&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76550&fm=115401723501452&tin=02508201610067®Number=0000000000091573&sum=115000 [23:01:47]OFD Sender: Processing packet 76550 [packets to send 128, broken 127] [23:01:47]ProducePacketName [23:01:47]name=ofd_packets/00076550 [23:01:47]OFD Sender: To server: pG, [23:01:47]CommunicateWithHost lk.salyk.kg:30040 [23:01:47]ConnectInit lk.salyk.kg [23:01:47]written 0, free lines is 4095 [23:01:47]Connected sock=8 [23:01:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 6A EC 06 01 93 6B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B8 8D 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 40 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 2F 00 00 00 00 07 04 06 00 38 C1 01 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 DA F7 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 06 2B 01 00 35 04 06 00 68 F5 0E BC 5B 8C A0 EA A2 9D CF E2 0F 3F [23:01:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 06 2B 47 00 4E 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 34 36 35 32 10 04 04 00 06 2B 01 00 F4 03 04 00 65 9F 22 66 B6 04 01 00 00 E7 BC 35 4A 76 67 6D FD [23:01:47]CommunicateWithHost err = 0 [23:01:47]CheckOFDResponse [23:01:47]1017 (14) - 77093643461234 [23:01:47]1041 (16) - 0000000000874652 [23:01:47]1040 (4) - 76550 [23:01:47]1012 (4) - 19.04.2024 16:44 [23:01:47]1206 (1) - 0 [23:01:47]OFD Sender: Remove packet 76550 [23:01:47]ProducePacketName [23:01:47]name=ofd_packets/00076550 [23:01:47]NVStorageDeleteData [23:01:47]Write to MH i2c: 01 00 00 6A 09 73 [23:01:47]Write i2c OK [23:01:47]MH_I2C_Read... [23:01:47]Read from MH i2c: 01 [23:01:47]MH_I2C_Read... [23:01:47]Read from MH i2c: 01 07 00 [23:01:47]MH_I2C_Read... [23:01:47]Read from MH i2c: 01 07 00 6A 09 00 00 00 00 00 9D 0C 23 [23:01:47]RasterBufferAndPrint [23:01:47]line [23:01:47]line [23:01:47]line [23:01:47]line [23:01:47]line [23:01:47]written 0, free lines is 3236 [23:01:47]MH_Cut [23:01:47]Write to MH i2c: D1 01 00 71 09 01 4C [23:01:47]Write i2c OK [23:01:47]MH_I2C_Read... [23:01:47]Read from MH i2c: D1 [23:01:47]MH_I2C_Read... [23:01:47]Read from MH i2c: D1 01 00 [23:01:47]MH_I2C_Read... [23:01:47]Read from MH i2c: D1 01 00 71 09 00 4B [23:01:47]Write to MH i2c: 01 00 00 72 09 7B [23:01:47]Write i2c OK [23:01:47]MH_I2C_Read... [23:01:48]OFD Sender: No OFD packet to send [23:01:48]*** Cut start [23:01:48]*** Partial cut [23:01:48]*** CUTSNS_PIN = 1 [23:01:48]*** CUTSNS_PIN = 0 [23:01:48]*** Brake cut motor [23:01:49]Read from MH i2c: 01 [23:01:49]MH_I2C_Read... [23:01:49]*** Stop cut motor [23:01:49]*** Cut end [23:01:49]Read from MH i2c: 01 07 00 [23:01:49]MH_I2C_Read... [23:01:49]Read from MH i2c: 01 07 00 72 09 00 00 00 00 00 FF 0F 90 [23:01:49]process_action close_receipt done [23:01:49]requested_data is exist [23:01:49]produce_requested_data [23:01:49]requested_item fm.sn is exist - process it [23:01:49]wFMCommunicate request_size=4 [23:01:49]MH_SAM_APDU [23:01:49]CAPDU: 80 11 00 00 [23:01:49]Write to MH i2c: E2 08 00 73 09 80 11 00 00 00 00 00 00 F6 [23:01:49]Write i2c OK [23:01:49]MH_I2C_Read... [23:01:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:49]Read from MH i2c: E2 [23:01:49]MH_I2C_Read... [23:01:49]Read from MH i2c: E2 17 00 [23:01:49]MH_I2C_Read... [23:01:49]Read from MH i2c: E2 17 00 73 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 49 [23:01:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:01:49]wFMCommunicate OK [23:01:49]requested_item fd.num is exist - process it [23:01:49]SAM_PROTO_GetFieldsCounters [23:01:49]wFMCommunicate request_size=4 [23:01:49]MH_SAM_APDU [23:01:49]CAPDU: 80 13 00 00 [23:01:49]Write to MH i2c: E2 08 00 74 09 80 13 00 00 00 00 00 00 F9 [23:01:49]Write i2c OK [23:01:49]MH_I2C_Read... [23:01:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:01:49]Read from MH i2c: E2 [23:01:49]MH_I2C_Read... [23:01:49]Read from MH i2c: E2 62 00 [23:01:49]MH_I2C_Read... [23:01:49]Read from MH i2c: E2 62 00 74 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 06 2B 01 00 0E 04 04 00 72 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 BD [23:01:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 06 2B 01 00 0E 04 04 00 72 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 [23:01:49]wFMCommunicate OK [23:01:49]SAM_PROTO_GetFieldsCounters done [23:01:49]requested_item shift.num is exist - process it [23:01:49]requested_item shift.opened is exist - process it [23:01:49]req_shift_opened [23:01:49]FM_GetShiftState [23:01:49]SAM_PROTO_GetShiftState [23:01:49]wFMCommunicate request_size=4 [23:01:49]MH_SAM_APDU [23:01:49]CAPDU: 80 13 01 00 [23:01:49]Write to MH i2c: E2 08 00 75 09 80 13 01 00 00 00 00 00 FB [23:01:49]Write i2c OK [23:01:49]MH_I2C_Read... [23:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:49]Read from MH i2c: E2 [23:01:49]MH_I2C_Read... [23:01:49]Read from MH i2c: E2 0E 00 [23:01:49]MH_I2C_Read... [23:01:49]Read from MH i2c: E2 0E 00 75 09 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E0 [23:01:49]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [23:01:49]wFMCommunicate OK [23:01:49]SAM_PROTO_GetShiftState done [23:01:49]FM_GetShiftState done [23:01:49]req_shift_opened done [23:01:49]requested_item shift.open_date is exist - process it [23:01:49]req_shift_open_date [23:01:49]req_shift_open_date done [23:01:49]produce_requested_data done [23:01:49]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76550,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [23:01:49]process_action_free close_receipt [23:01:49]json_value_free [23:01:49]json_value_free done [23:01:49]process_json_proto returns [23:01:49]Send response to host [23:01:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76550,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [23:01:49]free response buf [23:01:49]execute_script done [23:01:49]execute_script returns [23:01:49]free content buf [23:01:49]Sock 9.Close socket [23:01:49]Sock 9.Thread stoped [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:33]accept exits with 10 [23:06:33]New connection [23:06:33]New thread 3066735972 created [23:06:33]Thread 3066592612 joined [23:06:33]Waiting for new connection... [23:06:33] Sock 10.Parse request [23:06:33]Sock 10.Check first char [23:06:33]Sock 10.First char is OK [23:06:33]request: POST /json_proto HTTP/1.0 [23:06:33]Method: POST [23:06:33]URL: /json_proto [23:06:33]Method is POST - this is cgi request [23:06:33]url: /json_proto [23:06:33]query_string will be loaded in cgi processing [23:06:33]execute_cgi json_proto POST (null) [23:06:33]execute_cgi path=json_proto method=POST [23:06:33]POST find Content-Length [23:06:33]Host: 172.17.62.5:8080 [23:06:33]Content-Length: 990 [23:06:33]Content-Type: application/json [23:06:33] [23:06:33]POST finish read [23:06:33]Found Content-Length = 990 [23:06:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:06:33]execute_script... [23: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)191046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 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:06:33]POST & json_proto [23:06:33]process_json_proto [23:06:33]json parsed OK: [23:06:33]protocol is kg_v1.0 [23:06:33]action value=close_receipt [23:06:33]process_action close_receipt [23:06:33]cmd_close_receipt [23:06:33]MH_GetDate [23:06:33]Write to MH i2c: F0 00 00 76 09 6E [23:06:33]Write i2c OK [23:06:33]MH_I2C_Read... [23:06:33]Read from MH i2c: F0 [23:06:33]MH_I2C_Read... [23:06:33]Read from MH i2c: F0 09 00 [23:06:33]MH_I2C_Read... [23:06:33]Read from MH i2c: F0 09 00 76 09 00 FB F8 22 66 F4 E9 65 64 98 [23:06:33]GetLastDocTimeStamp 1713567706 [23:06:33]current date 1713567995 [23:06:33]FM_GetShiftState [23:06:33]SAM_PROTO_GetShiftState [23:06:33]wFMCommunicate request_size=4 [23:06:33]MH_SAM_APDU [23:06:33]CAPDU: 80 13 01 00 [23:06:33]Write to MH i2c: E2 08 00 77 09 80 13 01 00 00 00 00 00 FD [23:06:33]Write i2c OK [23:06:33]MH_I2C_Read... [23:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:33]Read from MH i2c: E2 [23:06:33]MH_I2C_Read... [23:06:33]Read from MH i2c: E2 0E 00 [23:06:33]MH_I2C_Read... [23:06:33]Read from MH i2c: E2 0E 00 77 09 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 E2 [23:06:33]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [23:06:33]wFMCommunicate OK [23:06:33]SAM_PROTO_GetShiftState done [23:06:33]FM_GetShiftState done [23:06:33]opened in 1713486233 [23:06:33]opened+sec_in_day 1713572633 [23:06:33]quantity*price = 100013 [23:06:33]sum+1 = 100015 [23:06:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 171 19.04.2024 23:06 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 31.55 сом ФМ: 0000000000874652 ФД: 76551 ФПД: 167308248075962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T230635&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76551&fm=167308248075962&tin=02508201610067®Number=0000000000091573&sum=100000 [23:06:35]StoreToDocumentArchive [23:06:35]shift 370 fd 76551 [23:06:35]save to /storage/0370/doc_00076551 [23:06:35]save last doc name /storage/0370/doc_00076551 to /storage/kkm_last_doc_name [23:06:35]save OK [23:06:35]Clear old archive folders... [23:06:35]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:06:35]tlvbuf is 01617930 [23:06:35]SAM_PROTO_ClearQueue [23:06:35]wFMCommunicate request_size=4 [23:06:35]MH_SAM_APDU [23:06:35]CAPDU: 80 09 00 00 [23:06:35]Write to MH i2c: E2 08 00 84 09 80 09 00 00 00 00 00 00 FF [23:06:35]Write i2c OK [23:06:35]MH_I2C_Read... [23:06:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:06:35]Read from MH i2c: E2 [23:06:35]MH_I2C_Read... [23:06:35]Read from MH i2c: E2 03 00 [23:06:35]MH_I2C_Read... [23:06:35]Read from MH i2c: E2 03 00 84 09 00 90 00 01 [23:06:35]RAPDU: 90 00 [23:06:35]wFMCommunicate OK [23:06:35]SAM_PROTO_ClearQueue done [23:06:35]KKMCreateOFDPacket [23:06:35]OFDProtocolAddRootSTLVToBuf [23:06:35]FM_MakeSignedData [23:06:35]FM_MakeSignedData [23:06:35]SAM_PROTO_SignData [23:06:35]wFMCommunicate request_size=4 [23:06:35]MH_SAM_APDU [23:06:35]CAPDU: 80 0D 01 02 [23:06:35]Write to MH i2c: E2 08 00 85 09 80 0D 01 02 00 00 00 00 07 [23:06:35]Write i2c OK [23:06:35]MH_I2C_Read... [23:06:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:06:35]Read from MH i2c: E2 [23:06:35]MH_I2C_Read... [23:06:35]Read from MH i2c: E2 03 00 [23:06:35]MH_I2C_Read... [23:06:35]Read from MH i2c: E2 03 00 85 09 00 90 00 02 [23:06:35]RAPDU: 90 00 [23:06:35]wFMCommunicate OK [23:06:35]wFMCommunicate request_size=255 [23:06:35]MH_SAM_APDU [23:06:35]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 FB F8 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 07 2B 01 00 35 04 06 00 98 2A [23:06:35]Write to MH i2c: E2 02 01 86 09 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 FB F8 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 07 2B 01 00 35 04 06 00 98 2A 00 00 0E [23:06:35]Write i2c OK [23:06:35]MH_I2C_Read... [23:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:35]Read from MH i2c: E2 [23:06:35]MH_I2C_Read... [23:06:35]Read from MH i2c: E2 03 00 [23:06:35]MH_I2C_Read... [23:06:35]Read from MH i2c: E2 03 00 86 09 00 90 00 03 [23:06:35]RAPDU: 90 00 [23:06:35]wFMCommunicate OK [23:06:35]wFMCommunicate request_size=9 [23:06:35]MH_SAM_APDU [23:06:35]CAPDU: 80 0D 02 02 04 7C B1 CE BA [23:06:35]Write to MH i2c: E2 0C 00 87 09 80 0D 02 02 04 00 7C B1 CE BA 00 00 C7 [23:06:35]Write i2c OK [23:06:35]MH_I2C_Read... [23:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:35]Read from MH i2c: E2 [23:06:35]MH_I2C_Read... [23:06:35]Read from MH i2c: E2 03 00 [23:06:35]MH_I2C_Read... [23:06:35]Read from MH i2c: E2 03 00 87 09 00 90 00 04 [23:06:35]RAPDU: 90 00 [23:06:35]wFMCommunicate OK [23:06:35]wFMCommunicate request_size=4 [23:06:35]MH_SAM_APDU [23:06:35]CAPDU: 80 0D 03 02 [23:06:35]Write to MH i2c: E2 08 00 88 09 80 0D 03 02 00 00 00 00 0C [23:06:35]Write i2c OK [23:06:35]MH_I2C_Read... [23:06:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:06:35]Read from MH i2c: E2 [23:06:35]MH_I2C_Read... [23:06:35]Read from MH i2c: E2 0B 00 [23:06:35]MH_I2C_Read... [23:06:35]Read from MH i2c: E2 0B 00 88 09 00 6E 6D 25 46 EA 5E CD 2E 90 00 96 [23:06:35]RAPDU: 6E 6D 25 46 EA 5E CD 2E 90 00 [23:06:35]wFMCommunicate OK [23:06:35]SAM_PROTO_SignData done [23:06:35]FM_MakeSignedData done [23:06:35]CreateOFDProtocolMessage [23:06:35]wFMCommunicate request_size=4 [23:06:35]MH_SAM_APDU [23:06:35]CAPDU: 80 11 00 00 [23:06:35]Write to MH i2c: E2 08 00 89 09 80 11 00 00 00 00 00 00 0C [23:06:35]Write i2c OK [23:06:35]MH_I2C_Read... [23:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:35]Read from MH i2c: E2 [23:06:35]MH_I2C_Read... [23:06:35]Read from MH i2c: E2 17 00 [23:06:35]MH_I2C_Read... [23:06:35]Read from MH i2c: E2 17 00 89 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5F [23:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:06:35]wFMCommunicate OK [23:06:35]CreateOFDProtocolMessage done [23:06:35]OFDSenderStorePacket 76551 [23:06:35]StoreOFDPacket docnum=76551 [23:06:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 D1 10 06 01 5E 34 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 FB F8 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 07 2B 01 00 35 04 06 00 98 2A 7C B1 CE BA 6E 6D 25 46 EA 5E CD 2E [23:06:35]CheckFolder [23:06:35]dirname=/storage/ofd_packets [23:06:35]CheckFolder done [23:06:35]ProducePacketName [23:06:35]name=ofd_packets/00076551 [23:06:35]NVStorageSaveData ofd_packets/00076551 [23:06:35]File name is /storage/ofd_packets/00076551 [23:06:35]Write 300 bytes [23:06:35]NVStorageSaveData done [23:06:35]OFDSenderStorePacket done [23:06:35]KKMCreateOFDPacket done [23:06:35]NVStorageSaveData kkm_last_timestamp [23:06:35]File name is /storage/kkm_last_timestamp [23:06:35]Write 4 bytes [23:06:35]NVStorageSaveData done [23:06:35]OFD Sender: Processing packet 76551 [packets to send 128, broken 127] [23:06:35]ProducePacketName [23:06:35]name=ofd_packets/00076551 [23:06:35]OFD Sender: To server: pG, [23:06:35]CommunicateWithHost lk.salyk.kg:30040 [23:06:35]ConnectInit lk.salyk.kg [23:06:35]ExternCall_PrintAddStr [23:06:35]wPrintStart [23:06:35]Write to MH i2c: 01 00 00 8A 09 93 [23:06:35]Write i2c OK [23:06:35]MH_I2C_Read... [23:06:35]Read from MH i2c: 01 [23:06:35]MH_I2C_Read... [23:06:35]Read from MH i2c: 01 07 00 [23:06:35]MH_I2C_Read... [23:06:35]Read from MH i2c: 01 07 00 8A 09 00 00 00 00 00 FF 0F A8 [23:06:35]RasterBufferAndPrint [23:06:35]line Счет N : (1)191046 [23:06:35]line ИНН: 02508201610067 [23:06:35]line Контрольно-Кассовый Чек [23:06:35]line ПРОДАЖА [23:06:35]line ТРК (МРК, ГНК) : 71 [23:06:35]line Товар: 2711190000 [23:06:35]line ГАЗ-К-5 [23:06:35]line 31.550 * 31.70 [23:06:35]line = 1000.14 [23:06:35]line НДС 12% НСП 1% [23:06:35]line > о реализуемом товаре [23:06:35]line ОКРУГЛЕНИЕ: -0.14 [23:06:35]line ИТОГО: 1000.00 [23:06:35]line Внесено: 1000.00 [23:06:35]line СДАЧА: 0.00 [23:06:35]line НСП 1% : 8.85 [23:06:35]line НДС 12% : 106.21 [23:06:35]line Наличными: 1000.00 [23:06:35]line Безнал.: 0.00 [23:06:35]line Место: АЗС № 106 "Партнер Нефть" [23:06:35]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [23:06:35]line СНО: Общий режим [23:06:35]line Чек 171 19.04.2024 23:06 [23:06:35]line Смена: 370 ФФД: 1.0 [23:06:35]line ЗНМ: 0300000141 [23:06:35]line РНМ: 0000000000091573 [23:06:35]line Версия ККМ: 001 [23:06:35]line [23:06:35]line Дисконтная программа [23:06:35]line СУГ [23:06:35]line номер 106 [23:06:35]line сэкономлено 31.55 сом [23:06:35]line ФМ: 0000000000874652 [23:06:35]line ФД: 76551 [23:06:35]line ФПД: 167308248075962 [23:06:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T230635&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76551&fm=167308248075962&tin=02508201610067®Number=0000000000091573&sum=100000 [23:06:35]Connected sock=11 [23: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 34 36 35 32 0E 01 00 00 D1 10 06 01 5E 34 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 FB F8 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 07 2B 01 00 35 04 06 00 98 2A 7C B1 CE BA 6E 6D 25 46 EA 5E CD 2E [23:06:35]written 0, free lines is 4095 [23:06:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 45 3E 47 00 A3 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 34 36 35 32 10 04 04 00 07 2B 01 00 F4 03 04 00 85 A0 22 66 B6 04 01 00 00 04 F7 ED B9 1D 53 19 09 [23:06:36]CommunicateWithHost err = 0 [23:06:36]CheckOFDResponse [23:06:36]1017 (14) - 77093643461234 [23:06:36]1041 (16) - 0000000000874652 [23:06:36]1040 (4) - 76551 [23:06:36]1012 (4) - 19.04.2024 16:49 [23:06:36]1206 (1) - 0 [23:06:36]OFD Sender: Remove packet 76551 [23:06:36]ProducePacketName [23:06:36]name=ofd_packets/00076551 [23:06:36]NVStorageDeleteData [23:06:36]Write to MH i2c: 01 00 00 B9 09 C2 [23:06:36]Write i2c OK [23:06:36]MH_I2C_Read... [23:06:36]Read from MH i2c: 01 [23:06:36]MH_I2C_Read... [23:06:36]Read from MH i2c: 01 07 00 [23:06:36]MH_I2C_Read... [23:06:36]Read from MH i2c: 01 07 00 B9 09 00 00 00 00 00 91 0C 66 [23:06:36]RasterBufferAndPrint [23:06:36]line [23:06:36]line [23:06:36]line [23:06:36]line [23:06:36]line [23:06:36]written 0, free lines is 3223 [23:06:36]MH_Cut [23:06:36]Write to MH i2c: D1 01 00 C0 09 01 9B [23:06:36]Write i2c OK [23:06:36]MH_I2C_Read... [23:06:36]Read from MH i2c: D1 [23:06:36]MH_I2C_Read... [23:06:36]Read from MH i2c: D1 01 00 [23:06:36]MH_I2C_Read... [23:06:36]Read from MH i2c: D1 01 00 C0 09 00 9A [23:06:36]Write to MH i2c: 01 00 00 C1 09 CA [23:06:36]Write i2c OK [23:06:36]MH_I2C_Read... [23:06:36]OFD Sender: No OFD packet to send [23:06:37]*** Cut start [23:06:37]*** Partial cut [23:06:37]*** CUTSNS_PIN = 1 [23:06:37]*** CUTSNS_PIN = 0 [23:06:37]*** Brake cut motor [23:06:37]Read from MH i2c: 01 [23:06:37]MH_I2C_Read... [23:06:37]*** Stop cut motor [23:06:37]*** Cut end [23:06:37]Read from MH i2c: 01 07 00 [23:06:37]MH_I2C_Read... [23:06:37]Read from MH i2c: 01 07 00 C1 09 00 00 00 00 00 FF 0F DF [23:06:37]process_action close_receipt done [23:06:37]requested_data is exist [23:06:37]produce_requested_data [23:06:37]requested_item fm.sn is exist - process it [23:06:37]wFMCommunicate request_size=4 [23:06:37]MH_SAM_APDU [23:06:37]CAPDU: 80 11 00 00 [23:06:37]Write to MH i2c: E2 08 00 C2 09 80 11 00 00 00 00 00 00 45 [23:06:37]Write i2c OK [23:06:37]MH_I2C_Read... [23:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:37]Read from MH i2c: E2 [23:06:37]MH_I2C_Read... [23:06:37]Read from MH i2c: E2 17 00 [23:06:37]MH_I2C_Read... [23:06:37]Read from MH i2c: E2 17 00 C2 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 98 [23:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:06:37]wFMCommunicate OK [23:06:37]requested_item fd.num is exist - process it [23:06:37]SAM_PROTO_GetFieldsCounters [23:06:37]wFMCommunicate request_size=4 [23:06:37]MH_SAM_APDU [23:06:37]CAPDU: 80 13 00 00 [23:06:37]Write to MH i2c: E2 08 00 C3 09 80 13 00 00 00 00 00 00 48 [23:06:37]Write i2c OK [23:06:37]MH_I2C_Read... [23:06:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:06:38]Read from MH i2c: E2 [23:06:38]MH_I2C_Read... [23:06:38]Read from MH i2c: E2 62 00 [23:06:38]MH_I2C_Read... [23:06:38]Read from MH i2c: E2 62 00 C3 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 07 2B 01 00 0E 04 04 00 72 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 10 [23:06:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 07 2B 01 00 0E 04 04 00 72 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 [23:06:38]wFMCommunicate OK [23:06:38]SAM_PROTO_GetFieldsCounters done [23:06:38]requested_item shift.num is exist - process it [23:06:38]requested_item shift.opened is exist - process it [23:06:38]req_shift_opened [23:06:38]FM_GetShiftState [23:06:38]SAM_PROTO_GetShiftState [23:06:38]wFMCommunicate request_size=4 [23:06:38]MH_SAM_APDU [23:06:38]CAPDU: 80 13 01 00 [23:06:38]Write to MH i2c: E2 08 00 C4 09 80 13 01 00 00 00 00 00 4A [23:06:38]Write i2c OK [23:06:38]MH_I2C_Read... [23:06:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:38]Read from MH i2c: E2 [23:06:38]MH_I2C_Read... [23:06:38]Read from MH i2c: E2 0E 00 [23:06:38]MH_I2C_Read... [23:06:38]Read from MH i2c: E2 0E 00 C4 09 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 2F [23:06:38]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [23:06:38]wFMCommunicate OK [23:06:38]SAM_PROTO_GetShiftState done [23:06:38]FM_GetShiftState done [23:06:38]req_shift_opened done [23:06:38]requested_item shift.open_date is exist - process it [23:06:38]req_shift_open_date [23:06:38]req_shift_open_date done [23:06:38]produce_requested_data done [23:06:38]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76551,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [23:06:38]process_action_free close_receipt [23:06:38]json_value_free [23:06:38]json_value_free done [23:06:38]process_json_proto returns [23:06:38]Send response to host [23:06:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76551,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [23:06:38]free response buf [23:06:38]execute_script done [23:06:38]execute_script returns [23:06:38]free content buf [23:06:38]Sock 10.Close socket [23:06:38]Sock 10.Thread stoped [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:47]accept exits with 8 [23:06:47]New connection [23:06:47]New thread 3066592612 created [23:06:47]Thread 3066735972 joined [23:06:47]Waiting for new connection... [23:06:47] Sock 8.Parse request [23:06:47]Sock 8.Check first char [23:06:47]Sock 8.First char is OK [23:06:47]request: POST /json_proto HTTP/1.0 [23:06:47]Method: POST [23:06:47]URL: /json_proto [23:06:47]Method is POST - this is cgi request [23:06:47]url: /json_proto [23:06:47]query_string will be loaded in cgi processing [23:06:47]execute_cgi json_proto POST (null) [23:06:47]execute_cgi path=json_proto method=POST [23:06:47]POST find Content-Length [23:06:47]Host: 172.17.62.5:8080 [23:06:47]Content-Length: 677 [23:06:47]Content-Type: application/json [23:06:47] [23:06:47]POST finish read [23:06:47]Found Content-Length = 677 [23:06:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191047", "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" : 64.40, "quantity" : 6.220, "sum" : 400.57, "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" ] } } [23:06:47]execute_script... [23:06:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191047", "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" : 64.40, "quantity" : 6.220, "sum" : 400.57, "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" ] } } [23:06:47]POST & json_proto [23:06:47]process_json_proto [23:06:47]json parsed OK: [23:06:47]protocol is kg_v1.0 [23:06:47]action value=close_receipt [23:06:47]process_action close_receipt [23:06:47]cmd_close_receipt [23:06:47]MH_GetDate [23:06:47]Write to MH i2c: F0 00 00 C5 09 BD [23:06:47]Write i2c OK [23:06:47]MH_I2C_Read... [23:06:47]Read from MH i2c: F0 [23:06:47]MH_I2C_Read... [23:06:47]Read from MH i2c: F0 09 00 [23:06:47]MH_I2C_Read... [23:06:47]Read from MH i2c: F0 09 00 C5 09 00 08 F9 22 66 F4 E9 65 64 F5 [23:06:47]GetLastDocTimeStamp 1713567995 [23:06:47]current date 1713568008 [23:06:47]FM_GetShiftState [23:06:47]SAM_PROTO_GetShiftState [23:06:47]wFMCommunicate request_size=4 [23:06:47]MH_SAM_APDU [23:06:47]CAPDU: 80 13 01 00 [23:06:47]Write to MH i2c: E2 08 00 C6 09 80 13 01 00 00 00 00 00 4C [23:06:47]Write i2c OK [23:06:47]MH_I2C_Read... [23:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:47]Read from MH i2c: E2 [23:06:47]MH_I2C_Read... [23:06:47]Read from MH i2c: E2 0E 00 [23:06:47]MH_I2C_Read... [23:06:47]Read from MH i2c: E2 0E 00 C6 09 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 31 [23:06:47]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [23:06:47]wFMCommunicate OK [23:06:47]SAM_PROTO_GetShiftState done [23:06:47]FM_GetShiftState done [23:06:47]opened in 1713486233 [23:06:47]opened+sec_in_day 1713572633 [23:06:47]quantity*price = 40056 [23:06:47]sum+1 = 40058 [23:06:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 172 19.04.2024 23:06 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76552 ФПД: 40688009931573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T230648&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76552&fm=40688009931573&tin=02508201610067®Number=0000000000091573&sum=40000 [23:06:48]StoreToDocumentArchive [23:06:48]shift 370 fd 76552 [23:06:48]save to /storage/0370/doc_00076552 [23:06:48]save last doc name /storage/0370/doc_00076552 to /storage/kkm_last_doc_name [23:06:48]save OK [23:06:48]Clear old archive folders... [23:06:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:06:48]tlvbuf is 01618300 [23:06:48]SAM_PROTO_ClearQueue [23:06:48]wFMCommunicate request_size=4 [23:06:48]MH_SAM_APDU [23:06:48]CAPDU: 80 09 00 00 [23:06:48]Write to MH i2c: E2 08 00 D3 09 80 09 00 00 00 00 00 00 4E [23:06:48]Write i2c OK [23:06:48]MH_I2C_Read... [23:06:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:06:48]Read from MH i2c: E2 [23:06:48]MH_I2C_Read... [23:06:48]Read from MH i2c: E2 03 00 [23:06:48]MH_I2C_Read... [23:06:48]Read from MH i2c: E2 03 00 D3 09 00 90 00 50 [23:06:48]RAPDU: 90 00 [23:06:48]wFMCommunicate OK [23:06:48]SAM_PROTO_ClearQueue done [23:06:48]KKMCreateOFDPacket [23:06:48]OFDProtocolAddRootSTLVToBuf [23:06:48]FM_MakeSignedData [23:06:48]FM_MakeSignedData [23:06:48]SAM_PROTO_SignData [23:06:48]wFMCommunicate request_size=4 [23:06:48]MH_SAM_APDU [23:06:48]CAPDU: 80 0D 01 02 [23:06:48]Write to MH i2c: E2 08 00 D4 09 80 0D 01 02 00 00 00 00 56 [23:06:48]Write i2c OK [23:06:48]MH_I2C_Read... [23:06:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:06:48]Read from MH i2c: E2 [23:06:48]MH_I2C_Read... [23:06:48]Read from MH i2c: E2 03 00 [23:06:48]MH_I2C_Read... [23:06:48]Read from MH i2c: E2 03 00 D4 09 00 90 00 51 [23:06:48]RAPDU: 90 00 [23:06:48]wFMCommunicate OK [23:06:48]wFMCommunicate request_size=255 [23:06:48]MH_SAM_APDU [23:06: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 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 AC 00 00 00 F4 03 04 00 08 F9 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 08 2B 01 00 35 04 06 00 25 [23:06:48]Write to MH i2c: E2 02 01 D5 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 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 AC 00 00 00 F4 03 04 00 08 F9 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 08 2B 01 00 35 04 06 00 25 00 00 E4 [23:06:48]Write i2c OK [23:06:48]MH_I2C_Read... [23:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:48]Read from MH i2c: E2 [23:06:48]MH_I2C_Read... [23:06:48]Read from MH i2c: E2 03 00 [23:06:48]MH_I2C_Read... [23:06:48]Read from MH i2c: E2 03 00 D5 09 00 90 00 52 [23:06:48]RAPDU: 90 00 [23:06:48]wFMCommunicate OK [23:06:48]wFMCommunicate request_size=10 [23:06:48]MH_SAM_APDU [23:06:48]CAPDU: 80 0D 02 02 05 01 6A 60 EB 35 [23:06:48]Write to MH i2c: E2 0D 00 D6 09 80 0D 02 02 05 00 01 6A 60 EB 35 00 00 4E [23:06:48]Write i2c OK [23:06:48]MH_I2C_Read... [23:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:48]Read from MH i2c: E2 [23:06:48]MH_I2C_Read... [23:06:48]Read from MH i2c: E2 03 00 [23:06:48]MH_I2C_Read... [23:06:48]Read from MH i2c: E2 03 00 D6 09 00 90 00 53 [23:06:48]RAPDU: 90 00 [23:06:48]wFMCommunicate OK [23:06:48]wFMCommunicate request_size=4 [23:06:48]MH_SAM_APDU [23:06:48]CAPDU: 80 0D 03 02 [23:06:48]Write to MH i2c: E2 08 00 D7 09 80 0D 03 02 00 00 00 00 5B [23:06:48]Write i2c OK [23:06:48]MH_I2C_Read... [23:06:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:06:48]Read from MH i2c: E2 [23:06:48]MH_I2C_Read... [23:06:48]Read from MH i2c: E2 0B 00 [23:06:48]MH_I2C_Read... [23:06:48]Read from MH i2c: E2 0B 00 D7 09 00 B7 8B 96 1B B5 80 E1 3D 90 00 A2 [23:06:48]RAPDU: B7 8B 96 1B B5 80 E1 3D 90 00 [23:06:48]wFMCommunicate OK [23:06:48]SAM_PROTO_SignData done [23:06:48]FM_MakeSignedData done [23:06:48]CreateOFDProtocolMessage [23:06:48]wFMCommunicate request_size=4 [23:06:48]MH_SAM_APDU [23:06:48]CAPDU: 80 11 00 00 [23:06:48]Write to MH i2c: E2 08 00 D8 09 80 11 00 00 00 00 00 00 5B [23:06:48]Write i2c OK [23:06:48]MH_I2C_Read... [23:06:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:48]Read from MH i2c: E2 [23:06:48]MH_I2C_Read... [23:06:48]Read from MH i2c: E2 17 00 [23:06:48]MH_I2C_Read... [23:06:48]Read from MH i2c: E2 17 00 D8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AE [23:06:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:06:48]wFMCommunicate OK [23:06:48]CreateOFDProtocolMessage done [23:06:48]OFDSenderStorePacket 76552 [23:06:48]StoreOFDPacket docnum=76552 [23:06:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 16 5D 07 01 F4 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 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 AC 00 00 00 F4 03 04 00 08 F9 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 08 2B 01 00 35 04 06 00 25 01 6A 60 EB 35 B7 8B 96 1B B5 80 E1 3D [23:06:48]CheckFolder [23:06:48]dirname=/storage/ofd_packets [23:06:48]CheckFolder done [23:06:48]ProducePacketName [23:06:48]name=ofd_packets/00076552 [23:06:48]NVStorageSaveData ofd_packets/00076552 [23:06:48]File name is /storage/ofd_packets/00076552 [23:06:48]Write 301 bytes [23:06:48]NVStorageSaveData done [23:06:48]OFDSenderStorePacket done [23:06:48]KKMCreateOFDPacket done [23:06:48]NVStorageSaveData kkm_last_timestamp [23:06:48]File name is /storage/kkm_last_timestamp [23:06:48]Write 4 bytes [23:06:48]NVStorageSaveData done [23:06:48]ExternCall_PrintAddStr [23:06:48]wPrintStart [23:06:48]Write to MH i2c: 01 00 00 D9 09 E2 [23:06:48]Write i2c OK [23:06:48]MH_I2C_Read... [23:06:48]Read from MH i2c: 01 [23:06:48]MH_I2C_Read... [23:06:48]Read from MH i2c: 01 07 00 [23:06:48]MH_I2C_Read... [23:06:48]Read from MH i2c: 01 07 00 D9 09 00 00 00 00 00 FF 0F F7 [23:06:48]RasterBufferAndPrint [23:06:48]line Счет N : (1)191047 [23:06:48]line ИНН: 02508201610067 [23:06:48]line Контрольно-Кассовый Чек [23:06:48]line ПРОДАЖА [23:06:48]line ТРК (МРК, ГНК) : 12 [23:06:48]line Товар: 2710124130 [23:06:48]line Аи-92-К-5 [23:06:48]line 6.220 * 64.40 [23:06:48]line = 400.57 [23:06:48]line НДС 12% НСП 1% [23:06:48]line > о реализуемом товаре [23:06:48]line ОКРУГЛЕНИЕ: -0.57 [23:06:48]line ИТОГО: 400.00 [23:06:48]line Внесено: 400.00 [23:06:48]line СДАЧА: 0.00 [23:06:48]line НСП 1% : 3.54 [23:06:48]line НДС 12% : 42.54 [23:06:48]line Наличными: 400.00 [23:06:48]line Безнал.: 0.00 [23:06:48]line Место: АЗС № 106 "Партнер Нефть" [23:06:48]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [23:06:48]line СНО: Общий режим [23:06:48]line Чек 172 19.04.2024 23:06 [23:06:48]line Смена: 370 ФФД: 1.0 [23:06:48]line ЗНМ: 0300000141 [23:06:48]line РНМ: 0000000000091573 [23:06:48]line Версия ККМ: 001 [23:06:48]line ФМ: 0000000000874652 [23:06:48]line ФД: 76552 [23:06:48]line ФПД: 40688009931573 [23:06:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T230648&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76552&fm=40688009931573&tin=02508201610067®Number=0000000000091573&sum=40000 [23:06:48]written 0, free lines is 4095 [23:06:48]OFD Sender: Processing packet 76552 [packets to send 128, broken 127] [23:06:48]ProducePacketName [23:06:48]name=ofd_packets/00076552 [23:06:48]OFD Sender: To server: pG, [23:06:48]CommunicateWithHost lk.salyk.kg:30040 [23:06:48]ConnectInit lk.salyk.kg [23:06:49]Connected sock=10 [23: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 34 36 35 32 0F 01 00 00 16 5D 07 01 F4 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 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 AC 00 00 00 F4 03 04 00 08 F9 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 08 2B 01 00 35 04 06 00 25 01 6A 60 EB 35 B7 8B 96 1B B5 80 E1 3D [23:06:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 E7 55 47 00 F9 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 34 36 35 32 10 04 04 00 08 2B 01 00 F4 03 04 00 92 A0 22 66 B6 04 01 00 00 5B E4 A9 B8 98 AF DE 01 [23:06:49]CommunicateWithHost err = 0 [23:06:49]CheckOFDResponse [23:06:49]1017 (14) - 77093643461234 [23:06:49]1041 (16) - 0000000000874652 [23:06:49]1040 (4) - 76552 [23:06:49]1012 (4) - 19.04.2024 16:49 [23:06:49]1206 (1) - 0 [23:06:49]OFD Sender: Remove packet 76552 [23:06:49]ProducePacketName [23:06:49]name=ofd_packets/00076552 [23:06:49]NVStorageDeleteData [23:06:49]Write to MH i2c: 01 00 00 03 0A 0D [23:06:49]Write i2c OK [23:06:49]MH_I2C_Read... [23:06:49]Read from MH i2c: 01 [23:06:49]MH_I2C_Read... [23:06:49]Read from MH i2c: 01 07 00 [23:06:49]MH_I2C_Read... [23:06:49]Read from MH i2c: 01 07 00 03 0A 00 00 00 00 00 ED 0C 0D [23:06:49]RasterBufferAndPrint [23:06:49]line [23:06:49]line [23:06:49]line [23:06:49]line [23:06:49]line [23:06:49]written 0, free lines is 3317 [23:06:49]MH_Cut [23:06:49]Write to MH i2c: D1 01 00 0A 0A 01 E6 [23:06:49]Write i2c OK [23:06:49]MH_I2C_Read... [23:06:49]Read from MH i2c: D1 [23:06:49]MH_I2C_Read... [23:06:49]Read from MH i2c: D1 01 00 [23:06:49]MH_I2C_Read... [23:06:49]Read from MH i2c: D1 01 00 0A 0A 00 E5 [23:06:49]Write to MH i2c: 01 00 00 0B 0A 15 [23:06:49]Write i2c OK [23:06:49]MH_I2C_Read... [23:06:49]OFD Sender: No OFD packet to send [23:06:50]*** Cut start [23:06:50]*** Partial cut [23:06:50]*** CUTSNS_PIN = 1 [23:06:50]*** CUTSNS_PIN = 0 [23:06:50]*** Brake cut motor [23:06:50]Read from MH i2c: 01 [23:06:50]MH_I2C_Read... [23:06:50]*** Stop cut motor [23:06:50]*** Cut end [23:06:50]Read from MH i2c: 01 07 00 [23:06:50]MH_I2C_Read... [23:06:50]Read from MH i2c: 01 07 00 0B 0A 00 00 00 00 00 FF 0F 2A [23:06:50]process_action close_receipt done [23:06:50]requested_data is exist [23:06:50]produce_requested_data [23:06:50]requested_item fm.sn is exist - process it [23:06:50]wFMCommunicate request_size=4 [23:06:50]MH_SAM_APDU [23:06:50]CAPDU: 80 11 00 00 [23:06:50]Write to MH i2c: E2 08 00 0C 0A 80 11 00 00 00 00 00 00 90 [23:06:50]Write i2c OK [23:06:50]MH_I2C_Read... [23:06:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:50]Read from MH i2c: E2 [23:06:50]MH_I2C_Read... [23:06:50]Read from MH i2c: E2 17 00 [23:06:50]MH_I2C_Read... [23:06:50]Read from MH i2c: E2 17 00 0C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E3 [23:06:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:06:50]wFMCommunicate OK [23:06:50]requested_item fd.num is exist - process it [23:06:50]SAM_PROTO_GetFieldsCounters [23:06:50]wFMCommunicate request_size=4 [23:06:50]MH_SAM_APDU [23:06:50]CAPDU: 80 13 00 00 [23:06:50]Write to MH i2c: E2 08 00 0D 0A 80 13 00 00 00 00 00 00 93 [23:06:50]Write i2c OK [23:06:50]MH_I2C_Read... [23:06:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:06:50]Read from MH i2c: E2 [23:06:50]MH_I2C_Read... [23:06:50]Read from MH i2c: E2 62 00 [23:06:50]MH_I2C_Read... [23:06:50]Read from MH i2c: E2 62 00 0D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 08 2B 01 00 0E 04 04 00 72 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 5F [23:06: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 08 2B 01 00 0E 04 04 00 72 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 [23:06:50]wFMCommunicate OK [23:06:50]SAM_PROTO_GetFieldsCounters done [23:06:50]requested_item shift.num is exist - process it [23:06:50]requested_item shift.opened is exist - process it [23:06:50]req_shift_opened [23:06:50]FM_GetShiftState [23:06:50]SAM_PROTO_GetShiftState [23:06:50]wFMCommunicate request_size=4 [23:06:50]MH_SAM_APDU [23:06:50]CAPDU: 80 13 01 00 [23:06:50]Write to MH i2c: E2 08 00 0E 0A 80 13 01 00 00 00 00 00 95 [23:06:50]Write i2c OK [23:06:50]MH_I2C_Read... [23:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:50]Read from MH i2c: E2 [23:06:50]MH_I2C_Read... [23:06:50]Read from MH i2c: E2 0E 00 [23:06:50]MH_I2C_Read... [23:06:50]Read from MH i2c: E2 0E 00 0E 0A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 7A [23:06:50]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [23:06:50]wFMCommunicate OK [23:06:50]SAM_PROTO_GetShiftState done [23:06:50]FM_GetShiftState done [23:06:50]req_shift_opened done [23:06:50]requested_item shift.open_date is exist - process it [23:06:50]req_shift_open_date [23:06:50]req_shift_open_date done [23:06:50]produce_requested_data done [23:06:50]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76552,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [23:06:50]process_action_free close_receipt [23:06:50]json_value_free [23:06:50]json_value_free done [23:06:50]process_json_proto returns [23:06:50]Send response to host [23:06:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76552,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [23:06:50]free response buf [23:06:50]execute_script done [23:06:50]execute_script returns [23:06:50]free content buf [23:06:50]Sock 8.Close socket [23:06:50]Sock 8.Thread stoped [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:01]accept exits with 9 [23:12:01]New connection [23:12:01]New thread 3066735972 created [23:12:01]Thread 3066592612 joined [23:12:01]Waiting for new connection... [23:12:01] Sock 9.Parse request [23:12:01]Sock 9.Check first char [23:12:01]Sock 9.First char is OK [23:12:01]request: POST /json_proto HTTP/1.0 [23:12:01]Method: POST [23:12:01]URL: /json_proto [23:12:01]Method is POST - this is cgi request [23:12:01]url: /json_proto [23:12:01]query_string will be loaded in cgi processing [23:12:01]execute_cgi json_proto POST (null) [23:12:01]execute_cgi path=json_proto method=POST [23:12:01]POST find Content-Length [23:12:01]Host: 172.17.62.5:8080 [23:12:01]Content-Length: 677 [23:12:01]Content-Type: application/json [23:12:01] [23:12:01]POST finish read [23:12:01]Found Content-Length = 677 [23:12:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191048", "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" : 64.40, "quantity" : 6.220, "sum" : 400.57, "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" ] } } [23:12:01]execute_script... [23: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)191048", "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" : 64.40, "quantity" : 6.220, "sum" : 400.57, "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" ] } } [23:12:01]POST & json_proto [23:12:01]process_json_proto [23:12:01]json parsed OK: [23:12:01]protocol is kg_v1.0 [23:12:01]action value=close_receipt [23:12:01]process_action close_receipt [23:12:01]cmd_close_receipt [23:12:01]MH_GetDate [23:12:01]Write to MH i2c: F0 00 00 0F 0A 08 [23:12:01]Write i2c OK [23:12:01]MH_I2C_Read... [23:12:01]Read from MH i2c: F0 [23:12:01]MH_I2C_Read... [23:12:01]Read from MH i2c: F0 09 00 [23:12:01]MH_I2C_Read... [23:12:01]Read from MH i2c: F0 09 00 0F 0A 00 42 FA 22 66 F4 E9 65 64 7B [23:12:01]GetLastDocTimeStamp 1713568008 [23:12:01]current date 1713568322 [23:12:01]FM_GetShiftState [23:12:01]SAM_PROTO_GetShiftState [23:12:01]wFMCommunicate request_size=4 [23:12:01]MH_SAM_APDU [23:12:01]CAPDU: 80 13 01 00 [23:12:01]Write to MH i2c: E2 08 00 10 0A 80 13 01 00 00 00 00 00 97 [23:12:01]Write i2c OK [23:12:01]MH_I2C_Read... [23:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:01]Read from MH i2c: E2 [23:12:01]MH_I2C_Read... [23:12:01]Read from MH i2c: E2 0E 00 [23:12:01]MH_I2C_Read... [23:12:01]Read from MH i2c: E2 0E 00 10 0A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 7C [23:12:01]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [23:12:01]wFMCommunicate OK [23:12:01]SAM_PROTO_GetShiftState done [23:12:01]FM_GetShiftState done [23:12:01]opened in 1713486233 [23:12:01]opened+sec_in_day 1713572633 [23:12:01]quantity*price = 40056 [23:12:01]sum+1 = 40058 [23:12:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 173 19.04.2024 23:12 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76553 ФПД: 76612271097044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T231202&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76553&fm=76612271097044&tin=02508201610067®Number=0000000000091573&sum=40000 [23:12:02]StoreToDocumentArchive [23:12:02]shift 370 fd 76553 [23:12:02]save to /storage/0370/doc_00076553 [23:12:02]save last doc name /storage/0370/doc_00076553 to /storage/kkm_last_doc_name [23:12:02]save OK [23:12:02]Clear old archive folders... [23:12:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:12:02]tlvbuf is 0163B650 [23:12:02]SAM_PROTO_ClearQueue [23:12:02]wFMCommunicate request_size=4 [23:12:02]MH_SAM_APDU [23:12:02]CAPDU: 80 09 00 00 [23:12:02]Write to MH i2c: E2 08 00 1D 0A 80 09 00 00 00 00 00 00 99 [23:12:02]Write i2c OK [23:12:02]MH_I2C_Read... [23:12:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:12:02]Read from MH i2c: E2 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 03 00 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 03 00 1D 0A 00 90 00 9B [23:12:02]RAPDU: 90 00 [23:12:02]wFMCommunicate OK [23:12:02]SAM_PROTO_ClearQueue done [23:12:02]KKMCreateOFDPacket [23:12:02]OFDProtocolAddRootSTLVToBuf [23:12:02]FM_MakeSignedData [23:12:02]FM_MakeSignedData [23:12:02]SAM_PROTO_SignData [23:12:02]wFMCommunicate request_size=4 [23:12:02]MH_SAM_APDU [23:12:02]CAPDU: 80 0D 01 02 [23:12:02]Write to MH i2c: E2 08 00 1E 0A 80 0D 01 02 00 00 00 00 A1 [23:12:02]Write i2c OK [23:12:02]MH_I2C_Read... [23:12:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:12:02]Read from MH i2c: E2 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 03 00 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 03 00 1E 0A 00 90 00 9C [23:12:02]RAPDU: 90 00 [23:12:02]wFMCommunicate OK [23:12:02]wFMCommunicate request_size=255 [23:12:02]MH_SAM_APDU [23: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 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 AD 00 00 00 F4 03 04 00 42 FA 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 09 2B 01 00 35 04 06 00 45 [23:12:02]Write to MH i2c: E2 02 01 1F 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 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 AD 00 00 00 F4 03 04 00 42 FA 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 09 2B 01 00 35 04 06 00 45 00 00 8C [23:12:02]Write i2c OK [23:12:02]MH_I2C_Read... [23:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:02]Read from MH i2c: E2 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 03 00 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 03 00 1F 0A 00 90 00 9D [23:12:02]RAPDU: 90 00 [23:12:02]wFMCommunicate OK [23:12:02]wFMCommunicate request_size=10 [23:12:02]MH_SAM_APDU [23:12:02]CAPDU: 80 0D 02 02 05 AD AF 34 44 D4 [23:12:02]Write to MH i2c: E2 0D 00 20 0A 80 0D 02 02 05 00 AD AF 34 44 D4 00 00 56 [23:12:02]Write i2c OK [23:12:02]MH_I2C_Read... [23:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:02]Read from MH i2c: E2 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 03 00 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 03 00 20 0A 00 90 00 9E [23:12:02]RAPDU: 90 00 [23:12:02]wFMCommunicate OK [23:12:02]wFMCommunicate request_size=4 [23:12:02]MH_SAM_APDU [23:12:02]CAPDU: 80 0D 03 02 [23:12:02]Write to MH i2c: E2 08 00 21 0A 80 0D 03 02 00 00 00 00 A6 [23:12:02]Write i2c OK [23:12:02]MH_I2C_Read... [23:12:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:12:02]Read from MH i2c: E2 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 0B 00 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 0B 00 21 0A 00 60 8E BF AB FC 3E D4 EA 90 00 F7 [23:12:02]RAPDU: 60 8E BF AB FC 3E D4 EA 90 00 [23:12:02]wFMCommunicate OK [23:12:02]SAM_PROTO_SignData done [23:12:02]FM_MakeSignedData done [23:12:02]CreateOFDProtocolMessage [23:12:02]wFMCommunicate request_size=4 [23:12:02]MH_SAM_APDU [23:12:02]CAPDU: 80 11 00 00 [23:12:02]Write to MH i2c: E2 08 00 22 0A 80 11 00 00 00 00 00 00 A6 [23:12:02]Write i2c OK [23:12:02]MH_I2C_Read... [23:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:02]Read from MH i2c: E2 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 17 00 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 17 00 22 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F9 [23:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:12:02]wFMCommunicate OK [23:12:02]CreateOFDProtocolMessage done [23:12:02]OFDSenderStorePacket 76553 [23:12:02]StoreOFDPacket docnum=76553 [23:12:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 DA AD 07 01 98 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 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 AD 00 00 00 F4 03 04 00 42 FA 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 09 2B 01 00 35 04 06 00 45 AD AF 34 44 D4 60 8E BF AB FC 3E D4 EA [23:12:02]CheckFolder [23:12:02]dirname=/storage/ofd_packets [23:12:02]CheckFolder done [23:12:02]ProducePacketName [23:12:02]name=ofd_packets/00076553 [23:12:02]NVStorageSaveData ofd_packets/00076553 [23:12:02]File name is /storage/ofd_packets/00076553 [23:12:02]Write 301 bytes [23:12:02]NVStorageSaveData done [23:12:02]OFDSenderStorePacket done [23:12:02]KKMCreateOFDPacket done [23:12:02]NVStorageSaveData kkm_last_timestamp [23:12:02]File name is /storage/kkm_last_timestamp [23:12:02]Write 4 bytes [23:12:02]NVStorageSaveData done [23:12:02]ExternCall_PrintAddStr [23:12:02]wPrintStart [23:12:02]Write to MH i2c: 01 00 00 23 0A 2D [23:12:02]Write i2c OK [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: 01 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: 01 07 00 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: 01 07 00 23 0A 00 00 00 00 00 FF 0F 42 [23:12:02]RasterBufferAndPrint [23:12:02]line Счет N : (1)191048 [23:12:02]line ИНН: 02508201610067 [23:12:02]line Контрольно-Кассовый Чек [23:12:02]line ПРОДАЖА [23:12:02]line ТРК (МРК, ГНК) : 22 [23:12:02]line Товар: 2710124130 [23:12:02]line Аи-92-К-5 [23:12:02]line 6.220 * 64.40 [23:12:02]line = 400.57 [23:12:02]line НДС 12% НСП 1% [23:12:02]line > о реализуемом товаре [23:12:02]line ОКРУГЛЕНИЕ: -0.57 [23:12:02]line ИТОГО: 400.00 [23:12:02]line Внесено: 400.00 [23:12:02]line СДАЧА: 0.00 [23:12:02]line НСП 1% : 3.54 [23:12:02]line НДС 12% : 42.54 [23:12:02]line Наличными: 400.00 [23:12:02]line Безнал.: 0.00 [23:12:02]line Место: АЗС № 106 "Партнер Нефть" [23:12:02]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [23:12:02]line СНО: Общий режим [23:12:02]line Чек 173 19.04.2024 23:12 [23:12:02]line Смена: 370 ФФД: 1.0 [23:12:02]line ЗНМ: 0300000141 [23:12:02]line РНМ: 0000000000091573 [23:12:02]line Версия ККМ: 001 [23:12:02]line ФМ: 0000000000874652 [23:12:02]line ФД: 76553 [23:12:02]line ФПД: 76612271097044 [23:12:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T231202&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76553&fm=76612271097044&tin=02508201610067®Number=0000000000091573&sum=40000 [23:12:03]written 0, free lines is 4095 [23:12:03]OFD Sender: Processing packet 76553 [packets to send 128, broken 127] [23:12:03]ProducePacketName [23:12:03]name=ofd_packets/00076553 [23:12:03]OFD Sender: To server: pG, [23:12:03]CommunicateWithHost lk.salyk.kg:30040 [23:12:03]ConnectInit lk.salyk.kg [23:12:03]Connected sock=10 [23: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 34 36 35 32 0F 01 00 00 DA AD 07 01 98 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 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 AD 00 00 00 F4 03 04 00 42 FA 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 09 2B 01 00 35 04 06 00 45 AD AF 34 44 D4 60 8E BF AB FC 3E D4 EA [23:12:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 F9 A5 47 00 84 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 34 36 35 32 10 04 04 00 09 2B 01 00 F4 03 04 00 CD A1 22 66 B6 04 01 00 00 D1 E2 08 1D 30 A1 78 7F [23:12:03]CommunicateWithHost err = 0 [23:12:03]CheckOFDResponse [23:12:03]1017 (14) - 77093643461234 [23:12:03]1041 (16) - 0000000000874652 [23:12:03]1040 (4) - 76553 [23:12:03]1012 (4) - 19.04.2024 16:54 [23:12:03]1206 (1) - 0 [23:12:03]OFD Sender: Remove packet 76553 [23:12:03]ProducePacketName [23:12:03]name=ofd_packets/00076553 [23:12:03]NVStorageDeleteData [23:12:03]Write to MH i2c: 01 00 00 4D 0A 57 [23:12:03]Write i2c OK [23:12:03]MH_I2C_Read... [23:12:03]Read from MH i2c: 01 [23:12:03]MH_I2C_Read... [23:12:03]Read from MH i2c: 01 07 00 [23:12:03]MH_I2C_Read... [23:12:03]Read from MH i2c: 01 07 00 4D 0A 00 00 00 00 00 EB 0C 55 [23:12:03]RasterBufferAndPrint [23:12:03]line [23:12:03]line [23:12:03]line [23:12:03]line [23:12:03]line [23:12:03]written 0, free lines is 3313 [23:12:03]MH_Cut [23:12:03]Write to MH i2c: D1 01 00 54 0A 01 30 [23:12:03]Write i2c OK [23:12:03]MH_I2C_Read... [23:12:03]Read from MH i2c: D1 [23:12:03]MH_I2C_Read... [23:12:03]Read from MH i2c: D1 01 00 [23:12:03]MH_I2C_Read... [23:12:03]Read from MH i2c: D1 01 00 54 0A 00 2F [23:12:03]Write to MH i2c: 01 00 00 55 0A 5F [23:12:03]Write i2c OK [23:12:03]MH_I2C_Read... [23:12:04]OFD Sender: No OFD packet to send [23:12:04]*** Cut start [23:12:04]*** Partial cut [23:12:04]*** CUTSNS_PIN = 1 [23:12:04]*** CUTSNS_PIN = 0 [23:12:04]*** Brake cut motor [23:12:05]Read from MH i2c: 01 [23:12:05]MH_I2C_Read... [23:12:05]*** Stop cut motor [23:12:05]*** Cut end [23:12:05]Read from MH i2c: 01 07 00 [23:12:05]MH_I2C_Read... [23:12:05]Read from MH i2c: 01 07 00 55 0A 00 00 00 00 00 FF 0F 74 [23:12:05]process_action close_receipt done [23:12:05]requested_data is exist [23:12:05]produce_requested_data [23:12:05]requested_item fm.sn is exist - process it [23:12:05]wFMCommunicate request_size=4 [23:12:05]MH_SAM_APDU [23:12:05]CAPDU: 80 11 00 00 [23:12:05]Write to MH i2c: E2 08 00 56 0A 80 11 00 00 00 00 00 00 DA [23:12:05]Write i2c OK [23:12:05]MH_I2C_Read... [23:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:05]Read from MH i2c: E2 [23:12:05]MH_I2C_Read... [23:12:05]Read from MH i2c: E2 17 00 [23:12:05]MH_I2C_Read... [23:12:05]Read from MH i2c: E2 17 00 56 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2D [23:12:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:12:05]wFMCommunicate OK [23:12:05]requested_item fd.num is exist - process it [23:12:05]SAM_PROTO_GetFieldsCounters [23:12:05]wFMCommunicate request_size=4 [23:12:05]MH_SAM_APDU [23:12:05]CAPDU: 80 13 00 00 [23:12:05]Write to MH i2c: E2 08 00 57 0A 80 13 00 00 00 00 00 00 DD [23:12:05]Write i2c OK [23:12:05]MH_I2C_Read... [23:12:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:12:05]Read from MH i2c: E2 [23:12:05]MH_I2C_Read... [23:12:05]Read from MH i2c: E2 62 00 [23:12:05]MH_I2C_Read... [23:12:05]Read from MH i2c: E2 62 00 57 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 09 2B 01 00 0E 04 04 00 72 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 AD [23: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 09 2B 01 00 0E 04 04 00 72 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 [23:12:05]wFMCommunicate OK [23:12:05]SAM_PROTO_GetFieldsCounters done [23:12:05]requested_item shift.num is exist - process it [23:12:05]requested_item shift.opened is exist - process it [23:12:05]req_shift_opened [23:12:05]FM_GetShiftState [23:12:05]SAM_PROTO_GetShiftState [23:12:05]wFMCommunicate request_size=4 [23:12:05]MH_SAM_APDU [23:12:05]CAPDU: 80 13 01 00 [23:12:05]Write to MH i2c: E2 08 00 58 0A 80 13 01 00 00 00 00 00 DF [23:12:05]Write i2c OK [23:12:05]MH_I2C_Read... [23:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:05]Read from MH i2c: E2 [23:12:05]MH_I2C_Read... [23:12:05]Read from MH i2c: E2 0E 00 [23:12:05]MH_I2C_Read... [23:12:05]Read from MH i2c: E2 0E 00 58 0A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 C4 [23:12:05]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [23:12:05]wFMCommunicate OK [23:12:05]SAM_PROTO_GetShiftState done [23:12:05]FM_GetShiftState done [23:12:05]req_shift_opened done [23:12:05]requested_item shift.open_date is exist - process it [23:12:05]req_shift_open_date [23:12:05]req_shift_open_date done [23:12:05]produce_requested_data done [23:12:05]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76553,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [23:12:05]process_action_free close_receipt [23:12:05]json_value_free [23:12:05]json_value_free done [23:12:05]process_json_proto returns [23:12:05]Send response to host [23:12:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76553,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [23:12:05]free response buf [23:12:05]execute_script done [23:12:05]execute_script returns [23:12:05]free content buf [23:12:05]Sock 9.Close socket [23:12:05]Sock 9.Thread stoped [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:39]OFD Sender: No OFD packet to send [23:14:44]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:04]OFD Sender: No OFD packet to send [23:15:09]OFD Sender: No OFD packet to send [23:15:14]OFD Sender: No OFD packet to send [23:15:19]OFD Sender: No OFD packet to send [23:15:24]OFD Sender: No OFD packet to send [23:15:29]OFD Sender: No OFD packet to send [23:15:34]OFD Sender: No OFD packet to send [23:15:39]OFD Sender: No OFD packet to send [23:15:44]OFD Sender: No OFD packet to send [23:15:49]OFD Sender: No OFD packet to send [23:15:54]OFD Sender: No OFD packet to send [23:15:59]OFD Sender: No OFD packet to send [23:16:04]OFD Sender: No OFD packet to send [23:16:09]OFD Sender: No OFD packet to send [23:16:14]OFD Sender: No OFD packet to send [23:16:19]OFD Sender: No OFD packet to send [23:16:24]OFD Sender: No OFD packet to send [23:16:29]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:28]accept exits with 8 [23:21:28]New connection [23:21:28]New thread 3066592612 created [23:21:28]Thread 3066735972 joined [23:21:28]Waiting for new connection... [23:21:28] Sock 8.Parse request [23:21:28]Sock 8.Check first char [23:21:28]Sock 8.First char is OK [23:21:28]request: POST /json_proto HTTP/1.0 [23:21:28]Method: POST [23:21:28]URL: /json_proto [23:21:28]Method is POST - this is cgi request [23:21:28]url: /json_proto [23:21:28]query_string will be loaded in cgi processing [23:21:28]execute_cgi json_proto POST (null) [23:21:28]execute_cgi path=json_proto method=POST [23:21:28]POST find Content-Length [23:21:28]Host: 172.17.62.5:8080 [23:21:28]Content-Length: 679 [23:21:28]Content-Type: application/json [23:21:28] [23:21:28]POST finish read [23:21:28]Found Content-Length = 679 [23:21:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191049", "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:21:28]execute_script... [23:21: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)191049", "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:21:28]POST & json_proto [23:21:28]process_json_proto [23:21:28]json parsed OK: [23:21:28]protocol is kg_v1.0 [23:21:28]action value=close_receipt [23:21:28]process_action close_receipt [23:21:28]cmd_close_receipt [23:21:28]MH_GetDate [23:21:28]Write to MH i2c: F0 00 00 59 0A 52 [23:21:28]Write i2c OK [23:21:28]MH_I2C_Read... [23:21:28]Read from MH i2c: F0 [23:21:28]MH_I2C_Read... [23:21:28]Read from MH i2c: F0 09 00 [23:21:28]MH_I2C_Read... [23:21:28]Read from MH i2c: F0 09 00 59 0A 00 7A FC 22 66 F4 E9 65 64 FF [23:21:28]GetLastDocTimeStamp 1713568322 [23:21:28]current date 1713568890 [23:21:28]FM_GetShiftState [23:21:28]SAM_PROTO_GetShiftState [23:21:28]wFMCommunicate request_size=4 [23:21:28]MH_SAM_APDU [23:21:28]CAPDU: 80 13 01 00 [23:21:28]Write to MH i2c: E2 08 00 5A 0A 80 13 01 00 00 00 00 00 E1 [23:21:28]Write i2c OK [23:21:28]MH_I2C_Read... [23:21:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:28]Read from MH i2c: E2 [23:21:28]MH_I2C_Read... [23:21:28]Read from MH i2c: E2 0E 00 [23:21:28]MH_I2C_Read... [23:21:28]Read from MH i2c: E2 0E 00 5A 0A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 C6 [23:21:28]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [23:21:28]wFMCommunicate OK [23:21:28]SAM_PROTO_GetShiftState done [23:21:28]FM_GetShiftState done [23:21:28]opened in 1713486233 [23:21:28]opened+sec_in_day 1713572633 [23:21:28]quantity*price = 100018 [23:21:28]sum+1 = 100020 [23:21:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 174 19.04.2024 23:21 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76554 ФПД: 61375963314853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T232130&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76554&fm=61375963314853&tin=02508201610067®Number=0000000000091573&sum=100000 [23:21:29]StoreToDocumentArchive [23:21:29]shift 370 fd 76554 [23:21:29]save to /storage/0370/doc_00076554 [23:21:29]save last doc name /storage/0370/doc_00076554 to /storage/kkm_last_doc_name [23:21:29]save OK [23:21:29]Clear old archive folders... [23:21:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:21:29]tlvbuf is 0161D680 [23:21:29]SAM_PROTO_ClearQueue [23:21:29]wFMCommunicate request_size=4 [23:21:29]MH_SAM_APDU [23:21:29]CAPDU: 80 09 00 00 [23:21:29]Write to MH i2c: E2 08 00 67 0A 80 09 00 00 00 00 00 00 E3 [23:21:29]Write i2c OK [23:21:29]MH_I2C_Read... [23:21:29]Read from MH i2c: E2 [23:21:29]MH_I2C_Read... [23:21:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:21:29]Read from MH i2c: E2 03 00 [23:21:29]MH_I2C_Read... [23:21:30]Read from MH i2c: E2 03 00 67 0A 00 90 00 E5 [23:21:30]RAPDU: 90 00 [23:21:30]wFMCommunicate OK [23:21:30]SAM_PROTO_ClearQueue done [23:21:30]KKMCreateOFDPacket [23:21:30]OFDProtocolAddRootSTLVToBuf [23:21:30]FM_MakeSignedData [23:21:30]FM_MakeSignedData [23:21:30]SAM_PROTO_SignData [23:21:30]wFMCommunicate request_size=4 [23:21:30]MH_SAM_APDU [23:21:30]CAPDU: 80 0D 01 02 [23:21:30]Write to MH i2c: E2 08 00 68 0A 80 0D 01 02 00 00 00 00 EB [23:21:30]Write i2c OK [23:21:30]MH_I2C_Read... [23:21:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:21:30]Read from MH i2c: E2 [23:21:30]MH_I2C_Read... [23:21:30]Read from MH i2c: E2 03 00 [23:21:30]MH_I2C_Read... [23:21:30]Read from MH i2c: E2 03 00 68 0A 00 90 00 E6 [23:21:30]RAPDU: 90 00 [23:21:30]wFMCommunicate OK [23:21:30]wFMCommunicate request_size=255 [23:21:30]MH_SAM_APDU [23:21: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 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 AE 00 00 00 F4 03 04 00 7A FC 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0A 2B 01 00 35 04 06 00 37 D2 34 7D [23:21:30]Write to MH i2c: E2 02 01 69 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 AE 00 00 00 F4 03 04 00 7A FC 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0A 2B 01 00 35 04 06 00 37 D2 34 7D 00 00 60 [23:21:30]Write i2c OK [23:21:30]MH_I2C_Read... [23:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:30]Read from MH i2c: E2 [23:21:30]MH_I2C_Read... [23:21:30]Read from MH i2c: E2 03 00 [23:21:30]MH_I2C_Read... [23:21:30]Read from MH i2c: E2 03 00 69 0A 00 90 00 E7 [23:21:30]RAPDU: 90 00 [23:21:30]wFMCommunicate OK [23:21:30]wFMCommunicate request_size=7 [23:21:30]MH_SAM_APDU [23:21:30]CAPDU: 80 0D 02 02 02 BA A5 [23:21:30]Write to MH i2c: E2 0A 00 6A 0A 80 0D 02 02 02 00 BA A5 00 00 51 [23:21:30]Write i2c OK [23:21:30]MH_I2C_Read... [23:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:30]Read from MH i2c: E2 [23:21:30]MH_I2C_Read... [23:21:30]Read from MH i2c: E2 03 00 [23:21:30]MH_I2C_Read... [23:21:30]Read from MH i2c: E2 03 00 6A 0A 00 90 00 E8 [23:21:30]RAPDU: 90 00 [23:21:30]wFMCommunicate OK [23:21:30]wFMCommunicate request_size=4 [23:21:30]MH_SAM_APDU [23:21:30]CAPDU: 80 0D 03 02 [23:21:30]Write to MH i2c: E2 08 00 6B 0A 80 0D 03 02 00 00 00 00 F0 [23:21:30]Write i2c OK [23:21:30]MH_I2C_Read... [23:21:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:21:30]Read from MH i2c: E2 [23:21:30]MH_I2C_Read... [23:21:30]Read from MH i2c: E2 0B 00 [23:21:30]MH_I2C_Read... [23:21:30]Read from MH i2c: E2 0B 00 6B 0A 00 8E 11 A2 8E E0 B5 82 AB 90 00 82 [23:21:30]RAPDU: 8E 11 A2 8E E0 B5 82 AB 90 00 [23:21:30]wFMCommunicate OK [23:21:30]SAM_PROTO_SignData done [23:21:30]FM_MakeSignedData done [23:21:30]CreateOFDProtocolMessage [23:21:30]wFMCommunicate request_size=4 [23:21:30]MH_SAM_APDU [23:21:30]CAPDU: 80 11 00 00 [23:21:30]Write to MH i2c: E2 08 00 6C 0A 80 11 00 00 00 00 00 00 F0 [23:21:30]Write i2c OK [23:21:30]MH_I2C_Read... [23:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:30]Read from MH i2c: E2 [23:21:30]MH_I2C_Read... [23:21:30]Read from MH i2c: E2 17 00 [23:21:30]MH_I2C_Read... [23:21:30]Read from MH i2c: E2 17 00 6C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 43 [23:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:21:30]wFMCommunicate OK [23:21:30]CreateOFDProtocolMessage done [23:21:30]OFDSenderStorePacket 76554 [23:21:30]StoreOFDPacket docnum=76554 [23:21:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 60 C3 04 01 FC 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 AE 00 00 00 F4 03 04 00 7A FC 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0A 2B 01 00 35 04 06 00 37 D2 34 7D BA A5 8E 11 A2 8E E0 B5 82 AB [23:21:30]CheckFolder [23:21:30]dirname=/storage/ofd_packets [23:21:30]CheckFolder done [23:21:30]ProducePacketName [23:21:30]name=ofd_packets/00076554 [23:21:30]NVStorageSaveData ofd_packets/00076554 [23:21:30]File name is /storage/ofd_packets/00076554 [23:21:30]Write 298 bytes [23:21:30]NVStorageSaveData done [23:21:30]OFDSenderStorePacket done [23:21:30]KKMCreateOFDPacket done [23:21:30]NVStorageSaveData kkm_last_timestamp [23:21:30]File name is /storage/kkm_last_timestamp [23:21:30]Write 4 bytes [23:21:30]NVStorageSaveData done [23:21:30]ExternCall_PrintAddStr [23:21:30]wPrintStart [23:21:30]Write to MH i2c: 01 00 00 6D 0A 77 [23:21:30]Write i2c OK [23:21:30]MH_I2C_Read... [23:21:30]Read from MH i2c: 01 [23:21:30]MH_I2C_Read... [23:21:30]Read from MH i2c: 01 07 00 [23:21:30]MH_I2C_Read... [23:21:30]Read from MH i2c: 01 07 00 6D 0A 00 00 00 00 00 FF 0F 8C [23:21:30]RasterBufferAndPrint [23:21:30]line Счет N : (1)191049 [23:21:30]line ИНН: 02508201610067 [23:21:30]line Контрольно-Кассовый Чек [23:21:30]line ПРОДАЖА [23:21:30]line ТРК (МРК, ГНК) : 51 [23:21:30]line Товар: 2710194210 [23:21:30]line ДТ-К-5 [23:21:30]line 13.720 * 72.90 [23:21:30]line = 1000.19 [23:21:30]line НДС 12% НСП 1% [23:21:30]line > о реализуемом товаре [23:21:30]line ОКРУГЛЕНИЕ: -0.19 [23:21:30]line ИТОГО: 1000.00 [23:21:30]line Внесено: 1000.00 [23:21:30]line СДАЧА: 0.00 [23:21:30]line НСП 1% : 8.85 [23:21:30]line НДС 12% : 106.21 [23:21:30]line Наличными: 1000.00 [23:21:30]line Безнал.: 0.00 [23:21:30]line Место: АЗС № 106 "Партнер Нефть" [23:21:30]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [23:21:30]line СНО: Общий режим [23:21:30]line Чек 174 19.04.2024 23:21 [23:21:30]line Смена: 370 ФФД: 1.0 [23:21:30]line ЗНМ: 0300000141 [23:21:30]line РНМ: 0000000000091573 [23:21:30]line Версия ККМ: 001 [23:21:30]line ФМ: 0000000000874652 [23:21:30]line ФД: 76554 [23:21:30]line ФПД: 61375963314853 [23:21:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T232130&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76554&fm=61375963314853&tin=02508201610067®Number=0000000000091573&sum=100000 [23:21:30]OFD Sender: Processing packet 76554 [packets to send 128, broken 127] [23:21:30]ProducePacketName [23:21:30]name=ofd_packets/00076554 [23:21:30]OFD Sender: To server: pG, [23:21:30]CommunicateWithHost lk.salyk.kg:30040 [23:21:30]ConnectInit lk.salyk.kg [23:21:30]written 0, free lines is 4095 [23:21:30]Connected sock=10 [23:21:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 60 C3 04 01 FC 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 AE 00 00 00 F4 03 04 00 7A FC 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0A 2B 01 00 35 04 06 00 37 D2 34 7D BA A5 8E 11 A2 8E E0 B5 82 AB [23:21:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 00 71 47 00 62 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 34 36 35 32 10 04 04 00 0A 2B 01 00 F4 03 04 00 04 A4 22 66 B6 04 01 00 00 59 80 60 D6 AC D3 76 D2 [23:21:31]CommunicateWithHost err = 0 [23:21:31]CheckOFDResponse [23:21:31]1017 (14) - 77093643461234 [23:21:31]1041 (16) - 0000000000874652 [23:21:31]1040 (4) - 76554 [23:21:31]1012 (4) - 19.04.2024 17:04 [23:21:31]1206 (1) - 0 [23:21:31]OFD Sender: Remove packet 76554 [23:21:31]ProducePacketName [23:21:31]name=ofd_packets/00076554 [23:21:31]NVStorageDeleteData [23:21:31]Write to MH i2c: 01 00 00 97 0A A1 [23:21:31]Write i2c OK [23:21:31]MH_I2C_Read... [23:21:31]Read from MH i2c: 01 [23:21:31]MH_I2C_Read... [23:21:31]Read from MH i2c: 01 07 00 [23:21:31]MH_I2C_Read... [23:21:31]Read from MH i2c: 01 07 00 97 0A 00 00 00 00 00 F2 0C A6 [23:21:31]RasterBufferAndPrint [23:21:31]line [23:21:31]line [23:21:31]line [23:21:31]line [23:21:31]line [23:21:31]written 0, free lines is 3322 [23:21:31]MH_Cut [23:21:31]Write to MH i2c: D1 01 00 9E 0A 01 7A [23:21:31]Write i2c OK [23:21:31]MH_I2C_Read... [23:21:31]Read from MH i2c: D1 [23:21:31]MH_I2C_Read... [23:21:31]Read from MH i2c: D1 01 00 [23:21:31]MH_I2C_Read... [23:21:31]Read from MH i2c: D1 01 00 9E 0A 00 79 [23:21:31]Write to MH i2c: 01 00 00 9F 0A A9 [23:21:31]Write i2c OK [23:21:31]MH_I2C_Read... [23:21:31]OFD Sender: No OFD packet to send [23:21:31]*** Cut start [23:21:31]*** Partial cut [23:21:31]*** CUTSNS_PIN = 1 [23:21:32]*** CUTSNS_PIN = 0 [23:21:32]*** Brake cut motor [23:21:32]Read from MH i2c: 01 [23:21:32]MH_I2C_Read... [23:21:32]*** Stop cut motor [23:21:32]*** Cut end [23:21:32]Read from MH i2c: 01 07 00 [23:21:32]MH_I2C_Read... [23:21:32]Read from MH i2c: 01 07 00 9F 0A 00 00 00 00 00 FF 0F BE [23:21:32]process_action close_receipt done [23:21:32]requested_data is exist [23:21:32]produce_requested_data [23:21:32]requested_item fm.sn is exist - process it [23:21:32]wFMCommunicate request_size=4 [23:21:32]MH_SAM_APDU [23:21:32]CAPDU: 80 11 00 00 [23:21:32]Write to MH i2c: E2 08 00 A0 0A 80 11 00 00 00 00 00 00 24 [23:21:32]Write i2c OK [23:21:32]MH_I2C_Read... [23:21:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:32]Read from MH i2c: E2 [23:21:32]MH_I2C_Read... [23:21:32]Read from MH i2c: E2 17 00 [23:21:32]MH_I2C_Read... [23:21:32]Read from MH i2c: E2 17 00 A0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 77 [23:21:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:21:32]wFMCommunicate OK [23:21:32]requested_item fd.num is exist - process it [23:21:32]SAM_PROTO_GetFieldsCounters [23:21:32]wFMCommunicate request_size=4 [23:21:32]MH_SAM_APDU [23:21:32]CAPDU: 80 13 00 00 [23:21:32]Write to MH i2c: E2 08 00 A1 0A 80 13 00 00 00 00 00 00 27 [23:21:32]Write i2c OK [23:21:32]MH_I2C_Read... [23:21:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:21:32]Read from MH i2c: E2 [23:21:32]MH_I2C_Read... [23:21:32]Read from MH i2c: E2 62 00 [23:21:32]MH_I2C_Read... [23:21:32]Read from MH i2c: E2 62 00 A1 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0A 2B 01 00 0E 04 04 00 72 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 FB [23:21: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0A 2B 01 00 0E 04 04 00 72 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 [23:21:32]wFMCommunicate OK [23:21:32]SAM_PROTO_GetFieldsCounters done [23:21:32]requested_item shift.num is exist - process it [23:21:32]requested_item shift.opened is exist - process it [23:21:32]req_shift_opened [23:21:32]FM_GetShiftState [23:21:32]SAM_PROTO_GetShiftState [23:21:32]wFMCommunicate request_size=4 [23:21:32]MH_SAM_APDU [23:21:32]CAPDU: 80 13 01 00 [23:21:32]Write to MH i2c: E2 08 00 A2 0A 80 13 01 00 00 00 00 00 29 [23:21:32]Write i2c OK [23:21:32]MH_I2C_Read... [23:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:32]Read from MH i2c: E2 [23:21:32]MH_I2C_Read... [23:21:32]Read from MH i2c: E2 0E 00 [23:21:32]MH_I2C_Read... [23:21:32]Read from MH i2c: E2 0E 00 A2 0A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 0E [23:21:32]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [23:21:32]wFMCommunicate OK [23:21:32]SAM_PROTO_GetShiftState done [23:21:32]FM_GetShiftState done [23:21:32]req_shift_opened done [23:21:32]requested_item shift.open_date is exist - process it [23:21:32]req_shift_open_date [23:21:32]req_shift_open_date done [23:21:32]produce_requested_data done [23:21:32]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76554,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [23:21:32]process_action_free close_receipt [23:21:32]json_value_free [23:21:32]json_value_free done [23:21:32]process_json_proto returns [23:21:32]Send response to host [23:21:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76554,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [23:21:32]free response buf [23:21:32]execute_script done [23:21:32]execute_script returns [23:21:32]free content buf [23:21:32]Sock 8.Close socket [23:21:32]Sock 8.Thread stoped [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:22]OFD Sender: No OFD packet to send [23:26:27]OFD Sender: No OFD packet to send [23:26:32]OFD Sender: No OFD packet to send [23:26:37]OFD Sender: No OFD packet to send [23:26:42]OFD Sender: No OFD packet to send [23:26:47]OFD Sender: No OFD packet to send [23:26:52]OFD Sender: No OFD packet to send [23:26:57]OFD Sender: No OFD packet to send [23:27:02]OFD Sender: No OFD packet to send [23:27:07]OFD Sender: No OFD packet to send [23:27:12]OFD Sender: No OFD packet to send [23:27:17]OFD Sender: No OFD packet to send [23:27:22]OFD Sender: No OFD packet to send [23:27:27]OFD Sender: No OFD packet to send [23:27:32]OFD Sender: No OFD packet to send [23:27:37]OFD Sender: No OFD packet to send [23:27:42]OFD Sender: No OFD packet to send [23:27:47]OFD Sender: No OFD packet to send [23:27:52]OFD Sender: No OFD packet to send [23:27:57]OFD Sender: No OFD packet to send [23:28:02]OFD Sender: No OFD packet to send [23:28:07]OFD Sender: No OFD packet to send [23:28:12]OFD Sender: No OFD packet to send [23:28:17]OFD Sender: No OFD packet to send [23:28:22]OFD Sender: No OFD packet to send [23:28:27]OFD Sender: No OFD packet to send [23:28:32]OFD Sender: No OFD packet to send [23:28:37]OFD Sender: No OFD packet to send [23:28:42]OFD Sender: No OFD packet to send [23:28:47]OFD Sender: No OFD packet to send [23:28:52]OFD Sender: No OFD packet to send [23:28:57]OFD Sender: No OFD packet to send [23:29:02]OFD Sender: No OFD packet to send [23:29:07]OFD Sender: No OFD packet to send [23:29:12]OFD Sender: No OFD packet to send [23:29:17]OFD Sender: No OFD packet to send [23:29:22]OFD Sender: No OFD packet to send [23:29:27]OFD Sender: No OFD packet to send [23:29:32]OFD Sender: No OFD packet to send [23:29:37]OFD Sender: No OFD packet to send [23:29:42]OFD Sender: No OFD packet to send [23:29:47]OFD Sender: No OFD packet to send [23:29:52]OFD Sender: No OFD packet to send [23:29:57]OFD Sender: No OFD packet to send [23:30:02]OFD Sender: No OFD packet to send [23:30:07]OFD Sender: No OFD packet to send [23:30:12]OFD Sender: No OFD packet to send [23:30:17]OFD Sender: No OFD packet to send [23:30:22]OFD Sender: No OFD packet to send [23:30:27]OFD Sender: No OFD packet to send [23:30:32]OFD Sender: No OFD packet to send [23:30:37]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:53]accept exits with 9 [23:30:53]New connection [23:30:53]New thread 3066735972 created [23:30:53]Thread 3066592612 joined [23:30:53]Waiting for new connection... [23:30:53] Sock 9.Parse request [23:30:53]Sock 9.Check first char [23:30:53]Sock 9.First char is OK [23:30:53]request: POST /json_proto HTTP/1.0 [23:30:53]Method: POST [23:30:53]URL: /json_proto [23:30:53]Method is POST - this is cgi request [23:30:53]url: /json_proto [23:30:53]query_string will be loaded in cgi processing [23:30:53]execute_cgi json_proto POST (null) [23:30:53]execute_cgi path=json_proto method=POST [23:30:53]POST find Content-Length [23:30:53]Host: 172.17.62.5:8080 [23:30:53]Content-Length: 808 [23:30:53]Content-Type: application/json [23:30:53] [23:30:53]POST finish read [23:30:53]Found Content-Length = 808 [23:30:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:53]execute_script... [23:30:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:53]POST & json_proto [23:30:53]process_json_proto [23:30:53]json parsed OK: [23:30:53]protocol is kg_v1.0 [23:30:53]action value=close_receipt [23:30:53]process_action close_receipt [23:30:53]cmd_close_receipt [23:30:53]MH_GetDate [23:30:53]Write to MH i2c: F0 00 00 A3 0A 9C [23:30:53]Write i2c OK [23:30:53]MH_I2C_Read... [23:30:53]Read from MH i2c: F0 [23:30:53]MH_I2C_Read... [23:30:53]Read from MH i2c: F0 09 00 [23:30:53]MH_I2C_Read... [23:30:53]Read from MH i2c: F0 09 00 A3 0A 00 AF FE 22 66 F4 E9 65 64 80 [23:30:53]GetLastDocTimeStamp 1713568890 [23:30:53]current date 1713569455 [23:30:53]FM_GetShiftState [23:30:53]SAM_PROTO_GetShiftState [23:30:53]wFMCommunicate request_size=4 [23:30:53]MH_SAM_APDU [23:30:53]CAPDU: 80 13 01 00 [23:30:53]Write to MH i2c: E2 08 00 A4 0A 80 13 01 00 00 00 00 00 2B [23:30:53]Write i2c OK [23:30:53]MH_I2C_Read... [23:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:53]Read from MH i2c: E2 [23:30:53]MH_I2C_Read... [23:30:53]Read from MH i2c: E2 0E 00 [23:30:53]MH_I2C_Read... [23:30:53]Read from MH i2c: E2 0E 00 A4 0A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 10 [23:30:53]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [23:30:53]wFMCommunicate OK [23:30:53]SAM_PROTO_GetShiftState done [23:30:53]FM_GetShiftState done [23:30:53]opened in 1713486233 [23:30:53]opened+sec_in_day 1713572633 [23:30:53]quantity*price = 150028 [23:30:53]sum+1 = 150029 [23:30:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.28 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.28 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 175 19.04.2024 23:30 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76555 ФПД: 148061961307962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T233055&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76555&fm=148061961307962&tin=02508201610067®Number=0000000000091573&sum=150028 [23:30:55]StoreToDocumentArchive [23:30:55]shift 370 fd 76555 [23:30:55]save to /storage/0370/doc_00076555 [23:30:55]save last doc name /storage/0370/doc_00076555 to /storage/kkm_last_doc_name [23:30:55]save OK [23:30:55]Clear old archive folders... [23:30:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:30:55]tlvbuf is 0160B050 [23:30:55]SAM_PROTO_ClearQueue [23:30:55]wFMCommunicate request_size=4 [23:30:55]MH_SAM_APDU [23:30:55]CAPDU: 80 09 00 00 [23:30:55]Write to MH i2c: E2 08 00 B1 0A 80 09 00 00 00 00 00 00 2D [23:30:55]Write i2c OK [23:30:55]MH_I2C_Read... [23:30:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:30:55]Read from MH i2c: E2 [23:30:55]MH_I2C_Read... [23:30:55]Read from MH i2c: E2 03 00 [23:30:55]MH_I2C_Read... [23:30:55]Read from MH i2c: E2 03 00 B1 0A 00 90 00 2F [23:30:55]RAPDU: 90 00 [23:30:55]wFMCommunicate OK [23:30:55]SAM_PROTO_ClearQueue done [23:30:55]KKMCreateOFDPacket [23:30:55]OFDProtocolAddRootSTLVToBuf [23:30:55]FM_MakeSignedData [23:30:55]FM_MakeSignedData [23:30:55]SAM_PROTO_SignData [23:30:55]wFMCommunicate request_size=4 [23:30:55]MH_SAM_APDU [23:30:55]CAPDU: 80 0D 01 02 [23:30:55]Write to MH i2c: E2 08 00 B2 0A 80 0D 01 02 00 00 00 00 35 [23:30:55]Write i2c OK [23:30:55]MH_I2C_Read... [23:30:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:30:55]Read from MH i2c: E2 [23:30:55]MH_I2C_Read... [23:30:55]Read from MH i2c: E2 03 00 [23:30:55]MH_I2C_Read... [23:30:55]Read from MH i2c: E2 03 00 B2 0A 00 90 00 30 [23:30:55]RAPDU: 90 00 [23:30:55]wFMCommunicate OK [23:30:55]wFMCommunicate request_size=255 [23:30:55]MH_SAM_APDU [23:30:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 AF 00 00 00 F4 03 04 00 AF FE 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0B 2B 01 00 35 04 06 00 86 [23:30:55]Write to MH i2c: E2 02 01 B3 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 AF 00 00 00 F4 03 04 00 AF FE 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0B 2B 01 00 35 04 06 00 86 00 00 58 [23:30:55]Write i2c OK [23:30:55]MH_I2C_Read... [23:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:55]Read from MH i2c: E2 [23:30:55]MH_I2C_Read... [23:30:55]Read from MH i2c: E2 03 00 [23:30:55]MH_I2C_Read... [23:30:55]Read from MH i2c: E2 03 00 B3 0A 00 90 00 31 [23:30:55]RAPDU: 90 00 [23:30:55]wFMCommunicate OK [23:30:55]wFMCommunicate request_size=10 [23:30:55]MH_SAM_APDU [23:30:55]CAPDU: 80 0D 02 02 05 A9 5C 9B C7 3A [23:30:55]Write to MH i2c: E2 0D 00 B4 0A 80 0D 02 02 05 00 A9 5C 9B C7 3A 00 00 E3 [23:30:55]Write i2c OK [23:30:55]MH_I2C_Read... [23:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:55]Read from MH i2c: E2 [23:30:55]MH_I2C_Read... [23:30:55]Read from MH i2c: E2 03 00 [23:30:55]MH_I2C_Read... [23:30:55]Read from MH i2c: E2 03 00 B4 0A 00 90 00 32 [23:30:55]RAPDU: 90 00 [23:30:55]wFMCommunicate OK [23:30:55]wFMCommunicate request_size=4 [23:30:55]MH_SAM_APDU [23:30:55]CAPDU: 80 0D 03 02 [23:30:55]Write to MH i2c: E2 08 00 B5 0A 80 0D 03 02 00 00 00 00 3A [23:30:55]Write i2c OK [23:30:55]MH_I2C_Read... [23:30:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:30:55]Read from MH i2c: E2 [23:30:55]MH_I2C_Read... [23:30:55]Read from MH i2c: E2 0B 00 [23:30:55]MH_I2C_Read... [23:30:55]Read from MH i2c: E2 0B 00 B5 0A 00 8D D0 2A AD 14 AC D6 08 90 00 0D [23:30:55]RAPDU: 8D D0 2A AD 14 AC D6 08 90 00 [23:30:55]wFMCommunicate OK [23:30:55]SAM_PROTO_SignData done [23:30:55]FM_MakeSignedData done [23:30:55]CreateOFDProtocolMessage [23:30:55]wFMCommunicate request_size=4 [23:30:55]MH_SAM_APDU [23:30:55]CAPDU: 80 11 00 00 [23:30:55]Write to MH i2c: E2 08 00 B6 0A 80 11 00 00 00 00 00 00 3A [23:30:55]Write i2c OK [23:30:55]MH_I2C_Read... [23:30:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:55]Read from MH i2c: E2 [23:30:55]MH_I2C_Read... [23:30:55]Read from MH i2c: E2 17 00 [23:30:55]MH_I2C_Read... [23:30:55]Read from MH i2c: E2 17 00 B6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8D [23:30:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:30:55]wFMCommunicate OK [23:30:55]CreateOFDProtocolMessage done [23:30:55]OFDSenderStorePacket 76555 [23:30:55]StoreOFDPacket docnum=76555 [23:30:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 CF 56 07 01 81 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 AF 00 00 00 F4 03 04 00 AF FE 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0B 2B 01 00 35 04 06 00 86 A9 5C 9B C7 3A 8D D0 2A AD 14 AC D6 08 [23:30:55]CheckFolder [23:30:55]dirname=/storage/ofd_packets [23:30:55]CheckFolder done [23:30:55]ProducePacketName [23:30:55]name=ofd_packets/00076555 [23:30:55]NVStorageSaveData ofd_packets/00076555 [23:30:55]File name is /storage/ofd_packets/00076555 [23:30:55]Write 301 bytes [23:30:55]NVStorageSaveData done [23:30:55]OFDSenderStorePacket done [23:30:55]KKMCreateOFDPacket done [23:30:55]NVStorageSaveData kkm_last_timestamp [23:30:55]File name is /storage/kkm_last_timestamp [23:30:55]Write 4 bytes [23:30:55]NVStorageSaveData done [23:30:55]ExternCall_PrintAddStr [23:30:55]wPrintStart [23:30:55]Write to MH i2c: 01 00 00 B7 0A C1 [23:30:55]Write i2c OK [23:30:55]MH_I2C_Read... [23:30:55]Read from MH i2c: 01 [23:30:55]MH_I2C_Read... [23:30:55]Read from MH i2c: 01 07 00 [23:30:55]MH_I2C_Read... [23:30:55]Read from MH i2c: 01 07 00 B7 0A 00 00 00 00 00 FF 0F D6 [23:30:55]RasterBufferAndPrint [23:30:55]line Счет N : (1)191050 [23:30:55]line ИНН: 02508201610067 [23:30:55]line Контрольно-Кассовый Чек [23:30:55]line ПРОДАЖА [23:30:55]line ТРК (МРК, ГНК) : 21 [23:30:55]line Товар: 2710124500 [23:30:55]line Аи-95-К-5 [23:30:55]line 20.580 * 72.90 [23:30:55]line = 1500.28 [23:30:55]line НДС 12% НСП 1% [23:30:55]line > о реализуемом товаре [23:30:55]line ИТОГО: 1500.28 [23:30:55]line НСП 1% : 13.28 [23:30:55]line НДС 12% : 159.32 [23:30:55]line Наличными: 0.00 [23:30:55]line Безнал.: 1500.28 [23:30:55]line Место: АЗС № 106 "Партнер Нефть" [23:30:55]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [23:30:55]line СНО: Общий режим [23:30:55]line Чек 175 19.04.2024 23:30 [23:30:55]line Смена: 370 ФФД: 1.0 [23:30:55]line ЗНМ: 0300000141 [23:30:55]line РНМ: 0000000000091573 [23:30:55]line Версия ККМ: 001 [23:30:55]line Платежная система: О! деньги [23:30:55]line ФМ: 0000000000874652 [23:30:55]line ФД: 76555 [23:30:55]line ФПД: 148061961307962 [23:30:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T233055&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76555&fm=148061961307962&tin=02508201610067®Number=0000000000091573&sum=150028 [23:30:55]OFD Sender: Processing packet 76555 [packets to send 128, broken 127] [23:30:55]ProducePacketName [23:30:55]name=ofd_packets/00076555 [23:30:55]OFD Sender: To server: pG, [23:30:55]CommunicateWithHost lk.salyk.kg:30040 [23:30:55]ConnectInit lk.salyk.kg [23:30:55]written 0, free lines is 4095 [23:30:56]Connected sock=10 [23:30:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 CF 56 07 01 81 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 AF 00 00 00 F4 03 04 00 AF FE 22 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0B 2B 01 00 35 04 06 00 86 A9 5C 9B C7 3A 8D D0 2A AD 14 AC D6 08 [23:30:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 90 7E 47 00 53 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 34 36 35 32 10 04 04 00 0B 2B 01 00 F4 03 04 00 39 A6 22 66 B6 04 01 00 00 B0 0D C3 36 D2 05 86 9E [23:30:56]CommunicateWithHost err = 0 [23:30:56]CheckOFDResponse [23:30:56]1017 (14) - 77093643461234 [23:30:56]1041 (16) - 0000000000874652 [23:30:56]1040 (4) - 76555 [23:30:56]1012 (4) - 19.04.2024 17:13 [23:30:56]1206 (1) - 0 [23:30:56]OFD Sender: Remove packet 76555 [23:30:56]ProducePacketName [23:30:56]name=ofd_packets/00076555 [23:30:56]NVStorageDeleteData [23:30:56]Write to MH i2c: 01 00 00 E0 0A EA [23:30:56]Write i2c OK [23:30:56]MH_I2C_Read... [23:30:56]Read from MH i2c: 01 [23:30:56]MH_I2C_Read... [23:30:56]Read from MH i2c: 01 07 00 [23:30:56]MH_I2C_Read... [23:30:56]Read from MH i2c: 01 07 00 E0 0A 00 00 00 00 00 00 0D FE [23:30:56]RasterBufferAndPrint [23:30:56]line [23:30:56]line [23:30:56]line [23:30:56]line [23:30:56]line [23:30:56]written 0, free lines is 3333 [23:30:56]MH_Cut [23:30:56]Write to MH i2c: D1 01 00 E7 0A 01 C3 [23:30:56]Write i2c OK [23:30:56]MH_I2C_Read... [23:30:56]Read from MH i2c: D1 [23:30:56]MH_I2C_Read... [23:30:56]Read from MH i2c: D1 01 00 [23:30:56]MH_I2C_Read... [23:30:56]Read from MH i2c: D1 01 00 E7 0A 00 C2 [23:30:56]Write to MH i2c: 01 00 00 E8 0A F2 [23:30:56]Write i2c OK [23:30:56]MH_I2C_Read... [23:30:56]OFD Sender: No OFD packet to send [23:30:57]*** Cut start [23:30:57]*** Partial cut [23:30:57]*** CUTSNS_PIN = 1 [23:30:57]*** CUTSNS_PIN = 0 [23:30:57]*** Brake cut motor [23:30:57]Read from MH i2c: 01 [23:30:57]MH_I2C_Read... [23:30:57]*** Stop cut motor [23:30:57]*** Cut end [23:30:57]Read from MH i2c: 01 07 00 [23:30:57]MH_I2C_Read... [23:30:57]Read from MH i2c: 01 07 00 E8 0A 00 00 00 00 00 FF 0F 07 [23:30:57]process_action close_receipt done [23:30:57]requested_data is exist [23:30:57]produce_requested_data [23:30:57]requested_item fm.sn is exist - process it [23:30:57]wFMCommunicate request_size=4 [23:30:57]MH_SAM_APDU [23:30:57]CAPDU: 80 11 00 00 [23:30:57]Write to MH i2c: E2 08 00 E9 0A 80 11 00 00 00 00 00 00 6D [23:30:57]Write i2c OK [23:30:57]MH_I2C_Read... [23:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:57]Read from MH i2c: E2 [23:30:57]MH_I2C_Read... [23:30:57]Read from MH i2c: E2 17 00 [23:30:57]MH_I2C_Read... [23:30:57]Read from MH i2c: E2 17 00 E9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C0 [23:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:30:57]wFMCommunicate OK [23:30:57]requested_item fd.num is exist - process it [23:30:57]SAM_PROTO_GetFieldsCounters [23:30:57]wFMCommunicate request_size=4 [23:30:57]MH_SAM_APDU [23:30:57]CAPDU: 80 13 00 00 [23:30:57]Write to MH i2c: E2 08 00 EA 0A 80 13 00 00 00 00 00 00 70 [23:30:57]Write i2c OK [23:30:57]MH_I2C_Read... [23:30:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:30:57]Read from MH i2c: E2 [23:30:57]MH_I2C_Read... [23:30:57]Read from MH i2c: E2 62 00 [23:30:57]MH_I2C_Read... [23:30:57]Read from MH i2c: E2 62 00 EA 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0B 2B 01 00 0E 04 04 00 72 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 48 [23:30:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0B 2B 01 00 0E 04 04 00 72 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 [23:30:57]wFMCommunicate OK [23:30:57]SAM_PROTO_GetFieldsCounters done [23:30:57]requested_item shift.num is exist - process it [23:30:57]requested_item shift.opened is exist - process it [23:30:57]req_shift_opened [23:30:57]FM_GetShiftState [23:30:57]SAM_PROTO_GetShiftState [23:30:57]wFMCommunicate request_size=4 [23:30:57]MH_SAM_APDU [23:30:57]CAPDU: 80 13 01 00 [23:30:57]Write to MH i2c: E2 08 00 EB 0A 80 13 01 00 00 00 00 00 72 [23:30:57]Write i2c OK [23:30:57]MH_I2C_Read... [23:30:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:57]Read from MH i2c: E2 [23:30:57]MH_I2C_Read... [23:30:57]Read from MH i2c: E2 0E 00 [23:30:57]MH_I2C_Read... [23:30:57]Read from MH i2c: E2 0E 00 EB 0A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 57 [23:30:57]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [23:30:57]wFMCommunicate OK [23:30:57]SAM_PROTO_GetShiftState done [23:30:57]FM_GetShiftState done [23:30:57]req_shift_opened done [23:30:57]requested_item shift.open_date is exist - process it [23:30:57]req_shift_open_date [23:30:57]req_shift_open_date done [23:30:57]produce_requested_data done [23:30:57]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76555,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [23:30:57]process_action_free close_receipt [23:30:57]json_value_free [23:30:57]json_value_free done [23:30:57]process_json_proto returns [23:30:57]Send response to host [23:30:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76555,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [23:30:57]free response buf [23:30:57]execute_script done [23:30:57]execute_script returns [23:30:57]free content buf [23:30:57]Sock 9.Close socket [23:30:57]Sock 9.Thread stoped [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:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:32]OFD Sender: No OFD packet to send [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37:57]OFD Sender: No OFD packet to send [23:38:02]OFD Sender: No OFD packet to send [23:38:07]OFD Sender: No OFD packet to send [23:38:12]OFD Sender: No OFD packet to send [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:57]OFD Sender: No OFD packet to send [23:39:02]OFD Sender: No OFD packet to send [23:39:07]OFD Sender: No OFD packet to send [23:39:12]OFD Sender: No OFD packet to send [23:39:17]OFD Sender: No OFD packet to send [23:39:22]OFD Sender: No OFD packet to send [23:39:27]OFD Sender: No OFD packet to send [23:39:32]OFD Sender: No OFD packet to send [23:39:37]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:37]OFD Sender: No OFD packet to send [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23: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:18]accept exits with 8 [23:44:18]New connection [23:44:18]New thread 3066592612 created [23:44:18]Thread 3066735972 joined [23:44:18]Waiting for new connection... [23:44:18] Sock 8.Parse request [23:44:18]Sock 8.Check first char [23:44:18]Sock 8.First char is OK [23:44:18]request: POST /json_proto HTTP/1.0 [23:44:18]Method: POST [23:44:18]URL: /json_proto [23:44:18]Method is POST - this is cgi request [23:44:18]url: /json_proto [23:44:18]query_string will be loaded in cgi processing [23:44:18]execute_cgi json_proto POST (null) [23:44:18]execute_cgi path=json_proto method=POST [23:44:18]POST find Content-Length [23:44:18]Host: 172.17.62.5:8080 [23:44:18]Content-Length: 681 [23:44:18]Content-Type: application/json [23:44:18] [23:44:18]POST finish read [23:44:18]Found Content-Length = 681 [23:44:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 21.410, "sum" : 700.11, "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" ] } } [23:44:18]execute_script... [23:44: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)191051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 21.410, "sum" : 700.11, "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" ] } } [23:44:18]POST & json_proto [23:44:18]process_json_proto [23:44:18]json parsed OK: [23:44:18]protocol is kg_v1.0 [23:44:18]action value=close_receipt [23:44:18]process_action close_receipt [23:44:18]cmd_close_receipt [23:44:18]MH_GetDate [23:44:18]Write to MH i2c: F0 00 00 EC 0A E5 [23:44:18]Write i2c OK [23:44:18]MH_I2C_Read... [23:44:18]Read from MH i2c: F0 [23:44:18]MH_I2C_Read... [23:44:18]Read from MH i2c: F0 09 00 [23:44:18]MH_I2C_Read... [23:44:18]Read from MH i2c: F0 09 00 EC 0A 00 D4 01 23 66 F4 E9 65 64 F2 [23:44:18]GetLastDocTimeStamp 1713569455 [23:44:18]current date 1713570260 [23:44:18]FM_GetShiftState [23:44:18]SAM_PROTO_GetShiftState [23:44:18]wFMCommunicate request_size=4 [23:44:18]MH_SAM_APDU [23:44:18]CAPDU: 80 13 01 00 [23:44:18]Write to MH i2c: E2 08 00 ED 0A 80 13 01 00 00 00 00 00 74 [23:44:18]Write i2c OK [23:44:18]MH_I2C_Read... [23:44:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:18]Read from MH i2c: E2 [23:44:18]MH_I2C_Read... [23:44:18]Read from MH i2c: E2 0E 00 [23:44:18]MH_I2C_Read... [23:44:18]Read from MH i2c: E2 0E 00 ED 0A 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 59 [23:44:18]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [23:44:18]wFMCommunicate OK [23:44:18]SAM_PROTO_GetShiftState done [23:44:18]FM_GetShiftState done [23:44:18]opened in 1713486233 [23:44:18]opened+sec_in_day 1713572633 [23:44:18]quantity*price = 70010 [23:44:18]sum+1 = 70012 [23:44:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 176 19.04.2024 23:44 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76556 ФПД: 215313465041472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T234420&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76556&fm=215313465041472&tin=02508201610067®Number=0000000000091573&sum=70000 [23:44:19]StoreToDocumentArchive [23:44:19]shift 370 fd 76556 [23:44:19]save to /storage/0370/doc_00076556 [23:44:19]save last doc name /storage/0370/doc_00076556 to /storage/kkm_last_doc_name [23:44:19]save OK [23:44:19]Clear old archive folders... [23:44:19]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:44:19]tlvbuf is 0161E390 [23:44:19]SAM_PROTO_ClearQueue [23:44:19]wFMCommunicate request_size=4 [23:44:19]MH_SAM_APDU [23:44:19]CAPDU: 80 09 00 00 [23:44:19]Write to MH i2c: E2 08 00 FA 0A 80 09 00 00 00 00 00 00 76 [23:44:19]Write i2c OK [23:44:19]MH_I2C_Read... [23:44:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:44:19]Read from MH i2c: E2 [23:44:19]MH_I2C_Read... [23:44:19]Read from MH i2c: E2 03 00 [23:44:19]MH_I2C_Read... [23:44:19]Read from MH i2c: E2 03 00 FA 0A 00 90 00 78 [23:44:19]RAPDU: 90 00 [23:44:19]wFMCommunicate OK [23:44:19]SAM_PROTO_ClearQueue done [23:44:19]KKMCreateOFDPacket [23:44:19]OFDProtocolAddRootSTLVToBuf [23:44:19]FM_MakeSignedData [23:44:19]FM_MakeSignedData [23:44:19]SAM_PROTO_SignData [23:44:19]wFMCommunicate request_size=4 [23:44:19]MH_SAM_APDU [23:44:19]CAPDU: 80 0D 01 02 [23:44:19]Write to MH i2c: E2 08 00 FB 0A 80 0D 01 02 00 00 00 00 7E [23:44:19]Write i2c OK [23:44:19]MH_I2C_Read... [23:44:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:44:19]Read from MH i2c: E2 [23:44:19]MH_I2C_Read... [23:44:19]Read from MH i2c: E2 03 00 [23:44:19]MH_I2C_Read... [23:44:19]Read from MH i2c: E2 03 00 FB 0A 00 90 00 79 [23:44:19]RAPDU: 90 00 [23:44:19]wFMCommunicate OK [23:44:19]wFMCommunicate request_size=255 [23:44:19]MH_SAM_APDU [23:44:19]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7B 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 0B 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 B0 00 00 00 F4 03 04 00 D4 01 23 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0C 2B 01 00 35 04 06 00 C3 D3 [23:44:19]Write to MH i2c: E2 02 01 FC 0A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7B 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 0B 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 B0 00 00 00 F4 03 04 00 D4 01 23 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0C 2B 01 00 35 04 06 00 C3 D3 00 00 6C [23:44:19]Write i2c OK [23:44:19]MH_I2C_Read... [23:44:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:20]Read from MH i2c: E2 [23:44:20]MH_I2C_Read... [23:44:20]Read from MH i2c: E2 03 00 [23:44:20]MH_I2C_Read... [23:44:20]Read from MH i2c: E2 03 00 FC 0A 00 90 00 7A [23:44:20]RAPDU: 90 00 [23:44:20]wFMCommunicate OK [23:44:20]wFMCommunicate request_size=9 [23:44:20]MH_SAM_APDU [23:44:20]CAPDU: 80 0D 02 02 04 92 99 62 40 [23:44:20]Write to MH i2c: E2 0C 00 FD 0A 80 0D 02 02 04 00 92 99 62 40 00 00 56 [23:44:20]Write i2c OK [23:44:20]MH_I2C_Read... [23:44:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:20]Read from MH i2c: E2 [23:44:20]MH_I2C_Read... [23:44:20]Read from MH i2c: E2 03 00 [23:44:20]MH_I2C_Read... [23:44:20]Read from MH i2c: E2 03 00 FD 0A 00 90 00 7B [23:44:20]RAPDU: 90 00 [23:44:20]wFMCommunicate OK [23:44:20]wFMCommunicate request_size=4 [23:44:20]MH_SAM_APDU [23:44:20]CAPDU: 80 0D 03 02 [23:44:20]Write to MH i2c: E2 08 00 FE 0A 80 0D 03 02 00 00 00 00 83 [23:44:20]Write i2c OK [23:44:20]MH_I2C_Read... [23:44:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:44:20]Read from MH i2c: E2 [23:44:20]MH_I2C_Read... [23:44:20]Read from MH i2c: E2 0B 00 [23:44:20]MH_I2C_Read... [23:44:20]Read from MH i2c: E2 0B 00 FE 0A 00 D9 35 46 AE 85 6A 85 9E 90 00 98 [23:44:20]RAPDU: D9 35 46 AE 85 6A 85 9E 90 00 [23:44:20]wFMCommunicate OK [23:44:20]SAM_PROTO_SignData done [23:44:20]FM_MakeSignedData done [23:44:20]CreateOFDProtocolMessage [23:44:20]wFMCommunicate request_size=4 [23:44:20]MH_SAM_APDU [23:44:20]CAPDU: 80 11 00 00 [23:44:20]Write to MH i2c: E2 08 00 FF 0A 80 11 00 00 00 00 00 00 83 [23:44:20]Write i2c OK [23:44:20]MH_I2C_Read... [23:44:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:20]Read from MH i2c: E2 [23:44:20]MH_I2C_Read... [23:44:20]Read from MH i2c: E2 17 00 [23:44:20]MH_I2C_Read... [23:44:20]Read from MH i2c: E2 17 00 FF 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D6 [23:44:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:44:20]wFMCommunicate OK [23:44:20]CreateOFDProtocolMessage done [23:44:20]OFDSenderStorePacket 76556 [23:44:20]StoreOFDPacket docnum=76556 [23:44:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 37 35 06 01 80 62 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7B 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 0B 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 B0 00 00 00 F4 03 04 00 D4 01 23 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0C 2B 01 00 35 04 06 00 C3 D3 92 99 62 40 D9 35 46 AE 85 6A 85 9E [23:44:20]CheckFolder [23:44:20]dirname=/storage/ofd_packets [23:44:20]CheckFolder done [23:44:20]ProducePacketName [23:44:20]name=ofd_packets/00076556 [23:44:20]NVStorageSaveData ofd_packets/00076556 [23:44:20]File name is /storage/ofd_packets/00076556 [23:44:20]Write 300 bytes [23:44:20]NVStorageSaveData done [23:44:20]OFDSenderStorePacket done [23:44:20]KKMCreateOFDPacket done [23:44:20]NVStorageSaveData kkm_last_timestamp [23:44:20]File name is /storage/kkm_last_timestamp [23:44:20]Write 4 bytes [23:44:20]NVStorageSaveData done [23:44:20]ExternCall_PrintAddStr [23:44:20]wPrintStart [23:44:20]Write to MH i2c: 01 00 00 00 0B 0B [23:44:20]Write i2c OK [23:44:20]MH_I2C_Read... [23:44:20]Read from MH i2c: 01 [23:44:20]MH_I2C_Read... [23:44:20]Read from MH i2c: 01 07 00 [23:44:20]MH_I2C_Read... [23:44:20]Read from MH i2c: 01 07 00 00 0B 00 00 00 00 00 FF 0F 20 [23:44:20]RasterBufferAndPrint [23:44:20]line Счет N : (1)191051 [23:44:20]line ИНН: 02508201610067 [23:44:20]line Контрольно-Кассовый Чек [23:44:20]line ПРОДАЖА [23:44:20]line ТРК (МРК, ГНК) : 71 [23:44:20]line Товар: 2711190000 [23:44:20]line ГАЗ-К-5 [23:44:20]line 21.410 * 32.70 [23:44:20]line = 700.11 [23:44:20]line НДС 12% НСП 1% [23:44:20]line > о реализуемом товаре [23:44:20]line ОКРУГЛЕНИЕ: -0.11 [23:44:20]line ИТОГО: 700.00 [23:44:20]line Внесено: 700.00 [23:44:20]line СДАЧА: 0.00 [23:44:20]line НСП 1% : 6.20 [23:44:20]line НДС 12% : 74.35 [23:44:20]line Наличными: 700.00 [23:44:20]line Безнал.: 0.00 [23:44:20]line Место: АЗС № 106 "Партнер Нефть" [23:44:20]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [23:44:20]line СНО: Общий режим [23:44:20]line Чек 176 19.04.2024 23:44 [23:44:20]line Смена: 370 ФФД: 1.0 [23:44:20]line ЗНМ: 0300000141 [23:44:20]line РНМ: 0000000000091573 [23:44:20]line Версия ККМ: 001 [23:44:20]line ФМ: 0000000000874652 [23:44:20]line ФД: 76556 [23:44:20]line ФПД: 215313465041472 [23:44:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T234420&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76556&fm=215313465041472&tin=02508201610067®Number=0000000000091573&sum=70000 [23:44:20]written 0, free lines is 4095 [23:44:20]OFD Sender: Processing packet 76556 [packets to send 128, broken 127] [23:44:20]ProducePacketName [23:44:20]name=ofd_packets/00076556 [23:44:20]OFD Sender: To server: pG, [23:44:20]CommunicateWithHost lk.salyk.kg:30040 [23:44:20]ConnectInit lk.salyk.kg [23:44:20]Connected sock=9 [23:44:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 37 35 06 01 80 62 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7B 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 0B 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 B0 00 00 00 F4 03 04 00 D4 01 23 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0C 2B 01 00 35 04 06 00 C3 D3 92 99 62 40 D9 35 46 AE 85 6A 85 9E [23:44:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 14 8E 47 00 0A 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0C 2B 01 00 F4 03 04 00 5E A9 22 66 B6 04 01 00 00 FB 95 07 4F 89 FE 3E 81 [23:44:20]CommunicateWithHost err = 0 [23:44:20]CheckOFDResponse [23:44:20]1017 (14) - 77093643461234 [23:44:20]1041 (16) - 0000000000874652 [23:44:20]1040 (4) - 76556 [23:44:20]1012 (4) - 19.04.2024 17:26 [23:44:20]1206 (1) - 0 [23:44:20]OFD Sender: Remove packet 76556 [23:44:20]ProducePacketName [23:44:20]name=ofd_packets/00076556 [23:44:20]NVStorageDeleteData [23:44:20]Write to MH i2c: 01 00 00 2A 0B 35 [23:44:20]Write i2c OK [23:44:20]MH_I2C_Read... [23:44:20]Read from MH i2c: 01 [23:44:20]MH_I2C_Read... [23:44:20]Read from MH i2c: 01 07 00 [23:44:20]MH_I2C_Read... [23:44:20]Read from MH i2c: 01 07 00 2A 0B 00 00 00 00 00 EC 0C 34 [23:44:20]RasterBufferAndPrint [23:44:20]line [23:44:20]line [23:44:20]line [23:44:20]line [23:44:20]line [23:44:20]written 0, free lines is 3314 [23:44:20]MH_Cut [23:44:20]Write to MH i2c: D1 01 00 31 0B 01 0E [23:44:20]Write i2c OK [23:44:20]MH_I2C_Read... [23:44:20]Read from MH i2c: D1 [23:44:20]MH_I2C_Read... [23:44:20]Read from MH i2c: D1 01 00 [23:44:20]MH_I2C_Read... [23:44:20]Read from MH i2c: D1 01 00 31 0B 00 0D [23:44:20]Write to MH i2c: 01 00 00 32 0B 3D [23:44:20]Write i2c OK [23:44:20]MH_I2C_Read... [23:44:21]OFD Sender: No OFD packet to send [23:44:21]*** Cut start [23:44:21]*** Partial cut [23:44:21]*** CUTSNS_PIN = 1 [23:44:21]*** CUTSNS_PIN = 0 [23:44:21]*** Brake cut motor [23:44:21]Read from MH i2c: 01 [23:44:21]MH_I2C_Read... [23:44:21]*** Stop cut motor [23:44:21]*** Cut end [23:44:21]Read from MH i2c: 01 07 00 [23:44:21]MH_I2C_Read... [23:44:21]Read from MH i2c: 01 07 00 32 0B 00 00 00 00 00 FF 0F 52 [23:44:21]process_action close_receipt done [23:44:21]requested_data is exist [23:44:21]produce_requested_data [23:44:21]requested_item fm.sn is exist - process it [23:44:21]wFMCommunicate request_size=4 [23:44:21]MH_SAM_APDU [23:44:21]CAPDU: 80 11 00 00 [23:44:21]Write to MH i2c: E2 08 00 33 0B 80 11 00 00 00 00 00 00 B8 [23:44:21]Write i2c OK [23:44:21]MH_I2C_Read... [23:44:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:22]Read from MH i2c: E2 [23:44:22]MH_I2C_Read... [23:44:22]Read from MH i2c: E2 17 00 [23:44:22]MH_I2C_Read... [23:44:22]Read from MH i2c: E2 17 00 33 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0B [23:44:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:44:22]wFMCommunicate OK [23:44:22]requested_item fd.num is exist - process it [23:44:22]SAM_PROTO_GetFieldsCounters [23:44:22]wFMCommunicate request_size=4 [23:44:22]MH_SAM_APDU [23:44:22]CAPDU: 80 13 00 00 [23:44:22]Write to MH i2c: E2 08 00 34 0B 80 13 00 00 00 00 00 00 BB [23:44:22]Write i2c OK [23:44:22]MH_I2C_Read... [23:44:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:44:22]Read from MH i2c: E2 [23:44:22]MH_I2C_Read... [23:44:22]Read from MH i2c: E2 62 00 [23:44:22]MH_I2C_Read... [23:44:22]Read from MH i2c: E2 62 00 34 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0C 2B 01 00 0E 04 04 00 72 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 97 [23:44:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0C 2B 01 00 0E 04 04 00 72 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 [23:44:22]wFMCommunicate OK [23:44:22]SAM_PROTO_GetFieldsCounters done [23:44:22]requested_item shift.num is exist - process it [23:44:22]requested_item shift.opened is exist - process it [23:44:22]req_shift_opened [23:44:22]FM_GetShiftState [23:44:22]SAM_PROTO_GetShiftState [23:44:22]wFMCommunicate request_size=4 [23:44:22]MH_SAM_APDU [23:44:22]CAPDU: 80 13 01 00 [23:44:22]Write to MH i2c: E2 08 00 35 0B 80 13 01 00 00 00 00 00 BD [23:44:22]Write i2c OK [23:44:22]MH_I2C_Read... [23:44:22]Read from MH i2c: E2 [23:44:22]MH_I2C_Read... [23:44:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:22]Read from MH i2c: E2 0E 00 [23:44:22]MH_I2C_Read... [23:44:22]Read from MH i2c: E2 0E 00 35 0B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 A2 [23:44:22]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [23:44:22]wFMCommunicate OK [23:44:22]SAM_PROTO_GetShiftState done [23:44:22]FM_GetShiftState done [23:44:22]req_shift_opened done [23:44:22]requested_item shift.open_date is exist - process it [23:44:22]req_shift_open_date [23:44:22]req_shift_open_date done [23:44:22]produce_requested_data done [23:44:22]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76556,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [23:44:22]process_action_free close_receipt [23:44:22]json_value_free [23:44:22]json_value_free done [23:44:22]process_json_proto returns [23:44:22]Send response to host [23:44:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76556,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [23:44:22]free response buf [23:44:22]execute_script done [23:44:22]execute_script returns [23:44:22]free content buf [23:44:22]Sock 8.Close socket [23:44:22]Sock 8.Thread stoped [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:34]accept exits with 10 [23:44:34]New connection [23:44:34]New thread 3066735972 created [23:44:34]Thread 3066592612 joined [23:44:34]Waiting for new connection... [23:44:34] Sock 10.Parse request [23:44:34]Sock 10.Check first char [23:44:34]Sock 10.First char is OK [23:44:34]request: POST /json_proto HTTP/1.0 [23:44:34]Method: POST [23:44:34]URL: /json_proto [23:44:34]Method is POST - this is cgi request [23:44:34]url: /json_proto [23:44:34]query_string will be loaded in cgi processing [23:44:34]execute_cgi json_proto POST (null) [23:44:34]execute_cgi path=json_proto method=POST [23:44:34]POST find Content-Length [23:44:34]Host: 172.17.62.5:8080 [23:44:34]Content-Length: 682 [23:44:34]Content-Type: application/json [23:44:34] [23:44:34]POST finish read [23:44:34]Found Content-Length = 682 [23:44:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191052", "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" : 72.90, "quantity" : 19.900, "sum" : 1450.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1450.00, "total" : 1450.00, "payments": [ { "type": 0, "sum" : 1450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:44:34]execute_script... [23:44: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)191052", "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" : 72.90, "quantity" : 19.900, "sum" : 1450.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1450.00, "total" : 1450.00, "payments": [ { "type": 0, "sum" : 1450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:44:34]POST & json_proto [23:44:34]process_json_proto [23:44:34]json parsed OK: [23:44:34]protocol is kg_v1.0 [23:44:34]action value=close_receipt [23:44:34]process_action close_receipt [23:44:34]cmd_close_receipt [23:44:34]MH_GetDate [23:44:34]Write to MH i2c: F0 00 00 36 0B 30 [23:44:34]Write i2c OK [23:44:34]MH_I2C_Read... [23:44:34]Read from MH i2c: F0 [23:44:34]MH_I2C_Read... [23:44:34]Read from MH i2c: F0 09 00 [23:44:34]MH_I2C_Read... [23:44:34]Read from MH i2c: F0 09 00 36 0B 00 E3 01 23 66 F4 E9 65 64 4C [23:44:34]GetLastDocTimeStamp 1713570260 [23:44:34]current date 1713570275 [23:44:34]FM_GetShiftState [23:44:34]SAM_PROTO_GetShiftState [23:44:34]wFMCommunicate request_size=4 [23:44:34]MH_SAM_APDU [23:44:34]CAPDU: 80 13 01 00 [23:44:34]Write to MH i2c: E2 08 00 37 0B 80 13 01 00 00 00 00 00 BF [23:44:34]Write i2c OK [23:44:34]MH_I2C_Read... [23:44:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:34]Read from MH i2c: E2 [23:44:34]MH_I2C_Read... [23:44:34]Read from MH i2c: E2 0E 00 [23:44:34]MH_I2C_Read... [23:44:34]Read from MH i2c: E2 0E 00 37 0B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 A4 [23:44:34]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [23:44:34]wFMCommunicate OK [23:44:34]SAM_PROTO_GetShiftState done [23:44:34]FM_GetShiftState done [23:44:34]opened in 1713486233 [23:44:34]opened+sec_in_day 1713572633 [23:44:34]quantity*price = 145071 [23:44:34]sum+1 = 145072 [23:44:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 1450.00 Внесено: 1450.00 СДАЧА: 0.00 НСП 1% : 12.84 НДС 12% : 154.06 Наличными: 1450.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 177 19.04.2024 23:44 Смена: 370 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76557 ФПД: 82234260796292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T234435&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76557&fm=82234260796292&tin=02508201610067®Number=0000000000091573&sum=145000 [23:44:35]StoreToDocumentArchive [23:44:35]shift 370 fd 76557 [23:44:35]save to /storage/0370/doc_00076557 [23:44:35]save last doc name /storage/0370/doc_00076557 to /storage/kkm_last_doc_name [23:44:35]save OK [23:44:35]Clear old archive folders... [23:44:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:44:35]tlvbuf is 01618210 [23:44:35]SAM_PROTO_ClearQueue [23:44:35]wFMCommunicate request_size=4 [23:44:35]MH_SAM_APDU [23:44:35]CAPDU: 80 09 00 00 [23:44:35]Write to MH i2c: E2 08 00 44 0B 80 09 00 00 00 00 00 00 C1 [23:44:35]Write i2c OK [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: E2 [23:44:35]MH_I2C_Read... [23:44:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:44:35]Read from MH i2c: E2 03 00 [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: E2 03 00 44 0B 00 90 00 C3 [23:44:35]RAPDU: 90 00 [23:44:35]wFMCommunicate OK [23:44:35]SAM_PROTO_ClearQueue done [23:44:35]KKMCreateOFDPacket [23:44:35]OFDProtocolAddRootSTLVToBuf [23:44:35]FM_MakeSignedData [23:44:35]FM_MakeSignedData [23:44:35]SAM_PROTO_SignData [23:44:35]wFMCommunicate request_size=4 [23:44:35]MH_SAM_APDU [23:44:35]CAPDU: 80 0D 01 02 [23:44:35]Write to MH i2c: E2 08 00 45 0B 80 0D 01 02 00 00 00 00 C9 [23:44:35]Write i2c OK [23:44:35]MH_I2C_Read... [23:44:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:44:35]Read from MH i2c: E2 [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: E2 03 00 [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: E2 03 00 45 0B 00 90 00 C4 [23:44:35]RAPDU: 90 00 [23:44:35]wFMCommunicate OK [23:44:35]wFMCommunicate request_size=255 [23:44:35]MH_SAM_APDU [23:44: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BC 4D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AF 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 3C 00 00 00 00 07 04 06 00 68 36 02 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 E3 01 23 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0D 2B 01 00 35 04 06 00 4A [23:44:35]Write to MH i2c: E2 02 01 46 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BC 4D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AF 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 3C 00 00 00 00 07 04 06 00 68 36 02 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 E3 01 23 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0D 2B 01 00 35 04 06 00 4A 00 00 24 [23:44:35]Write i2c OK [23:44:35]MH_I2C_Read... [23:44:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:35]Read from MH i2c: E2 [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: E2 03 00 [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: E2 03 00 46 0B 00 90 00 C5 [23:44:35]RAPDU: 90 00 [23:44:35]wFMCommunicate OK [23:44:35]wFMCommunicate request_size=10 [23:44:35]MH_SAM_APDU [23:44:35]CAPDU: 80 0D 02 02 05 CA A7 E7 33 84 [23:44:35]Write to MH i2c: E2 0D 00 47 0B 80 0D 02 02 05 00 CA A7 E7 33 84 00 00 E5 [23:44:35]Write i2c OK [23:44:35]MH_I2C_Read... [23:44:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:35]Read from MH i2c: E2 [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: E2 03 00 [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: E2 03 00 47 0B 00 90 00 C6 [23:44:35]RAPDU: 90 00 [23:44:35]wFMCommunicate OK [23:44:35]wFMCommunicate request_size=4 [23:44:35]MH_SAM_APDU [23:44:35]CAPDU: 80 0D 03 02 [23:44:35]Write to MH i2c: E2 08 00 48 0B 80 0D 03 02 00 00 00 00 CE [23:44:35]Write i2c OK [23:44:35]MH_I2C_Read... [23:44:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:44:35]Read from MH i2c: E2 [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: E2 0B 00 [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: E2 0B 00 48 0B 00 F0 FD 82 23 2E C7 DC ED 90 00 1F [23:44:35]RAPDU: F0 FD 82 23 2E C7 DC ED 90 00 [23:44:35]wFMCommunicate OK [23:44:35]SAM_PROTO_SignData done [23:44:35]FM_MakeSignedData done [23:44:35]CreateOFDProtocolMessage [23:44:35]wFMCommunicate request_size=4 [23:44:35]MH_SAM_APDU [23:44:35]CAPDU: 80 11 00 00 [23:44:35]Write to MH i2c: E2 08 00 49 0B 80 11 00 00 00 00 00 00 CE [23:44:35]Write i2c OK [23:44:35]MH_I2C_Read... [23:44:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:35]Read from MH i2c: E2 [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: E2 17 00 [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: E2 17 00 49 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 21 [23:44:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:44:35]wFMCommunicate OK [23:44:35]CreateOFDProtocolMessage done [23:44:35]OFDSenderStorePacket 76557 [23:44:35]StoreOFDPacket docnum=76557 [23:44:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 9B 92 07 01 40 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BC 4D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AF 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 3C 00 00 00 00 07 04 06 00 68 36 02 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 E3 01 23 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0D 2B 01 00 35 04 06 00 4A CA A7 E7 33 84 F0 FD 82 23 2E C7 DC ED [23:44:35]CheckFolder [23:44:35]dirname=/storage/ofd_packets [23:44:35]CheckFolder done [23:44:35]ProducePacketName [23:44:35]name=ofd_packets/00076557 [23:44:35]NVStorageSaveData ofd_packets/00076557 [23:44:35]File name is /storage/ofd_packets/00076557 [23:44:35]Write 301 bytes [23:44:35]NVStorageSaveData done [23:44:35]OFDSenderStorePacket done [23:44:35]KKMCreateOFDPacket done [23:44:35]NVStorageSaveData kkm_last_timestamp [23:44:35]File name is /storage/kkm_last_timestamp [23:44:35]Write 4 bytes [23:44:35]NVStorageSaveData done [23:44:35]ExternCall_PrintAddStr [23:44:35]wPrintStart [23:44:35]Write to MH i2c: 01 00 00 4A 0B 55 [23:44:35]Write i2c OK [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: 01 [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: 01 07 00 [23:44:35]MH_I2C_Read... [23:44:35]Read from MH i2c: 01 07 00 4A 0B 00 00 00 00 00 FF 0F 6A [23:44:35]RasterBufferAndPrint [23:44:35]line Счет N : (1)191052 [23:44:35]line ИНН: 02508201610067 [23:44:35]line Контрольно-Кассовый Чек [23:44:35]line ПРОДАЖА [23:44:35]line ТРК (МРК, ГНК) : 32 [23:44:35]line Товар: 2710124500 [23:44:35]line Аи-95-К-5 [23:44:35]line 19.900 * 72.90 [23:44:35]line = 1450.71 [23:44:35]line НДС 12% НСП 1% [23:44:35]line > о реализуемом товаре [23:44:35]line ОКРУГЛЕНИЕ: -0.71 [23:44:35]line ИТОГО: 1450.00 [23:44:35]line Внесено: 1450.00 [23:44:35]line СДАЧА: 0.00 [23:44:35]line НСП 1% : 12.84 [23:44:35]line НДС 12% : 154.06 [23:44:35]line Наличными: 1450.00 [23:44:35]line Безнал.: 0.00 [23:44:35]line Место: АЗС № 106 "Партнер Нефть" [23:44:35]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [23:44:35]line СНО: Общий режим [23:44:35]line Чек 177 19.04.2024 23:44 [23:44:35]line Смена: 370 ФФД: 1.0 [23:44:35]line ЗНМ: 0300000141 [23:44:35]line РНМ: 0000000000091573 [23:44:35]line Версия ККМ: 001 [23:44:35]line ФМ: 0000000000874652 [23:44:35]line ФД: 76557 [23:44:35]line ФПД: 82234260796292 [23:44:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240419T234435&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76557&fm=82234260796292&tin=02508201610067®Number=0000000000091573&sum=145000 [23:44:36]OFD Sender: Processing packet 76557 [packets to send 128, broken 127] [23:44:36]ProducePacketName [23:44:36]name=ofd_packets/00076557 [23:44:36]OFD Sender: To server: pG, [23:44:36]CommunicateWithHost lk.salyk.kg:30040 [23:44:36]ConnectInit lk.salyk.kg [23:44:36]written 0, free lines is 4095 [23:44:36]Connected sock=9 [23:44:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 9B 92 07 01 40 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BC 4D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AF 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 3C 00 00 00 00 07 04 06 00 68 36 02 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 E3 01 23 66 0E 04 04 00 72 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0D 2B 01 00 35 04 06 00 4A CA A7 E7 33 84 F0 FD 82 23 2E C7 DC ED [23:44:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D2 12 47 00 43 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 34 36 35 32 10 04 04 00 0D 2B 01 00 F4 03 04 00 6E A9 22 66 B6 04 01 00 00 2C 05 F7 C4 11 10 BF B5 [23:44:36]CommunicateWithHost err = 0 [23:44:36]CheckOFDResponse [23:44:36]1017 (14) - 77093643461234 [23:44:36]1041 (16) - 0000000000874652 [23:44:36]1040 (4) - 76557 [23:44:36]1012 (4) - 19.04.2024 17:27 [23:44:36]1206 (1) - 0 [23:44:36]OFD Sender: Remove packet 76557 [23:44:36]ProducePacketName [23:44:36]name=ofd_packets/00076557 [23:44:36]NVStorageDeleteData [23:44:36]Write to MH i2c: 01 00 00 74 0B 7F [23:44:36]Write i2c OK [23:44:36]MH_I2C_Read... [23:44:36]Read from MH i2c: 01 [23:44:36]MH_I2C_Read... [23:44:36]Read from MH i2c: 01 07 00 [23:44:36]MH_I2C_Read... [23:44:36]Read from MH i2c: 01 07 00 74 0B 00 00 00 00 00 F8 0C 8A [23:44:36]RasterBufferAndPrint [23:44:36]line [23:44:36]line [23:44:36]line [23:44:36]line [23:44:36]line [23:44:36]written 0, free lines is 3327 [23:44:36]MH_Cut [23:44:36]Write to MH i2c: D1 01 00 7B 0B 01 58 [23:44:36]Write i2c OK [23:44:36]MH_I2C_Read... [23:44:36]Read from MH i2c: D1 [23:44:36]MH_I2C_Read... [23:44:36]Read from MH i2c: D1 01 00 [23:44:36]MH_I2C_Read... [23:44:36]Read from MH i2c: D1 01 00 7B 0B 00 57 [23:44:36]Write to MH i2c: 01 00 00 7C 0B 87 [23:44:36]Write i2c OK [23:44:36]MH_I2C_Read... [23:44:37]OFD Sender: No OFD packet to send [23:44:37]*** Cut start [23:44:37]*** Partial cut [23:44:37]*** CUTSNS_PIN = 1 [23:44:37]*** CUTSNS_PIN = 0 [23:44:37]*** Brake cut motor [23:44:38]Read from MH i2c: 01 [23:44:38]MH_I2C_Read... [23:44:38]*** Stop cut motor [23:44:38]*** Cut end [23:44:38]Read from MH i2c: 01 07 00 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: 01 07 00 7C 0B 00 00 00 00 00 FF 0F 9C [23:44:38]process_action close_receipt done [23:44:38]requested_data is exist [23:44:38]produce_requested_data [23:44:38]requested_item fm.sn is exist - process it [23:44:38]wFMCommunicate request_size=4 [23:44:38]MH_SAM_APDU [23:44:38]CAPDU: 80 11 00 00 [23:44:38]Write to MH i2c: E2 08 00 7D 0B 80 11 00 00 00 00 00 00 02 [23:44:38]Write i2c OK [23:44:38]MH_I2C_Read... [23:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:38]Read from MH i2c: E2 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 17 00 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 17 00 7D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 55 [23:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [23:44:38]wFMCommunicate OK [23:44:38]requested_item fd.num is exist - process it [23:44:38]SAM_PROTO_GetFieldsCounters [23:44:38]wFMCommunicate request_size=4 [23:44:38]MH_SAM_APDU [23:44:38]CAPDU: 80 13 00 00 [23:44:38]Write to MH i2c: E2 08 00 7E 0B 80 13 00 00 00 00 00 00 05 [23:44:38]Write i2c OK [23:44:38]MH_I2C_Read... [23:44:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:44:38]Read from MH i2c: E2 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 62 00 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 62 00 7E 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0D 2B 01 00 0E 04 04 00 72 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 E5 [23:44:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0D 2B 01 00 0E 04 04 00 72 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 [23:44:38]wFMCommunicate OK [23:44:38]SAM_PROTO_GetFieldsCounters done [23:44:38]requested_item shift.num is exist - process it [23:44:38]requested_item shift.opened is exist - process it [23:44:38]req_shift_opened [23:44:38]FM_GetShiftState [23:44:38]SAM_PROTO_GetShiftState [23:44:38]wFMCommunicate request_size=4 [23:44:38]MH_SAM_APDU [23:44:38]CAPDU: 80 13 01 00 [23:44:38]Write to MH i2c: E2 08 00 7F 0B 80 13 01 00 00 00 00 00 07 [23:44:38]Write i2c OK [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 [23:44:38]MH_I2C_Read... [23:44:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:38]Read from MH i2c: E2 0E 00 [23:44:38]MH_I2C_Read... [23:44:38]Read from MH i2c: E2 0E 00 7F 0B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 EC [23:44:38]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [23:44:38]wFMCommunicate OK [23:44:38]SAM_PROTO_GetShiftState done [23:44:38]FM_GetShiftState done [23:44:38]req_shift_opened done [23:44:38]requested_item shift.open_date is exist - process it [23:44:38]req_shift_open_date [23:44:38]req_shift_open_date done [23:44:38]produce_requested_data done [23:44:38]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76557,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [23:44:38]process_action_free close_receipt [23:44:38]json_value_free [23:44:38]json_value_free done [23:44:38]process_json_proto returns [23:44:38]Send response to host [23:44:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76557,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [23:44:38]free response buf [23:44:38]execute_script done [23:44:38]execute_script returns [23:44:38]free content buf [23:44:38]Sock 10.Close socket [23:44:38]Sock 10.Thread stoped [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:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]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:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:03]OFD Sender: No OFD packet to send [23:57:08]OFD Sender: No OFD packet to send [23:57:13]OFD Sender: No OFD packet to send [23:57:18]OFD Sender: No OFD packet to send [23:57:23]OFD Sender: No OFD packet to send [23:57:28]OFD Sender: No OFD packet to send [23:57:33]OFD Sender: No OFD packet to send [23:57:38]OFD Sender: No OFD packet to send [23:57:43]OFD Sender: No OFD packet to send [23:57:48]OFD Sender: No OFD packet to send [23:57:53]OFD Sender: No OFD packet to send [23:57:58]OFD Sender: No OFD packet to send [23:58:03]OFD Sender: No OFD packet to send [23:58:08]OFD Sender: No OFD packet to send [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]OFD Sender: No OFD packet to send [23:58:38]OFD Sender: No OFD packet to send [23:58:43]OFD Sender: No OFD packet to send [23:58:48]OFD Sender: No OFD packet to send [23:58:53]OFD Sender: No OFD packet to send [23:58:58]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:08]OFD Sender: No OFD packet to send [00:00:13]OFD Sender: No OFD packet to send [00:00:18]OFD Sender: No OFD packet to send [00:00:23]OFD Sender: No OFD packet to send [00:00:28]OFD Sender: No OFD packet to send [00:00:33]OFD Sender: No OFD packet to send [00:00:38]OFD Sender: No OFD packet to send [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:58]OFD Sender: No OFD packet to send [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:38]accept exits with 8 [00:02:38]New connection [00:02:38]New thread 3066592612 created [00:02:38]Thread 3066735972 joined [00:02:38]Waiting for new connection... [00:02:38] Sock 8.Parse request [00:02:38]Sock 8.Check first char [00:02:38]Sock 8.First char is OK [00:02:38]request: POST /json_proto HTTP/1.0 [00:02:38]Method: POST [00:02:38]URL: /json_proto [00:02:38]Method is POST - this is cgi request [00:02:38]url: /json_proto [00:02:38]query_string will be loaded in cgi processing [00:02:38]execute_cgi json_proto POST (null) [00:02:38]execute_cgi path=json_proto method=POST [00:02:38]POST find Content-Length [00:02:38]Host: 172.17.62.5:8080 [00:02:38]Content-Length: 215 [00:02:38]Content-Type: application/json [00:02:38] [00:02:38]POST finish read [00:02:38]Found Content-Length = 215 [00:02:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:38]execute_script... [00:02:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:38]POST & json_proto [00:02:38]process_json_proto [00:02:38]json parsed OK: [00:02:38]protocol is kg_v1.0 [00:02:38]action value=get_value [00:02:38]process_action get_value [00:02:38]cmd_get_value [00:02:38]process_action get_value done [00:02:38]requested_data is exist [00:02:38]produce_requested_data [00:02:38]requested_item kkm.sn is exist - process it [00:02:38]requested_item kkm.ver is exist - process it [00:02:38]requested_item fm.sn is exist - process it [00:02:38]wFMCommunicate request_size=4 [00:02:38]MH_SAM_APDU [00:02:38]CAPDU: 80 11 00 00 [00:02:38]Write to MH i2c: E2 08 00 80 0B 80 11 00 00 00 00 00 00 05 [00:02:39]Write i2c OK [00:02:39]MH_I2C_Read... [00:02:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:39]Read from MH i2c: E2 [00:02:39]MH_I2C_Read... [00:02:39]Read from MH i2c: E2 17 00 [00:02:39]MH_I2C_Read... [00:02:39]Read from MH i2c: E2 17 00 80 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 58 [00:02:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:02:39]wFMCommunicate OK [00:02:39]requested_item fd.num is exist - process it [00:02:39]SAM_PROTO_GetFieldsCounters [00:02:39]wFMCommunicate request_size=4 [00:02:39]MH_SAM_APDU [00:02:39]CAPDU: 80 13 00 00 [00:02:39]Write to MH i2c: E2 08 00 81 0B 80 13 00 00 00 00 00 00 08 [00:02:39]Write i2c OK [00:02:39]MH_I2C_Read... [00:02:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:39]Read from MH i2c: E2 [00:02:39]MH_I2C_Read... [00:02:39]Read from MH i2c: E2 62 00 [00:02:39]MH_I2C_Read... [00:02:39]Read from MH i2c: E2 62 00 81 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0D 2B 01 00 0E 04 04 00 72 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 E8 [00:02:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0D 2B 01 00 0E 04 04 00 72 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 [00:02:39]wFMCommunicate OK [00:02:39]SAM_PROTO_GetFieldsCounters done [00:02:39]requested_item shift.num is exist - process it [00:02:39]requested_item shift.opened is exist - process it [00:02:39]req_shift_opened [00:02:39]FM_GetShiftState [00:02:39]SAM_PROTO_GetShiftState [00:02:39]wFMCommunicate request_size=4 [00:02:39]MH_SAM_APDU [00:02:39]CAPDU: 80 13 01 00 [00:02:39]Write to MH i2c: E2 08 00 82 0B 80 13 01 00 00 00 00 00 0A [00:02:39]Write i2c OK [00:02:39]MH_I2C_Read... [00:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:39]Read from MH i2c: E2 [00:02:39]MH_I2C_Read... [00:02:39]Read from MH i2c: E2 0E 00 [00:02:39]MH_I2C_Read... [00:02:39]Read from MH i2c: E2 0E 00 82 0B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 EF [00:02:39]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [00:02:39]wFMCommunicate OK [00:02:39]SAM_PROTO_GetShiftState done [00:02:39]FM_GetShiftState done [00:02:39]req_shift_opened done [00:02:39]requested_item shift.open_date is exist - process it [00:02:39]req_shift_open_date [00:02:39]req_shift_open_date done [00:02:39]produce_requested_data done [00:02:39]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76557,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [00:02:39]process_action_free get_value [00:02:39]json_value_free [00:02:39]json_value_free done [00:02:39]process_json_proto returns [00:02:39]Send response to host [00:02:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76557,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [00:02:39]free response buf [00:02:39]execute_script done [00:02:39]execute_script returns [00:02:39]free content buf [00:02:39]Sock 8.Close socket [00:02:39]Sock 8.Thread stoped [00:02:39]accept exits with 9 [00:02:39]New connection [00:02:39]New thread 3066735972 created [00:02:39]Thread 3066592612 joined [00:02:39]Waiting for new connection... [00:02:39] Sock 9.Parse request [00:02:39]Sock 9.Check first char [00:02:39]Sock 9.First char is OK [00:02:39]request: POST /json_proto HTTP/1.0 [00:02:39]Method: POST [00:02:39]URL: /json_proto [00:02:39]Method is POST - this is cgi request [00:02:39]url: /json_proto [00:02:39]query_string will be loaded in cgi processing [00:02:39]execute_cgi json_proto POST (null) [00:02:39]execute_cgi path=json_proto method=POST [00:02:39]POST find Content-Length [00:02:39]Host: 172.17.62.5:8080 [00:02:39]Content-Length: 331 [00:02:39]Content-Type: application/json [00:02:39] [00:02:39]POST finish read [00:02:39]Found Content-Length = 331 [00:02:39]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:02:39]execute_script... [00:02:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:02:39]POST & json_proto [00:02:39]process_json_proto [00:02:39]json parsed OK: [00:02:39]protocol is kg_v1.0 [00:02:39]action value=get_value [00:02:39]process_action get_value [00:02:39]cmd_get_value [00:02:39]process_action get_value done [00:02:39]requested_data is exist [00:02:39]produce_requested_data [00:02:39]requested_item fm.sale.total is exist - process it [00:02:39]SAM_PROTO_GetFMData [00:02:39]wFMCommunicate request_size=4 [00:02:39]MH_SAM_APDU [00:02:39]CAPDU: 80 13 03 00 [00:02:39]Write to MH i2c: E2 08 00 83 0B 80 13 03 00 00 00 00 00 0D [00:02:39]Write i2c OK [00:02:39]MH_I2C_Read... [00:02:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:02:39]Read from MH i2c: E2 [00:02:39]MH_I2C_Read... [00:02:39]Read from MH i2c: E2 FD 00 [00:02:39]MH_I2C_Read... [00:02:39]Read from MH i2c: E2 FD 00 83 0B 00 C8 04 85 04 C4 04 6E 04 04 00 29 28 01 00 69 04 A3 00 6F 04 04 00 3B 26 01 00 B1 04 05 00 50 FA 7A B8 02 70 04 05 00 30 87 E5 74 02 72 04 04 00 20 73 95 43 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 85 11 F9 49 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 F6 05 2A 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 4F [00:02:39]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 29 28 01 00 69 04 A3 00 6F 04 04 00 3B 26 01 00 B1 04 05 00 50 FA 7A B8 02 70 04 05 00 30 87 E5 74 02 72 04 04 00 20 73 95 43 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 85 11 F9 49 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 F6 05 2A 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 [00:02:39]wFMCommunicate OK [00:02:39]wFMCommunicate request_size=4 [00:02:39]MH_SAM_APDU [00:02:39]CAPDU: 80 17 00 00 [00:02:39]Write to MH i2c: E2 08 00 84 0B 80 17 00 00 00 00 00 00 0F [00:02:39]Write i2c OK [00:02:39]MH_I2C_Read... [00:02:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:40]Read from MH i2c: E2 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 FD 00 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 FD 00 84 0B 00 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 B4 2D 75 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 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 90 00 76 [00:02:40]RAPDU: 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 B4 2D 75 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 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 90 00 [00:02:40]wFMCommunicate OK [00:02:40]wFMCommunicate request_size=4 [00:02:40]MH_SAM_APDU [00:02:40]CAPDU: 80 17 00 00 [00:02:40]Write to MH i2c: E2 08 00 85 0B 80 17 00 00 00 00 00 00 10 [00:02:40]Write i2c OK [00:02:40]MH_I2C_Read... [00:02:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:40]Read from MH i2c: E2 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 FD 00 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 FD 00 85 0B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E8 [00:02:40]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:40]wFMCommunicate OK [00:02:40]wFMCommunicate request_size=4 [00:02:40]MH_SAM_APDU [00:02:40]CAPDU: 80 17 00 00 [00:02:40]Write to MH i2c: E2 08 00 86 0B 80 17 00 00 00 00 00 00 11 [00:02:40]Write i2c OK [00:02:40]MH_I2C_Read... [00:02:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:40]Read from MH i2c: E2 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 FD 00 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 FD 00 86 0B 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 90 00 89 [00:02:40]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 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 90 00 [00:02:40]wFMCommunicate OK [00:02:40]wFMCommunicate request_size=4 [00:02:40]MH_SAM_APDU [00:02:40]CAPDU: 80 17 00 00 [00:02:40]Write to MH i2c: E2 08 00 87 0B 80 17 00 00 00 00 00 00 12 [00:02:40]Write i2c OK [00:02:40]MH_I2C_Read... [00:02:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:02:41]Read from MH i2c: E2 [00:02:41]MH_I2C_Read... [00:02:41]Read from MH i2c: E2 E5 00 [00:02:41]MH_I2C_Read... [00:02:41]Read from MH i2c: E2 E5 00 87 0B 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F6 [00:02:41]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:02:41]wFMCommunicate OK [00:02:41]SAM_PROTO_GetFMData done [00:02:41]requested_item fm.sale_refund.total is exist - process it [00:02:41]requested_item fm.buy.total is exist - process it [00:02:41]requested_item shift.sale.total is exist - process it [00:02:41]SAM_PROTO_GetShiftData [00:02:41]wFMCommunicate request_size=4 [00:02:41]MH_SAM_APDU [00:02:41]CAPDU: 80 13 02 00 [00:02:41]Write to MH i2c: E2 08 00 88 0B 80 13 02 00 00 00 00 00 11 [00:02:41]Write i2c OK [00:02:41]MH_I2C_Read... [00:02:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:02:41]Read from MH i2c: E2 [00:02:41]MH_I2C_Read... [00:02:41]Read from MH i2c: E2 FD 00 [00:02:41]MH_I2C_Read... [00:02:41]Read from MH i2c: E2 FD 00 88 0B 00 B0 04 AA 04 AC 04 6E 04 04 00 B1 00 00 00 69 04 9D 00 6F 04 04 00 B1 00 00 00 B1 04 04 00 6D 4B 25 01 70 04 03 00 94 4C EC 72 04 03 00 D9 FE 38 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 4A 27 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 97 98 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 C0 [00:02:41]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 B1 00 00 00 69 04 9D 00 6F 04 04 00 B1 00 00 00 B1 04 04 00 6D 4B 25 01 70 04 03 00 94 4C EC 72 04 03 00 D9 FE 38 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 4A 27 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 97 98 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:02:41]wFMCommunicate OK [00:02:41]wFMCommunicate request_size=4 [00:02:41]MH_SAM_APDU [00:02:41]CAPDU: 80 17 00 00 [00:02:41]Write to MH i2c: E2 08 00 89 0B 80 17 00 00 00 00 00 00 14 [00:02:41]Write i2c OK [00:02:41]MH_I2C_Read... [00:02:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:41]Read from MH i2c: E2 [00:02:41]MH_I2C_Read... [00:02:41]Read from MH i2c: E2 FD 00 [00:02:41]MH_I2C_Read... [00:02:41]Read from MH i2c: E2 FD 00 89 0B 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2E [00:02:41]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:41]wFMCommunicate OK [00:02:41]wFMCommunicate request_size=4 [00:02:41]MH_SAM_APDU [00:02:41]CAPDU: 80 17 00 00 [00:02:41]Write to MH i2c: E2 08 00 8A 0B 80 17 00 00 00 00 00 00 15 [00:02:41]Write i2c OK [00:02:41]MH_I2C_Read... [00:02:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:42]Read from MH i2c: E2 [00:02:42]MH_I2C_Read... [00:02:42]Read from MH i2c: E2 FD 00 [00:02:42]MH_I2C_Read... [00:02:42]Read from MH i2c: E2 FD 00 8A 0B 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D2 [00:02:42]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:42]wFMCommunicate OK [00:02:42]wFMCommunicate request_size=4 [00:02:42]MH_SAM_APDU [00:02:42]CAPDU: 80 17 00 00 [00:02:42]Write to MH i2c: E2 08 00 8B 0B 80 17 00 00 00 00 00 00 16 [00:02:42]Write i2c OK [00:02:42]MH_I2C_Read... [00:02:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:42]Read from MH i2c: E2 [00:02:42]MH_I2C_Read... [00:02:42]Read from MH i2c: E2 FD 00 [00:02:42]MH_I2C_Read... [00:02:42]Read from MH i2c: E2 FD 00 8B 0B 00 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 90 00 89 [00:02:42]RAPDU: 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 90 00 [00:02:42]wFMCommunicate OK [00:02:42]wFMCommunicate request_size=4 [00:02:42]MH_SAM_APDU [00:02:42]CAPDU: 80 17 00 00 [00:02:42]Write to MH i2c: E2 08 00 8C 0B 80 17 00 00 00 00 00 00 17 [00:02:42]Write i2c OK [00:02:42]MH_I2C_Read... [00:02:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:02:42]Read from MH i2c: E2 [00:02:42]MH_I2C_Read... [00:02:42]Read from MH i2c: E2 CD 00 [00:02:42]MH_I2C_Read... [00:02:42]Read from MH i2c: E2 CD 00 8C 0B 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FB [00:02:42]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:02:42]wFMCommunicate OK [00:02:42]SAM_PROTO_GetShiftData done [00:02:42]requested_item shift.sale.total_cash is exist - process it [00:02:42]requested_item shift.sale_refund.total is exist - process it [00:02:42]requested_item shift.sale_refund.total_cash is exist - process it [00:02:42]requested_item shift.buy.total is exist - process it [00:02:42]requested_item shift.buy.total_cash is exist - process it [00:02:42]produce_requested_data done [00:02:42]produce_requested_data return {"fm.sale.total":116850018.08,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":192213.57,"shift.sale.total_cash":154861.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:02:42]process_action_free get_value [00:02:42]json_value_free [00:02:42]json_value_free done [00:02:42]process_json_proto returns [00:02:42]Send response to host [00:02:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":116850018.08,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":192213.57,"shift.sale.total_cash":154861.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:02:42]free response buf [00:02:42]execute_script done [00:02:42]execute_script returns [00:02:42]free content buf [00:02:42]Sock 9.Close socket [00:02:42]Sock 9.Thread stoped [00:02:42]accept exits with 8 [00:02:42]New connection [00:02:42]New thread 3066592612 created [00:02:42]Thread 3066735972 joined [00:02:42]Waiting for new connection... [00:02:42] Sock 8.Parse request [00:02:42]Sock 8.Check first char [00:02:42]Sock 8.First char is OK [00:02:42]request: POST /json_proto HTTP/1.0 [00:02:42]Method: POST [00:02:42]URL: /json_proto [00:02:42]Method is POST - this is cgi request [00:02:42]url: /json_proto [00:02:42]query_string will be loaded in cgi processing [00:02:42]execute_cgi json_proto POST (null) [00:02:42]execute_cgi path=json_proto method=POST [00:02:42]POST find Content-Length [00:02:42]Host: 172.17.62.5:8080 [00:02:42]Content-Length: 331 [00:02:42]Content-Type: application/json [00:02:42] [00:02:42]POST finish read [00:02:42]Found Content-Length = 331 [00:02:42]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:02:42]execute_script... [00:02:42]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:02:42]POST & json_proto [00:02:42]process_json_proto [00:02:42]json parsed OK: [00:02:42]protocol is kg_v1.0 [00:02:42]action value=get_value [00:02:42]process_action get_value [00:02:42]cmd_get_value [00:02:42]process_action get_value done [00:02:42]requested_data is exist [00:02:42]produce_requested_data [00:02:42]requested_item fm.sale.total is exist - process it [00:02:42]SAM_PROTO_GetFMData [00:02:42]wFMCommunicate request_size=4 [00:02:42]MH_SAM_APDU [00:02:42]CAPDU: 80 13 03 00 [00:02:42]Write to MH i2c: E2 08 00 8D 0B 80 13 03 00 00 00 00 00 17 [00:02:42]Write i2c OK [00:02:42]MH_I2C_Read... [00:02:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:02:43]Read from MH i2c: E2 [00:02:43]MH_I2C_Read... [00:02:43]Read from MH i2c: E2 FD 00 [00:02:43]MH_I2C_Read... [00:02:43]Read from MH i2c: E2 FD 00 8D 0B 00 C8 04 85 04 C4 04 6E 04 04 00 29 28 01 00 69 04 A3 00 6F 04 04 00 3B 26 01 00 B1 04 05 00 50 FA 7A B8 02 70 04 05 00 30 87 E5 74 02 72 04 04 00 20 73 95 43 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 85 11 F9 49 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 F6 05 2A 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 59 [00:02:43]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 29 28 01 00 69 04 A3 00 6F 04 04 00 3B 26 01 00 B1 04 05 00 50 FA 7A B8 02 70 04 05 00 30 87 E5 74 02 72 04 04 00 20 73 95 43 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 85 11 F9 49 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 F6 05 2A 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 [00:02:43]wFMCommunicate OK [00:02:43]wFMCommunicate request_size=4 [00:02:43]MH_SAM_APDU [00:02:43]CAPDU: 80 17 00 00 [00:02:43]Write to MH i2c: E2 08 00 8E 0B 80 17 00 00 00 00 00 00 19 [00:02:43]Write i2c OK [00:02:43]MH_I2C_Read... [00:02:43]OFD Sender: No OFD packet to send [00:02:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:43]Read from MH i2c: E2 [00:02:43]MH_I2C_Read... [00:02:43]Read from MH i2c: E2 FD 00 [00:02:43]MH_I2C_Read... [00:02:43]Read from MH i2c: E2 FD 00 8E 0B 00 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 B4 2D 75 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 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 90 00 80 [00:02:43]RAPDU: 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 B4 2D 75 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 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 90 00 [00:02:43]wFMCommunicate OK [00:02:43]wFMCommunicate request_size=4 [00:02:43]MH_SAM_APDU [00:02:43]CAPDU: 80 17 00 00 [00:02:43]Write to MH i2c: E2 08 00 8F 0B 80 17 00 00 00 00 00 00 1A [00:02:43]Write i2c OK [00:02:43]MH_I2C_Read... [00:02:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:43]Read from MH i2c: E2 [00:02:43]MH_I2C_Read... [00:02:43]Read from MH i2c: E2 FD 00 [00:02:43]MH_I2C_Read... [00:02:43]Read from MH i2c: E2 FD 00 8F 0B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F2 [00:02:43]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:43]wFMCommunicate OK [00:02:43]wFMCommunicate request_size=4 [00:02:43]MH_SAM_APDU [00:02:43]CAPDU: 80 17 00 00 [00:02:43]Write to MH i2c: E2 08 00 90 0B 80 17 00 00 00 00 00 00 1B [00:02:43]Write i2c OK [00:02:43]MH_I2C_Read... [00:02:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:44]Read from MH i2c: E2 [00:02:44]MH_I2C_Read... [00:02:44]Read from MH i2c: E2 FD 00 [00:02:44]MH_I2C_Read... [00:02:44]Read from MH i2c: E2 FD 00 90 0B 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 90 00 93 [00:02:44]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 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 90 00 [00:02:44]wFMCommunicate OK [00:02:44]wFMCommunicate request_size=4 [00:02:44]MH_SAM_APDU [00:02:44]CAPDU: 80 17 00 00 [00:02:44]Write to MH i2c: E2 08 00 91 0B 80 17 00 00 00 00 00 00 1C [00:02:44]Write i2c OK [00:02:44]MH_I2C_Read... [00:02:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:02:44]Read from MH i2c: E2 [00:02:44]MH_I2C_Read... [00:02:44]Read from MH i2c: E2 E5 00 [00:02:44]MH_I2C_Read... [00:02:44]Read from MH i2c: E2 E5 00 91 0B 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:02:44]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:02:44]wFMCommunicate OK [00:02:44]SAM_PROTO_GetFMData done [00:02:44]requested_item fm.sale_refund.total is exist - process it [00:02:44]requested_item fm.buy.total is exist - process it [00:02:44]requested_item shift.sale.total is exist - process it [00:02:44]SAM_PROTO_GetShiftData [00:02:44]wFMCommunicate request_size=4 [00:02:44]MH_SAM_APDU [00:02:44]CAPDU: 80 13 02 00 [00:02:44]Write to MH i2c: E2 08 00 92 0B 80 13 02 00 00 00 00 00 1B [00:02:44]Write i2c OK [00:02:44]MH_I2C_Read... [00:02:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:02:45]Read from MH i2c: E2 [00:02:45]MH_I2C_Read... [00:02:45]Read from MH i2c: E2 FD 00 [00:02:45]MH_I2C_Read... [00:02:45]Read from MH i2c: E2 FD 00 92 0B 00 B0 04 AA 04 AC 04 6E 04 04 00 B1 00 00 00 69 04 9D 00 6F 04 04 00 B1 00 00 00 B1 04 04 00 6D 4B 25 01 70 04 03 00 94 4C EC 72 04 03 00 D9 FE 38 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 4A 27 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 97 98 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 CA [00:02:45]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 B1 00 00 00 69 04 9D 00 6F 04 04 00 B1 00 00 00 B1 04 04 00 6D 4B 25 01 70 04 03 00 94 4C EC 72 04 03 00 D9 FE 38 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 4A 27 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 97 98 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:02:45]wFMCommunicate OK [00:02:45]wFMCommunicate request_size=4 [00:02:45]MH_SAM_APDU [00:02:45]CAPDU: 80 17 00 00 [00:02:45]Write to MH i2c: E2 08 00 93 0B 80 17 00 00 00 00 00 00 1E [00:02:45]Write i2c OK [00:02:45]MH_I2C_Read... [00:02:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:45]Read from MH i2c: E2 [00:02:45]MH_I2C_Read... [00:02:45]Read from MH i2c: E2 FD 00 [00:02:45]MH_I2C_Read... [00:02:45]Read from MH i2c: E2 FD 00 93 0B 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 38 [00:02:45]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:45]wFMCommunicate OK [00:02:45]wFMCommunicate request_size=4 [00:02:45]MH_SAM_APDU [00:02:45]CAPDU: 80 17 00 00 [00:02:45]Write to MH i2c: E2 08 00 94 0B 80 17 00 00 00 00 00 00 1F [00:02:45]Write i2c OK [00:02:45]MH_I2C_Read... [00:02:45]Read from MH i2c: E2 [00:02:45]MH_I2C_Read... [00:02:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:45]Read from MH i2c: E2 FD 00 [00:02:45]MH_I2C_Read... [00:02:45]Read from MH i2c: E2 FD 00 94 0B 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DC [00:02:46]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:46]wFMCommunicate OK [00:02:46]wFMCommunicate request_size=4 [00:02:46]MH_SAM_APDU [00:02:46]CAPDU: 80 17 00 00 [00:02:46]Write to MH i2c: E2 08 00 95 0B 80 17 00 00 00 00 00 00 20 [00:02:46]Write i2c OK [00:02:46]MH_I2C_Read... [00:02:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:46]Read from MH i2c: E2 [00:02:46]MH_I2C_Read... [00:02:46]Read from MH i2c: E2 FD 00 [00:02:46]MH_I2C_Read... [00:02:46]Read from MH i2c: E2 FD 00 95 0B 00 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 90 00 93 [00:02:46]RAPDU: 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 90 00 [00:02:46]wFMCommunicate OK [00:02:46]wFMCommunicate request_size=4 [00:02:46]MH_SAM_APDU [00:02:46]CAPDU: 80 17 00 00 [00:02:46]Write to MH i2c: E2 08 00 96 0B 80 17 00 00 00 00 00 00 21 [00:02:46]Write i2c OK [00:02:46]MH_I2C_Read... [00:02:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:02:46]Read from MH i2c: E2 [00:02:46]MH_I2C_Read... [00:02:46]Read from MH i2c: E2 CD 00 [00:02:46]MH_I2C_Read... [00:02:46]Read from MH i2c: E2 CD 00 96 0B 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 05 [00:02:46]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:02:46]wFMCommunicate OK [00:02:46]SAM_PROTO_GetShiftData done [00:02:46]requested_item shift.sale.total_cash is exist - process it [00:02:46]requested_item shift.sale_refund.total is exist - process it [00:02:46]requested_item shift.sale_refund.total_cash is exist - process it [00:02:46]requested_item shift.buy.total is exist - process it [00:02:46]requested_item shift.buy.total_cash is exist - process it [00:02:46]produce_requested_data done [00:02:46]produce_requested_data return {"fm.sale.total":116850018.08,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":192213.57,"shift.sale.total_cash":154861.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:02:46]process_action_free get_value [00:02:46]json_value_free [00:02:46]json_value_free done [00:02:46]process_json_proto returns [00:02:46]Send response to host [00:02:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":116850018.08,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":192213.57,"shift.sale.total_cash":154861.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:02:46]free response buf [00:02:46]execute_script done [00:02:46]execute_script returns [00:02:46]free content buf [00:02:46]Sock 8.Close socket [00:02:46]Sock 8.Thread stoped [00:02:46]accept exits with 9 [00:02:46]New connection [00:02:46]New thread 3066735972 created [00:02:46]Thread 3066592612 joined [00:02:46]Waiting for new connection... [00:02:46] Sock 9.Parse request [00:02:46]Sock 9.Check first char [00:02:46]Sock 9.First char is OK [00:02:46]request: POST /json_proto HTTP/1.0 [00:02:46]Method: POST [00:02:46]URL: /json_proto [00:02:46]Method is POST - this is cgi request [00:02:46]url: /json_proto [00:02:46]query_string will be loaded in cgi processing [00:02:46]execute_cgi json_proto POST (null) [00:02:46]execute_cgi path=json_proto method=POST [00:02:46]POST find Content-Length [00:02:46]Host: 172.17.62.5:8080 [00:02:46]Content-Length: 269 [00:02:46]Content-Type: application/json [00:02:46] [00:02:46]POST finish read [00:02:46]Found Content-Length = 269 [00:02:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:46]execute_script... [00:02:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:46]POST & json_proto [00:02:46]process_json_proto [00:02:46]json parsed OK: [00:02:46]protocol is kg_v1.0 [00:02:46]action value=x_report [00:02:46]process_action x_report [00:02:46]cmd_x_report [00:02:46]MH_GetDate [00:02:46]Write to MH i2c: F0 00 00 97 0B 91 [00:02:46]Write i2c OK [00:02:46]MH_I2C_Read... [00:02:46]Read from MH i2c: F0 [00:02:46]MH_I2C_Read... [00:02:46]Read from MH i2c: F0 09 00 [00:02:46]MH_I2C_Read... [00:02:46]Read from MH i2c: F0 09 00 97 0B 00 28 06 23 66 F4 E9 65 64 F7 [00:02:46]GetLastDocTimeStamp 1713570275 [00:02:46]current date 1713571368 [00:02:46]FM_GetShiftState [00:02:46]SAM_PROTO_GetShiftState [00:02:46]wFMCommunicate request_size=4 [00:02:46]MH_SAM_APDU [00:02:46]CAPDU: 80 13 01 00 [00:02:46]Write to MH i2c: E2 08 00 98 0B 80 13 01 00 00 00 00 00 20 [00:02:46]Write i2c OK [00:02:46]MH_I2C_Read... [00:02:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:47]Read from MH i2c: E2 [00:02:47]MH_I2C_Read... [00:02:47]Read from MH i2c: E2 0E 00 [00:02:47]MH_I2C_Read... [00:02:47]Read from MH i2c: E2 0E 00 98 0B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 05 [00:02:47]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [00:02:47]wFMCommunicate OK [00:02:47]SAM_PROTO_GetShiftState done [00:02:47]FM_GetShiftState done [00:02:47]KKMCreateXReportDocument [00:02:47]Load OK [00:02:47]Malloc new data [00:02:47]MH_GetDate [00:02:47]Write to MH i2c: F0 00 00 99 0B 93 [00:02:47]Write i2c OK [00:02:47]MH_I2C_Read... [00:02:47]Read from MH i2c: F0 [00:02:47]MH_I2C_Read... [00:02:47]Read from MH i2c: F0 09 00 [00:02:47]MH_I2C_Read... [00:02:47]Read from MH i2c: F0 09 00 99 0B 00 28 06 23 66 F4 E9 65 64 F9 [00:02:47]Malloc new data [00:02:47]Malloc new data [00:02:47]wFMCommunicate request_size=4 [00:02:47]MH_SAM_APDU [00:02:47]CAPDU: 80 11 00 00 [00:02:47]Write to MH i2c: E2 08 00 9A 0B 80 11 00 00 00 00 00 00 1F [00:02:47]Write i2c OK [00:02:47]MH_I2C_Read... [00:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:47]Read from MH i2c: E2 [00:02:47]MH_I2C_Read... [00:02:47]Read from MH i2c: E2 17 00 [00:02:47]MH_I2C_Read... [00:02:47]Read from MH i2c: E2 17 00 9A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 72 [00:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:02:47]wFMCommunicate OK [00:02:47]SAM_PROTO_GetFieldsCounters [00:02:47]wFMCommunicate request_size=4 [00:02:47]MH_SAM_APDU [00:02:47]CAPDU: 80 13 00 00 [00:02:47]Write to MH i2c: E2 08 00 9B 0B 80 13 00 00 00 00 00 00 22 [00:02:47]Write i2c OK [00:02:47]MH_I2C_Read... [00:02:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:47]Read from MH i2c: E2 [00:02:47]MH_I2C_Read... [00:02:47]Read from MH i2c: E2 62 00 [00:02:47]MH_I2C_Read... [00:02:47]Read from MH i2c: E2 62 00 9B 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0D 2B 01 00 0E 04 04 00 72 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 02 [00:02:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0D 2B 01 00 0E 04 04 00 72 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 [00:02:47]wFMCommunicate OK [00:02:47]SAM_PROTO_GetFieldsCounters done [00:02:47]Malloc new data [00:02:47]Malloc new data [00:02:47]Malloc new data [00:02:47]KKMCreateXReportDocument OK [00:02:47]KKMSetXReportData OK [00:02:47]KKMPrepareXReportFMData [00:02:47]SAM_PROTO_GetShiftData [00:02:47]wFMCommunicate request_size=4 [00:02:47]MH_SAM_APDU [00:02:47]CAPDU: 80 13 02 00 [00:02:47]Write to MH i2c: E2 08 00 9C 0B 80 13 02 00 00 00 00 00 25 [00:02:47]Write i2c OK [00:02:47]MH_I2C_Read... [00:02:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:02:47]Read from MH i2c: E2 [00:02:47]MH_I2C_Read... [00:02:47]Read from MH i2c: E2 FD 00 [00:02:47]MH_I2C_Read... [00:02:47]Read from MH i2c: E2 FD 00 9C 0B 00 B0 04 AA 04 AC 04 6E 04 04 00 B1 00 00 00 69 04 9D 00 6F 04 04 00 B1 00 00 00 B1 04 04 00 6D 4B 25 01 70 04 03 00 94 4C EC 72 04 03 00 D9 FE 38 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 4A 27 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 97 98 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 D4 [00:02:47]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 B1 00 00 00 69 04 9D 00 6F 04 04 00 B1 00 00 00 B1 04 04 00 6D 4B 25 01 70 04 03 00 94 4C EC 72 04 03 00 D9 FE 38 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 4A 27 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 97 98 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:02:48]wFMCommunicate OK [00:02:48]wFMCommunicate request_size=4 [00:02:48]MH_SAM_APDU [00:02:48]CAPDU: 80 17 00 00 [00:02:48]Write to MH i2c: E2 08 00 9D 0B 80 17 00 00 00 00 00 00 28 [00:02:48]Write i2c OK [00:02:48]MH_I2C_Read... [00:02:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:48]Read from MH i2c: E2 [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: E2 FD 00 [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: E2 FD 00 9D 0B 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 42 [00:02:48]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:48]wFMCommunicate OK [00:02:48]wFMCommunicate request_size=4 [00:02:48]MH_SAM_APDU [00:02:48]CAPDU: 80 17 00 00 [00:02:48]Write to MH i2c: E2 08 00 9E 0B 80 17 00 00 00 00 00 00 29 [00:02:48]Write i2c OK [00:02:48]MH_I2C_Read... [00:02:48]OFD Sender: No OFD packet to send [00:02:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:48]Read from MH i2c: E2 [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: E2 FD 00 [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: E2 FD 00 9E 0B 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E6 [00:02:48]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:48]wFMCommunicate OK [00:02:48]wFMCommunicate request_size=4 [00:02:48]MH_SAM_APDU [00:02:48]CAPDU: 80 17 00 00 [00:02:48]Write to MH i2c: E2 08 00 9F 0B 80 17 00 00 00 00 00 00 2A [00:02:48]Write i2c OK [00:02:48]MH_I2C_Read... [00:02:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:49]Read from MH i2c: E2 [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: E2 FD 00 [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: E2 FD 00 9F 0B 00 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 90 00 9D [00:02:49]RAPDU: 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 90 00 [00:02:49]wFMCommunicate OK [00:02:49]wFMCommunicate request_size=4 [00:02:49]MH_SAM_APDU [00:02:49]CAPDU: 80 17 00 00 [00:02:49]Write to MH i2c: E2 08 00 A0 0B 80 17 00 00 00 00 00 00 2B [00:02:49]Write i2c OK [00:02:49]MH_I2C_Read... [00:02:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:02:49]Read from MH i2c: E2 [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: E2 CD 00 [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: E2 CD 00 A0 0B 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F [00:02:49]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:02:49]wFMCommunicate OK [00:02:49]SAM_PROTO_GetShiftData done [00:02:49]1194 (1196) - счетчики итогов смены [00:02:49] 1134 (4) - 177 - количество чеков со всеми признаками расчетов [00:02:49] 1129 (157) - счетчики операций «приход» [00:02:49] 1135 (4) - 177 - количество чеков по признаку расчетов [00:02:49] 1201 (4) - 192213.57 - общая итоговая сумма в чеках [00:02:49] 1136 (3) - 154861.00 - итоговая сумма в чеках наличными [00:02:49] 1138 (3) - 37352.57 - итоговая сумма в чеках безналичными [00:02:49] 1024 (123) - суммы налогов [00:02:49] 1006 (9) - суммы НДС [00:02:49] 1010 (1) - 0% - код ставки НДС [00:02:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:02:49] 1006 (12) - суммы НДС [00:02:49] 1010 (1) - 12% - код ставки НДС [00:02:49] 1011 (3) - 20416.74 - сумма НДС по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 0% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (12) - суммы НСП [00:02:49] 1014 (1) - 1% - код ставки НСП [00:02:49] 1015 (3) - 1701.35 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 2% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 3% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 5% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 0,50% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 1,50% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1130 (141) - счетчики операций «возврат прихода» [00:02:49] 1135 (4) - 0 - количество чеков по признаку расчетов [00:02:49] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:02:49] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:02:49] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:02:49] 1024 (117) - суммы налогов [00:02:49] 1006 (9) - суммы НДС [00:02:49] 1010 (1) - 0% - код ставки НДС [00:02:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:02:49] 1006 (9) - суммы НДС [00:02:49] 1010 (1) - 12% - код ставки НДС [00:02:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 0% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 1% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 2% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 3% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 5% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 0,50% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 1,50% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1131 (141) - счетчики операций «расход» [00:02:49] 1135 (4) - 0 - количество чеков по признаку расчетов [00:02:49] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:02:49] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:02:49] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:02:49] 1024 (117) - суммы налогов [00:02:49] 1006 (9) - суммы НДС [00:02:49] 1010 (1) - 0% - код ставки НДС [00:02:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:02:49] 1006 (9) - суммы НДС [00:02:49] 1010 (1) - 12% - код ставки НДС [00:02:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 0% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 1% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 2% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 3% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 5% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 0,50% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 1,50% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1132 (141) - счетчики операций «возврат расхода» [00:02:49] 1135 (4) - 0 - количество чеков по признаку расчетов [00:02:49] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:02:49] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:02:49] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:02:49] 1024 (117) - суммы налогов [00:02:49] 1006 (9) - суммы НДС [00:02:49] 1010 (1) - 0% - код ставки НДС [00:02:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:02:49] 1006 (9) - суммы НДС [00:02:49] 1010 (1) - 12% - код ставки НДС [00:02:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 0% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 1% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 2% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 3% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 5% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 0,50% - код ставки НСП [00:02:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:49] 1007 (9) - суммы НСП [00:02:49] 1014 (1) - 1,50% - код ставки НСП [00:02:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:50] 1133 (588) - - счетчики коррекции - не используются [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1194 (04AA) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1134 (046E) [00:02:50]Malloc new data [00:02:50]Processing tag 1129 (0469) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1135 (046F) [00:02:50]Malloc new data [00:02:50]Processing tag 1201 (04B1) [00:02:50]Malloc new data [00:02:50]Processing tag 1136 (0470) [00:02:50]Malloc new data [00:02:50]Processing tag 1138 (0472) [00:02:50]Malloc new data [00:02:50]Processing tag 1024 (0400) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1006 (03EE) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1010 (03F2) [00:02:50]Malloc new data [00:02:50]Processing tag 1011 (03F3) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1006 (03EE) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1010 (03F2) [00:02:50]Malloc new data [00:02:50]Processing tag 1011 (03F3) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]SetTLVBufToDocument err=0 [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1130 (046A) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1135 (046F) [00:02:50]Malloc new data [00:02:50]Processing tag 1201 (04B1) [00:02:50]Malloc new data [00:02:50]Processing tag 1136 (0470) [00:02:50]Malloc new data [00:02:50]Processing tag 1138 (0472) [00:02:50]Malloc new data [00:02:50]Processing tag 1024 (0400) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1006 (03EE) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1010 (03F2) [00:02:50]Malloc new data [00:02:50]Processing tag 1011 (03F3) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1006 (03EE) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1010 (03F2) [00:02:50]Malloc new data [00:02:50]Processing tag 1011 (03F3) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]SetTLVBufToDocument err=0 [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1131 (046B) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1135 (046F) [00:02:50]Malloc new data [00:02:50]Processing tag 1201 (04B1) [00:02:50]Malloc new data [00:02:50]Processing tag 1136 (0470) [00:02:50]Malloc new data [00:02:50]Processing tag 1138 (0472) [00:02:50]Malloc new data [00:02:50]Processing tag 1024 (0400) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1006 (03EE) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1010 (03F2) [00:02:50]Malloc new data [00:02:50]Processing tag 1011 (03F3) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1006 (03EE) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1010 (03F2) [00:02:50]Malloc new data [00:02:50]Processing tag 1011 (03F3) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]SetTLVBufToDocument err=0 [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1132 (046C) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1135 (046F) [00:02:50]Malloc new data [00:02:50]Processing tag 1201 (04B1) [00:02:50]Malloc new data [00:02:50]Processing tag 1136 (0470) [00:02:50]Malloc new data [00:02:50]Processing tag 1138 (0472) [00:02:50]Malloc new data [00:02:50]Processing tag 1024 (0400) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1006 (03EE) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1010 (03F2) [00:02:50]Malloc new data [00:02:50]Processing tag 1011 (03F3) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1006 (03EE) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1010 (03F2) [00:02:50]Malloc new data [00:02:50]Processing tag 1011 (03F3) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1007 (03EF) [00:02:50]Load OK [00:02:50]SetTLVBufToDocument [00:02:50]Processing tag 1014 (03F6) [00:02:50]Malloc new data [00:02:50]Processing tag 1015 (03F7) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]SetTLVBufToDocument err=0 [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Processing tag 1133 (046D) [00:02:50]Malloc new data [00:02:50]SetTLVBufToDocument err=0 [00:02:50]SetTLVBufToDocument err=0 [00:02:50]Malloc new data [00:02:50]SAM_PROTO_GetFMData [00:02:50]wFMCommunicate request_size=4 [00:02:50]MH_SAM_APDU [00:02:50]CAPDU: 80 13 03 00 [00:02:50]Write to MH i2c: E2 08 00 A1 0B 80 13 03 00 00 00 00 00 2B [00:02:50]Write i2c OK [00:02:50]MH_I2C_Read... [00:02:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:02:51]Read from MH i2c: E2 [00:02:51]MH_I2C_Read... [00:02:51]Read from MH i2c: E2 FD 00 [00:02:51]MH_I2C_Read... [00:02:51]Read from MH i2c: E2 FD 00 A1 0B 00 C8 04 85 04 C4 04 6E 04 04 00 29 28 01 00 69 04 A3 00 6F 04 04 00 3B 26 01 00 B1 04 05 00 50 FA 7A B8 02 70 04 05 00 30 87 E5 74 02 72 04 04 00 20 73 95 43 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 85 11 F9 49 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 F6 05 2A 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 6D [00:02:51]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 29 28 01 00 69 04 A3 00 6F 04 04 00 3B 26 01 00 B1 04 05 00 50 FA 7A B8 02 70 04 05 00 30 87 E5 74 02 72 04 04 00 20 73 95 43 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 85 11 F9 49 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 F6 05 2A 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 [00:02:51]wFMCommunicate OK [00:02:51]wFMCommunicate request_size=4 [00:02:51]MH_SAM_APDU [00:02:51]CAPDU: 80 17 00 00 [00:02:51]Write to MH i2c: E2 08 00 A2 0B 80 17 00 00 00 00 00 00 2D [00:02:51]Write i2c OK [00:02:51]MH_I2C_Read... [00:02:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:51]Read from MH i2c: E2 [00:02:51]MH_I2C_Read... [00:02:51]Read from MH i2c: E2 FD 00 [00:02:51]MH_I2C_Read... [00:02:51]Read from MH i2c: E2 FD 00 A2 0B 00 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 B4 2D 75 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 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 90 00 94 [00:02:51]RAPDU: 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 B4 2D 75 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 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 90 00 [00:02:52]wFMCommunicate OK [00:02:52]wFMCommunicate request_size=4 [00:02:52]MH_SAM_APDU [00:02:52]CAPDU: 80 17 00 00 [00:02:52]Write to MH i2c: E2 08 00 A3 0B 80 17 00 00 00 00 00 00 2E [00:02:52]Write i2c OK [00:02:52]MH_I2C_Read... [00:02:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:52]Read from MH i2c: E2 [00:02:52]MH_I2C_Read... [00:02:52]Read from MH i2c: E2 FD 00 [00:02:52]MH_I2C_Read... [00:02:52]Read from MH i2c: E2 FD 00 A3 0B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 06 [00:02:52]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:52]wFMCommunicate OK [00:02:52]wFMCommunicate request_size=4 [00:02:52]MH_SAM_APDU [00:02:52]CAPDU: 80 17 00 00 [00:02:52]Write to MH i2c: E2 08 00 A4 0B 80 17 00 00 00 00 00 00 2F [00:02:52]Write i2c OK [00:02:52]MH_I2C_Read... [00:02:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:52]Read from MH i2c: E2 [00:02:52]MH_I2C_Read... [00:02:52]Read from MH i2c: E2 FD 00 [00:02:52]MH_I2C_Read... [00:02:52]Read from MH i2c: E2 FD 00 A4 0B 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 90 00 A7 [00:02:52]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 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 90 00 [00:02:53]wFMCommunicate OK [00:02:53]wFMCommunicate request_size=4 [00:02:53]MH_SAM_APDU [00:02:53]CAPDU: 80 17 00 00 [00:02:53]Write to MH i2c: E2 08 00 A5 0B 80 17 00 00 00 00 00 00 30 [00:02:53]Write i2c OK [00:02:53]MH_I2C_Read... [00:02:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:02:53]Read from MH i2c: E2 [00:02:53]MH_I2C_Read... [00:02:53]Read from MH i2c: E2 E5 00 [00:02:53]MH_I2C_Read... [00:02:53]Read from MH i2c: E2 E5 00 A5 0B 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 14 [00:02:53]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:02:53]F7 03 00 00 EF 03 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:02:53]wFMCommunicate OK [00:02:53]SAM_PROTO_GetFMData done [00:02:53]FM_GetFMData:85 04 C4 04 6E 04 04 00 29 28 01 00 69 04 A3 00 6F 04 04 00 3B 26 01 00 B1 04 05 00 50 FA 7A B8 02 70 04 05 00 30 87 E5 74 02 72 04 04 00 20 73 95 43 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 85 11 F9 49 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 F6 05 2A 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D 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 B4 2D 75 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 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:02:54]oper:6F 04 04 00 3B 26 01 00 B1 04 05 00 50 FA 7A B8 02 70 04 05 00 30 87 E5 74 02 72 04 04 00 20 73 95 43 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 85 11 F9 49 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 F6 05 2A 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:02:54]total:50 FA 7A B8 02 [00:02:54]Malloc new data [00:02:54]oper:6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D 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 B4 2D 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:02:54]total:28 08 B9 15 01 [00:02:54]Malloc new data [00:02:54]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:02:54]total: [00:02:54]Malloc new data [00:02:54]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:02:54]total: [00:02:54]Malloc new data [00:02:54]KKMPrepareXReportFMData err=0 [00:02:54]Х отчет ИНН: 02508201610067 Кассир: Табалдиева М. 20.04.2024 00:02 Смена: 266 РНМ: 0000000000091573 ЗНМ: 0300000141 СНО: Общий режим Всего чеков: 177 ИТОГИ ПРИХОД Чеков: 177 Общий итог: 192213.57 Итого наличными: 154861.00 Итого безнал.: 37352.57 НДС 0% : 0.00 НДС 12% : 20416.74 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1701.35 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 154861.00 НС Приход: 116850018.08 НС Возвр.Прихода: 46594150.80 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874652 [00:02:54]StoreToDocumentArchive [00:02:54]MH_GetDate [00:02:54]Write to MH i2c: F0 00 00 A6 0B A0 [00:02:54]Write i2c OK [00:02:54]MH_I2C_Read... [00:02:54]Read from MH i2c: F0 [00:02:54]MH_I2C_Read... [00:02:54]Read from MH i2c: F0 09 00 [00:02:54]MH_I2C_Read... [00:02:54]Read from MH i2c: F0 09 00 A6 0B 00 30 06 23 66 F4 E9 65 64 0E [00:02:54]shift 266 fd 1713571376 [00:02:54]Create dir for shift 0266 [00:02:54]save to /storage/0266/doc_1713571376 [00:02:54]save last doc name /storage/0266/doc_1713571376 to /storage/kkm_last_doc_name [00:02:54]save OK [00:02:54]Clear old archive folders... [00:02:54]NVStorageSaveData kkm_last_timestamp [00:02:54]File name is /storage/kkm_last_timestamp [00:02:54]Write 4 bytes [00:02:54]NVStorageSaveData done [00:02:54]ExternCall_PrintAddStr [00:02:54]wPrintStart [00:02:54]Write to MH i2c: 01 00 00 A7 0B B2 [00:02:54]Write i2c OK [00:02:54]MH_I2C_Read... [00:02:54]Read from MH i2c: 01 [00:02:54]MH_I2C_Read... [00:02:54]Read from MH i2c: 01 07 00 [00:02:54]MH_I2C_Read... [00:02:54]Read from MH i2c: 01 07 00 A7 0B 00 00 00 00 00 FF 0F C7 [00:02:54]RasterBufferAndPrint [00:02:54]line Х отчет [00:02:54]line ИНН: 02508201610067 [00:02:54]line Кассир: Табалдиева М. [00:02:54]line 20.04.2024 00:02 [00:02:54]line Смена: 266 [00:02:54]line РНМ: 0000000000091573 [00:02:54]line ЗНМ: 0300000141 [00:02:54]line СНО: Общий режим [00:02:54]line Всего чеков: 177 [00:02:54]line ИТОГИ ПРИХОД [00:02:54]line Чеков: 177 [00:02:54]line Общий итог: 192213.57 [00:02:54]line Итого наличными: 154861.00 [00:02:54]line Итого безнал.: 37352.57 [00:02:54]line НДС 0% : 0.00 [00:02:54]line НДС 12% : 20416.74 [00:02:54]line НСП 0% : 0.00 [00:02:54]line НСП 1,50% : 0.00 [00:02:54]line НСП 0,50% : 0.00 [00:02:54]line НСП 5% : 0.00 [00:02:54]line НСП 3% : 0.00 [00:02:54]line НСП 2% : 0.00 [00:02:54]line НСП 1% : 1701.35 [00:02:54]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:02:54]line Чеков: 0 [00:02:54]line Общий итог: 0.00 [00:02:54]line Итого наличными: 0.00 [00:02:54]line Итого безнал.: 0.00 [00:02:54]line НДС 0% : 0.00 [00:02:54]line НДС 12% : 0.00 [00:02:54]line НСП 0% : 0.00 [00:02:54]line НСП 1,50% : 0.00 [00:02:54]line НСП 0,50% : 0.00 [00:02:54]line НСП 5% : 0.00 [00:02:54]line НСП 3% : 0.00 [00:02:54]line НСП 2% : 0.00 [00:02:54]line НСП 1% : 0.00 [00:02:54]line ИТОГИ РАСХОД [00:02:54]line Чеков: 0 [00:02:54]line Общий итог: 0.00 [00:02:54]line Итого наличными: 0.00 [00:02:54]line Итого безнал.: 0.00 [00:02:54]line НДС 0% : 0.00 [00:02:54]line НДС 12% : 0.00 [00:02:54]line НСП 0% : 0.00 [00:02:54]line НСП 1,50% : 0.00 [00:02:54]line НСП 0,50% : 0.00 [00:02:54]line НСП 5% : 0.00 [00:02:54]line НСП 3% : 0.00 [00:02:54]line НСП 2% : 0.00 [00:02:54]line НСП 1% : 0.00 [00:02:54]line ИТОГИ ВОЗВРАТ РАСХОДА [00:02:54]line Чеков: 0 [00:02:54]line Общий итог: 0.00 [00:02:54]line Итого наличными: 0.00 [00:02:54]line Итого безнал.: 0.00 [00:02:54]line НДС 0% : 0.00 [00:02:54]line НДС 12% : 0.00 [00:02:54]line НСП 0% : 0.00 [00:02:54]line НСП 1,50% : 0.00 [00:02:54]line НСП 0,50% : 0.00 [00:02:54]line НСП 5% : 0.00 [00:02:54]line НСП 3% : 0.00 [00:02:54]line НСП 2% : 0.00 [00:02:54]line НСП 1% : 0.00 [00:02:54]line Сумма внесений: 0.00 [00:02:54]line Сумма выплат: 0.00 [00:02:54]line Нал. в кассе: 154861.00 [00:02:54]line НС Приход: 116850018.08 [00:02:54]line НС Возвр.Прихода: 46594150.80 [00:02:54]line НС Расход: 0.00 [00:02:54]line НС Возвр.Расхода: 0.00 [00:02:54]line ФМ: 0000000000874652 [00:02:54]written 0, free lines is 4095 [00:02:55]Write to MH i2c: 01 00 00 F3 0B FE [00:02:55]Write i2c OK [00:02:55]MH_I2C_Read... [00:02:55]Read from MH i2c: 01 [00:02:55]MH_I2C_Read... [00:02:55]Read from MH i2c: 01 07 00 [00:02:55]MH_I2C_Read... [00:02:55]Read from MH i2c: 01 07 00 F3 0B 00 00 00 00 00 9C 0A AB [00:02:55]RasterBufferAndPrint [00:02:55]line [00:02:55]line [00:02:55]line [00:02:55]line [00:02:55]line [00:02:55]written 0, free lines is 2751 [00:02:55]MH_Cut [00:02:55]Write to MH i2c: D1 01 00 FA 0B 01 D7 [00:02:55]Write i2c OK [00:02:55]MH_I2C_Read... [00:02:55]Read from MH i2c: D1 [00:02:55]MH_I2C_Read... [00:02:55]Read from MH i2c: D1 01 00 [00:02:55]MH_I2C_Read... [00:02:55]Read from MH i2c: D1 01 00 FA 0B 00 D6 [00:02:55]Write to MH i2c: 01 00 00 FB 0B 06 [00:02:55]Write i2c OK [00:02:55]MH_I2C_Read... [00:02:56]*** Cut start [00:02:56]*** Partial cut [00:02:56]*** CUTSNS_PIN = 1 [00:02:56]*** CUTSNS_PIN = 0 [00:02:57]*** Brake cut motor [00:02:57]Read from MH i2c: 01 [00:02:57]MH_I2C_Read... [00:02:57]Read from MH i2c: 01 07 00 [00:02:57]MH_I2C_Read... [00:02:57]*** Stop cut motor [00:02:57]*** Cut end [00:02:57]Read from MH i2c: 01 07 00 FB 0B 00 00 00 00 00 FF 0F 1B [00:02:57]process_action x_report done [00:02:57]requested_data is exist [00:02:57]produce_requested_data [00:02:57]requested_item fd.num is exist - process it [00:02:57]SAM_PROTO_GetFieldsCounters [00:02:57]wFMCommunicate request_size=4 [00:02:57]MH_SAM_APDU [00:02:57]CAPDU: 80 13 00 00 [00:02:57]Write to MH i2c: E2 08 00 FC 0B 80 13 00 00 00 00 00 00 83 [00:02:57]Write i2c OK [00:02:57]MH_I2C_Read... [00:02:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:57]Read from MH i2c: E2 [00:02:57]MH_I2C_Read... [00:02:57]Read from MH i2c: E2 62 00 [00:02:57]MH_I2C_Read... [00:02:57]Read from MH i2c: E2 62 00 FC 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0D 2B 01 00 0E 04 04 00 72 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 63 [00: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0D 2B 01 00 0E 04 04 00 72 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 [00:02:57]wFMCommunicate OK [00:02:57]SAM_PROTO_GetFieldsCounters done [00:02:57]requested_item shift.num is exist - process it [00:02:57]requested_item shift.opened is exist - process it [00:02:57]req_shift_opened [00:02:57]FM_GetShiftState [00:02:57]SAM_PROTO_GetShiftState [00:02:57]wFMCommunicate request_size=4 [00:02:57]MH_SAM_APDU [00:02:57]CAPDU: 80 13 01 00 [00:02:57]Write to MH i2c: E2 08 00 FD 0B 80 13 01 00 00 00 00 00 85 [00:02:57]Write i2c OK [00:02:57]MH_I2C_Read... [00:02:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:57]Read from MH i2c: E2 [00:02:57]MH_I2C_Read... [00:02:57]Read from MH i2c: E2 0E 00 [00:02:57]MH_I2C_Read... [00:02:57]Read from MH i2c: E2 0E 00 FD 0B 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 6A [00:02:57]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [00:02:57]wFMCommunicate OK [00:02:57]SAM_PROTO_GetShiftState done [00:02:57]FM_GetShiftState done [00:02:57]req_shift_opened done [00:02:57]requested_item shift.open_date is exist - process it [00:02:57]req_shift_open_date [00:02:57]req_shift_open_date done [00:02:57]produce_requested_data done [00:02:57]produce_requested_data return {"fd.num":76557,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [00:02:57]process_action_free x_report [00:02:57]json_value_free [00:02:57]json_value_free done [00:02:57]process_json_proto returns [00:02:57]Send response to host [00:02:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":76557,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [00:02:57]free response buf [00:02:57]execute_script done [00:02:57]execute_script returns [00:02:57]free content buf [00:02:57]Sock 9.Close socket [00:02:57]Sock 9.Thread stoped [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:19]accept exits with 8 [00:03:19]New connection [00:03:19]New thread 3066592612 created [00:03:19]Thread 3066735972 joined [00:03:19]Waiting for new connection... [00:03:19] Sock 8.Parse request [00:03:19]Sock 8.Check first char [00:03:19]Sock 8.First char is OK [00:03:19]request: POST /json_proto HTTP/1.0 [00:03:19]Method: POST [00:03:19]URL: /json_proto [00:03:19]Method is POST - this is cgi request [00:03:19]url: /json_proto [00:03:19]query_string will be loaded in cgi processing [00:03:19]execute_cgi json_proto POST (null) [00:03:19]execute_cgi path=json_proto method=POST [00:03:19]POST find Content-Length [00:03:19]Host: 172.17.62.5:8080 [00:03:19]Content-Length: 215 [00:03:19]Content-Type: application/json [00:03:19] [00:03:19]POST finish read [00:03:19]Found Content-Length = 215 [00:03:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:19]execute_script... [00:03:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:19]POST & json_proto [00:03:19]process_json_proto [00:03:19]json parsed OK: [00:03:19]protocol is kg_v1.0 [00:03:19]action value=get_value [00:03:19]process_action get_value [00:03:19]cmd_get_value [00:03:19]process_action get_value done [00:03:19]requested_data is exist [00:03:19]produce_requested_data [00:03:19]requested_item kkm.sn is exist - process it [00:03:19]requested_item kkm.ver is exist - process it [00:03:19]requested_item fm.sn is exist - process it [00:03:19]wFMCommunicate request_size=4 [00:03:19]MH_SAM_APDU [00:03:19]CAPDU: 80 11 00 00 [00:03:19]Write to MH i2c: E2 08 00 FE 0B 80 11 00 00 00 00 00 00 83 [00:03:19]Write i2c OK [00:03:19]MH_I2C_Read... [00:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:19]Read from MH i2c: E2 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 17 00 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 17 00 FE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D6 [00:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:03:19]wFMCommunicate OK [00:03:19]requested_item fd.num is exist - process it [00:03:19]SAM_PROTO_GetFieldsCounters [00:03:19]wFMCommunicate request_size=4 [00:03:19]MH_SAM_APDU [00:03:19]CAPDU: 80 13 00 00 [00:03:19]Write to MH i2c: E2 08 00 FF 0B 80 13 00 00 00 00 00 00 86 [00:03:19]Write i2c OK [00:03:19]MH_I2C_Read... [00:03:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:19]Read from MH i2c: E2 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 62 00 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 62 00 FF 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0D 2B 01 00 0E 04 04 00 72 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 66 [00:03:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0D 2B 01 00 0E 04 04 00 72 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 [00:03:19]wFMCommunicate OK [00:03:19]SAM_PROTO_GetFieldsCounters done [00:03:19]requested_item shift.num is exist - process it [00:03:19]requested_item shift.opened is exist - process it [00:03:19]req_shift_opened [00:03:19]FM_GetShiftState [00:03:19]SAM_PROTO_GetShiftState [00:03:19]wFMCommunicate request_size=4 [00:03:19]MH_SAM_APDU [00:03:19]CAPDU: 80 13 01 00 [00:03:19]Write to MH i2c: E2 08 00 00 0C 80 13 01 00 00 00 00 00 89 [00:03:19]Write i2c OK [00:03:19]MH_I2C_Read... [00:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:19]Read from MH i2c: E2 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 0E 00 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 0E 00 00 0C 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 6E [00:03:19]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [00:03:19]wFMCommunicate OK [00:03:19]SAM_PROTO_GetShiftState done [00:03:19]FM_GetShiftState done [00:03:19]req_shift_opened done [00:03:19]requested_item shift.open_date is exist - process it [00:03:19]req_shift_open_date [00:03:19]req_shift_open_date done [00:03:19]produce_requested_data done [00:03:19]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76557,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233} [00:03:19]process_action_free get_value [00:03:19]json_value_free [00:03:19]json_value_free done [00:03:19]process_json_proto returns [00:03:19]Send response to host [00:03:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76557,"shift.num":370,"shift.opened":1,"shift.open_date":1713486233}}} [00:03:19]free response buf [00:03:19]execute_script done [00:03:19]execute_script returns [00:03:19]free content buf [00:03:19]Sock 8.Close socket [00:03:19]Sock 8.Thread stoped [00:03:19]accept exits with 9 [00:03:19]New connection [00:03:19]New thread 3066735972 created [00:03:19]Thread 3066592612 joined [00:03:19]Waiting for new connection... [00:03:19] Sock 9.Parse request [00:03:19]Sock 9.Check first char [00:03:19]Sock 9.First char is OK [00:03:19]request: POST /json_proto HTTP/1.0 [00:03:19]Method: POST [00:03:19]URL: /json_proto [00:03:19]Method is POST - this is cgi request [00:03:19]url: /json_proto [00:03:19]query_string will be loaded in cgi processing [00:03:19]execute_cgi json_proto POST (null) [00:03:19]execute_cgi path=json_proto method=POST [00:03:19]POST find Content-Length [00:03:19]Host: 172.17.62.5:8080 [00:03:19]Content-Length: 331 [00:03:19]Content-Type: application/json [00:03:19] [00:03:19]POST finish read [00:03:19]Found Content-Length = 331 [00:03:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:19]execute_script... [00:03:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:19]POST & json_proto [00:03:19]process_json_proto [00:03:19]json parsed OK: [00:03:19]protocol is kg_v1.0 [00:03:19]action value=get_value [00:03:19]process_action get_value [00:03:19]cmd_get_value [00:03:19]process_action get_value done [00:03:19]requested_data is exist [00:03:19]produce_requested_data [00:03:19]requested_item fm.sale.total is exist - process it [00:03:19]SAM_PROTO_GetFMData [00:03:19]wFMCommunicate request_size=4 [00:03:19]MH_SAM_APDU [00:03:19]CAPDU: 80 13 03 00 [00:03:19]Write to MH i2c: E2 08 00 01 0C 80 13 03 00 00 00 00 00 8C [00:03:19]Write i2c OK [00:03:19]MH_I2C_Read... [00:03:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:19]Read from MH i2c: E2 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 FD 00 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 FD 00 01 0C 00 C8 04 85 04 C4 04 6E 04 04 00 29 28 01 00 69 04 A3 00 6F 04 04 00 3B 26 01 00 B1 04 05 00 50 FA 7A B8 02 70 04 05 00 30 87 E5 74 02 72 04 04 00 20 73 95 43 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 85 11 F9 49 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 F6 05 2A 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 CE [00:03:20]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 29 28 01 00 69 04 A3 00 6F 04 04 00 3B 26 01 00 B1 04 05 00 50 FA 7A B8 02 70 04 05 00 30 87 E5 74 02 72 04 04 00 20 73 95 43 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 85 11 F9 49 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 F6 05 2A 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 [00:03:20]wFMCommunicate OK [00:03:20]wFMCommunicate request_size=4 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 17 00 00 [00:03:20]Write to MH i2c: E2 08 00 02 0C 80 17 00 00 00 00 00 00 8E [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:20]Read from MH i2c: E2 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 FD 00 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 FD 00 02 0C 00 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 B4 2D 75 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 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 90 00 F5 [00:03:20]RAPDU: 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 B4 2D 75 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 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 90 00 [00:03:20]wFMCommunicate OK [00:03:20]wFMCommunicate request_size=4 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 17 00 00 [00:03:20]Write to MH i2c: E2 08 00 03 0C 80 17 00 00 00 00 00 00 8F [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:20]Read from MH i2c: E2 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 FD 00 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 FD 00 03 0C 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 67 [00:03:20]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:20]wFMCommunicate OK [00:03:20]wFMCommunicate request_size=4 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 17 00 00 [00:03:20]Write to MH i2c: E2 08 00 04 0C 80 17 00 00 00 00 00 00 90 [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:21]Read from MH i2c: E2 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 FD 00 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 FD 00 04 0C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 08 [00:03:21]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 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 90 00 [00:03:21]wFMCommunicate OK [00:03:21]wFMCommunicate request_size=4 [00:03:21]MH_SAM_APDU [00:03:21]CAPDU: 80 17 00 00 [00:03:21]Write to MH i2c: E2 08 00 05 0C 80 17 00 00 00 00 00 00 91 [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:03:21]Read from MH i2c: E2 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 E5 00 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 E5 00 05 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [00:03:21]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:03:21]wFMCommunicate OK [00:03:21]SAM_PROTO_GetFMData done [00:03:21]requested_item fm.sale_refund.total is exist - process it [00:03:21]requested_item fm.buy.total is exist - process it [00:03:21]requested_item shift.sale.total is exist - process it [00:03:21]SAM_PROTO_GetShiftData [00:03:21]wFMCommunicate request_size=4 [00:03:21]MH_SAM_APDU [00:03:21]CAPDU: 80 13 02 00 [00:03:21]Write to MH i2c: E2 08 00 06 0C 80 13 02 00 00 00 00 00 90 [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:22]Read from MH i2c: E2 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 FD 00 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 FD 00 06 0C 00 B0 04 AA 04 AC 04 6E 04 04 00 B1 00 00 00 69 04 9D 00 6F 04 04 00 B1 00 00 00 B1 04 04 00 6D 4B 25 01 70 04 03 00 94 4C EC 72 04 03 00 D9 FE 38 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 4A 27 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 97 98 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 3F [00:03:22]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 B1 00 00 00 69 04 9D 00 6F 04 04 00 B1 00 00 00 B1 04 04 00 6D 4B 25 01 70 04 03 00 94 4C EC 72 04 03 00 D9 FE 38 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 4A 27 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 97 98 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:03:22]wFMCommunicate OK [00:03:22]wFMCommunicate request_size=4 [00:03:22]MH_SAM_APDU [00:03:22]CAPDU: 80 17 00 00 [00:03:22]Write to MH i2c: E2 08 00 07 0C 80 17 00 00 00 00 00 00 93 [00:03:22]Write i2c OK [00:03:22]MH_I2C_Read... [00:03:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:22]Read from MH i2c: E2 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 FD 00 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 FD 00 07 0C 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AD [00:03:23]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:23]wFMCommunicate OK [00:03:23]wFMCommunicate request_size=4 [00:03:23]MH_SAM_APDU [00:03:23]CAPDU: 80 17 00 00 [00:03:23]Write to MH i2c: E2 08 00 08 0C 80 17 00 00 00 00 00 00 94 [00:03:23]Write i2c OK [00:03:23]MH_I2C_Read... [00:03:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:23]Read from MH i2c: E2 [00:03:23]MH_I2C_Read... [00:03:23]Read from MH i2c: E2 FD 00 [00:03:23]MH_I2C_Read... [00:03:23]Read from MH i2c: E2 FD 00 08 0C 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 51 [00:03:23]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:23]wFMCommunicate OK [00:03:23]wFMCommunicate request_size=4 [00:03:23]MH_SAM_APDU [00:03:23]CAPDU: 80 17 00 00 [00:03:23]Write to MH i2c: E2 08 00 09 0C 80 17 00 00 00 00 00 00 95 [00:03:23]Write i2c OK [00:03:23]MH_I2C_Read... [00:03:23]OFD Sender: No OFD packet to send [00:03:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:23]Read from MH i2c: E2 [00:03:23]MH_I2C_Read... [00:03:23]Read from MH i2c: E2 FD 00 [00:03:23]MH_I2C_Read... [00:03:23]Read from MH i2c: E2 FD 00 09 0C 00 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 90 00 08 [00:03:24]RAPDU: 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 90 00 [00:03:24]wFMCommunicate OK [00:03:24]wFMCommunicate request_size=4 [00:03:24]MH_SAM_APDU [00:03:24]CAPDU: 80 17 00 00 [00:03:24]Write to MH i2c: E2 08 00 0A 0C 80 17 00 00 00 00 00 00 96 [00:03:24]Write i2c OK [00:03:24]MH_I2C_Read... [00:03:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:03:24]Read from MH i2c: E2 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: E2 CD 00 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: E2 CD 00 0A 0C 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7A [00:03:24]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:03:24]wFMCommunicate OK [00:03:24]SAM_PROTO_GetShiftData done [00:03:24]requested_item shift.sale.total_cash is exist - process it [00:03:24]requested_item shift.sale_refund.total is exist - process it [00:03:24]requested_item shift.sale_refund.total_cash is exist - process it [00:03:24]requested_item shift.buy.total is exist - process it [00:03:24]requested_item shift.buy.total_cash is exist - process it [00:03:24]produce_requested_data done [00:03:24]produce_requested_data return {"fm.sale.total":116850018.08,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":192213.57,"shift.sale.total_cash":154861.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:03:24]process_action_free get_value [00:03:24]json_value_free [00:03:24]json_value_free done [00:03:24]process_json_proto returns [00:03:24]Send response to host [00:03:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":116850018.08,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":192213.57,"shift.sale.total_cash":154861.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:03:24]free response buf [00:03:24]execute_script done [00:03:24]execute_script returns [00:03:24]free content buf [00:03:24]Sock 9.Close socket [00:03:24]Sock 9.Thread stoped [00:03:24]accept exits with 8 [00:03:24]New connection [00:03:24]New thread 3066592612 created [00:03:24]Thread 3066735972 joined [00:03:24]Waiting for new connection... [00:03:24] Sock 8.Parse request [00:03:24]Sock 8.Check first char [00:03:24]Sock 8.First char is OK [00:03:24]request: POST /json_proto HTTP/1.0 [00:03:24]Method: POST [00:03:24]URL: /json_proto [00:03:24]Method is POST - this is cgi request [00:03:24]url: /json_proto [00:03:24]query_string will be loaded in cgi processing [00:03:24]execute_cgi json_proto POST (null) [00:03:24]execute_cgi path=json_proto method=POST [00:03:24]POST find Content-Length [00:03:24]Host: 172.17.62.5:8080 [00:03:24]Content-Length: 331 [00:03:24]Content-Type: application/json [00:03:24] [00:03:24]POST finish read [00:03:24]Found Content-Length = 331 [00:03:24]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:03:24]execute_script... [00:03:24]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:03:24]POST & json_proto [00:03:24]process_json_proto [00:03:24]json parsed OK: [00:03:24]protocol is kg_v1.0 [00:03:24]action value=get_value [00:03:24]process_action get_value [00:03:24]cmd_get_value [00:03:24]process_action get_value done [00:03:24]requested_data is exist [00:03:24]produce_requested_data [00:03:24]requested_item fm.sale.total is exist - process it [00:03:24]SAM_PROTO_GetFMData [00:03:24]wFMCommunicate request_size=4 [00:03:24]MH_SAM_APDU [00:03:24]CAPDU: 80 13 03 00 [00:03:24]Write to MH i2c: E2 08 00 0B 0C 80 13 03 00 00 00 00 00 96 [00:03:24]Write i2c OK [00:03:24]MH_I2C_Read... [00:03:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:25]Read from MH i2c: E2 [00:03:25]MH_I2C_Read... [00:03:25]Read from MH i2c: E2 FD 00 [00:03:25]MH_I2C_Read... [00:03:25]Read from MH i2c: E2 FD 00 0B 0C 00 C8 04 85 04 C4 04 6E 04 04 00 29 28 01 00 69 04 A3 00 6F 04 04 00 3B 26 01 00 B1 04 05 00 50 FA 7A B8 02 70 04 05 00 30 87 E5 74 02 72 04 04 00 20 73 95 43 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 85 11 F9 49 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 F6 05 2A 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 D8 [00:03:25]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 29 28 01 00 69 04 A3 00 6F 04 04 00 3B 26 01 00 B1 04 05 00 50 FA 7A B8 02 70 04 05 00 30 87 E5 74 02 72 04 04 00 20 73 95 43 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 85 11 F9 49 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 F6 05 2A 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 [00:03:25]wFMCommunicate OK [00:03:25]wFMCommunicate request_size=4 [00:03:25]MH_SAM_APDU [00:03:25]CAPDU: 80 17 00 00 [00:03:25]Write to MH i2c: E2 08 00 0C 0C 80 17 00 00 00 00 00 00 98 [00:03:25]Write i2c OK [00:03:25]MH_I2C_Read... [00:03:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:25]Read from MH i2c: E2 [00:03:25]MH_I2C_Read... [00:03:25]Read from MH i2c: E2 FD 00 [00:03:25]MH_I2C_Read... [00:03:25]Read from MH i2c: E2 FD 00 0C 0C 00 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 B4 2D 75 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 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 90 00 FF [00:03:25]RAPDU: 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 B4 2D 75 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 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 90 00 [00:03:26]wFMCommunicate OK [00:03:26]wFMCommunicate request_size=4 [00:03:26]MH_SAM_APDU [00:03:26]CAPDU: 80 17 00 00 [00:03:26]Write to MH i2c: E2 08 00 0D 0C 80 17 00 00 00 00 00 00 99 [00:03:26]Write i2c OK [00:03:26]MH_I2C_Read... [00:03:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:26]Read from MH i2c: E2 [00:03:26]MH_I2C_Read... [00:03:26]Read from MH i2c: E2 FD 00 [00:03:26]MH_I2C_Read... [00:03:26]Read from MH i2c: E2 FD 00 0D 0C 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 71 [00:03:26]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:26]wFMCommunicate OK [00:03:26]wFMCommunicate request_size=4 [00:03:26]MH_SAM_APDU [00:03:26]CAPDU: 80 17 00 00 [00:03:26]Write to MH i2c: E2 08 00 0E 0C 80 17 00 00 00 00 00 00 9A [00:03:26]Write i2c OK [00:03:26]MH_I2C_Read... [00:03:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:26]Read from MH i2c: E2 [00:03:26]MH_I2C_Read... [00:03:26]Read from MH i2c: E2 FD 00 [00:03:26]MH_I2C_Read... [00:03:26]Read from MH i2c: E2 FD 00 0E 0C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 12 [00:03:27]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 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 90 00 [00:03:27]wFMCommunicate OK [00:03:27]wFMCommunicate request_size=4 [00:03:27]MH_SAM_APDU [00:03:27]CAPDU: 80 17 00 00 [00:03:27]Write to MH i2c: E2 08 00 0F 0C 80 17 00 00 00 00 00 00 9B [00:03:27]Write i2c OK [00:03:27]MH_I2C_Read... [00:03:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:03:27]Read from MH i2c: E2 [00:03:27]MH_I2C_Read... [00:03:27]Read from MH i2c: E2 E5 00 [00:03:27]MH_I2C_Read... [00:03:27]Read from MH i2c: E2 E5 00 0F 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7F [00:03:27]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:03:27]wFMCommunicate OK [00:03:27]SAM_PROTO_GetFMData done [00:03:27]requested_item fm.sale_refund.total is exist - process it [00:03:27]requested_item fm.buy.total is exist - process it [00:03:27]requested_item shift.sale.total is exist - process it [00:03:27]SAM_PROTO_GetShiftData [00:03:27]wFMCommunicate request_size=4 [00:03:27]MH_SAM_APDU [00:03:27]CAPDU: 80 13 02 00 [00:03:27]Write to MH i2c: E2 08 00 10 0C 80 13 02 00 00 00 00 00 9A [00:03:27]Write i2c OK [00:03:27]MH_I2C_Read... [00:03:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:28]Read from MH i2c: E2 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: E2 FD 00 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: E2 FD 00 10 0C 00 B0 04 AA 04 AC 04 6E 04 04 00 B1 00 00 00 69 04 9D 00 6F 04 04 00 B1 00 00 00 B1 04 04 00 6D 4B 25 01 70 04 03 00 94 4C EC 72 04 03 00 D9 FE 38 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 4A 27 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 97 98 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 49 [00:03:28]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 B1 00 00 00 69 04 9D 00 6F 04 04 00 B1 00 00 00 B1 04 04 00 6D 4B 25 01 70 04 03 00 94 4C EC 72 04 03 00 D9 FE 38 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 4A 27 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 97 98 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:03:28]wFMCommunicate OK [00:03:28]wFMCommunicate request_size=4 [00:03:28]MH_SAM_APDU [00:03:28]CAPDU: 80 17 00 00 [00:03:28]Write to MH i2c: E2 08 00 11 0C 80 17 00 00 00 00 00 00 9D [00:03:28]Write i2c OK [00:03:28]MH_I2C_Read... [00:03:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:28]Read from MH i2c: E2 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: E2 FD 00 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: E2 FD 00 11 0C 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B7 [00:03:29]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 OFD Sender: No OFD packet to send [00:03:29]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 90 00 [00:03:29]wFMCommunicate OK [00:03:29]wFMCommunicate request_size=4 [00:03:29]MH_SAM_APDU [00:03:29]CAPDU: 80 17 00 00 [00:03:29]Write to MH i2c: E2 08 00 12 0C 80 17 00 00 00 00 00 00 9E [00:03:29]Write i2c OK [00:03:29]MH_I2C_Read... [00:03:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:29]Read from MH i2c: E2 [00:03:29]MH_I2C_Read... [00:03:29]Read from MH i2c: E2 FD 00 [00:03:29]MH_I2C_Read... [00:03:29]Read from MH i2c: E2 FD 00 12 0C 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5B [00:03:29]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:29]wFMCommunicate OK [00:03:29]wFMCommunicate request_size=4 [00:03:29]MH_SAM_APDU [00:03:29]CAPDU: 80 17 00 00 [00:03:29]Write to MH i2c: E2 08 00 13 0C 80 17 00 00 00 00 00 00 9F [00:03:29]Write i2c OK [00:03:29]MH_I2C_Read... [00:03:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:30]Read from MH i2c: E2 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: E2 FD 00 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: E2 FD 00 13 0C 00 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 90 00 12 [00:03:30]RAPDU: 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 90 00 [00:03:30]wFMCommunicate OK [00:03:30]wFMCommunicate request_size=4 [00:03:30]MH_SAM_APDU [00:03:30]CAPDU: 80 17 00 00 [00:03:30]Write to MH i2c: E2 08 00 14 0C 80 17 00 00 00 00 00 00 A0 [00:03:30]Write i2c OK [00:03:30]MH_I2C_Read... [00:03:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:03:30]Read from MH i2c: E2 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: E2 CD 00 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: E2 CD 00 14 0C 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 84 [00:03:30]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:03:30]wFMCommunicate OK [00:03:30]SAM_PROTO_GetShiftData done [00:03:30]requested_item shift.sale.total_cash is exist - process it [00:03:30]requested_item shift.sale_refund.total is exist - process it [00:03:30]requested_item shift.sale_refund.total_cash is exist - process it [00:03:30]requested_item shift.buy.total is exist - process it [00:03:30]requested_item shift.buy.total_cash is exist - process it [00:03:30]produce_requested_data done [00:03:30]produce_requested_data return {"fm.sale.total":116850018.08,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":192213.57,"shift.sale.total_cash":154861.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:03:30]process_action_free get_value [00:03:30]json_value_free [00:03:30]json_value_free done [00:03:30]process_json_proto returns [00:03:30]Send response to host [00:03:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":116850018.08,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":192213.57,"shift.sale.total_cash":154861.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:03:30]free response buf [00:03:30]execute_script done [00:03:30]execute_script returns [00:03:30]free content buf [00:03:30]Sock 8.Close socket [00:03:30]Sock 8.Thread stoped [00:03:30]accept exits with 9 [00:03:30]New connection [00:03:30]New thread 3066735972 created [00:03:30]Thread 3066592612 joined [00:03:30]Waiting for new connection... [00:03:30] Sock 9.Parse request [00:03:30]Sock 9.Check first char [00:03:30]Sock 9.First char is OK [00:03:30]request: POST /json_proto HTTP/1.0 [00:03:30]Method: POST [00:03:30]URL: /json_proto [00:03:30]Method is POST - this is cgi request [00:03:30]url: /json_proto [00:03:30]query_string will be loaded in cgi processing [00:03:30]execute_cgi json_proto POST (null) [00:03:30]execute_cgi path=json_proto method=POST [00:03:30]POST find Content-Length [00:03:30]Host: 172.17.62.5:8080 [00:03:30]Content-Length: 272 [00:03:30]Content-Type: application/json [00:03:30] [00:03:30]POST finish read [00:03:30]Found Content-Length = 272 [00:03:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:30]execute_script... [00:03:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u0430\u0431\u0430\u043B\u0434\u0438\u0435\u0432\u0430 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:30]POST & json_proto [00:03:30]process_json_proto [00:03:30]json parsed OK: [00:03:30]protocol is kg_v1.0 [00:03:30]action value=close_shift [00:03:30]process_action close_shift [00:03:30]cmd_close_shift [00:03:30]MH_GetDate [00:03:30]Write to MH i2c: F0 00 00 15 0C 10 [00:03:30]Write i2c OK [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: F0 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: F0 09 00 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: F0 09 00 15 0C 00 54 06 23 66 F4 E9 65 64 A2 [00:03:30]GetLastDocTimeStamp 1713571368 [00:03:30]current date 1713571412 [00:03:30]FM_GetShiftState [00:03:30]SAM_PROTO_GetShiftState [00:03:30]wFMCommunicate request_size=4 [00:03:30]MH_SAM_APDU [00:03:30]CAPDU: 80 13 01 00 [00:03:30]Write to MH i2c: E2 08 00 16 0C 80 13 01 00 00 00 00 00 9F [00:03:31]Write i2c OK [00:03:31]MH_I2C_Read... [00:03:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:31]Read from MH i2c: E2 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: E2 0E 00 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: E2 0E 00 16 0C 00 09 00 01 99 B9 21 66 00 00 00 00 90 00 84 [00:03:31]RAPDU: 09 00 01 99 B9 21 66 00 00 00 00 90 00 [00:03:31]wFMCommunicate OK [00:03:31]SAM_PROTO_GetShiftState done [00:03:31]FM_GetShiftState done [00:03:31]KKMCreateCloseShiftDocument [00:03:31]Load OK [00:03:31]Malloc new data [00:03:31]MH_GetDate [00:03:31]Write to MH i2c: F0 00 00 17 0C 12 [00:03:31]Write i2c OK [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: F0 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: F0 09 00 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: F0 09 00 17 0C 00 54 06 23 66 F4 E9 65 64 A4 [00:03:31]Malloc new data [00:03:31]Malloc new data [00:03:31]Malloc new data [00:03:31]Malloc new data [00:03:31]KKMCreateCloseShiftDocument OK [00:03:31]KKMSetCloseShiftData OK [00:03:31]ProcessDocumentItem done err = 0, tmpTLVsize=75 [00:03:31]tlvbuf is 0173ED00 [00:03:31]KKMLoadAndSignCloseShiftData [00:03:31]SAM_PROTO_ProcessDocument [00:03:31]wFMCommunicate request_size=9 [00:03:31]MH_SAM_APDU [00:03:31]CAPDU: 80 15 01 00 04 05 00 4B 00 [00:03:31]Write to MH i2c: E2 0C 00 18 0C 80 15 01 00 04 00 05 00 4B 00 00 00 FB [00:03:31]Write i2c OK [00:03:31]MH_I2C_Read... [00:03:31]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:03:31]Read from MH i2c: E2 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: E2 03 00 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: E2 03 00 18 0C 00 90 00 98 [00:03:31]RAPDU: 90 00 [00:03:31]wFMCommunicate OK [00:03:31]wFMCommunicate request_size=23 [00:03:31]MH_SAM_APDU [00:03:31]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:03:31]Write to MH i2c: E2 1A 00 19 0C 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 9A [00:03:31]Write i2c OK [00:03:31]MH_I2C_Read... [00:03:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:31]Read from MH i2c: E2 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: E2 03 00 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: E2 03 00 19 0C 00 90 00 99 [00:03:31]RAPDU: 90 00 [00:03:31]wFMCommunicate OK [00:03:31]wFMCommunicate request_size=34 [00:03:31]MH_SAM_APDU [00:03:31]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 A2 D0 B0 D0 B1 D0 B0 D0 BB D0 B4 D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9C 2E 20 [00:03:31]Write to MH i2c: E2 25 00 1A 0C 80 15 02 00 1D 00 FD 03 19 00 D0 A2 D0 B0 D0 B1 D0 B0 D0 BB D0 B4 D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9C 2E 20 00 00 E4 [00:03:31]Write i2c OK [00:03:31]MH_I2C_Read... [00:03:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:31]Read from MH i2c: E2 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: E2 03 00 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: E2 03 00 1A 0C 00 90 00 9A [00:03:31]RAPDU: 90 00 [00:03:31]wFMCommunicate OK [00:03:31]wFMCommunicate request_size=13 [00:03:31]MH_SAM_APDU [00:03:31]CAPDU: 80 15 02 00 08 F4 03 04 00 54 06 23 66 [00:03:31]Write to MH i2c: E2 10 00 1B 0C 80 15 02 00 08 00 F4 03 04 00 54 06 23 66 00 00 95 [00:03:31]Write i2c OK [00:03:31]MH_I2C_Read... [00:03:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:31]Read from MH i2c: E2 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: E2 03 00 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: E2 03 00 1B 0C 00 90 00 9B [00:03:31]RAPDU: 90 00 [00:03:31]wFMCommunicate OK [00:03:31]wFMCommunicate request_size=25 [00:03:31]MH_SAM_APDU [00:03:31]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 [00:03:31]Write to MH i2c: E2 1C 00 1C 0C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 00 00 0A [00:03:31]Write i2c OK [00:03:31]MH_I2C_Read... [00:03:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:31]Read from MH i2c: E2 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: E2 03 00 [00:03:31]MH_I2C_Read... [00:03:31]Read from MH i2c: E2 03 00 1C 0C 00 90 00 9C [00:03:31]RAPDU: 90 00 [00:03:31]wFMCommunicate OK [00:03:31]wFMCommunicate request_size=4 [00:03:31]MH_SAM_APDU [00:03:31]CAPDU: 80 15 03 00 [00:03:31]Write to MH i2c: E2 08 00 1D 0C 80 15 03 00 00 00 00 00 AA [00:03:31]Write i2c OK [00:03:31]MH_I2C_Read... [00:03:32]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:03:32]Read from MH i2c: E2 [00:03:32]MH_I2C_Read... [00:03:32]Read from MH i2c: E2 FD 00 [00:03:32]MH_I2C_Read... [00:03:32]Read from MH i2c: E2 FD 00 1D 0C 00 F3 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0E 2B 01 00 0E 04 04 00 72 01 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B3 00 00 00 AA 04 AC 04 6E 04 04 00 B1 00 00 00 69 04 9D 00 6F 04 04 00 B1 00 00 00 B1 04 04 00 6D 4B 25 01 70 04 03 00 94 4C EC 72 04 03 00 D9 FE 38 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 4A 27 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 97 98 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 01 [00:03:32]RAPDU: F3 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0E 2B 01 00 0E 04 04 00 72 01 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B3 00 00 00 AA 04 AC 04 6E 04 04 00 B1 00 00 00 69 04 9D 00 6F 04 04 00 B1 00 00 00 B1 04 04 00 6D 4B 25 01 70 04 03 00 94 4C EC 72 04 03 00 D9 FE 38 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 4A 27 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 97 98 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:03:32]wFMCommunicate OK [00:03:32]SAM_PROTO_ProcessDocument answer len = 1267 [00:03:32]SAM_PROTO_ProcessDocument remain to read = 1019 [00:03:32]wFMCommunicate request_size=4 [00:03:32]MH_SAM_APDU [00:03:32]CAPDU: 80 17 00 00 [00:03:32]Write to MH i2c: E2 08 00 1E 0C 80 17 00 00 00 00 00 00 AA [00:03:32]Write i2c OK [00:03:32]MH_I2C_Read... [00:03:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:32]Read from MH i2c: E2 [00:03:32]MH_I2C_Read... [00:03:32]Read from MH i2c: E2 FD 00 [00:03:32]MH_I2C_Read... [00:03:32]Read from MH i2c: E2 FD 00 1E 0C 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FA [00:03:33]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:33]wFMCommunicate OK [00:03:33]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:03:33]SAM_PROTO_ProcessDocument remain to read = 769 [00:03:33]wFMCommunicate request_size=4 [00:03:33]MH_SAM_APDU [00:03:33]CAPDU: 80 17 00 00 [00:03:33]Write to MH i2c: E2 08 00 1F 0C 80 17 00 00 00 00 00 00 AB [00:03:33]Write i2c OK [00:03:33]MH_I2C_Read... [00:03:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:33]Read from MH i2c: E2 [00:03:33]MH_I2C_Read... [00:03:33]Read from MH i2c: E2 FD 00 [00:03:33]MH_I2C_Read... [00:03:33]Read from MH i2c: E2 FD 00 1F 0C 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 90 00 0D [00:03:33]RAPDU: 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 90 00 [00:03:33]wFMCommunicate OK [00:03:33]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:03:33]SAM_PROTO_ProcessDocument remain to read = 519 [00:03:33]wFMCommunicate request_size=4 [00:03:33]MH_SAM_APDU [00:03:33]CAPDU: 80 17 00 00 [00:03:33]Write to MH i2c: E2 08 00 20 0C 80 17 00 00 00 00 00 00 AC [00:03:33]Write i2c OK [00:03:33]MH_I2C_Read... [00:03:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:34]Read from MH i2c: E2 [00:03:34]MH_I2C_Read... [00:03:34]Read from MH i2c: E2 FD 00 [00:03:34]MH_I2C_Read... [00:03:34]Read from MH i2c: E2 FD 00 20 0C 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 OFD Sender: No OFD packet to send [00:03:34]01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3D [00:03:34]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:34]wFMCommunicate OK [00:03:34]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:03:34]SAM_PROTO_ProcessDocument remain to read = 269 [00:03:34]wFMCommunicate request_size=4 [00:03:34]MH_SAM_APDU [00:03:34]CAPDU: 80 17 00 00 [00:03:34]Write to MH i2c: E2 08 00 21 0C 80 17 00 00 00 00 00 00 AD [00:03:34]Write i2c OK [00:03:34]MH_I2C_Read... [00:03:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:34]Read from MH i2c: E2 [00:03:34]MH_I2C_Read... [00:03:34]Read from MH i2c: E2 FD 00 [00:03:34]MH_I2C_Read... [00:03:34]Read from MH i2c: E2 FD 00 21 0C 00 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6E [00:03:34]RAPDU: 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:35]wFMCommunicate OK [00:03:35]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:03:35]SAM_PROTO_ProcessDocument remain to read = 19 [00:03:35]wFMCommunicate request_size=4 [00:03:35]MH_SAM_APDU [00:03:35]CAPDU: 80 17 00 00 [00:03:35]Write to MH i2c: E2 08 00 22 0C 80 17 00 00 00 00 00 00 AE [00:03:35]Write i2c OK [00:03:35]MH_I2C_Read... [00:03:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 19! [00:03:35]Read from MH i2c: E2 [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: E2 16 00 [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: E2 16 00 22 0C 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 EC C4 79 22 E4 B0 90 00 CD [00:03:35]RAPDU: F6 03 01 00 06 F7 03 00 00 35 04 06 00 EC C4 79 22 E4 B0 90 00 [00:03:35]wFMCommunicate OK [00:03:35]SAM_PROTO_ProcessDocument received (without SW) 19 bytes [00:03:35]SAM_PROTO_ProcessDocument done [00:03:35]1209 (1) - 1.0 - номер версии ФФД [00:03:35]1041 (16) - 0000000000874652 - номер ФМ [00:03:35]1040 (4) - 76558 - номер ФД [00:03:35]1038 (4) - 370 - номер смены [00:03:35]1118 (4) - 177 - количество кассовых чеков за смену [00:03:35]1111 (4) - 179 - общее количество ФД за смену [00:03:35]1194 (1196) - счетчики итогов смены [00:03:35] 1134 (4) - 177 - количество чеков со всеми признаками расчетов [00:03:35] 1129 (157) - счетчики операций «приход» [00:03:35] 1135 (4) - 177 - количество чеков по признаку расчетов [00:03:35] 1201 (4) - 192213.57 - общая итоговая сумма в чеках [00:03:35] 1136 (3) - 154861.00 - итоговая сумма в чеках наличными [00:03:35] 1138 (3) - 37352.57 - итоговая сумма в чеках безналичными [00:03:35] 1024 (123) - суммы налогов [00:03:35] 1006 (9) - суммы НДС [00:03:35] 1010 (1) - 0% - код ставки НДС [00:03:35] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:35] 1006 (12) - суммы НДС [00:03:35] 1010 (1) - 12% - код ставки НДС [00:03:35] 1011 (3) - 20416.74 - сумма НДС по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 0% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (12) - суммы НСП [00:03:35] 1014 (1) - 1% - код ставки НСП [00:03:35] 1015 (3) - 1701.35 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 2% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 3% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 5% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 0,50% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 1,50% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1130 (141) - счетчики операций «возврат прихода» [00:03:35] 1135 (4) - 0 - количество чеков по признаку расчетов [00:03:35] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:03:35] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:03:35] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:03:35] 1024 (117) - суммы налогов [00:03:35] 1006 (9) - суммы НДС [00:03:35] 1010 (1) - 0% - код ставки НДС [00:03:35] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:35] 1006 (9) - суммы НДС [00:03:35] 1010 (1) - 12% - код ставки НДС [00:03:35] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 0% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 1% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 2% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 3% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 5% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 0,50% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 1,50% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1131 (141) - счетчики операций «расход» [00:03:35] 1135 (4) - 0 - количество чеков по признаку расчетов [00:03:35] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:03:35] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:03:35] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:03:35] 1024 (117) - суммы налогов [00:03:35] 1006 (9) - суммы НДС [00:03:35] 1010 (1) - 0% - код ставки НДС [00:03:35] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:35] 1006 (9) - суммы НДС [00:03:35] 1010 (1) - 12% - код ставки НДС [00:03:35] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 0% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 1% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 2% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 3% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 5% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 0,50% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 1,50% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1132 (141) - счетчики операций «возврат расхода» [00:03:35] 1135 (4) - 0 - количество чеков по признаку расчетов [00:03:35] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:03:35] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:03:35] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:03:35] 1024 (117) - суммы налогов [00:03:35] 1006 (9) - суммы НДС [00:03:35] 1010 (1) - 0% - код ставки НДС [00:03:35] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:35] 1006 (9) - суммы НДС [00:03:35] 1010 (1) - 12% - код ставки НДС [00:03:35] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 0% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 1% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 2% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 3% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 5% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 0,50% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1007 (9) - суммы НСП [00:03:35] 1014 (1) - 1,50% - код ставки НСП [00:03:35] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:35] 1133 (588) - - счетчики коррекции - не используются [00:03:35]1077 (6) - 260328590075056 - ФПД [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1209 (04B9) [00:03:35]Malloc new data [00:03:35]Processing tag 1041 (0411) [00:03:35]Processing tag 1040 (0410) [00:03:35]Malloc new data [00:03:35]Processing tag 1038 (040E) [00:03:35]Malloc new data [00:03:35]Processing tag 1118 (045E) [00:03:35]Malloc new data [00:03:35]Processing tag 1111 (0457) [00:03:35]Malloc new data [00:03:35]Processing tag 1194 (04AA) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1134 (046E) [00:03:35]Malloc new data [00:03:35]Processing tag 1129 (0469) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1135 (046F) [00:03:35]Malloc new data [00:03:35]Processing tag 1201 (04B1) [00:03:35]Malloc new data [00:03:35]Processing tag 1136 (0470) [00:03:35]Malloc new data [00:03:35]Processing tag 1138 (0472) [00:03:35]Malloc new data [00:03:35]Processing tag 1024 (0400) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1006 (03EE) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1010 (03F2) [00:03:35]Malloc new data [00:03:35]Processing tag 1011 (03F3) [00:03:35]Malloc new data [00:03:35]SetTLVBufToDocument err=0 [00:03:35]Processing tag 1006 (03EE) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1010 (03F2) [00:03:35]Malloc new data [00:03:35]Processing tag 1011 (03F3) [00:03:35]Malloc new data [00:03:35]SetTLVBufToDocument err=0 [00:03:35]Processing tag 1007 (03EF) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1014 (03F6) [00:03:35]Malloc new data [00:03:35]Processing tag 1015 (03F7) [00:03:35]Malloc new data [00:03:35]SetTLVBufToDocument err=0 [00:03:35]Processing tag 1007 (03EF) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1014 (03F6) [00:03:35]Malloc new data [00:03:35]Processing tag 1015 (03F7) [00:03:35]Malloc new data [00:03:35]SetTLVBufToDocument err=0 [00:03:35]Processing tag 1007 (03EF) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1014 (03F6) [00:03:35]Malloc new data [00:03:35]Processing tag 1015 (03F7) [00:03:35]Malloc new data [00:03:35]SetTLVBufToDocument err=0 [00:03:35]Processing tag 1007 (03EF) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1014 (03F6) [00:03:35]Malloc new data [00:03:35]Processing tag 1015 (03F7) [00:03:35]Malloc new data [00:03:35]SetTLVBufToDocument err=0 [00:03:35]Processing tag 1007 (03EF) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1014 (03F6) [00:03:35]Malloc new data [00:03:35]Processing tag 1015 (03F7) [00:03:35]Malloc new data [00:03:35]SetTLVBufToDocument err=0 [00:03:35]Processing tag 1007 (03EF) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1014 (03F6) [00:03:35]Malloc new data [00:03:35]Processing tag 1015 (03F7) [00:03:35]Malloc new data [00:03:35]SetTLVBufToDocument err=0 [00:03:35]Processing tag 1007 (03EF) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1014 (03F6) [00:03:35]Malloc new data [00:03:35]Processing tag 1015 (03F7) [00:03:35]Malloc new data [00:03:35]SetTLVBufToDocument err=0 [00:03:35]SetTLVBufToDocument err=0 [00:03:35]SetTLVBufToDocument err=0 [00:03:35]Processing tag 1130 (046A) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1135 (046F) [00:03:35]Malloc new data [00:03:35]Processing tag 1201 (04B1) [00:03:35]Malloc new data [00:03:35]Processing tag 1136 (0470) [00:03:35]Malloc new data [00:03:35]Processing tag 1138 (0472) [00:03:35]Malloc new data [00:03:35]Processing tag 1024 (0400) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1006 (03EE) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1010 (03F2) [00:03:35]Malloc new data [00:03:35]Processing tag 1011 (03F3) [00:03:35]Malloc new data [00:03:35]SetTLVBufToDocument err=0 [00:03:35]Processing tag 1006 (03EE) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1010 (03F2) [00:03:35]Malloc new data [00:03:35]Processing tag 1011 (03F3) [00:03:35]Malloc new data [00:03:35]SetTLVBufToDocument err=0 [00:03:35]Processing tag 1007 (03EF) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1014 (03F6) [00:03:35]Malloc new data [00:03:35]Processing tag 1015 (03F7) [00:03:35]Malloc new data [00:03:35]SetTLVBufToDocument err=0 [00:03:35]Processing tag 1007 (03EF) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1014 (03F6) [00:03:35]Malloc new data [00:03:35]Processing tag 1015 (03F7) [00:03:35]Malloc new data [00:03:35]SetTLVBufToDocument err=0 [00:03:35]Processing tag 1007 (03EF) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1014 (03F6) [00:03:35]Malloc new data [00:03:35]Processing tag 1015 (03F7) [00:03:35]Malloc new data [00:03:35]SetTLVBufToDocument err=0 [00:03:35]Processing tag 1007 (03EF) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1014 (03F6) [00:03:35]Malloc new data [00:03:35]Processing tag 1015 (03F7) [00:03:35]Malloc new data [00:03:35]SetTLVBufToDocument err=0 [00:03:35]Processing tag 1007 (03EF) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1014 (03F6) [00:03:35]Malloc new data [00:03:35]Processing tag 1015 (03F7) [00:03:35]Malloc new data [00:03:35]SetTLVBufToDocument err=0 [00:03:35]Processing tag 1007 (03EF) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1014 (03F6) [00:03:35]Malloc new data [00:03:35]Processing tag 1015 (03F7) [00:03:35]Malloc new data [00:03:35]SetTLVBufToDocument err=0 [00:03:35]Processing tag 1007 (03EF) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1014 (03F6) [00:03:35]Malloc new data [00:03:35]Processing tag 1015 (03F7) [00:03:35]Malloc new data [00:03:35]SetTLVBufToDocument err=0 [00:03:35]SetTLVBufToDocument err=0 [00:03:35]SetTLVBufToDocument err=0 [00:03:35]Processing tag 1131 (046B) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1135 (046F) [00:03:35]Malloc new data [00:03:35]Processing tag 1201 (04B1) [00:03:35]Malloc new data [00:03:35]Processing tag 1136 (0470) [00:03:35]Malloc new data [00:03:35]Processing tag 1138 (0472) [00:03:35]Malloc new data [00:03:35]Processing tag 1024 (0400) [00:03:35]Load OK [00:03:35]SetTLVBufToDocument [00:03:35]Processing tag 1006 (03EE) [00:03:35]Load OK [00:03:36]SetTLVBufToDocument [00:03:36]Processing tag 1010 (03F2) [00:03:36]Malloc new data [00:03:36]Processing tag 1011 (03F3) [00:03:36]Malloc new data [00:03:36]SetTLVBufToDocument err=0 [00:03:36]Processing tag 1006 (03EE) [00:03:36]Load OK [00:03:36]SetTLVBufToDocument [00:03:36]Processing tag 1010 (03F2) [00:03:36]Malloc new data [00:03:36]Processing tag 1011 (03F3) [00:03:36]Malloc new data [00:03:36]SetTLVBufToDocument err=0 [00:03:36]Processing tag 1007 (03EF) [00:03:36]Load OK [00:03:36]SetTLVBufToDocument [00:03:36]Processing tag 1014 (03F6) [00:03:36]Malloc new data [00:03:36]Processing tag 1015 (03F7) [00:03:36]Malloc new data [00:03:36]SetTLVBufToDocument err=0 [00:03:36]Processing tag 1007 (03EF) [00:03:36]Load OK [00:03:36]SetTLVBufToDocument [00:03:36]Processing tag 1014 (03F6) [00:03:36]Malloc new data [00:03:36]Processing tag 1015 (03F7) [00:03:36]Malloc new data [00:03:36]SetTLVBufToDocument err=0 [00:03:36]Processing tag 1007 (03EF) [00:03:36]Load OK [00:03:36]SetTLVBufToDocument [00:03:36]Processing tag 1014 (03F6) [00:03:36]Malloc new data [00:03:36]Processing tag 1015 (03F7) [00:03:36]Malloc new data [00:03:36]SetTLVBufToDocument err=0 [00:03:36]Processing tag 1007 (03EF) [00:03:36]Load OK [00:03:36]SetTLVBufToDocument [00:03:36]Processing tag 1014 (03F6) [00:03:36]Malloc new data [00:03:36]Processing tag 1015 (03F7) [00:03:36]Malloc new data [00:03:36]SetTLVBufToDocument err=0 [00:03:36]Processing tag 1007 (03EF) [00:03:36]Load OK [00:03:36]SetTLVBufToDocument [00:03:36]Processing tag 1014 (03F6) [00:03:36]Malloc new data [00:03:36]Processing tag 1015 (03F7) [00:03:36]Malloc new data [00:03:36]SetTLVBufToDocument err=0 [00:03:36]Processing tag 1007 (03EF) [00:03:36]Load OK [00:03:36]SetTLVBufToDocument [00:03:36]Processing tag 1014 (03F6) [00:03:36]Malloc new data [00:03:36]Processing tag 1015 (03F7) [00:03:36]Malloc new data [00:03:36]SetTLVBufToDocument err=0 [00:03:36]Processing tag 1007 (03EF) [00:03:36]Load OK [00:03:36]SetTLVBufToDocument [00:03:36]Processing tag 1014 (03F6) [00:03:36]Malloc new data [00:03:36]Processing tag 1015 (03F7) [00:03:36]Malloc new data [00:03:36]SetTLVBufToDocument err=0 [00:03:36]SetTLVBufToDocument err=0 [00:03:36]SetTLVBufToDocument err=0 [00:03:36]Processing tag 1132 (046C) [00:03:36]Load OK [00:03:36]SetTLVBufToDocument [00:03:36]Processing tag 1135 (046F) [00:03:36]Malloc new data [00:03:36]Processing tag 1201 (04B1) [00:03:36]Malloc new data [00:03:36]Processing tag 1136 (0470) [00:03:36]Malloc new data [00:03:36]Processing tag 1138 (0472) [00:03:36]Malloc new data [00:03:36]Processing tag 1024 (0400) [00:03:36]Load OK [00:03:36]SetTLVBufToDocument [00:03:36]Processing tag 1006 (03EE) [00:03:36]Load OK [00:03:36]SetTLVBufToDocument [00:03:36]Processing tag 1010 (03F2) [00:03:36]Malloc new data [00:03:36]Processing tag 1011 (03F3) [00:03:36]Malloc new data [00:03:36]SetTLVBufToDocument err=0 [00:03:36]Processing tag 1006 (03EE) [00:03:36]Load OK [00:03:36]SetTLVBufToDocument [00:03:36]Processing tag 1010 (03F2) [00:03:36]Malloc new data [00:03:36]Processing tag 1011 (03F3) [00:03:36]Malloc new data [00:03:36]SetTLVBufToDocument err=0 [00:03:36]Processing tag 1007 (03EF) [00:03:36]Load OK [00:03:36]SetTLVBufToDocument [00:03:36]Processing tag 1014 (03F6) [00:03:36]Malloc new data [00:03:36]Processing tag 1015 (03F7) [00:03:36]Malloc new data [00:03:36]SetTLVBufToDocument err=0 [00:03:36]Processing tag 1007 (03EF) [00:03:36]Load OK [00:03:36]SetTLVBufToDocument [00:03:36]Processing tag 1014 (03F6) [00:03:36]Malloc new data [00:03:36]Processing tag 1015 (03F7) [00:03:36]Malloc new data [00:03:36]SetTLVBufToDocument err=0 [00:03:36]Processing tag 1007 (03EF) [00:03:36]Load OK [00:03:36]SetTLVBufToDocument [00:03:36]Processing tag 1014 (03F6) [00:03:36]Malloc new data [00:03:36]Processing tag 1015 (03F7) [00:03:36]Malloc new data [00:03:36]SetTLVBufToDocument err=0 [00:03:36]Processing tag 1007 (03EF) [00:03:36]Load OK [00:03:36]SetTLVBufToDocument [00:03:36]Processing tag 1014 (03F6) [00:03:36]Malloc new data [00:03:36]Processing tag 1015 (03F7) [00:03:36]Malloc new data [00:03:36]SetTLVBufToDocument err=0 [00:03:36]Processing tag 1007 (03EF) [00:03:36]Load OK [00:03:36]SetTLVBufToDocument [00:03:36]Processing tag 1014 (03F6) [00:03:36]Malloc new data [00:03:36]Processing tag 1015 (03F7) [00:03:36]Malloc new data [00:03:36]SetTLVBufToDocument err=0 [00:03:36]Processing tag 1007 (03EF) [00:03:36]Load OK [00:03:36]SetTLVBufToDocument [00:03:36]Processing tag 1014 (03F6) [00:03:36]Malloc new data [00:03:36]Processing tag 1015 (03F7) [00:03:36]Malloc new data [00:03:36]SetTLVBufToDocument err=0 [00:03:36]Processing tag 1007 (03EF) [00:03:36]Load OK [00:03:36]SetTLVBufToDocument [00:03:36]Processing tag 1014 (03F6) [00:03:36]Malloc new data [00:03:36]Processing tag 1015 (03F7) [00:03:36]Malloc new data [00:03:36]SetTLVBufToDocument err=0 [00:03:36]SetTLVBufToDocument err=0 [00:03:36]SetTLVBufToDocument err=0 [00:03:36]Processing tag 1133 (046D) [00:03:36]Malloc new data [00:03:36]SetTLVBufToDocument err=0 [00:03:36]Processing tag 1077 (0435) [00:03:36]Malloc new data [00:03:36]SetTLVBufToDocument err=0 [00:03:36]Malloc new data [00:03:36]SAM_PROTO_GetFMData [00:03:36]wFMCommunicate request_size=4 [00:03:36]MH_SAM_APDU [00:03:36]CAPDU: 80 13 03 00 [00:03:36]Write to MH i2c: E2 08 00 23 0C 80 13 03 00 00 00 00 00 AE [00:03:36]Write i2c OK [00:03:36]MH_I2C_Read... [00:03:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:36]Read from MH i2c: E2 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: E2 FD 00 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: E2 FD 00 23 0C 00 C8 04 85 04 C4 04 6E 04 04 00 29 28 01 00 69 04 A3 00 6F 04 04 00 3B 26 01 00 B1 04 05 00 50 FA 7A B8 02 70 04 05 00 30 87 E5 74 02 72 04 04 00 20 73 95 43 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 85 11 F9 49 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 F6 05 2A 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 F0 [00:03:37]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 29 28 01 00 69 04 A3 00 6F 04 04 00 3B 26 01 00 B1 04 05 00 50 FA 7A B8 02 70 04 05 00 30 87 E5 74 02 72 04 04 00 20 73 95 43 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 85 11 F9 49 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 F6 05 2A 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 [00:03:37]wFMCommunicate OK [00:03:37]wFMCommunicate request_size=4 [00:03:37]MH_SAM_APDU [00:03:37]CAPDU: 80 17 00 00 [00:03:37]Write to MH i2c: E2 08 00 24 0C 80 17 00 00 00 00 00 00 B0 [00:03:37]Write i2c OK [00:03:37]MH_I2C_Read... [00:03:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:37]Read from MH i2c: E2 [00:03:37]MH_I2C_Read... [00:03:37]Read from MH i2c: E2 FD 00 [00:03:37]MH_I2C_Read... [00:03:37]Read from MH i2c: E2 FD 00 24 0C 00 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 B4 2D 75 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 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 90 00 17 [00:03:37]RAPDU: 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 B4 2D 75 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 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 90 00 [00:03:37]wFMCommunicate OK [00:03:37]wFMCommunicate request_size=4 [00:03:37]MH_SAM_APDU [00:03:37]CAPDU: 80 17 00 00 [00:03:37]Write to MH i2c: E2 08 00 25 0C 80 17 00 00 00 00 00 00 B1 [00:03:37]Write i2c OK [00:03:37]MH_I2C_Read... [00:03:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:38]Read from MH i2c: E2 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: E2 FD 00 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: E2 FD 00 25 0C 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 89 [00:03:38]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:38]wFMCommunicate OK [00:03:38]wFMCommunicate request_size=4 [00:03:38]MH_SAM_APDU [00:03:38]CAPDU: 80 17 00 00 [00:03:38]Write to MH i2c: E2 08 00 26 0C 80 17 00 00 00 00 00 00 B2 [00:03:38]Write i2c OK [00:03:38]MH_I2C_Read... [00:03:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:38]Read from MH i2c: E2 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: E2 FD 00 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: E2 FD 00 26 0C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 2A [00:03:39]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 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 OFD Sender: No OFD packet to send [00:03:39]00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:03:39]wFMCommunicate OK [00:03:39]wFMCommunicate request_size=4 [00:03:39]MH_SAM_APDU [00:03:39]CAPDU: 80 17 00 00 [00:03:39]Write to MH i2c: E2 08 00 27 0C 80 17 00 00 00 00 00 00 B3 [00:03:39]Write i2c OK [00:03:39]MH_I2C_Read... [00:03:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:03:39]Read from MH i2c: E2 [00:03:39]MH_I2C_Read... [00:03:39]Read from MH i2c: E2 E5 00 [00:03:39]MH_I2C_Read... [00:03:39]Read from MH i2c: E2 E5 00 27 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 97 [00:03:39]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:03:40]wFMCommunicate OK [00:03:40]SAM_PROTO_GetFMData done [00:03:40]Malloc new data [00:03:40]Malloc new data [00:03:40]Malloc new data [00:03:40]Malloc new data [00:03:40]KKMLoadAndSignCloseShiftData err=0 [00:03:40]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Табалдиева М. 20.04.2024 00:03 Смена: 370 РНМ: 0000000000091573 ЗНМ: 0300000141 СНО: Общий режим Чеков за смену: 177 ФД за смену: 179 Всего чеков: 177 ИТОГИ ПРИХОД Чеков: 177 Общий итог: 192213.57 Итого наличными: 154861.00 Итого безнал.: 37352.57 НДС 0% : 0.00 НДС 12% : 20416.74 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1701.35 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 154861.00 НС Приход: 116850018.08 НС Возвр.Прихода: 46594150.80 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 76558 ФМ: 0000000000874652 ФПД: 260328590075056 [00:03:40]StoreToDocumentArchive [00:03:40]shift 370 fd 76558 [00:03:40]save to /storage/0370/doc_00076558 [00:03:40]save last doc name /storage/0370/doc_00076558 to /storage/kkm_last_doc_name [00:03:40]save OK [00:03:40]Clear old archive folders... [00:03:40]Remove dir /storage/0266 [00:03:40]opendir ok [00:03:40]file . [00:03:40]file .. [00:03:40]file doc_1713571376 [00:03:40]remove file /storage/0266/doc_1713571376 [00:03:40]remove dir /storage/0266 [00:03:40]NVStorageSaveData kkm_registers [00:03:40]File name is /storage/kkm_registers [00:03:40]Write 24 bytes [00:03:40]NVStorageSaveData done [00:03:40]NVStorageSaveData kkm_registers [00:03:40]File name is /storage/kkm_registers [00:03:40]Write 24 bytes [00:03:40]NVStorageSaveData done [00:03:40]ProcessDocumentItem done err = 0, tmpTLVsize=1385 [00:03:40]tlvbuf is 01666010 [00:03:40]SAM_PROTO_ClearQueue [00:03:40]wFMCommunicate request_size=4 [00:03:40]MH_SAM_APDU [00:03:40]CAPDU: 80 09 00 00 [00:03:40]Write to MH i2c: E2 08 00 28 0C 80 09 00 00 00 00 00 00 A6 [00:03:40]Write i2c OK [00:03:40]MH_I2C_Read... [00:03:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:40]Read from MH i2c: E2 [00:03:40]MH_I2C_Read... [00:03:40]Read from MH i2c: E2 03 00 [00:03:40]MH_I2C_Read... [00:03:40]Read from MH i2c: E2 03 00 28 0C 00 90 00 A8 [00:03:40]RAPDU: 90 00 [00:03:40]wFMCommunicate OK [00:03:40]SAM_PROTO_ClearQueue done [00:03:40]KKMCreateOFDPacket [00:03:40]OFDProtocolAddRootSTLVToBuf [00:03:40]FM_MakeSignedData [00:03:40]FM_MakeSignedData [00:03:40]SAM_PROTO_SignData [00:03:40]wFMCommunicate request_size=4 [00:03:40]MH_SAM_APDU [00:03:40]CAPDU: 80 0D 01 02 [00:03:40]Write to MH i2c: E2 08 00 29 0C 80 0D 01 02 00 00 00 00 AE [00:03:40]Write i2c OK [00:03:40]MH_I2C_Read... [00:03:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:40]Read from MH i2c: E2 [00:03:40]MH_I2C_Read... [00:03:40]Read from MH i2c: E2 03 00 [00:03:40]MH_I2C_Read... [00:03:40]Read from MH i2c: E2 03 00 29 0C 00 90 00 A9 [00:03:40]RAPDU: 90 00 [00:03:40]wFMCommunicate OK [00:03:40]wFMCommunicate request_size=255 [00:03:40]MH_SAM_APDU [00:03:40]CAPDU: 80 0D 02 02 FA 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A2 D0 B0 D0 B1 D0 B0 D0 BB D0 B4 D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9C 2E 20 F4 03 04 00 54 06 23 66 0E 04 04 00 72 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 5E 04 04 00 B1 00 00 00 57 04 04 00 B3 00 00 00 AA 04 D7 04 6E 04 04 00 B1 00 00 00 69 04 A4 00 6F 04 04 00 B1 00 00 00 B1 04 04 00 6D 4B 25 01 70 04 03 00 94 4C EC 72 04 03 00 D9 FE 38 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 4A 27 1F 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 [00:03:40]Write to MH i2c: E2 02 01 2A 0C 80 0D 02 02 FA 00 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A2 D0 B0 D0 B1 D0 B0 D0 BB D0 B4 D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9C 2E 20 F4 03 04 00 54 06 23 66 0E 04 04 00 72 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 5E 04 04 00 B1 00 00 00 57 04 04 00 B3 00 00 00 AA 04 D7 04 6E 04 04 00 B1 00 00 00 69 04 A4 00 6F 04 04 00 B1 00 00 00 B1 04 04 00 6D 4B 25 01 70 04 03 00 94 4C EC 72 04 03 00 D9 FE 38 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 4A 27 1F 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 00 00 74 [00:03:40]Write i2c OK [00:03:40]MH_I2C_Read... [00:03:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:40]Read from MH i2c: E2 [00:03:40]MH_I2C_Read... [00:03:40]Read from MH i2c: E2 03 00 [00:03:40]MH_I2C_Read... [00:03:40]Read from MH i2c: E2 03 00 2A 0C 00 90 00 AA [00:03:40]RAPDU: 90 00 [00:03:40]wFMCommunicate OK [00:03:40]wFMCommunicate request_size=255 [00:03:40]MH_SAM_APDU [00:03:40]CAPDU: 80 0D 02 02 FA 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 97 98 02 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 [00:03:41]Write to MH i2c: E2 02 01 2B 0C 80 0D 02 02 FA 00 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 97 98 02 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 00 00 4E [00:03:41]Write i2c OK [00:03:41]MH_I2C_Read... [00:03:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:41]Read from MH i2c: E2 [00:03:41]MH_I2C_Read... [00:03:41]Read from MH i2c: E2 03 00 [00:03:41]MH_I2C_Read... [00:03:41]Read from MH i2c: E2 03 00 2B 0C 00 90 00 AB [00:03:41]RAPDU: 90 00 [00:03:41]wFMCommunicate OK [00:03:41]wFMCommunicate request_size=255 [00:03:41]MH_SAM_APDU [00:03:41]CAPDU: 80 0D 02 02 FA 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 [00:03:41]Write to MH i2c: E2 02 01 2C 0C 80 0D 02 02 FA 00 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 00 00 78 [00:03:42]Write i2c OK [00:03:42]MH_I2C_Read... [00:03:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:42]Read from MH i2c: E2 [00:03:42]MH_I2C_Read... [00:03:42]Read from MH i2c: E2 03 00 [00:03:42]MH_I2C_Read... [00:03:42]Read from MH i2c: E2 03 00 2C 0C 00 90 00 AC [00:03:42]RAPDU: 90 00 [00:03:42]wFMCommunicate OK [00:03:42]wFMCommunicate request_size=255 [00:03:42]MH_SAM_APDU [00:03:42]CAPDU: 80 0D 02 02 FA 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 [00:03:42]Write to MH i2c: E2 02 01 2D 0C 80 0D 02 02 FA 00 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 00 00 82 [00:03:42]Write i2c OK [00:03:42]MH_I2C_Read... [00:03:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:43]Read from MH i2c: E2 [00:03:43]MH_I2C_Read... [00:03:43]Read from MH i2c: E2 03 00 [00:03:43]MH_I2C_Read... [00:03:43]Read from MH i2c: E2 03 00 2D 0C 00 90 00 AD [00:03:43]RAPDU: 90 00 [00:03:43]wFMCommunicate OK [00:03:43]wFMCommunicate request_size=255 [00:03:43]MH_SAM_APDU [00:03:43]CAPDU: 80 0D 02 02 FA F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 [00:03:43]Write to MH i2c: E2 02 01 2E 0C 80 0D 02 02 FA 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 00 43 [00:03:43]Write i2c OK [00:03:43]MH_I2C_Read... [00:03:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:43]Read from MH i2c: E2 [00:03:43]MH_I2C_Read... [00:03:43]Read from MH i2c: E2 03 00 [00:03:43]MH_I2C_Read... [00:03:43]Read from MH i2c: E2 03 00 2E 0C 00 90 00 AE [00:03:43]RAPDU: 90 00 [00:03:43]wFMCommunicate OK [00:03:43]wFMCommunicate request_size=144 [00:03:43]MH_SAM_APDU [00:03:43]CAPDU: 80 0D 02 02 8B 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 0E 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 35 04 06 00 EC C4 79 22 E4 B0 [00:03:44]Write to MH i2c: E2 93 00 2F 0C 80 0D 02 02 8B 00 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 0E 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 35 04 06 00 EC C4 79 22 E4 B0 00 00 0B [00:03:44]Write i2c OK [00:03:44]MH_I2C_Read... [00:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:44]Read from MH i2c: E2 [00:03:44]MH_I2C_Read... [00:03:44]Read from MH i2c: E2 03 00 [00:03:44]MH_I2C_Read... [00:03:44]Read from MH i2c: E2 03 00 2F 0C 00 90 00 AF [00:03:44]RAPDU: 90 00 [00:03:44]wFMCommunicate OK [00:03:44]wFMCommunicate request_size=4 [00:03:44]MH_SAM_APDU [00:03:44]CAPDU: 80 0D 03 02 [00:03:44]Write to MH i2c: E2 08 00 30 0C 80 0D 03 02 00 00 00 00 B7 [00:03:44]OFD Sender: No OFD packet to send [00:03:44]Write i2c OK [00:03:44]MH_I2C_Read... [00:03:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:44]Read from MH i2c: E2 [00:03:44]MH_I2C_Read... [00:03:44]Read from MH i2c: E2 0B 00 [00:03:44]MH_I2C_Read... [00:03:44]Read from MH i2c: E2 0B 00 30 0C 00 19 5A 8C D8 AC 80 21 B6 90 00 92 [00:03:44]RAPDU: 19 5A 8C D8 AC 80 21 B6 90 00 [00:03:44]wFMCommunicate OK [00:03:44]SAM_PROTO_SignData done [00:03:44]FM_MakeSignedData done [00:03:44]CreateOFDProtocolMessage [00:03:44]wFMCommunicate request_size=4 [00:03:44]MH_SAM_APDU [00:03:44]CAPDU: 80 11 00 00 [00:03:44]Write to MH i2c: E2 08 00 31 0C 80 11 00 00 00 00 00 00 B7 [00:03:44]Write i2c OK [00:03:44]MH_I2C_Read... [00:03:44]Read from MH i2c: E2 [00:03:44]MH_I2C_Read... [00:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:44]Read from MH i2c: E2 17 00 [00:03:44]MH_I2C_Read... [00:03:44]Read from MH i2c: E2 17 00 31 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0A [00:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:03:44]wFMCommunicate OK [00:03:44]CreateOFDProtocolMessage done [00:03:44]OFDSenderStorePacket 76558 [00:03:44]StoreOFDPacket docnum=76558 [00:03:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 7D 05 00 00 6F 52 75 05 CF DA 5A 05 01 00 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A2 D0 B0 D0 B1 D0 B0 D0 BB D0 B4 D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9C 2E 20 F4 03 04 00 54 06 23 66 0E 04 04 00 72 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 5E 04 04 00 B1 00 00 00 57 04 04 00 B3 00 00 00 AA 04 D7 04 6E 04 04 00 B1 00 00 00 69 04 A4 00 6F 04 04 00 B1 00 00 00 B1 04 04 00 6D 4B 25 01 70 04 03 00 94 4C EC 72 04 03 00 D9 FE 38 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 4A 27 1F 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 97 98 02 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 0E 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 35 04 06 00 EC C4 79 22 E4 B0 19 5A 8C D8 AC 80 21 B6 [00:03:45]CheckFolder [00:03:45]dirname=/storage/ofd_packets [00:03:45]CheckFolder done [00:03:45]ProducePacketName [00:03:45]name=ofd_packets/00076558 [00:03:45]NVStorageSaveData ofd_packets/00076558 [00:03:45]File name is /storage/ofd_packets/00076558 [00:03:45]Write 1435 bytes [00:03:45]NVStorageSaveData done [00:03:45]OFDSenderStorePacket done [00:03:45]KKMCreateOFDPacket done [00:03:45]NVStorageSaveData kkm_last_timestamp [00:03:45]File name is /storage/kkm_last_timestamp [00:03:45]Write 4 bytes [00:03:45]NVStorageSaveData done [00:03:45]ExternCall_PrintAddStr [00:03:45]wPrintStart [00:03:45]Write to MH i2c: 01 00 00 32 0C 3E [00:03:45]Write i2c OK [00:03:45]MH_I2C_Read... [00:03:45]Read from MH i2c: 01 [00:03:45]MH_I2C_Read... [00:03:45]OFD Sender: Processing packet 76558 [packets to send 128, broken 127] [00:03:45]ProducePacketName [00:03:45]name=ofd_packets/00076558 [00:03:45]OFD Sender: To server: pG, [00:03:45]CommunicateWithHost lk.salyk.kg:30040 [00:03:45]ConnectInit lk.salyk.kg [00:03:45]Read from MH i2c: 01 07 00 [00:03:45]MH_I2C_Read... [00:03:45]Read from MH i2c: 01 07 00 32 0C 00 00 00 00 00 FF 0F 53 [00:03:45]RasterBufferAndPrint [00:03:45]line Отчет о закрытии смены [00:03:45]line ФФД: 1.0 [00:03:45]line ИНН: 02508201610067 [00:03:45]line Кассир: Табалдиева М. [00:03:45]line 20.04.2024 00:03 [00:03:45]line Смена: 370 [00:03:45]line РНМ: 0000000000091573 [00:03:45]line ЗНМ: 0300000141 [00:03:45]line СНО: Общий режим [00:03:45]line Чеков за смену: 177 [00:03:45]line ФД за смену: 179 [00:03:45]line Всего чеков: 177 [00:03:45]line ИТОГИ ПРИХОД [00:03:45]line Чеков: 177 [00:03:45]line Общий итог: 192213.57 [00:03:45]line Итого наличными: 154861.00 [00:03:45]line Итого безнал.: 37352.57 [00:03:45]line НДС 0% : 0.00 [00:03:45]line НДС 12% : 20416.74 [00:03:45]line НСП 0% : 0.00 [00:03:45]line НСП 1,50% : 0.00 [00:03:45]line НСП 0,50% : 0.00 [00:03:45]line НСП 5% : 0.00 [00:03:45]line НСП 3% : 0.00 [00:03:45]line НСП 2% : 0.00 [00:03:45]line НСП 1% : 1701.35 [00:03:45]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:03:45]line Чеков: 0 [00:03:45]line Общий итог: 0.00 [00:03:45]line Итого наличными: 0.00 [00:03:45]line Итого безнал.: 0.00 [00:03:45]line НДС 0% : 0.00 [00:03:45]line НДС 12% : 0.00 [00:03:45]line НСП 0% : 0.00 [00:03:45]line НСП 1,50% : 0.00 [00:03:45]line НСП 0,50% : 0.00 [00:03:45]line НСП 5% : 0.00 [00:03:45]line НСП 3% : 0.00 [00:03:45]line НСП 2% : 0.00 [00:03:45]line НСП 1% : 0.00 [00:03:45]line ИТОГИ РАСХОД [00:03:45]line Чеков: 0 [00:03:45]line Общий итог: 0.00 [00:03:45]line Итого наличными: 0.00 [00:03:45]line Итого безнал.: 0.00 [00:03:45]line НДС 0% : 0.00 [00:03:45]line НДС 12% : 0.00 [00:03:45]line НСП 0% : 0.00 [00:03:45]line НСП 1,50% : 0.00 [00:03:45]line НСП 0,50% : 0.00 [00:03:45]line НСП 5% : 0.00 [00:03:45]line НСП 3% : 0.00 [00:03:45]line НСП 2% : 0.00 [00:03:45]line НСП 1% : 0.00 [00:03:45]line ИТОГИ ВОЗВРАТ РАСХОДА [00:03:45]line Чеков: 0 [00:03:45]line Общий итог: 0.00 [00:03:45]line Итого наличными: 0.00 [00:03:45]line Итого безнал.: 0.00 [00:03:45]line НДС 0% : 0.00 [00:03:45]line НДС 12% : 0.00 [00:03:45]line НСП 0% : 0.00 [00:03:45]line НСП 1,50% : 0.00 [00:03:45]line НСП 0,50% : 0.00 [00:03:45]line НСП 5% : 0.00 [00:03:45]line НСП 3% : 0.00 [00:03:45]line НСП 2% : 0.00 [00:03:45]line НСП 1% : 0.00 [00:03:45]line Сумма внесений: 0.00 [00:03:45]line Сумма выплат: 0.00 [00:03:45]line Нал. в кассе: 154861.00 [00:03:45]line НС Приход: 116850018.08 [00:03:45]line НС Возвр.Прихода: 46594150.80 [00:03:45]line НС Расход: 0.00 [00:03:45]line НС Возвр.Расхода: 0.00 [00:03:45]line ФД: 76558 [00:03:45]line ФМ: 0000000000874652 [00:03:45]line ФПД: 260328590075056 [00:03:45]written 0, free lines is 4095 [00:03:45]Connected sock=11 [00:03:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 7D 05 00 00 6F 52 75 05 CF DA 5A 05 01 00 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A2 D0 B0 D0 B1 D0 B0 D0 BB D0 B4 D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9C 2E 20 F4 03 04 00 54 06 23 66 0E 04 04 00 72 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 5E 04 04 00 B1 00 00 00 57 04 04 00 B3 00 00 00 AA 04 D7 04 6E 04 04 00 B1 00 00 00 69 04 A4 00 6F 04 04 00 B1 00 00 00 B1 04 04 00 6D 4B 25 01 70 04 03 00 94 4C EC 72 04 03 00 D9 FE 38 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 4A 27 1F 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 97 98 02 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE Write to MH i2c: 03 01 0A 00 00 00 F2 83 0C 03 01 00 01 F3 03 01 00 00 EF 03 0A 8F 00 [00:03:46]F6 03 01 00 00 F7 03 01 Write i2c OK [00:03:46]00 MH_I2C_Read... [00:03:46]00 Read from MH i2c: EF 01 03 [00:03:46]0A MH_I2C_Read... [00:03:46]00 Read from MH i2c: F6 01 03 07 01 00 00 06 F7 03 01 00 00 EF 03 0A 00 F6 [00:03:46]03 MH_I2C_Read... [00:03:46]01 Read from MH i2c: 00 01 05 07 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 83 04 0C F7 00 03 00 01 00 00 00 00 00 EF 4E 03 0B 0A EF 00 F6 03 01 00 03 F7 03 01 00 00 EF [00:03:46]03 RasterBufferAndPrint [00:03:46]0A line [00:03:46]00 line [00:03:46]F6 line [00:03:46]03 line [00:03:46]01 line [00:03:46]00 02 written 0, free lines is 3092 [00:03:46]F7 03 01 00 00 EF 03 0A 00 F6 03 01 MH_Cut [00:03:46]00 Write to MH i2c: 01 D1 F7 01 03 00 01 8A 00 0C 00 01 6D 68 04 [00:03:46]4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 Write i2c OK [00:03:46]6F MH_I2C_Read... [00:03:46]04 Read from MH i2c: 04 D1 00 [00:03:46]00 00 00 00 B1 04 00 00 70 04 00 00 MH_I2C_Read... [00:03:46]72 Read from MH i2c: D1 04 01 00 00 00 [00:03:46]00 MH_I2C_Read... [00:03:46]04 Read from MH i2c: 75 D1 00 01 EE 00 03 8A 09 0C 00 00 F2 67 [00:03:46]Write to MH i2c: 01 00 00 8B 0C 97 [00:03:46]03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 Write i2c OK [00:03:46]01 MH_I2C_Read... [00:03:46]00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0E 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 35 04 06 00 EC C4 79 22 E4 B0 19 5A 8C D8 AC 80 21 B6 [00:03:47]*** Cut start [00:03:47]*** Partial cut [00:03:47]*** CUTSNS_PIN = 1 [00:03:47]*** CUTSNS_PIN = 0 [00:03:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 4F BF 47 00 2A 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 34 36 35 32 10 04 04 00 0E 2B 01 00 F4 03 04 00 EC AD 22 66 B6 04 01 00 00 B9 B4 FE 17 56 1F D8 26 [00:03:47]CommunicateWithHost err = 0 [00:03:47]CheckOFDResponse [00:03:47]1017 (14) - 77093643461234 [00:03:47]1041 (16) - 0000000000874652 [00:03:47]1040 (4) - 76558 [00:03:47]1012 (4) - 19.04.2024 17:46 [00:03:47]1206 (1) - 0 [00:03:47]OFD Sender: Remove packet 76558 [00:03:47]ProducePacketName [00:03:47]name=ofd_packets/00076558 [00:03:47]NVStorageDeleteData [00:03:47]*** Brake cut motor [00:03:47]Read from MH i2c: 01 [00:03:47]MH_I2C_Read... [00:03:47]*** Stop cut motor [00:03:47]*** Cut end [00:03:47]Read from MH i2c: 01 07 00 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: 01 07 00 8B 0C 00 00 00 00 00 FF 0F AC [00:03:47]process_action close_shift done [00:03:47]requested_data is exist [00:03:47]produce_requested_data [00:03:47]requested_item fd.num is exist - process it [00:03:47]SAM_PROTO_GetFieldsCounters [00:03:47]wFMCommunicate request_size=4 [00:03:47]MH_SAM_APDU [00:03:47]CAPDU: 80 13 00 00 [00:03:47]Write to MH i2c: E2 08 00 8C 0C 80 13 00 00 00 00 00 00 14 [00:03:47]Write i2c OK [00:03:47]MH_I2C_Read... [00:03:47]OFD Sender: No OFD packet to send [00:03:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:47]Read from MH i2c: E2 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: E2 62 00 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: E2 62 00 8C 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0E 2B 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [00:03: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0E 2B 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:48]wFMCommunicate OK [00:03:48]SAM_PROTO_GetFieldsCounters done [00:03:48]requested_item shift.num is exist - process it [00:03:48]requested_item shift.opened is exist - process it [00:03:48]req_shift_opened [00:03:48]FM_GetShiftState [00:03:48]SAM_PROTO_GetShiftState [00:03:48]wFMCommunicate request_size=4 [00:03:48]MH_SAM_APDU [00:03:48]CAPDU: 80 13 01 00 [00:03:48]Write to MH i2c: E2 08 00 8D 0C 80 13 01 00 00 00 00 00 16 [00:03:48]Write i2c OK [00:03:48]MH_I2C_Read... [00:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:48]Read from MH i2c: E2 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 0E 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 0E 00 8D 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 21 [00:03:48]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:48]wFMCommunicate OK [00:03:48]SAM_PROTO_GetShiftState done [00:03:48]FM_GetShiftState done [00:03:48]req_shift_opened done [00:03:48]requested_item shift.open_date is exist - process it [00:03:48]req_shift_open_date [00:03:48]FM_GetShiftState [00:03:48]SAM_PROTO_GetShiftState [00:03:48]wFMCommunicate request_size=4 [00:03:48]MH_SAM_APDU [00:03:48]CAPDU: 80 13 01 00 [00:03:48]Write to MH i2c: E2 08 00 8E 0C 80 13 01 00 00 00 00 00 17 [00:03:48]Write i2c OK [00:03:48]MH_I2C_Read... [00:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:48]Read from MH i2c: E2 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 0E 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 0E 00 8E 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 22 [00:03:48]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:48]wFMCommunicate OK [00:03:48]SAM_PROTO_GetShiftState done [00:03:48]FM_GetShiftState done [00:03:48]req_shift_open_date done [00:03:48]produce_requested_data done [00:03:48]produce_requested_data return {"fd.num":76558,"shift.num":370,"shift.opened":0,"shift.open_date":0} [00:03:48]process_action_free close_shift [00:03:48]json_value_free [00:03:48]json_value_free done [00:03:48]process_json_proto returns [00:03:48]Send response to host [00:03:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":76558,"shift.num":370,"shift.opened":0,"shift.open_date":0}}} [00:03:48]free response buf [00:03:48]execute_script done [00:03:48]execute_script returns [00:03:48]free content buf [00:03:48]Sock 9.Close socket [00:03:48]Sock 9.Thread stoped [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05: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]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:49]OFD Sender: No OFD packet to send [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:30]accept exits with 8 [00:20:30]New connection [00:20:30]New thread 3066592612 created [00:20:30]Thread 3066735972 joined [00:20:30]Waiting for new connection... [00:20:30] Sock 8.Parse request [00:20:30]Sock 8.Check first char [00:20:30]Sock 8.First char is OK [00:20:30]request: POST /json_proto HTTP/1.0 [00:20:30]Method: POST [00:20:30]URL: /json_proto [00:20:30]Method is POST - this is cgi request [00:20:30]url: /json_proto [00:20:30]query_string will be loaded in cgi processing [00:20:30]execute_cgi json_proto POST (null) [00:20:30]execute_cgi path=json_proto method=POST [00:20:30]POST find Content-Length [00:20:30]Host: 172.17.62.5:8080 [00:20:30]Content-Length: 215 [00:20:30]Content-Type: application/json [00:20:30] [00:20:30]POST finish read [00:20:30]Found Content-Length = 215 [00:20:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:30]execute_script... [00:20:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:30]POST & json_proto [00:20:30]process_json_proto [00:20:30]json parsed OK: [00:20:30]protocol is kg_v1.0 [00:20:30]action value=get_value [00:20:30]process_action get_value [00:20:30]cmd_get_value [00:20:30]process_action get_value done [00:20:30]requested_data is exist [00:20:30]produce_requested_data [00:20:30]requested_item kkm.sn is exist - process it [00:20:30]requested_item kkm.ver is exist - process it [00:20:30]requested_item fm.sn is exist - process it [00:20:30]wFMCommunicate request_size=4 [00:20:30]MH_SAM_APDU [00:20:30]CAPDU: 80 11 00 00 [00:20:30]Write to MH i2c: E2 08 00 8F 0C 80 11 00 00 00 00 00 00 15 [00:20:30]Write i2c OK [00:20:30]MH_I2C_Read... [00:20:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:30]Read from MH i2c: E2 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 17 00 [00:20:30]MH_I2C_Read... [00:20:30]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 34 36 35 32 90 00 68 [00:20:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:20:30]wFMCommunicate OK [00:20:30]requested_item fd.num is exist - process it [00:20:30]SAM_PROTO_GetFieldsCounters [00:20:30]wFMCommunicate request_size=4 [00:20:30]MH_SAM_APDU [00:20:30]CAPDU: 80 13 00 00 [00:20:30]Write to MH i2c: E2 08 00 90 0C 80 13 00 00 00 00 00 00 18 [00:20:30]Write i2c OK [00:20:30]MH_I2C_Read... [00:20:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:30]Read from MH i2c: E2 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 62 00 [00:20:30]MH_I2C_Read... [00:20:30]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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0E 2B 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [00:20: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0E 2B 01 00 0E 04 04 00 72 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:30]wFMCommunicate OK [00:20:30]SAM_PROTO_GetFieldsCounters done [00:20:30]requested_item shift.num is exist - process it [00:20:30]requested_item shift.opened is exist - process it [00:20:30]req_shift_opened [00:20:30]FM_GetShiftState [00:20:30]SAM_PROTO_GetShiftState [00:20:30]wFMCommunicate request_size=4 [00:20:30]MH_SAM_APDU [00:20:30]CAPDU: 80 13 01 00 [00:20:30]Write to MH i2c: E2 08 00 91 0C 80 13 01 00 00 00 00 00 1A [00:20:30]Write i2c OK [00:20:30]MH_I2C_Read... [00:20:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:30]Read from MH i2c: E2 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 0E 00 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 0E 00 91 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 25 [00:20:30]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:20:30]wFMCommunicate OK [00:20:30]SAM_PROTO_GetShiftState done [00:20:30]FM_GetShiftState done [00:20:30]req_shift_opened done [00:20:30]requested_item shift.open_date is exist - process it [00:20:30]req_shift_open_date [00:20:30]FM_GetShiftState [00:20:30]SAM_PROTO_GetShiftState [00:20:30]wFMCommunicate request_size=4 [00:20:30]MH_SAM_APDU [00:20:30]CAPDU: 80 13 01 00 [00:20:30]Write to MH i2c: E2 08 00 92 0C 80 13 01 00 00 00 00 00 1B [00:20:30]Write i2c OK [00:20:30]MH_I2C_Read... [00:20:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:30]Read from MH i2c: E2 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 0E 00 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 0E 00 92 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 26 [00:20:30]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:20:30]wFMCommunicate OK [00:20:30]SAM_PROTO_GetShiftState done [00:20:30]FM_GetShiftState done [00:20:30]req_shift_open_date done [00:20:30]produce_requested_data done [00:20:30]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76558,"shift.num":370,"shift.opened":0,"shift.open_date":0} [00:20:30]process_action_free get_value [00:20:30]json_value_free [00:20:30]json_value_free done [00:20:30]process_json_proto returns [00:20:30]Send response to host [00:20:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76558,"shift.num":370,"shift.opened":0,"shift.open_date":0}}} [00:20:30]free response buf [00:20:30]execute_script done [00:20:30]execute_script returns [00:20:30]free content buf [00:20:30]Sock 8.Close socket [00:20:30]Sock 8.Thread stoped [00:20:30]accept exits with 9 [00:20:30]New connection [00:20:30]New thread 3066735972 created [00:20:30]Thread 3066592612 joined [00:20:30]Waiting for new connection... [00:20:30] Sock 9.Parse request [00:20:30]Sock 9.Check first char [00:20:30]Sock 9.First char is OK [00:20:30]request: POST /json_proto HTTP/1.0 [00:20:30]Method: POST [00:20:30]URL: /json_proto [00:20:30]Method is POST - this is cgi request [00:20:30]url: /json_proto [00:20:30]query_string will be loaded in cgi processing [00:20:30]execute_cgi json_proto POST (null) [00:20:30]execute_cgi path=json_proto method=POST [00:20:30]POST find Content-Length [00:20:30]Host: 172.17.62.5:8080 [00:20:30]Content-Length: 331 [00:20:30]Content-Type: application/json [00:20:30] [00:20:30]POST finish read [00:20:30]Found Content-Length = 331 [00:20:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:30]execute_script... [00:20:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:30]POST & json_proto [00:20:30]process_json_proto [00:20:30]json parsed OK: [00:20:30]protocol is kg_v1.0 [00:20:30]action value=get_value [00:20:30]process_action get_value [00:20:30]cmd_get_value [00:20:30]process_action get_value done [00:20:30]requested_data is exist [00:20:30]produce_requested_data [00:20:30]requested_item fm.sale.total is exist - process it [00:20:30]SAM_PROTO_GetFMData [00:20:30]wFMCommunicate request_size=4 [00:20:30]MH_SAM_APDU [00:20:30]CAPDU: 80 13 03 00 [00:20:30]Write to MH i2c: E2 08 00 93 0C 80 13 03 00 00 00 00 00 1E [00:20:30]Write i2c OK [00:20:30]MH_I2C_Read... [00:20:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:31]Read from MH i2c: E2 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 FD 00 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 FD 00 93 0C 00 C8 04 85 04 C4 04 6E 04 04 00 29 28 01 00 69 04 A3 00 6F 04 04 00 3B 26 01 00 B1 04 05 00 50 FA 7A B8 02 70 04 05 00 30 87 E5 74 02 72 04 04 00 20 73 95 43 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 85 11 F9 49 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 F6 05 2A 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 60 [00:20:31]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 29 28 01 00 69 04 A3 00 6F 04 04 00 3B 26 01 00 B1 04 05 00 50 FA 7A B8 02 70 04 05 00 30 87 E5 74 02 72 04 04 00 20 73 95 43 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 85 11 F9 49 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 F6 05 2A 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 [00:20:31]wFMCommunicate OK [00:20:31]wFMCommunicate request_size=4 [00:20:31]MH_SAM_APDU [00:20:31]CAPDU: 80 17 00 00 [00:20:31]Write to MH i2c: E2 08 00 94 0C 80 17 00 00 00 00 00 00 20 [00:20:31]Write i2c OK [00:20:31]MH_I2C_Read... [00:20:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:31]Read from MH i2c: E2 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 FD 00 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 FD 00 94 0C 00 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 B4 2D 75 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 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 90 00 87 [00:20:31]RAPDU: 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 B4 2D 75 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 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 90 00 [00:20:31]wFMCommunicate OK [00:20:31]wFMCommunicate request_size=4 [00:20:31]MH_SAM_APDU [00:20:31]CAPDU: 80 17 00 00 [00:20:31]Write to MH i2c: E2 08 00 95 0C 80 17 00 00 00 00 00 00 21 [00:20:31]Write i2c OK [00:20:31]MH_I2C_Read... [00:20:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:31]Read from MH i2c: E2 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 FD 00 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 FD 00 95 0C 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F9 [00:20:31]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:31]wFMCommunicate OK [00:20:31]wFMCommunicate request_size=4 [00:20:31]MH_SAM_APDU [00:20:31]CAPDU: 80 17 00 00 [00:20:31]Write to MH i2c: E2 08 00 96 0C 80 17 00 00 00 00 00 00 22 [00:20:31]Write i2c OK [00:20:31]MH_I2C_Read... [00:20:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:31]Read from MH i2c: E2 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 FD 00 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 FD 00 96 0C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 9A [00:20:31]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 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 90 00 [00:20:31]wFMCommunicate OK [00:20:31]wFMCommunicate request_size=4 [00:20:31]MH_SAM_APDU [00:20:31]CAPDU: 80 17 00 00 [00:20:31]Write to MH i2c: E2 08 00 97 0C 80 17 00 00 00 00 00 00 23 [00:20:31]Write i2c OK [00:20:31]MH_I2C_Read... [00:20:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:20:32]Read from MH i2c: E2 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 E5 00 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 E5 00 97 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 07 [00:20:32]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:32]wFMCommunicate OK [00:20:32]SAM_PROTO_GetFMData done [00:20:32]requested_item fm.sale_refund.total is exist - process it [00:20:32]requested_item fm.buy.total is exist - process it [00:20:32]requested_item shift.sale.total is exist - process it [00:20:32]SAM_PROTO_GetShiftData [00:20:32]wFMCommunicate request_size=4 [00:20:32]MH_SAM_APDU [00:20:32]CAPDU: 80 13 02 00 [00:20:32]Write to MH i2c: E2 08 00 98 0C 80 13 02 00 00 00 00 00 22 [00:20:32]Write i2c OK [00:20:32]MH_I2C_Read... [00:20:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:32]Read from MH i2c: E2 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 FD 00 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 FD 00 98 0C 00 B0 04 AA 04 AC 04 6E 04 04 00 B1 00 00 00 69 04 9D 00 6F 04 04 00 B1 00 00 00 B1 04 04 00 6D 4B 25 01 70 04 03 00 94 4C EC 72 04 03 00 D9 FE 38 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 4A 27 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 97 98 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 D1 [00:20:32]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 B1 00 00 00 69 04 9D 00 6F 04 04 00 B1 00 00 00 B1 04 04 00 6D 4B 25 01 70 04 03 00 94 4C EC 72 04 03 00 D9 FE 38 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 4A 27 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 97 98 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:20:32]wFMCommunicate OK [00:20:32]wFMCommunicate request_size=4 [00:20:32]MH_SAM_APDU [00:20:32]CAPDU: 80 17 00 00 [00:20:32]Write to MH i2c: E2 08 00 99 0C 80 17 00 00 00 00 00 00 25 [00:20:32]Write i2c OK [00:20:32]MH_I2C_Read... [00:20:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:32]Read from MH i2c: E2 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 FD 00 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 FD 00 99 0C 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [00:20:32]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:32]wFMCommunicate OK [00:20:32]wFMCommunicate request_size=4 [00:20:32]MH_SAM_APDU [00:20:32]CAPDU: 80 17 00 00 [00:20:32]Write to MH i2c: E2 08 00 9A 0C 80 17 00 00 00 00 00 00 26 [00:20:32]Write i2c OK [00:20:32]MH_I2C_Read... [00:20:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:33]Read from MH i2c: E2 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 FD 00 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 FD 00 9A 0C 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E3 [00:20:33]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:33]wFMCommunicate OK [00:20:33]wFMCommunicate request_size=4 [00:20:33]MH_SAM_APDU [00:20:33]CAPDU: 80 17 00 00 [00:20:33]Write to MH i2c: E2 08 00 9B 0C 80 17 00 00 00 00 00 00 27 [00:20:33]Write i2c OK [00:20:33]MH_I2C_Read... [00:20:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:33]Read from MH i2c: E2 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 FD 00 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 FD 00 9B 0C 00 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 90 00 9A [00:20:33]RAPDU: 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 90 00 [00:20:33]wFMCommunicate OK [00:20:33]wFMCommunicate request_size=4 [00:20:33]MH_SAM_APDU [00:20:33]CAPDU: 80 17 00 00 [00:20:33]Write to MH i2c: E2 08 00 9C 0C 80 17 00 00 00 00 00 00 28 [00:20:33]Write i2c OK [00:20:33]MH_I2C_Read... [00:20:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:20:33]Read from MH i2c: E2 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 CD 00 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 CD 00 9C 0C 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0C [00:20:33]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:33]wFMCommunicate OK [00:20:33]SAM_PROTO_GetShiftData done [00:20:33]requested_item shift.sale.total_cash is exist - process it [00:20:33]requested_item shift.sale_refund.total is exist - process it [00:20:33]requested_item shift.sale_refund.total_cash is exist - process it [00:20:33]requested_item shift.buy.total is exist - process it [00:20:33]requested_item shift.buy.total_cash is exist - process it [00:20:33]produce_requested_data done [00:20:33]produce_requested_data return {"fm.sale.total":116850018.08,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":192213.57,"shift.sale.total_cash":154861.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:20:33]process_action_free get_value [00:20:33]json_value_free [00:20:33]json_value_free done [00:20:33]process_json_proto returns [00:20:33]Send response to host [00:20:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":116850018.08,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":192213.57,"shift.sale.total_cash":154861.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:20:33]free response buf [00:20:33]execute_script done [00:20:33]execute_script returns [00:20:33]free content buf [00:20:33]Sock 9.Close socket [00:20:33]Sock 9.Thread stoped [00:20:33]accept exits with 8 [00:20:33]New connection [00:20:33]New thread 3066592612 created [00:20:33]Thread 3066735972 joined [00:20:33]Waiting for new connection... [00:20:33] Sock 8.Parse request [00:20:33]Sock 8.Check first char [00:20:33]Sock 8.First char is OK [00:20:33]request: POST /json_proto HTTP/1.0 [00:20:33]Method: POST [00:20:33]URL: /json_proto [00:20:33]Method is POST - this is cgi request [00:20:33]url: /json_proto [00:20:33]query_string will be loaded in cgi processing [00:20:33]execute_cgi json_proto POST (null) [00:20:33]execute_cgi path=json_proto method=POST [00:20:33]POST find Content-Length [00:20:33]Host: 172.17.62.5:8080 [00:20:33]Content-Length: 277 [00:20:33]Content-Type: application/json [00:20:33] [00:20:33]POST finish read [00:20:33]Found Content-Length = 277 [00:20:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:33]execute_script... [00:20:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:33]POST & json_proto [00:20:33]process_json_proto [00:20:33]json parsed OK: [00:20:33]protocol is kg_v1.0 [00:20:33]action value=open_shift [00:20:33]process_action open_shift [00:20:33]cmd_open_shift [00:20:33]MH_GetDate [00:20:33]Write to MH i2c: F0 00 00 9D 0C 98 [00:20:33]Write i2c OK [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: F0 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: F0 09 00 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: F0 09 00 9D 0C 00 53 0A 23 66 F4 E9 65 64 2D [00:20:33]GetLastDocTimeStamp 1713571412 [00:20:33]current date 1713572435 [00:20:33]FM_GetShiftState [00:20:33]SAM_PROTO_GetShiftState [00:20:33]wFMCommunicate request_size=4 [00:20:33]MH_SAM_APDU [00:20:33]CAPDU: 80 13 01 00 [00:20:33]Write to MH i2c: E2 08 00 9E 0C 80 13 01 00 00 00 00 00 27 [00:20:33]Write i2c OK [00:20:33]MH_I2C_Read... [00:20:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:33]Read from MH i2c: E2 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 0E 00 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 0E 00 9E 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 32 [00:20:33]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:20:33]wFMCommunicate OK [00:20:33]SAM_PROTO_GetShiftState done [00:20:33]FM_GetShiftState done [00:20:33]KKMCreateOpenShiftDocument [00:20:33]Load OK [00:20:33]Malloc new data [00:20:33]MH_GetDate [00:20:33]Write to MH i2c: F0 00 00 9F 0C 9A [00:20:33]Write i2c OK [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: F0 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: F0 09 00 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: F0 09 00 9F 0C 00 53 0A 23 66 F4 E9 65 64 2F [00:20:33]Malloc new data [00:20:33]KKMCreateOpenShiftDocument OK [00:20:33]KKMSetOpenShiftData OK [00:20:33]ProcessDocumentItem done err = 0, tmpTLVsize=185 [00:20:33]tlvbuf is 0174A850 [00:20:33]KKMLoadAndSignOpenShiftData [00:20:33]SAM_PROTO_ProcessDocument [00:20:33]wFMCommunicate request_size=9 [00:20:33]MH_SAM_APDU [00:20:33]CAPDU: 80 15 01 00 04 02 00 B9 00 [00:20:33]Write to MH i2c: E2 0C 00 A0 0C 80 15 01 00 04 00 02 00 B9 00 00 00 EE [00:20:33]Write i2c OK [00:20:33]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 A0 0C 00 90 00 20 [00:20:34]RAPDU: 90 00 [00:20:34]wFMCommunicate OK [00:20:34]wFMCommunicate request_size=23 [00:20:34]MH_SAM_APDU [00:20:34]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:20:34]Write to MH i2c: E2 1A 00 A1 0C 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 22 [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 A1 0C 00 90 00 21 [00:20:34]RAPDU: 90 00 [00:20:34]wFMCommunicate OK [00:20:34]wFMCommunicate request_size=36 [00:20:34]MH_SAM_APDU [00:20:34]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 [00:20:34]Write to MH i2c: E2 27 00 A2 0C 80 15 02 00 1F 00 FD 03 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 00 00 A6 [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:34]OFD Sender: No OFD packet to send [00:20:34]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 A2 0C 00 90 00 22 [00:20:34]RAPDU: 90 00 [00:20:34]wFMCommunicate OK [00:20:34]wFMCommunicate request_size=67 [00:20:34]MH_SAM_APDU [00:20:34]CAPDU: 80 15 02 00 3E F1 03 3A 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B5 D0 BC D0 B8 D0 BD 2C 20 D0 B0 2F D0 B4 20 D0 90 20 33 36 35 2C 20 34 32 2E 37 38 37 39 39 39 2C 20 37 35 2E 37 30 34 33 38 32 [00:20:34]Write to MH i2c: E2 46 00 A3 0C 80 15 02 00 3E 00 F1 03 3A 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B5 D0 BC D0 B8 D0 BD 2C 20 D0 B0 2F D0 B4 20 D0 90 20 33 36 35 2C 20 34 32 2E 37 38 37 39 39 39 2C 20 37 35 2E 37 30 34 33 38 32 00 00 BC [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 A3 0C 00 90 00 23 [00:20:34]RAPDU: 90 00 [00:20:34]wFMCommunicate OK [00:20:34]wFMCommunicate request_size=51 [00:20:34]MH_SAM_APDU [00:20:34]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:20:34]Write to MH i2c: E2 36 00 A4 0C 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 D9 [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 A4 0C 00 90 00 24 [00:20:34]RAPDU: 90 00 [00:20:34]wFMCommunicate OK [00:20:34]wFMCommunicate request_size=13 [00:20:34]MH_SAM_APDU [00:20:34]CAPDU: 80 15 02 00 08 F4 03 04 00 53 0A 23 66 [00:20:34]Write to MH i2c: E2 10 00 A5 0C 80 15 02 00 08 00 F4 03 04 00 53 0A 23 66 00 00 22 [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 A5 0C 00 90 00 25 [00:20:34]RAPDU: 90 00 [00:20:34]wFMCommunicate OK [00:20:34]wFMCommunicate request_size=25 [00:20:34]MH_SAM_APDU [00:20:34]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 [00:20:34]Write to MH i2c: E2 1C 00 A6 0C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 00 00 94 [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 A6 0C 00 90 00 26 [00:20:34]RAPDU: 90 00 [00:20:34]wFMCommunicate OK [00:20:34]wFMCommunicate request_size=4 [00:20:34]MH_SAM_APDU [00:20:34]CAPDU: 80 15 03 00 [00:20:34]Write to MH i2c: E2 08 00 A7 0C 80 15 03 00 00 00 00 00 34 [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 38 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 38 00 A7 0C 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0F 2B 01 00 0E 04 04 00 73 01 00 00 35 04 06 00 7E 24 01 0E 35 0C 90 00 A1 [00:20:34]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0F 2B 01 00 0E 04 04 00 73 01 00 00 35 04 06 00 7E 24 01 0E 35 0C 90 00 [00:20:34]wFMCommunicate OK [00:20:34]SAM_PROTO_ProcessDocument answer len = 51 [00:20:34]SAM_PROTO_ProcessDocument done [00:20:34]SetTLVBufToDocument [00:20:34]Processing tag 1209 (04B9) [00:20:34]Malloc new data [00:20:34]Processing tag 1041 (0411) [00:20:34]Processing tag 1040 (0410) [00:20:34]Malloc new data [00:20:34]Processing tag 1038 (040E) [00:20:34]Malloc new data [00:20:34]Processing tag 1077 (0435) [00:20:34]Malloc new data [00:20:34]SetTLVBufToDocument err=0 [00:20:34]KKMLoadAndSignOpenShiftData store KKM data [00:20:34]KKMLoadAndSignOpenShiftData err=0 [00:20:34]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Токторбаева Н. Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 Место: АЗС № 106 "Партнер Нефть" 20.04.2024 00:20 Смена: 371 РНМ: 0000000000091573 ЗНМ: 0300000141 ФД: 76559 ФМ: 0000000000874652 ФПД: 138693101630732 [00:20:34]StoreToDocumentArchive [00:20:34]shift 371 fd 76559 [00:20:34]Create dir for shift 0371 [00:20:34]save to /storage/0371/doc_00076559 [00:20:34]save last doc name /storage/0371/doc_00076559 to /storage/kkm_last_doc_name [00:20:34]save OK [00:20:34]Clear old archive folders... [00:20:34]Remove dir /storage/0370 [00:20:34]opendir ok [00:20:34]file . [00:20:34]file .. [00:20:34]file doc_00076380 [00:20:34]remove file /storage/0370/doc_00076380 [00:20:34]file doc_00076381 [00:20:34]remove file /storage/0370/doc_00076381 [00:20:34]file doc_00076382 [00:20:34]remove file /storage/0370/doc_00076382 [00:20:34]file doc_00076383 [00:20:34]remove file /storage/0370/doc_00076383 [00:20:34]file doc_00076384 [00:20:34]remove file /storage/0370/doc_00076384 [00:20:34]file doc_00076385 [00:20:34]remove file /storage/0370/doc_00076385 [00:20:34]file doc_00076386 [00:20:34]remove file /storage/0370/doc_00076386 [00:20:34]file doc_00076387 [00:20:34]remove file /storage/0370/doc_00076387 [00:20:34]file doc_00076388 [00:20:34]remove file /storage/0370/doc_00076388 [00:20:34]file doc_00076389 [00:20:34]remove file /storage/0370/doc_00076389 [00:20:34]file doc_00076390 [00:20:34]remove file /storage/0370/doc_00076390 [00:20:34]file doc_00076391 [00:20:34]remove file /storage/0370/doc_00076391 [00:20:34]file doc_00076392 [00:20:34]remove file /storage/0370/doc_00076392 [00:20:34]file doc_00076393 [00:20:34]remove file /storage/0370/doc_00076393 [00:20:34]file doc_00076394 [00:20:34]remove file /storage/0370/doc_00076394 [00:20:34]file doc_00076395 [00:20:34]remove file /storage/0370/doc_00076395 [00:20:34]file doc_00076396 [00:20:34]remove file /storage/0370/doc_00076396 [00:20:34]file doc_00076397 [00:20:34]remove file /storage/0370/doc_00076397 [00:20:34]file doc_00076398 [00:20:34]remove file /storage/0370/doc_00076398 [00:20:34]file doc_00076399 [00:20:34]remove file /storage/0370/doc_00076399 [00:20:34]file doc_00076400 [00:20:34]remove file /storage/0370/doc_00076400 [00:20:34]file doc_00076401 [00:20:34]remove file /storage/0370/doc_00076401 [00:20:34]file doc_00076402 [00:20:34]remove file /storage/0370/doc_00076402 [00:20:34]file doc_00076403 [00:20:34]remove file /storage/0370/doc_00076403 [00:20:34]file doc_00076404 [00:20:34]remove file /storage/0370/doc_00076404 [00:20:34]file doc_00076405 [00:20:34]remove file /storage/0370/doc_00076405 [00:20:34]file doc_00076406 [00:20:34]remove file /storage/0370/doc_00076406 [00:20:34]file doc_00076407 [00:20:34]remove file /storage/0370/doc_00076407 [00:20:34]file doc_00076408 [00:20:34]remove file /storage/0370/doc_00076408 [00:20:34]file doc_00076409 [00:20:34]remove file /storage/0370/doc_00076409 [00:20:34]file doc_00076410 [00:20:34]remove file /storage/0370/doc_00076410 [00:20:34]file doc_00076411 [00:20:34]remove file /storage/0370/doc_00076411 [00:20:34]file doc_00076412 [00:20:34]remove file /storage/0370/doc_00076412 [00:20:34]file doc_00076413 [00:20:34]remove file /storage/0370/doc_00076413 [00:20:34]file doc_00076414 [00:20:34]remove file /storage/0370/doc_00076414 [00:20:34]file doc_00076415 [00:20:34]remove file /storage/0370/doc_00076415 [00:20:34]file doc_00076416 [00:20:34]remove file /storage/0370/doc_00076416 [00:20:34]file doc_00076417 [00:20:34]remove file /storage/0370/doc_00076417 [00:20:34]file doc_00076418 [00:20:34]remove file /storage/0370/doc_00076418 [00:20:34]file doc_00076419 [00:20:34]remove file /storage/0370/doc_00076419 [00:20:34]file doc_00076420 [00:20:34]remove file /storage/0370/doc_00076420 [00:20:34]file doc_00076421 [00:20:34]remove file /storage/0370/doc_00076421 [00:20:34]file doc_00076422 [00:20:34]remove file /storage/0370/doc_00076422 [00:20:34]file doc_00076423 [00:20:34]remove file /storage/0370/doc_00076423 [00:20:34]file doc_00076424 [00:20:34]remove file /storage/0370/doc_00076424 [00:20:34]file doc_00076425 [00:20:34]remove file /storage/0370/doc_00076425 [00:20:34]file doc_00076426 [00:20:34]remove file /storage/0370/doc_00076426 [00:20:34]file doc_00076427 [00:20:34]remove file /storage/0370/doc_00076427 [00:20:34]file doc_00076428 [00:20:34]remove file /storage/0370/doc_00076428 [00:20:34]file doc_00076429 [00:20:34]remove file /storage/0370/doc_00076429 [00:20:34]file doc_00076430 [00:20:34]remove file /storage/0370/doc_00076430 [00:20:34]file doc_00076431 [00:20:34]remove file /storage/0370/doc_00076431 [00:20:34]file doc_00076432 [00:20:34]remove file /storage/0370/doc_00076432 [00:20:34]file doc_00076433 [00:20:34]remove file /storage/0370/doc_00076433 [00:20:34]file doc_00076434 [00:20:34]remove file /storage/0370/doc_00076434 [00:20:34]file doc_00076435 [00:20:34]remove file /storage/0370/doc_00076435 [00:20:34]file doc_00076436 [00:20:34]remove file /storage/0370/doc_00076436 [00:20:34]file doc_00076437 [00:20:34]remove file /storage/0370/doc_00076437 [00:20:34]file doc_00076438 [00:20:34]remove file /storage/0370/doc_00076438 [00:20:34]file doc_00076439 [00:20:34]remove file /storage/0370/doc_00076439 [00:20:35]file doc_00076440 [00:20:35]remove file /storage/0370/doc_00076440 [00:20:35]file doc_00076441 [00:20:35]remove file /storage/0370/doc_00076441 [00:20:35]file doc_00076442 [00:20:35]remove file /storage/0370/doc_00076442 [00:20:35]file doc_00076443 [00:20:35]remove file /storage/0370/doc_00076443 [00:20:35]file doc_00076444 [00:20:35]remove file /storage/0370/doc_00076444 [00:20:35]file doc_00076445 [00:20:35]remove file /storage/0370/doc_00076445 [00:20:35]file doc_00076446 [00:20:35]remove file /storage/0370/doc_00076446 [00:20:35]file doc_00076447 [00:20:35]remove file /storage/0370/doc_00076447 [00:20:35]file doc_00076448 [00:20:35]remove file /storage/0370/doc_00076448 [00:20:35]file doc_00076449 [00:20:35]remove file /storage/0370/doc_00076449 [00:20:35]file doc_00076450 [00:20:35]remove file /storage/0370/doc_00076450 [00:20:35]file doc_00076451 [00:20:35]remove file /storage/0370/doc_00076451 [00:20:35]file doc_00076452 [00:20:35]remove file /storage/0370/doc_00076452 [00:20:35]file doc_00076453 [00:20:35]remove file /storage/0370/doc_00076453 [00:20:35]file doc_00076454 [00:20:35]remove file /storage/0370/doc_00076454 [00:20:35]file doc_00076455 [00:20:35]remove file /storage/0370/doc_00076455 [00:20:35]file doc_00076456 [00:20:35]remove file /storage/0370/doc_00076456 [00:20:35]file doc_00076457 [00:20:35]remove file /storage/0370/doc_00076457 [00:20:35]file doc_00076458 [00:20:35]remove file /storage/0370/doc_00076458 [00:20:35]file doc_00076459 [00:20:35]remove file /storage/0370/doc_00076459 [00:20:35]file doc_00076460 [00:20:35]remove file /storage/0370/doc_00076460 [00:20:35]file doc_00076461 [00:20:35]remove file /storage/0370/doc_00076461 [00:20:35]file doc_00076462 [00:20:35]remove file /storage/0370/doc_00076462 [00:20:35]file doc_00076463 [00:20:35]remove file /storage/0370/doc_00076463 [00:20:35]file doc_00076464 [00:20:35]remove file /storage/0370/doc_00076464 [00:20:35]file doc_00076465 [00:20:35]remove file /storage/0370/doc_00076465 [00:20:35]file doc_00076466 [00:20:35]remove file /storage/0370/doc_00076466 [00:20:35]file doc_00076467 [00:20:35]remove file /storage/0370/doc_00076467 [00:20:35]file doc_00076468 [00:20:35]remove file /storage/0370/doc_00076468 [00:20:35]file doc_00076469 [00:20:35]remove file /storage/0370/doc_00076469 [00:20:35]file doc_00076470 [00:20:35]remove file /storage/0370/doc_00076470 [00:20:35]file doc_00076471 [00:20:35]remove file /storage/0370/doc_00076471 [00:20:35]file doc_00076472 [00:20:35]remove file /storage/0370/doc_00076472 [00:20:35]file doc_00076473 [00:20:35]remove file /storage/0370/doc_00076473 [00:20:35]file doc_00076474 [00:20:35]remove file /storage/0370/doc_00076474 [00:20:35]file doc_00076475 [00:20:35]remove file /storage/0370/doc_00076475 [00:20:35]file doc_00076476 [00:20:35]remove file /storage/0370/doc_00076476 [00:20:35]file doc_00076477 [00:20:35]remove file /storage/0370/doc_00076477 [00:20:35]file doc_00076478 [00:20:35]remove file /storage/0370/doc_00076478 [00:20:35]file doc_00076479 [00:20:35]remove file /storage/0370/doc_00076479 [00:20:35]file doc_00076480 [00:20:35]remove file /storage/0370/doc_00076480 [00:20:35]file doc_00076481 [00:20:35]remove file /storage/0370/doc_00076481 [00:20:35]file doc_00076482 [00:20:35]remove file /storage/0370/doc_00076482 [00:20:35]file doc_00076483 [00:20:35]remove file /storage/0370/doc_00076483 [00:20:35]file doc_00076484 [00:20:35]remove file /storage/0370/doc_00076484 [00:20:35]file doc_00076485 [00:20:35]remove file /storage/0370/doc_00076485 [00:20:35]file doc_00076486 [00:20:35]remove file /storage/0370/doc_00076486 [00:20:35]file doc_00076487 [00:20:35]remove file /storage/0370/doc_00076487 [00:20:35]file doc_00076488 [00:20:35]remove file /storage/0370/doc_00076488 [00:20:35]file doc_00076489 [00:20:35]remove file /storage/0370/doc_00076489 [00:20:35]file doc_00076490 [00:20:35]remove file /storage/0370/doc_00076490 [00:20:35]file doc_00076491 [00:20:35]remove file /storage/0370/doc_00076491 [00:20:35]file doc_00076492 [00:20:35]remove file /storage/0370/doc_00076492 [00:20:35]file doc_00076493 [00:20:35]remove file /storage/0370/doc_00076493 [00:20:35]file doc_00076494 [00:20:35]remove file /storage/0370/doc_00076494 [00:20:35]file doc_00076495 [00:20:35]remove file /storage/0370/doc_00076495 [00:20:35]file doc_00076496 [00:20:35]remove file /storage/0370/doc_00076496 [00:20:35]file doc_00076497 [00:20:35]remove file /storage/0370/doc_00076497 [00:20:35]file doc_00076498 [00:20:35]remove file /storage/0370/doc_00076498 [00:20:35]file doc_00076499 [00:20:35]remove file /storage/0370/doc_00076499 [00:20:35]file doc_00076500 [00:20:35]remove file /storage/0370/doc_00076500 [00:20:35]file doc_00076501 [00:20:35]remove file /storage/0370/doc_00076501 [00:20:35]file doc_00076502 [00:20:35]remove file /storage/0370/doc_00076502 [00:20:35]file doc_00076503 [00:20:35]remove file /storage/0370/doc_00076503 [00:20:35]file doc_00076504 [00:20:35]remove file /storage/0370/doc_00076504 [00:20:35]file doc_00076505 [00:20:35]remove file /storage/0370/doc_00076505 [00:20:35]file doc_00076506 [00:20:35]remove file /storage/0370/doc_00076506 [00:20:35]file doc_00076507 [00:20:35]remove file /storage/0370/doc_00076507 [00:20:35]file doc_00076508 [00:20:35]remove file /storage/0370/doc_00076508 [00:20:35]file doc_00076509 [00:20:35]remove file /storage/0370/doc_00076509 [00:20:35]file doc_00076510 [00:20:35]remove file /storage/0370/doc_00076510 [00:20:35]file doc_00076511 [00:20:35]remove file /storage/0370/doc_00076511 [00:20:35]file doc_00076512 [00:20:35]remove file /storage/0370/doc_00076512 [00:20:35]file doc_00076513 [00:20:35]remove file /storage/0370/doc_00076513 [00:20:35]file doc_00076514 [00:20:35]remove file /storage/0370/doc_00076514 [00:20:35]file doc_00076515 [00:20:35]remove file /storage/0370/doc_00076515 [00:20:35]file doc_00076516 [00:20:35]remove file /storage/0370/doc_00076516 [00:20:35]file doc_00076517 [00:20:35]remove file /storage/0370/doc_00076517 [00:20:35]file doc_00076518 [00:20:35]remove file /storage/0370/doc_00076518 [00:20:35]file doc_00076519 [00:20:35]remove file /storage/0370/doc_00076519 [00:20:35]file doc_00076520 [00:20:35]remove file /storage/0370/doc_00076520 [00:20:35]file doc_00076521 [00:20:35]remove file /storage/0370/doc_00076521 [00:20:35]file doc_00076522 [00:20:35]remove file /storage/0370/doc_00076522 [00:20:35]file doc_00076523 [00:20:35]remove file /storage/0370/doc_00076523 [00:20:35]file doc_00076524 [00:20:35]remove file /storage/0370/doc_00076524 [00:20:35]file doc_00076525 [00:20:35]remove file /storage/0370/doc_00076525 [00:20:35]file doc_00076526 [00:20:35]remove file /storage/0370/doc_00076526 [00:20:35]file doc_00076527 [00:20:35]remove file /storage/0370/doc_00076527 [00:20:35]file doc_00076528 [00:20:35]remove file /storage/0370/doc_00076528 [00:20:35]file doc_00076529 [00:20:35]remove file /storage/0370/doc_00076529 [00:20:35]file doc_00076530 [00:20:35]remove file /storage/0370/doc_00076530 [00:20:35]file doc_00076531 [00:20:35]remove file /storage/0370/doc_00076531 [00:20:35]file doc_00076532 [00:20:35]remove file /storage/0370/doc_00076532 [00:20:35]file doc_00076533 [00:20:35]remove file /storage/0370/doc_00076533 [00:20:35]file doc_00076534 [00:20:35]remove file /storage/0370/doc_00076534 [00:20:35]file doc_00076535 [00:20:35]remove file /storage/0370/doc_00076535 [00:20:35]file doc_00076536 [00:20:35]remove file /storage/0370/doc_00076536 [00:20:35]file doc_00076537 [00:20:35]remove file /storage/0370/doc_00076537 [00:20:35]file doc_00076538 [00:20:35]remove file /storage/0370/doc_00076538 [00:20:35]file doc_00076539 [00:20:35]remove file /storage/0370/doc_00076539 [00:20:35]file doc_00076540 [00:20:35]remove file /storage/0370/doc_00076540 [00:20:35]file doc_00076541 [00:20:35]remove file /storage/0370/doc_00076541 [00:20:35]file doc_00076542 [00:20:35]remove file /storage/0370/doc_00076542 [00:20:35]file doc_00076543 [00:20:35]remove file /storage/0370/doc_00076543 [00:20:35]file doc_00076544 [00:20:35]remove file /storage/0370/doc_00076544 [00:20:35]file doc_00076545 [00:20:35]remove file /storage/0370/doc_00076545 [00:20:35]file doc_00076546 [00:20:35]remove file /storage/0370/doc_00076546 [00:20:35]file doc_00076547 [00:20:35]remove file /storage/0370/doc_00076547 [00:20:35]file doc_00076548 [00:20:35]remove file /storage/0370/doc_00076548 [00:20:35]file doc_00076549 [00:20:35]remove file /storage/0370/doc_00076549 [00:20:35]file doc_00076550 [00:20:35]remove file /storage/0370/doc_00076550 [00:20:35]file doc_00076551 [00:20:35]remove file /storage/0370/doc_00076551 [00:20:35]file doc_00076552 [00:20:35]remove file /storage/0370/doc_00076552 [00:20:35]file doc_00076553 [00:20:35]remove file /storage/0370/doc_00076553 [00:20:35]file doc_00076554 [00:20:35]remove file /storage/0370/doc_00076554 [00:20:35]file doc_00076555 [00:20:35]remove file /storage/0370/doc_00076555 [00:20:35]file doc_00076556 [00:20:35]remove file /storage/0370/doc_00076556 [00:20:35]file doc_00076557 [00:20:35]remove file /storage/0370/doc_00076557 [00:20:35]file doc_00076558 [00:20:35]remove file /storage/0370/doc_00076558 [00:20:35]remove dir /storage/0370 [00:20:35]ProcessDocumentItem done err = 0, tmpTLVsize=236 [00:20:35]tlvbuf is 0167BD50 [00:20:35]SAM_PROTO_ClearQueue [00:20:35]wFMCommunicate request_size=4 [00:20:35]MH_SAM_APDU [00:20:35]CAPDU: 80 09 00 00 [00:20:35]Write to MH i2c: E2 08 00 A8 0C 80 09 00 00 00 00 00 00 26 [00:20:35]Write i2c OK [00:20:35]MH_I2C_Read... [00:20:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:20:35]Read from MH i2c: E2 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: E2 03 00 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: E2 03 00 A8 0C 00 90 00 28 [00:20:35]RAPDU: 90 00 [00:20:35]wFMCommunicate OK [00:20:35]SAM_PROTO_ClearQueue done [00:20:35]KKMCreateOFDPacket [00:20:35]OFDProtocolAddRootSTLVToBuf [00:20:35]FM_MakeSignedData [00:20:35]FM_MakeSignedData [00:20:35]SAM_PROTO_SignData [00:20:35]wFMCommunicate request_size=4 [00:20:35]MH_SAM_APDU [00:20:35]CAPDU: 80 0D 01 02 [00:20:35]Write to MH i2c: E2 08 00 A9 0C 80 0D 01 02 00 00 00 00 2E [00:20:35]Write i2c OK [00:20:35]MH_I2C_Read... [00:20:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:20:35]Read from MH i2c: E2 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: E2 03 00 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: E2 03 00 A9 0C 00 90 00 29 [00:20:35]RAPDU: 90 00 [00:20:35]wFMCommunicate OK [00:20:35]wFMCommunicate request_size=245 [00:20:35]MH_SAM_APDU [00:20:35]CAPDU: 80 0D 02 02 F0 02 00 EC 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 3A 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B5 D0 BC D0 B8 D0 BD 2C 20 D0 B0 2F D0 B4 20 D0 90 20 33 36 35 2C 20 34 32 2E 37 38 37 39 39 39 2C 20 37 35 2E 37 30 34 33 38 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 53 0A 23 66 0E 04 04 00 73 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0F 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 35 04 06 00 7E 24 01 0E 35 0C [00:20:36]Write to MH i2c: E2 F8 00 AA 0C 80 0D 02 02 F0 00 02 00 EC 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 3A 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B5 D0 BC D0 B8 D0 BD 2C 20 D0 B0 2F D0 B4 20 D0 90 20 33 36 35 2C 20 34 32 2E 37 38 37 39 39 39 2C 20 37 35 2E 37 30 34 33 38 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 53 0A 23 66 0E 04 04 00 73 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0F 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 35 04 06 00 7E 24 01 0E 35 0C 00 00 94 [00:20:36]Write i2c OK [00:20:36]MH_I2C_Read... [00:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:36]Read from MH i2c: E2 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 03 00 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 03 00 AA 0C 00 90 00 2A [00:20:36]RAPDU: 90 00 [00:20:36]wFMCommunicate OK [00:20:36]wFMCommunicate request_size=4 [00:20:36]MH_SAM_APDU [00:20:36]CAPDU: 80 0D 03 02 [00:20:36]Write to MH i2c: E2 08 00 AB 0C 80 0D 03 02 00 00 00 00 32 [00:20:36]Write i2c OK [00:20:36]MH_I2C_Read... [00:20:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:20:36]Read from MH i2c: E2 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 0B 00 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 0B 00 AB 0C 00 0D 67 C4 66 35 ED 1A 4B 90 00 58 [00:20:36]RAPDU: 0D 67 C4 66 35 ED 1A 4B 90 00 [00:20:36]wFMCommunicate OK [00:20:36]SAM_PROTO_SignData done [00:20:36]FM_MakeSignedData done [00:20:36]CreateOFDProtocolMessage [00:20:36]wFMCommunicate request_size=4 [00:20:36]MH_SAM_APDU [00:20:36]CAPDU: 80 11 00 00 [00:20:36]Write to MH i2c: E2 08 00 AC 0C 80 11 00 00 00 00 00 00 32 [00:20:36]Write i2c OK [00:20:36]MH_I2C_Read... [00:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:36]Read from MH i2c: E2 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 17 00 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 17 00 AC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 85 [00:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:20:36]wFMCommunicate OK [00:20:36]CreateOFDProtocolMessage done [00:20:36]OFDSenderStorePacket 76559 [00:20:36]StoreOFDPacket docnum=76559 [00:20:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 00 01 00 00 C5 84 F8 00 BD 69 5A 02 01 00 02 00 EC 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 3A 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B5 D0 BC D0 B8 D0 BD 2C 20 D0 B0 2F D0 B4 20 D0 90 20 33 36 35 2C 20 34 32 2E 37 38 37 39 39 39 2C 20 37 35 2E 37 30 34 33 38 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 53 0A 23 66 0E 04 04 00 73 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0F 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 35 04 06 00 7E 24 01 0E 35 0C 0D 67 C4 66 35 ED 1A 4B [00:20:36]CheckFolder [00:20:36]dirname=/storage/ofd_packets [00:20:36]CheckFolder done [00:20:36]ProducePacketName [00:20:36]name=ofd_packets/00076559 [00:20:36]NVStorageSaveData ofd_packets/00076559 [00:20:36]File name is /storage/ofd_packets/00076559 [00:20:36]Write 286 bytes [00:20:36]NVStorageSaveData done [00:20:36]OFDSenderStorePacket done [00:20:36]KKMCreateOFDPacket done [00:20:36]NVStorageSaveData kkm_last_timestamp [00:20:36]File name is /storage/kkm_last_timestamp [00:20:36]Write 4 bytes [00:20:36]NVStorageSaveData done [00:20:36]ExternCall_PrintAddStr [00:20:36]wPrintStart [00:20:36]Write to MH i2c: 01 00 00 AD 0C B9 [00:20:36]Write i2c OK [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: 01 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: 01 07 00 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: 01 07 00 AD 0C 00 00 00 00 00 FF 0F CE [00:20:36]RasterBufferAndPrint [00:20:36]line Отчет об открытии смены [00:20:36]line ФФД: 1.0 [00:20:36]line ИНН: 02508201610067 [00:20:36]line Кассир: Токторбаева Н. [00:20:36]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [00:20:36]line Место: АЗС № 106 "Партнер Нефть" [00:20:36]line 20.04.2024 00:20 [00:20:36]line Смена: 371 [00:20:36]line РНМ: 0000000000091573 [00:20:36]line ЗНМ: 0300000141 [00:20:36]line ФД: 76559 [00:20:36]line ФМ: 0000000000874652 [00:20:36]line ФПД: 138693101630732 [00:20:36]OFD Sender: Processing packet 76559 [packets to send 128, broken 127] [00:20:36]ProducePacketName [00:20:36]name=ofd_packets/00076559 [00:20:36]OFD Sender: To server: pG, [00:20:36]CommunicateWithHost lk.salyk.kg:30040 [00:20:36]ConnectInit lk.salyk.kg [00:20:36]written 0, free lines is 4095 [00:20:36]Connected sock=10 [00:20:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 00 01 00 00 C5 84 F8 00 BD 69 5A 02 01 00 02 00 EC 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 3A 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B5 D0 BC D0 B8 D0 BD 2C 20 D0 B0 2F D0 B4 20 D0 90 20 33 36 35 2C 20 34 32 2E 37 38 37 39 39 39 2C 20 37 35 2E 37 30 34 33 38 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 53 0A 23 66 0E 04 04 00 73 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0F 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 35 04 06 00 7E 24 01 0E 35 0C 0D 67 C4 66 35 ED 1A 4B [00:20:36]Write to MH i2c: 01 00 00 BE 0C CA [00:20:36]Write i2c OK [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: 01 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: 01 07 00 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: 01 07 00 BE 0C 00 00 00 00 00 04 0F E4 [00:20:36]RasterBufferAndPrint [00:20:36]line [00:20:36]line [00:20:36]line [00:20:36]line [00:20:36]line [00:20:36]written 0, free lines is 3862 [00:20:36]MH_Cut [00:20:36]Write to MH i2c: D1 01 00 C5 0C 01 A3 [00:20:36]Write i2c OK [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: D1 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: D1 01 00 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: D1 01 00 C5 0C 00 A2 [00:20:36]Write to MH i2c: 01 00 00 C6 0C D2 [00:20:36]Write i2c OK [00:20:36]MH_I2C_Read... [00:20:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 0C F5 47 00 F9 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 34 36 35 32 10 04 04 00 0F 2B 01 00 F4 03 04 00 DE B1 22 66 B6 04 01 00 00 5C D3 4D C1 28 FB DA F8 [00:20:37]CommunicateWithHost err = 0 [00:20:37]CheckOFDResponse [00:20:37]1017 (14) - 77093643461234 [00:20:37]1041 (16) - 0000000000874652 [00:20:37]1040 (4) - 76559 [00:20:37]1012 (4) - 19.04.2024 18:03 [00:20:37]1206 (1) - 0 [00:20:37]OFD Sender: Remove packet 76559 [00:20:37]ProducePacketName [00:20:37]name=ofd_packets/00076559 [00:20:37]NVStorageDeleteData [00:20:37]*** Cut start [00:20:37]*** Partial cut [00:20:37]*** CUTSNS_PIN = 1 [00:20:37]*** CUTSNS_PIN = 0 [00:20:37]*** Brake cut motor [00:20:37]OFD Sender: No OFD packet to send [00:20:37]Read from MH i2c: 01 [00:20:37]MH_I2C_Read... [00:20:37]*** Stop cut motor [00:20:37]*** Cut end [00:20:37]Read from MH i2c: 01 07 00 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: 01 07 00 C6 0C 00 00 00 00 00 FF 0F E7 [00:20:37]process_action open_shift done [00:20:37]requested_data is exist [00:20:37]produce_requested_data [00:20:37]requested_item fd.num is exist - process it [00:20:37]SAM_PROTO_GetFieldsCounters [00:20:37]wFMCommunicate request_size=4 [00:20:37]MH_SAM_APDU [00:20:37]CAPDU: 80 13 00 00 [00:20:37]Write to MH i2c: E2 08 00 C7 0C 80 13 00 00 00 00 00 00 4F [00:20:37]Write i2c OK [00:20:37]MH_I2C_Read... [00:20:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:37]Read from MH i2c: E2 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 62 00 [00:20:37]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 62 00 C7 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0F 2B 01 00 0E 04 04 00 73 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 1F [00:20:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0F 2B 01 00 0E 04 04 00 73 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:20:38]wFMCommunicate OK [00:20:38]SAM_PROTO_GetFieldsCounters done [00:20:38]requested_item shift.num is exist - process it [00:20:38]requested_item shift.opened is exist - process it [00:20:38]req_shift_opened [00:20:38]FM_GetShiftState [00:20:38]SAM_PROTO_GetShiftState [00:20:38]wFMCommunicate request_size=4 [00:20:38]MH_SAM_APDU [00:20:38]CAPDU: 80 13 01 00 [00:20:38]Write to MH i2c: E2 08 00 C8 0C 80 13 01 00 00 00 00 00 51 [00:20:38]Write i2c OK [00:20:38]MH_I2C_Read... [00:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:38]Read from MH i2c: E2 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 0E 00 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 0E 00 C8 0C 00 09 00 01 53 0A 23 66 00 00 00 00 90 00 43 [00:20:38]RAPDU: 09 00 01 53 0A 23 66 00 00 00 00 90 00 [00:20:38]wFMCommunicate OK [00:20:38]SAM_PROTO_GetShiftState done [00:20:38]FM_GetShiftState done [00:20:38]req_shift_opened done [00:20:38]requested_item shift.open_date is exist - process it [00:20:38]req_shift_open_date [00:20:38]req_shift_open_date done [00:20:38]produce_requested_data done [00:20:38]produce_requested_data return {"fd.num":76559,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435} [00:20:38]process_action_free open_shift [00:20:38]json_value_free [00:20:38]json_value_free done [00:20:38]process_json_proto returns [00:20:38]Send response to host [00:20:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":76559,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435}}} [00:20:38]free response buf [00:20:38]execute_script done [00:20:38]execute_script returns [00:20:38]free content buf [00:20:38]Sock 8.Close socket [00:20:38]Sock 8.Thread stoped [00:20:38]accept exits with 9 [00:20:38]New connection [00:20:38]New thread 3066735972 created [00:20:38]Thread 3066592612 joined [00:20:38]Waiting for new connection... [00:20:38] Sock 9.Parse request [00:20:38]Sock 9.Check first char [00:20:38]Sock 9.First char is OK [00:20:38]request: POST /json_proto HTTP/1.0 [00:20:38]Method: POST [00:20:38]URL: /json_proto [00:20:38]Method is POST - this is cgi request [00:20:38]url: /json_proto [00:20:38]query_string will be loaded in cgi processing [00:20:38]execute_cgi json_proto POST (null) [00:20:38]execute_cgi path=json_proto method=POST [00:20:38]POST find Content-Length [00:20:38]Host: 172.17.62.5:8080 [00:20:38]Content-Length: 331 [00:20:38]Content-Type: application/json [00:20:38] [00:20:38]POST finish read [00:20:38]Found Content-Length = 331 [00:20:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:38]execute_script... [00:20:38]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:20:38]POST & json_proto [00:20:38]process_json_proto [00:20:38]json parsed OK: [00:20:38]protocol is kg_v1.0 [00:20:38]action value=get_value [00:20:38]process_action get_value [00:20:38]cmd_get_value [00:20:38]process_action get_value done [00:20:38]requested_data is exist [00:20:38]produce_requested_data [00:20:38]requested_item fm.sale.total is exist - process it [00:20:38]SAM_PROTO_GetFMData [00:20:38]wFMCommunicate request_size=4 [00:20:38]MH_SAM_APDU [00:20:38]CAPDU: 80 13 03 00 [00:20:38]Write to MH i2c: E2 08 00 C9 0C 80 13 03 00 00 00 00 00 54 [00:20:38]Write i2c OK [00:20:38]MH_I2C_Read... [00:20:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:38]Read from MH i2c: E2 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 C9 0C 00 C8 04 85 04 C4 04 6E 04 04 00 29 28 01 00 69 04 A3 00 6F 04 04 00 3B 26 01 00 B1 04 05 00 50 FA 7A B8 02 70 04 05 00 30 87 E5 74 02 72 04 04 00 20 73 95 43 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 85 11 F9 49 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 F6 05 2A 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 96 [00:20:38]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 29 28 01 00 69 04 A3 00 6F 04 04 00 3B 26 01 00 B1 04 05 00 50 FA 7A B8 02 70 04 05 00 30 87 E5 74 02 72 04 04 00 20 73 95 43 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 85 11 F9 49 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 F6 05 2A 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 [00:20:38]wFMCommunicate OK [00:20:38]wFMCommunicate request_size=4 [00:20:38]MH_SAM_APDU [00:20:38]CAPDU: 80 17 00 00 [00:20:38]Write to MH i2c: E2 08 00 CA 0C 80 17 00 00 00 00 00 00 56 [00:20:38]Write i2c OK [00:20:38]MH_I2C_Read... [00:20:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:38]Read from MH i2c: E2 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 CA 0C 00 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 B4 2D 75 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 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 90 00 BD [00:20:38]RAPDU: 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 B4 2D 75 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 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 90 00 [00:20:39]wFMCommunicate OK [00:20:39]wFMCommunicate request_size=4 [00:20:39]MH_SAM_APDU [00:20:39]CAPDU: 80 17 00 00 [00:20:39]Write to MH i2c: E2 08 00 CB 0C 80 17 00 00 00 00 00 00 57 [00:20:39]Write i2c OK [00:20:39]MH_I2C_Read... [00:20:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:39]Read from MH i2c: E2 [00:20:39]MH_I2C_Read... [00:20:39]Read from MH i2c: E2 FD 00 [00:20:39]MH_I2C_Read... [00:20:39]Read from MH i2c: E2 FD 00 CB 0C 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2F [00:20:39]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:39]wFMCommunicate OK [00:20:39]wFMCommunicate request_size=4 [00:20:39]MH_SAM_APDU [00:20:39]CAPDU: 80 17 00 00 [00:20:39]Write to MH i2c: E2 08 00 CC 0C 80 17 00 00 00 00 00 00 58 [00:20:39]Write i2c OK [00:20:39]MH_I2C_Read... [00:20:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:39]Read from MH i2c: E2 [00:20:39]MH_I2C_Read... [00:20:39]Read from MH i2c: E2 FD 00 [00:20:39]MH_I2C_Read... [00:20:39]Read from MH i2c: E2 FD 00 CC 0C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 D0 [00:20:39]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 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 90 00 [00:20:39]wFMCommunicate OK [00:20:39]wFMCommunicate request_size=4 [00:20:39]MH_SAM_APDU [00:20:39]CAPDU: 80 17 00 00 [00:20:39]Write to MH i2c: E2 08 00 CD 0C 80 17 00 00 00 00 00 00 59 [00:20:39]Write i2c OK [00:20:39]MH_I2C_Read... [00:20:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:20:40]Read from MH i2c: E2 [00:20:40]MH_I2C_Read... [00:20:40]Read from MH i2c: E2 E5 00 [00:20:40]MH_I2C_Read... [00:20:40]Read from MH i2c: E2 E5 00 CD 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3D [00:20:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:40]wFMCommunicate OK [00:20:40]SAM_PROTO_GetFMData done [00:20:40]requested_item fm.sale_refund.total is exist - process it [00:20:40]requested_item fm.buy.total is exist - process it [00:20:40]requested_item shift.sale.total is exist - process it [00:20:40]SAM_PROTO_GetShiftData [00:20:40]wFMCommunicate request_size=4 [00:20:40]MH_SAM_APDU [00:20:40]CAPDU: 80 13 02 00 [00:20:40]Write to MH i2c: E2 08 00 CE 0C 80 13 02 00 00 00 00 00 58 [00:20:40]Write i2c OK [00:20:40]MH_I2C_Read... [00:20:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:40]Read from MH i2c: E2 [00:20:40]MH_I2C_Read... [00:20:40]Read from MH i2c: E2 FD 00 [00:20:40]MH_I2C_Read... [00:20:40]Read from MH i2c: E2 FD 00 CE 0C 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 CB [00:20:40]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:20:40]wFMCommunicate OK [00:20:40]wFMCommunicate request_size=4 [00:20:40]MH_SAM_APDU [00:20:40]CAPDU: 80 17 00 00 [00:20:40]Write to MH i2c: E2 08 00 CF 0C 80 17 00 00 00 00 00 00 5B [00:20:40]Write i2c OK [00:20:40]MH_I2C_Read... [00:20:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:41]Read from MH i2c: E2 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 FD 00 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 FD 00 CF 0C 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 63 [00:20:41]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:20:41]wFMCommunicate OK [00:20:41]wFMCommunicate request_size=4 [00:20:41]MH_SAM_APDU [00:20:41]CAPDU: 80 17 00 00 [00:20:41]Write to MH i2c: E2 08 00 D0 0C 80 17 00 00 00 00 00 00 5C [00:20:41]Write i2c OK [00:20:41]MH_I2C_Read... [00:20:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:41]Read from MH i2c: E2 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 FD 00 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 FD 00 D0 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 2E [00:20:41]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:20:41]wFMCommunicate OK [00:20:41]wFMCommunicate request_size=4 [00:20:41]MH_SAM_APDU [00:20:41]CAPDU: 80 17 00 00 [00:20:41]Write to MH i2c: E2 08 00 D1 0C 80 17 00 00 00 00 00 00 5D [00:20:41]Write i2c OK [00:20:41]MH_I2C_Read... [00:20:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:42]Read from MH i2c: E2 [00:20:42]MH_I2C_Read... [00:20:42]Read from MH i2c: E2 FD 00 [00:20:42]MH_I2C_Read... [00:20:42]Read from MH i2c: E2 FD 00 D1 0C 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 CF [00:20:42]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:20:42]wFMCommunicate OK [00:20:42]wFMCommunicate request_size=4 [00:20:42]MH_SAM_APDU [00:20:42]CAPDU: 80 17 00 00 [00:20:42]Write to MH i2c: E2 08 00 D2 0C 80 17 00 00 00 00 00 00 5E [00:20:42]Write i2c OK [00:20:42]MH_I2C_Read... [00:20:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:20:42]Read from MH i2c: E2 [00:20:42]MH_I2C_Read... [00:20:42]Read from MH i2c: E2 BD 00 [00:20:42]MH_I2C_Read... [00:20:42]Read from MH i2c: E2 BD 00 D2 0C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 44 [00:20:42]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:20:42]wFMCommunicate OK [00:20:42]SAM_PROTO_GetShiftData done [00:20:42]requested_item shift.sale.total_cash is exist - process it [00:20:42]requested_item shift.sale_refund.total is exist - process it [00:20:42]requested_item shift.sale_refund.total_cash is exist - process it [00:20:42]requested_item shift.buy.total is exist - process it [00:20:42]requested_item shift.buy.total_cash is exist - process it [00:20:42]produce_requested_data done [00:20:42]produce_requested_data return {"fm.sale.total":116850018.08,"fm.sale_refund.total":46594150.80,"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:20:42]process_action_free get_value [00:20:42]json_value_free [00:20:42]json_value_free done [00:20:42]process_json_proto returns [00:20:42]Send response to host [00:20:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":116850018.08,"fm.sale_refund.total":46594150.80,"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:20:42]free response buf [00:20:42]execute_script done [00:20:42]execute_script returns [00:20:42]free content buf [00:20:42]Sock 9.Close socket [00:20:42]Sock 9.Thread stoped [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32:38]OFD Sender: No OFD packet to send [00:32:43]OFD Sender: No OFD packet to send [00:32:48]OFD Sender: No OFD packet to send [00:32:53]OFD Sender: No OFD packet to send [00:32:58]OFD Sender: No OFD packet to send [00:33:03]OFD Sender: No OFD packet to send [00:33:08]OFD Sender: No OFD packet to send [00:33:13]OFD Sender: No OFD packet to send [00:33:18]OFD Sender: No OFD packet to send [00:33:23]OFD Sender: No OFD packet to send [00:33:28]OFD Sender: No OFD packet to send [00:33:33]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:48]OFD Sender: No OFD packet to send [00:33:53]OFD Sender: No OFD packet to send [00:33:58]OFD Sender: No OFD packet to send [00:34:03]OFD Sender: No OFD packet to send [00:34:08]OFD Sender: No OFD packet to send [00:34:13]OFD Sender: No OFD packet to send [00:34:18]OFD Sender: No OFD packet to send [00:34:23]OFD Sender: No OFD packet to send [00:34:28]OFD Sender: No OFD packet to send [00:34:33]OFD Sender: No OFD packet to send [00:34:38]OFD Sender: No OFD packet to send [00:34:43]OFD Sender: No OFD packet to send [00:34:48]OFD Sender: No OFD packet to send [00:34:53]OFD Sender: No OFD packet to send [00:34:58]OFD Sender: No OFD packet to send [00:35:03]OFD Sender: No OFD packet to send [00:35:08]OFD Sender: No OFD packet to send [00:35:13]OFD Sender: No OFD packet to send [00:35:18]OFD Sender: No OFD packet to send [00:35:23]OFD Sender: No OFD packet to send [00:35:28]OFD Sender: No OFD packet to send [00:35:33]OFD Sender: No OFD packet to send [00:35:38]OFD Sender: No OFD packet to send [00:35:43]OFD Sender: No OFD packet to send [00:35:48]OFD Sender: No OFD packet to send [00:35:53]OFD Sender: No OFD packet to send [00:35:58]OFD Sender: No OFD packet to send [00:36:03]OFD Sender: No OFD packet to send [00:36:08]OFD Sender: No OFD packet to send [00:36:13]OFD Sender: No OFD packet to send [00:36:18]OFD Sender: No OFD packet to send [00:36:23]OFD Sender: No OFD packet to send [00:36:28]OFD Sender: No OFD packet to send [00:36:33]OFD Sender: No OFD packet to send [00:36:38]OFD Sender: No OFD packet to send [00:36:43]OFD Sender: No OFD packet to send [00:36:48]OFD Sender: No OFD packet to send [00:36:53]OFD Sender: No OFD packet to send [00:36:58]OFD Sender: No OFD packet to send [00:37:03]OFD Sender: No OFD packet to send [00:37:08]OFD Sender: No OFD packet to send [00:37:13]OFD Sender: No OFD packet to send [00:37:18]OFD Sender: No OFD packet to send [00:37:23]OFD Sender: No OFD packet to send [00:37:28]OFD Sender: No OFD packet to send [00:37:33]OFD Sender: No OFD packet to send [00:37:38]OFD Sender: No OFD packet to send [00:37:43]OFD Sender: No OFD packet to send [00:37:48]OFD Sender: No OFD packet to send [00:37:53]OFD Sender: No OFD packet to send [00:37:58]OFD Sender: No OFD packet to send [00:38:03]OFD Sender: No OFD packet to send [00:38:08]OFD Sender: No OFD packet to send [00:38:13]OFD Sender: No OFD packet to send [00:38:18]OFD Sender: No OFD packet to send [00:38:23]OFD Sender: No OFD packet to send [00:38:28]OFD Sender: No OFD packet to send [00:38:33]OFD Sender: No OFD packet to send [00:38:38]OFD Sender: No OFD packet to send [00:38:43]OFD Sender: No OFD packet to send [00:38:48]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:34]OFD Sender: No OFD packet to send [00:45:39]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:24]OFD Sender: No OFD packet to send [00:46:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:49]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47:34]OFD Sender: No OFD packet to send [00:47:39]OFD Sender: No OFD packet to send [00:47:44]OFD Sender: No OFD packet to send [00:47:49]OFD Sender: No OFD packet to send [00:47:54]OFD Sender: No OFD packet to send [00:47:59]OFD Sender: No OFD packet to send [00:48:04]OFD Sender: No OFD packet to send [00:48:09]OFD Sender: No OFD packet to send [00:48:14]OFD Sender: No OFD packet to send [00:48:19]OFD Sender: No OFD packet to send [00:48:24]OFD Sender: No OFD packet to send [00:48:29]OFD Sender: No OFD packet to send [00:48:34]OFD Sender: No OFD packet to send [00:48:39]OFD Sender: No OFD packet to send [00:48:44]OFD Sender: No OFD packet to send [00:48:49]OFD Sender: No OFD packet to send [00:48:54]OFD Sender: No OFD packet to send [00:48:59]OFD Sender: No OFD packet to send [00:49:04]OFD Sender: No OFD packet to send [00:49:09]OFD Sender: No OFD packet to send [00:49:14]OFD Sender: No OFD packet to send [00:49:19]OFD Sender: No OFD packet to send [00:49:24]OFD Sender: No OFD packet to send [00:49:29]OFD Sender: No OFD packet to send [00:49:34]OFD Sender: No OFD packet to send [00:49:39]OFD Sender: No OFD packet to send [00:49:44]OFD Sender: No OFD packet to send [00:49:49]OFD Sender: No OFD packet to send [00:49:54]OFD Sender: No OFD packet to send [00:49:59]OFD Sender: No OFD packet to send [00:50:04]OFD Sender: No OFD packet to send [00:50:09]OFD Sender: No OFD packet to send [00:50:14]OFD Sender: No OFD packet to send [00:50:19]OFD Sender: No OFD packet to send [00:50:24]OFD Sender: No OFD packet to send [00:50:29]OFD Sender: No OFD packet to send [00:50:34]OFD Sender: No OFD packet to send [00:50:39]OFD Sender: No OFD packet to send [00:50:44]OFD Sender: No OFD packet to send [00:50:49]OFD Sender: No OFD packet to send [00:50:54]OFD Sender: No OFD packet to send [00:50:59]OFD Sender: No OFD packet to send [00:51:04]OFD Sender: No OFD packet to send [00:51:09]OFD Sender: No OFD packet to send [00:51:14]OFD Sender: No OFD packet to send [00:51:19]OFD Sender: No OFD packet to send [00:51:24]OFD Sender: No OFD packet to send [00:51:29]OFD Sender: No OFD packet to send [00:51:31]accept exits with 8 [00:51:31]New connection [00:51:31]New thread 3066592612 created [00:51:31]Thread 3066735972 joined [00:51:31]Waiting for new connection... [00:51:31] Sock 8.Parse request [00:51:31]Sock 8.Check first char [00:51:31]Sock 8.First char is OK [00:51:31]request: POST /json_proto HTTP/1.0 [00:51:31]Method: POST [00:51:31]URL: /json_proto [00:51:31]Method is POST - this is cgi request [00:51:31]url: /json_proto [00:51:31]query_string will be loaded in cgi processing [00:51:31]execute_cgi json_proto POST (null) [00:51:31]execute_cgi path=json_proto method=POST [00:51:31]POST find Content-Length [00:51:31]Host: 172.17.62.5:8080 [00:51:31]Content-Length: 682 [00:51:31]Content-Type: application/json [00:51:31] [00:51:31]POST finish read [00:51:31]Found Content-Length = 682 [00:51:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191053", "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" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:31]execute_script... [00: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)191053", "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" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:31]POST & json_proto [00:51:31]process_json_proto [00:51:31]json parsed OK: [00:51:31]protocol is kg_v1.0 [00:51:31]action value=close_receipt [00:51:31]process_action close_receipt [00:51:31]cmd_close_receipt [00:51:31]MH_GetDate [00:51:31]Write to MH i2c: F0 00 00 D3 0C CE [00:51:31]Write i2c OK [00:51:31]MH_I2C_Read... [00:51:31]Read from MH i2c: F0 [00:51:31]MH_I2C_Read... [00:51:31]Read from MH i2c: F0 09 00 [00:51:31]MH_I2C_Read... [00:51:31]Read from MH i2c: F0 09 00 D3 0C 00 95 11 23 66 F4 E9 65 64 AC [00:51:31]GetLastDocTimeStamp 1713572435 [00:51:31]current date 1713574293 [00:51:31]FM_GetShiftState [00:51:31]SAM_PROTO_GetShiftState [00:51:31]wFMCommunicate request_size=4 [00:51:31]MH_SAM_APDU [00:51:31]CAPDU: 80 13 01 00 [00:51:31]Write to MH i2c: E2 08 00 D4 0C 80 13 01 00 00 00 00 00 5D [00:51:31]Write i2c OK [00:51:31]MH_I2C_Read... [00:51:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:31]Read from MH i2c: E2 [00:51:31]MH_I2C_Read... [00:51:31]Read from MH i2c: E2 0E 00 [00:51:31]MH_I2C_Read... [00:51:31]Read from MH i2c: E2 0E 00 D4 0C 00 09 00 01 53 0A 23 66 00 00 00 00 90 00 4F [00:51:31]RAPDU: 09 00 01 53 0A 23 66 00 00 00 00 90 00 [00:51:31]wFMCommunicate OK [00:51:31]SAM_PROTO_GetShiftState done [00:51:31]FM_GetShiftState done [00:51:31]opened in 1713572435 [00:51:31]opened+sec_in_day 1713658835 [00:51:31]quantity*price = 100013 [00:51:31]sum+1 = 100014 [00:51:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 1 20.04.2024 00:51 Смена: 371 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76560 ФПД: 184469678724680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240420T005133&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76560&fm=184469678724680&tin=02508201610067®Number=0000000000091573&sum=100000 [00:51:32]StoreToDocumentArchive [00:51:32]shift 371 fd 76560 [00:51:32]save to /storage/0371/doc_00076560 [00:51:32]save last doc name /storage/0371/doc_00076560 to /storage/kkm_last_doc_name [00:51:32]save OK [00:51:32]Clear old archive folders... [00:51:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:51:32]tlvbuf is 016378A0 [00:51:32]SAM_PROTO_ClearQueue [00:51:32]wFMCommunicate request_size=4 [00:51:32]MH_SAM_APDU [00:51:32]CAPDU: 80 09 00 00 [00:51:32]Write to MH i2c: E2 08 00 E1 0C 80 09 00 00 00 00 00 00 5F [00:51:32]Write i2c OK [00:51:32]MH_I2C_Read... [00:51:32]Read from MH i2c: E2 [00:51:32]MH_I2C_Read... [00:51:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:51:32]Read from MH i2c: E2 03 00 [00:51:32]MH_I2C_Read... [00:51:32]Read from MH i2c: E2 03 00 E1 0C 00 90 00 61 [00:51:32]RAPDU: 90 00 [00:51:32]wFMCommunicate OK [00:51:32]SAM_PROTO_ClearQueue done [00:51:32]KKMCreateOFDPacket [00:51:32]OFDProtocolAddRootSTLVToBuf [00:51:32]FM_MakeSignedData [00:51:32]FM_MakeSignedData [00:51:32]SAM_PROTO_SignData [00:51:32]wFMCommunicate request_size=4 [00:51:32]MH_SAM_APDU [00:51:32]CAPDU: 80 0D 01 02 [00:51:32]Write to MH i2c: E2 08 00 E2 0C 80 0D 01 02 00 00 00 00 67 [00:51:32]Write i2c OK [00:51:32]MH_I2C_Read... [00:51:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:51:32]Read from MH i2c: E2 [00:51:32]MH_I2C_Read... [00:51:32]Read from MH i2c: E2 03 00 [00:51:32]MH_I2C_Read... [00:51:32]Read from MH i2c: E2 03 00 E2 0C 00 90 00 62 [00:51:32]RAPDU: 90 00 [00:51:32]wFMCommunicate OK [00:51:32]wFMCommunicate request_size=255 [00:51:32]MH_SAM_APDU [00:51: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 95 11 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 10 2B 01 00 35 04 06 00 A7 [00:51:32]Write to MH i2c: E2 02 01 E3 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 95 11 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 10 2B 01 00 35 04 06 00 A7 00 00 BF [00:51:32]Write i2c OK [00:51:32]MH_I2C_Read... [00:51:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:33]Read from MH i2c: E2 [00:51:33]MH_I2C_Read... [00:51:33]Read from MH i2c: E2 03 00 [00:51:33]MH_I2C_Read... [00:51:33]Read from MH i2c: E2 03 00 E3 0C 00 90 00 63 [00:51:33]RAPDU: 90 00 [00:51:33]wFMCommunicate OK [00:51:33]wFMCommunicate request_size=10 [00:51:33]MH_SAM_APDU [00:51:33]CAPDU: 80 0D 02 02 05 C6 31 AC 16 48 [00:51:33]Write to MH i2c: E2 0D 00 E4 0C 80 0D 02 02 05 00 C6 31 AC 16 48 00 00 75 [00:51:33]Write i2c OK [00:51:33]MH_I2C_Read... [00:51:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:33]Read from MH i2c: E2 [00:51:33]MH_I2C_Read... [00:51:33]Read from MH i2c: E2 03 00 [00:51:33]MH_I2C_Read... [00:51:33]Read from MH i2c: E2 03 00 E4 0C 00 90 00 64 [00:51:33]RAPDU: 90 00 [00:51:33]wFMCommunicate OK [00:51:33]wFMCommunicate request_size=4 [00:51:33]MH_SAM_APDU [00:51:33]CAPDU: 80 0D 03 02 [00:51:33]Write to MH i2c: E2 08 00 E5 0C 80 0D 03 02 00 00 00 00 6C [00:51:33]Write i2c OK [00:51:33]MH_I2C_Read... [00:51:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:51:33]Read from MH i2c: E2 [00:51:33]MH_I2C_Read... [00:51:33]Read from MH i2c: E2 0B 00 [00:51:33]MH_I2C_Read... [00:51:33]Read from MH i2c: E2 0B 00 E5 0C 00 97 86 7B E0 38 DD 25 A1 90 00 C0 [00:51:33]RAPDU: 97 86 7B E0 38 DD 25 A1 90 00 [00:51:33]wFMCommunicate OK [00:51:33]SAM_PROTO_SignData done [00:51:33]FM_MakeSignedData done [00:51:33]CreateOFDProtocolMessage [00:51:33]wFMCommunicate request_size=4 [00:51:33]MH_SAM_APDU [00:51:33]CAPDU: 80 11 00 00 [00:51:33]Write to MH i2c: E2 08 00 E6 0C 80 11 00 00 00 00 00 00 6C [00:51:33]Write i2c OK [00:51:33]MH_I2C_Read... [00:51:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:33]Read from MH i2c: E2 [00:51:33]MH_I2C_Read... [00:51:33]Read from MH i2c: E2 17 00 [00:51:33]MH_I2C_Read... [00:51:33]Read from MH i2c: E2 17 00 E6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BF [00:51:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:51:33]wFMCommunicate OK [00:51:33]CreateOFDProtocolMessage done [00:51:33]OFDSenderStorePacket 76560 [00:51:33]StoreOFDPacket docnum=76560 [00:51:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 08 68 07 01 29 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 95 11 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 10 2B 01 00 35 04 06 00 A7 C6 31 AC 16 48 97 86 7B E0 38 DD 25 A1 [00:51:33]CheckFolder [00:51:33]dirname=/storage/ofd_packets [00:51:33]CheckFolder done [00:51:33]ProducePacketName [00:51:33]name=ofd_packets/00076560 [00:51:33]NVStorageSaveData ofd_packets/00076560 [00:51:33]File name is /storage/ofd_packets/00076560 [00:51:33]Write 301 bytes [00:51:33]NVStorageSaveData done [00:51:33]OFDSenderStorePacket done [00:51:33]KKMCreateOFDPacket done [00:51:33]NVStorageSaveData kkm_last_timestamp [00:51:33]File name is /storage/kkm_last_timestamp [00:51:33]Write 4 bytes [00:51:33]NVStorageSaveData done [00:51:33]ExternCall_PrintAddStr [00:51:33]wPrintStart [00:51:33]Write to MH i2c: 01 00 00 E7 0C F3 [00:51:33]Write i2c OK [00:51:33]MH_I2C_Read... [00:51:33]Read from MH i2c: 01 [00:51:33]MH_I2C_Read... [00:51:33]Read from MH i2c: 01 07 00 [00:51:33]MH_I2C_Read... [00:51:33]Read from MH i2c: 01 07 00 E7 0C 00 00 00 00 00 FF 0F 08 [00:51:33]RasterBufferAndPrint [00:51:33]line Счет N : (1)191053 [00:51:33]line ИНН: 02508201610067 [00:51:33]line Контрольно-Кассовый Чек [00:51:33]line ПРОДАЖА [00:51:33]line ТРК (МРК, ГНК) : 12 [00:51:33]line Товар: 2710124130 [00:51:33]line Аи-92-К-5 [00:51:33]line 15.530 * 64.40 [00:51:33]line = 1000.13 [00:51:33]line НДС 12% НСП 1% [00:51:33]line > о реализуемом товаре [00:51:33]line ОКРУГЛЕНИЕ: -0.13 [00:51:33]line ИТОГО: 1000.00 [00:51:33]line Внесено: 1000.00 [00:51:33]line СДАЧА: 0.00 [00:51:33]line НСП 1% : 8.85 [00:51:33]line НДС 12% : 106.21 [00:51:33]line Наличными: 1000.00 [00:51:33]line Безнал.: 0.00 [00:51:33]line Место: АЗС № 106 "Партнер Нефть" [00:51:33]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [00:51:33]line СНО: Общий режим [00:51:33]line Чек 1 20.04.2024 00:51 [00:51:33]line Смена: 371 ФФД: 1.0 [00:51:33]line ЗНМ: 0300000141 [00:51:33]line РНМ: 0000000000091573 [00:51:33]line Версия ККМ: 001 [00:51:33]line ФМ: 0000000000874652 [00:51:33]line ФД: 76560 [00:51:33]line ФПД: 184469678724680 [00:51:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240420T005133&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76560&fm=184469678724680&tin=02508201610067®Number=0000000000091573&sum=100000 [00:51:33]OFD Sender: Processing packet 76560 [packets to send 128, broken 127] [00:51:33]ProducePacketName [00:51:33]name=ofd_packets/00076560 [00:51:33]OFD Sender: To server: pG, [00:51:33]CommunicateWithHost lk.salyk.kg:30040 [00:51:33]ConnectInit lk.salyk.kg [00:51:33]written 0, free lines is 4095 [00:51:33]Connected sock=9 [00: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 34 36 35 32 0F 01 00 00 08 68 07 01 29 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 95 11 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 10 2B 01 00 35 04 06 00 A7 C6 31 AC 16 48 97 86 7B E0 38 DD 25 A1 [00:51:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 38 E3 47 00 C7 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 34 36 35 32 10 04 04 00 10 2B 01 00 F4 03 04 00 1F B9 22 66 B6 04 01 00 00 E9 B8 58 DE 81 91 3E EA [00:51:34]CommunicateWithHost err = 0 [00:51:34]CheckOFDResponse [00:51:34]1017 (14) - 77093643461234 [00:51:34]1041 (16) - 0000000000874652 [00:51:34]1040 (4) - 76560 [00:51:34]1012 (4) - 19.04.2024 18:34 [00:51:34]1206 (1) - 0 [00:51:34]OFD Sender: Remove packet 76560 [00:51:34]ProducePacketName [00:51:34]name=ofd_packets/00076560 [00:51:34]NVStorageDeleteData [00:51:34]Write to MH i2c: 01 00 00 11 0D 1E [00:51:34]Write i2c OK [00:51:34]MH_I2C_Read... [00:51:34]Read from MH i2c: 01 [00:51:34]MH_I2C_Read... [00:51:34]Read from MH i2c: 01 07 00 [00:51:34]MH_I2C_Read... [00:51:34]Read from MH i2c: 01 07 00 11 0D 00 00 00 00 00 EA 0C 1B [00:51:34]RasterBufferAndPrint [00:51:34]line [00:51:34]line [00:51:34]line [00:51:34]line [00:51:34]line [00:51:34]written 0, free lines is 3313 [00:51:34]MH_Cut [00:51:34]Write to MH i2c: D1 01 00 18 0D 01 F7 [00:51:34]Write i2c OK [00:51:34]MH_I2C_Read... [00:51:34]Read from MH i2c: D1 [00:51:34]MH_I2C_Read... [00:51:34]Read from MH i2c: D1 01 00 [00:51:34]MH_I2C_Read... [00:51:34]Read from MH i2c: D1 01 00 18 0D 00 F6 [00:51:34]Write to MH i2c: 01 00 00 19 0D 26 [00:51:34]Write i2c OK [00:51:34]MH_I2C_Read... [00:51:34]OFD Sender: No OFD packet to send [00:51:34]*** Cut start [00:51:34]*** Partial cut [00:51:34]*** CUTSNS_PIN = 1 [00:51:34]*** CUTSNS_PIN = 0 [00:51:35]*** Brake cut motor [00:51:35]Read from MH i2c: 01 [00:51:35]MH_I2C_Read... [00:51:35]*** Stop cut motor [00:51:35]*** Cut end [00:51:35]Read from MH i2c: 01 07 00 [00:51:35]MH_I2C_Read... [00:51:35]Read from MH i2c: 01 07 00 19 0D 00 00 00 00 00 FF 0F 3B [00:51:35]process_action close_receipt done [00:51:35]requested_data is exist [00:51:35]produce_requested_data [00:51:35]requested_item fm.sn is exist - process it [00:51:35]wFMCommunicate request_size=4 [00:51:35]MH_SAM_APDU [00:51:35]CAPDU: 80 11 00 00 [00:51:35]Write to MH i2c: E2 08 00 1A 0D 80 11 00 00 00 00 00 00 A1 [00:51:35]Write i2c OK [00:51:35]MH_I2C_Read... [00:51:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:35]Read from MH i2c: E2 [00:51:35]MH_I2C_Read... [00:51:35]Read from MH i2c: E2 17 00 [00:51:35]MH_I2C_Read... [00:51:35]Read from MH i2c: E2 17 00 1A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F4 [00:51:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:51:35]wFMCommunicate OK [00:51:35]requested_item fd.num is exist - process it [00:51:35]SAM_PROTO_GetFieldsCounters [00:51:35]wFMCommunicate request_size=4 [00:51:35]MH_SAM_APDU [00:51:35]CAPDU: 80 13 00 00 [00:51:35]Write to MH i2c: E2 08 00 1B 0D 80 13 00 00 00 00 00 00 A4 [00:51:35]Write i2c OK [00:51:35]MH_I2C_Read... [00:51:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:51:35]Read from MH i2c: E2 [00:51:35]MH_I2C_Read... [00:51:35]Read from MH i2c: E2 62 00 [00:51:35]MH_I2C_Read... [00:51:35]Read from MH i2c: E2 62 00 1B 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 10 2B 01 00 0E 04 04 00 73 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 78 [00: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 10 2B 01 00 0E 04 04 00 73 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:51:35]wFMCommunicate OK [00:51:35]SAM_PROTO_GetFieldsCounters done [00:51:35]requested_item shift.num is exist - process it [00:51:35]requested_item shift.opened is exist - process it [00:51:35]req_shift_opened [00:51:35]FM_GetShiftState [00:51:35]SAM_PROTO_GetShiftState [00:51:35]wFMCommunicate request_size=4 [00:51:35]MH_SAM_APDU [00:51:35]CAPDU: 80 13 01 00 [00:51:35]Write to MH i2c: E2 08 00 1C 0D 80 13 01 00 00 00 00 00 A6 [00:51:35]Write i2c OK [00:51:35]MH_I2C_Read... [00:51:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:35]Read from MH i2c: E2 [00:51:35]MH_I2C_Read... [00:51:35]Read from MH i2c: E2 0E 00 [00:51:35]MH_I2C_Read... [00:51:35]Read from MH i2c: E2 0E 00 1C 0D 00 09 00 01 53 0A 23 66 00 00 00 00 90 00 98 [00:51:35]RAPDU: 09 00 01 53 0A 23 66 00 00 00 00 90 00 [00:51:35]wFMCommunicate OK [00:51:35]SAM_PROTO_GetShiftState done [00:51:35]FM_GetShiftState done [00:51:35]req_shift_opened done [00:51:35]requested_item shift.open_date is exist - process it [00:51:35]req_shift_open_date [00:51:35]req_shift_open_date done [00:51:35]produce_requested_data done [00:51:35]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76560,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435} [00:51:35]process_action_free close_receipt [00:51:35]json_value_free [00:51:35]json_value_free done [00:51:35]process_json_proto returns [00:51:35]Send response to host [00:51:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76560,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435}}} [00:51:35]free response buf [00:51:35]execute_script done [00:51:35]execute_script returns [00:51:35]free content buf [00:51:35]Sock 8.Close socket [00:51:35]Sock 8.Thread stoped [00:51:38]accept exits with 10 [00:51:38]New connection [00:51:38]New thread 3066735972 created [00:51:38]Thread 3066592612 joined [00:51:38]Waiting for new connection... [00:51:38] Sock 10.Parse request [00:51:38]Sock 10.Check first char [00:51:38]Sock 10.First char is OK [00:51:38]request: POST /json_proto HTTP/1.0 [00:51:38]Method: POST [00:51:38]URL: /json_proto [00:51:38]Method is POST - this is cgi request [00:51:38]url: /json_proto [00:51:38]query_string will be loaded in cgi processing [00:51:38]execute_cgi json_proto POST (null) [00:51:38]execute_cgi path=json_proto method=POST [00:51:38]POST find Content-Length [00:51:38]Host: 172.17.62.5:8080 [00:51:38]Content-Length: 675 [00:51:38]Content-Type: application/json [00:51:38] [00:51:38]POST finish read [00:51:38]Found Content-Length = 675 [00:51:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 30.590, "sum" : 2000.59, "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" ] } } [00:51:38]execute_script... [00:51: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)191054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 30.590, "sum" : 2000.59, "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" ] } } [00:51:38]POST & json_proto [00:51:38]process_json_proto [00:51:38]json parsed OK: [00:51:38]protocol is kg_v1.0 [00:51:38]action value=close_receipt [00:51:38]process_action close_receipt [00:51:38]cmd_close_receipt [00:51:38]MH_GetDate [00:51:38]Write to MH i2c: F0 00 00 1D 0D 19 [00:51:38]Write i2c OK [00:51:38]MH_I2C_Read... [00:51:38]Read from MH i2c: F0 [00:51:38]MH_I2C_Read... [00:51:38]Read from MH i2c: F0 09 00 [00:51:38]MH_I2C_Read... [00:51:38]Read from MH i2c: F0 09 00 1D 0D 00 9C 11 23 66 F4 E9 65 64 FE [00:51:38]GetLastDocTimeStamp 1713574293 [00:51:38]current date 1713574300 [00:51:38]FM_GetShiftState [00:51:38]SAM_PROTO_GetShiftState [00:51:38]wFMCommunicate request_size=4 [00:51:38]MH_SAM_APDU [00:51:38]CAPDU: 80 13 01 00 [00:51:38]Write to MH i2c: E2 08 00 1E 0D 80 13 01 00 00 00 00 00 A8 [00:51:38]Write i2c OK [00:51:38]MH_I2C_Read... [00:51:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:38]Read from MH i2c: E2 [00:51:38]MH_I2C_Read... [00:51:38]Read from MH i2c: E2 0E 00 [00:51:38]MH_I2C_Read... [00:51:38]Read from MH i2c: E2 0E 00 1E 0D 00 09 00 01 53 0A 23 66 00 00 00 00 90 00 9A [00:51:38]RAPDU: 09 00 01 53 0A 23 66 00 00 00 00 90 00 [00:51:38]wFMCommunicate OK [00:51:38]SAM_PROTO_GetShiftState done [00:51:38]FM_GetShiftState done [00:51:38]opened in 1713572435 [00:51:38]opened+sec_in_day 1713658835 [00:51:38]quantity*price = 200058 [00:51:38]sum+1 = 200060 [00:51:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 2 20.04.2024 00:51 Смена: 371 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76561 ФПД: 2429126500097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240420T005140&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76561&fm=2429126500097&tin=02508201610067®Number=0000000000091573&sum=200000 [00:51:39]StoreToDocumentArchive [00:51:39]shift 371 fd 76561 [00:51:39]save to /storage/0371/doc_00076561 [00:51:39]save last doc name /storage/0371/doc_00076561 to /storage/kkm_last_doc_name [00:51:39]save OK [00:51:39]Clear old archive folders... [00:51:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:51:39]tlvbuf is 01669D00 [00:51:39]SAM_PROTO_ClearQueue [00:51:39]wFMCommunicate request_size=4 [00:51:39]MH_SAM_APDU [00:51:39]CAPDU: 80 09 00 00 [00:51:39]Write to MH i2c: E2 08 00 2B 0D 80 09 00 00 00 00 00 00 AA [00:51:39]Write i2c OK [00:51:39]MH_I2C_Read... [00:51:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:51:39]Read from MH i2c: E2 [00:51:39]MH_I2C_Read... [00:51:39]Read from MH i2c: E2 03 00 [00:51:39]MH_I2C_Read... [00:51:39]Read from MH i2c: E2 03 00 2B 0D 00 90 00 AC [00:51:39]RAPDU: 90 00 [00:51:39]wFMCommunicate OK [00:51:39]SAM_PROTO_ClearQueue done [00:51:39]KKMCreateOFDPacket [00:51:39]OFDProtocolAddRootSTLVToBuf [00:51:39]FM_MakeSignedData [00:51:39]FM_MakeSignedData [00:51:39]SAM_PROTO_SignData [00:51:39]wFMCommunicate request_size=4 [00:51:39]MH_SAM_APDU [00:51:39]CAPDU: 80 0D 01 02 [00:51:39]Write to MH i2c: E2 08 00 2C 0D 80 0D 01 02 00 00 00 00 B2 [00:51:39]Write i2c OK [00:51:39]MH_I2C_Read... [00:51:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:51:39]Read from MH i2c: E2 [00:51:39]MH_I2C_Read... [00:51:39]Read from MH i2c: E2 03 00 [00:51:39]MH_I2C_Read... [00:51:39]Read from MH i2c: E2 03 00 2C 0D 00 90 00 AD [00:51:39]RAPDU: 90 00 [00:51:39]wFMCommunicate OK [00:51:39]wFMCommunicate request_size=255 [00:51:39]MH_SAM_APDU [00:51:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 7B 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 FD 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 02 00 00 00 F4 03 04 00 9C 11 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 11 2B 01 00 35 04 06 00 [00:51:39]Write to MH i2c: E2 02 01 2D 0D 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 7E 77 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 7B 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 FD 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 02 00 00 00 F4 03 04 00 9C 11 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 11 2B 01 00 35 04 06 00 00 00 46 [00:51:39]Write i2c OK [00:51:39]MH_I2C_Read... [00:51:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:40]Read from MH i2c: E2 [00:51:40]MH_I2C_Read... [00:51:40]Read from MH i2c: E2 03 00 [00:51:40]MH_I2C_Read... [00:51:40]Read from MH i2c: E2 03 00 2D 0D 00 90 00 AE [00:51:40]RAPDU: 90 00 [00:51:40]wFMCommunicate OK [00:51:40]wFMCommunicate request_size=11 [00:51:40]MH_SAM_APDU [00:51:40]CAPDU: 80 0D 02 02 06 02 35 93 38 DF 01 [00:51:40]Write to MH i2c: E2 0E 00 2E 0D 80 0D 02 02 06 00 02 35 93 38 DF 01 00 00 A3 [00:51:40]Write i2c OK [00:51:40]MH_I2C_Read... [00:51:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:40]Read from MH i2c: E2 [00:51:40]MH_I2C_Read... [00:51:40]Read from MH i2c: E2 03 00 [00:51:40]MH_I2C_Read... [00:51:40]Read from MH i2c: E2 03 00 2E 0D 00 90 00 AF [00:51:40]RAPDU: 90 00 [00:51:40]wFMCommunicate OK [00:51:40]wFMCommunicate request_size=4 [00:51:40]MH_SAM_APDU [00:51:40]CAPDU: 80 0D 03 02 [00:51:40]Write to MH i2c: E2 08 00 2F 0D 80 0D 03 02 00 00 00 00 B7 [00:51:40]Write i2c OK [00:51:40]MH_I2C_Read... [00:51:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:51:40]Read from MH i2c: E2 [00:51:40]MH_I2C_Read... [00:51:40]Read from MH i2c: E2 0B 00 [00:51:40]MH_I2C_Read... [00:51:40]Read from MH i2c: E2 0B 00 2F 0D 00 FB 98 72 87 FC EF 9E E6 90 00 B3 [00:51:40]RAPDU: FB 98 72 87 FC EF 9E E6 90 00 [00:51:40]wFMCommunicate OK [00:51:40]SAM_PROTO_SignData done [00:51:40]FM_MakeSignedData done [00:51:40]CreateOFDProtocolMessage [00:51:40]wFMCommunicate request_size=4 [00:51:40]MH_SAM_APDU [00:51:40]CAPDU: 80 11 00 00 [00:51:40]Write to MH i2c: E2 08 00 30 0D 80 11 00 00 00 00 00 00 B7 [00:51:40]Write i2c OK [00:51:40]MH_I2C_Read... [00:51:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:40]Read from MH i2c: E2 [00:51:40]MH_I2C_Read... [00:51:40]Read from MH i2c: E2 17 00 [00:51:40]MH_I2C_Read... [00:51:40]Read from MH i2c: E2 17 00 30 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0A [00:51:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:51:40]wFMCommunicate OK [00:51:40]CreateOFDProtocolMessage done [00:51:40]OFDSenderStorePacket 76561 [00:51:40]StoreOFDPacket docnum=76561 [00:51:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 01 D7 08 01 17 97 5A 03 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 7E 77 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 7B 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 FD 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 02 00 00 00 F4 03 04 00 9C 11 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 11 2B 01 00 35 04 06 00 02 35 93 38 DF 01 FB 98 72 87 FC EF 9E E6 [00:51:40]CheckFolder [00:51:40]dirname=/storage/ofd_packets [00:51:40]CheckFolder done [00:51:40]ProducePacketName [00:51:40]name=ofd_packets/00076561 [00:51:40]NVStorageSaveData ofd_packets/00076561 [00:51:40]File name is /storage/ofd_packets/00076561 [00:51:40]Write 302 bytes [00:51:40]NVStorageSaveData done [00:51:40]OFDSenderStorePacket done [00:51:40]KKMCreateOFDPacket done [00:51:40]NVStorageSaveData kkm_last_timestamp [00:51:40]File name is /storage/kkm_last_timestamp [00:51:40]Write 4 bytes [00:51:40]NVStorageSaveData done [00:51:40]ExternCall_PrintAddStr [00:51:40]wPrintStart [00:51:40]Write to MH i2c: 01 00 00 31 0D 3E [00:51:40]Write i2c OK [00:51:40]MH_I2C_Read... [00:51:40]Read from MH i2c: 01 [00:51:40]MH_I2C_Read... [00:51:40]Read from MH i2c: 01 07 00 [00:51:40]MH_I2C_Read... [00:51:40]Read from MH i2c: 01 07 00 31 0D 00 00 00 00 00 FF 0F 53 [00:51:40]RasterBufferAndPrint [00:51:40]line Счет N : (1)191054 [00:51:40]line ИНН: 02508201610067 [00:51:40]line Контрольно-Кассовый Чек [00:51:40]line ПРОДАЖА [00:51:40]line ТРК (МРК, ГНК) : 31 [00:51:40]line Товар: 2710124130 [00:51:40]line SUPER 92-К-5 [00:51:40]line 30.590 * 65.40 [00:51:40]line = 2000.59 [00:51:40]line НДС 12% НСП 1% [00:51:40]line > о реализуемом товаре [00:51:40]line ОКРУГЛЕНИЕ: -0.59 [00:51:40]line ИТОГО: 2000.00 [00:51:40]line Внесено: 2000.00 [00:51:40]line СДАЧА: 0.00 [00:51:40]line НСП 1% : 17.70 [00:51:40]line НДС 12% : 212.45 [00:51:40]line Наличными: 2000.00 [00:51:40]line Безнал.: 0.00 [00:51:40]line Место: АЗС № 106 "Партнер Нефть" [00:51:40]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [00:51:40]line СНО: Общий режим [00:51:40]line Чек 2 20.04.2024 00:51 [00:51:40]line Смена: 371 ФФД: 1.0 [00:51:40]line ЗНМ: 0300000141 [00:51:40]line РНМ: 0000000000091573 [00:51:40]line Версия ККМ: 001 [00:51:40]line ФМ: 0000000000874652 [00:51:40]line ФД: 76561 [00:51:40]line ФПД: 2429126500097 [00:51:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240420T005140&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76561&fm=2429126500097&tin=02508201610067®Number=0000000000091573&sum=200000 [00:51:40]written 0, free lines is 4095 [00:51:40]OFD Sender: Processing packet 76561 [packets to send 128, broken 127] [00:51:40]ProducePacketName [00:51:40]name=ofd_packets/00076561 [00:51:40]OFD Sender: To server: pG, [00:51:40]CommunicateWithHost lk.salyk.kg:30040 [00:51:40]ConnectInit lk.salyk.kg [00:51:40]Connected sock=9 [00:51:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 01 D7 08 01 17 97 5A 03 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 7E 77 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 7B 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 FD 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 02 00 00 00 F4 03 04 00 9C 11 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 11 2B 01 00 35 04 06 00 02 35 93 38 DF 01 FB 98 72 87 FC EF 9E E6 [00:51:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 7E 84 47 00 DB 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 11 2B 01 00 F4 03 04 00 26 B9 22 66 B6 04 01 00 00 6E 77 AF BA D3 F2 90 AC [00:51:40]CommunicateWithHost err = 0 [00:51:40]CheckOFDResponse [00:51:40]1017 (14) - 77093643461234 [00:51:40]1041 (16) - 0000000000874652 [00:51:40]1040 (4) - 76561 [00:51:40]1012 (4) - 19.04.2024 18:34 [00:51:40]1206 (1) - 0 [00:51:40]OFD Sender: Remove packet 76561 [00:51:40]ProducePacketName [00:51:40]name=ofd_packets/00076561 [00:51:40]NVStorageDeleteData [00:51:40]Write to MH i2c: 01 00 00 5B 0D 68 [00:51:40]Write i2c OK [00:51:40]MH_I2C_Read... [00:51:40]Read from MH i2c: 01 [00:51:40]MH_I2C_Read... [00:51:40]Read from MH i2c: 01 07 00 [00:51:40]MH_I2C_Read... [00:51:40]Read from MH i2c: 01 07 00 5B 0D 00 00 00 00 00 F5 0C 70 [00:51:40]RasterBufferAndPrint [00:51:40]line [00:51:40]line [00:51:40]line [00:51:40]line [00:51:40]line [00:51:40]written 0, free lines is 3330 [00:51:40]MH_Cut [00:51:40]Write to MH i2c: D1 01 00 62 0D 01 41 [00:51:40]Write i2c OK [00:51:40]MH_I2C_Read... [00:51:40]Read from MH i2c: D1 [00:51:40]MH_I2C_Read... [00:51:40]Read from MH i2c: D1 01 00 [00:51:40]MH_I2C_Read... [00:51:40]Read from MH i2c: D1 01 00 62 0D 00 40 [00:51:40]Write to MH i2c: 01 00 00 63 0D 70 [00:51:40]Write i2c OK [00:51:40]MH_I2C_Read... [00:51:41]OFD Sender: No OFD packet to send [00:51:41]*** Cut start [00:51:41]*** Partial cut [00:51:41]*** CUTSNS_PIN = 1 [00:51:41]*** CUTSNS_PIN = 0 [00:51:41]*** Brake cut motor [00:51:42]Read from MH i2c: 01 [00:51:42]MH_I2C_Read... [00:51:42]*** Stop cut motor [00:51:42]*** Cut end [00:51:42]Read from MH i2c: 01 07 00 [00:51:42]MH_I2C_Read... [00:51:42]Read from MH i2c: 01 07 00 63 0D 00 00 00 00 00 FF 0F 85 [00:51:42]process_action close_receipt done [00:51:42]requested_data is exist [00:51:42]produce_requested_data [00:51:42]requested_item fm.sn is exist - process it [00:51:42]wFMCommunicate request_size=4 [00:51:42]MH_SAM_APDU [00:51:42]CAPDU: 80 11 00 00 [00:51:42]Write to MH i2c: E2 08 00 64 0D 80 11 00 00 00 00 00 00 EB [00:51:42]Write i2c OK [00:51:42]MH_I2C_Read... [00:51:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:42]Read from MH i2c: E2 [00:51:42]MH_I2C_Read... [00:51:42]Read from MH i2c: E2 17 00 [00:51:42]MH_I2C_Read... [00:51:42]Read from MH i2c: E2 17 00 64 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3E [00:51:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:51:42]wFMCommunicate OK [00:51:42]requested_item fd.num is exist - process it [00:51:42]SAM_PROTO_GetFieldsCounters [00:51:42]wFMCommunicate request_size=4 [00:51:42]MH_SAM_APDU [00:51:42]CAPDU: 80 13 00 00 [00:51:42]Write to MH i2c: E2 08 00 65 0D 80 13 00 00 00 00 00 00 EE [00:51:42]Write i2c OK [00:51:42]MH_I2C_Read... [00:51:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:51:42]Read from MH i2c: E2 [00:51:42]MH_I2C_Read... [00:51:42]Read from MH i2c: E2 62 00 [00:51:42]MH_I2C_Read... [00:51:42]Read from MH i2c: E2 62 00 65 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 11 2B 01 00 0E 04 04 00 73 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 C6 [00:51: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 11 2B 01 00 0E 04 04 00 73 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:51:42]wFMCommunicate OK [00:51:42]SAM_PROTO_GetFieldsCounters done [00:51:42]requested_item shift.num is exist - process it [00:51:42]requested_item shift.opened is exist - process it [00:51:42]req_shift_opened [00:51:42]FM_GetShiftState [00:51:42]SAM_PROTO_GetShiftState [00:51:42]wFMCommunicate request_size=4 [00:51:42]MH_SAM_APDU [00:51:42]CAPDU: 80 13 01 00 [00:51:42]Write to MH i2c: E2 08 00 66 0D 80 13 01 00 00 00 00 00 F0 [00:51:42]Write i2c OK [00:51:42]MH_I2C_Read... [00:51:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:42]Read from MH i2c: E2 [00:51:42]MH_I2C_Read... [00:51:42]Read from MH i2c: E2 0E 00 [00:51:42]MH_I2C_Read... [00:51:42]Read from MH i2c: E2 0E 00 66 0D 00 09 00 01 53 0A 23 66 00 00 00 00 90 00 E2 [00:51:42]RAPDU: 09 00 01 53 0A 23 66 00 00 00 00 90 00 [00:51:42]wFMCommunicate OK [00:51:42]SAM_PROTO_GetShiftState done [00:51:42]FM_GetShiftState done [00:51:42]req_shift_opened done [00:51:42]requested_item shift.open_date is exist - process it [00:51:42]req_shift_open_date [00:51:42]req_shift_open_date done [00:51:42]produce_requested_data done [00:51:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76561,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435} [00:51:42]process_action_free close_receipt [00:51:42]json_value_free [00:51:42]json_value_free done [00:51:42]process_json_proto returns [00:51:42]Send response to host [00:51:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76561,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435}}} [00:51:42]free response buf [00:51:42]execute_script done [00:51:42]execute_script returns [00:51:42]free content buf [00:51:42]Sock 10.Close socket [00:51:42]Sock 10.Thread stoped [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:02]accept exits with 8 [00:53:02]New connection [00:53:02]New thread 3066592612 created [00:53:02]Thread 3066735972 joined [00:53:02]Waiting for new connection... [00:53:02] Sock 8.Parse request [00:53:02]Sock 8.Check first char [00:53:02]Sock 8.First char is OK [00:53:02]request: POST /json_proto HTTP/1.0 [00:53:02]Method: POST [00:53:02]URL: /json_proto [00:53:02]Method is POST - this is cgi request [00:53:02]url: /json_proto [00:53:02]query_string will be loaded in cgi processing [00:53:02]execute_cgi json_proto POST (null) [00:53:02]execute_cgi path=json_proto method=POST [00:53:02]POST find Content-Length [00:53:02]Host: 172.17.62.5:8080 [00:53:02]Content-Length: 677 [00:53:02]Content-Type: application/json [00:53:02] [00:53:02]POST finish read [00:53:02]Found Content-Length = 677 [00:53:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.040, "sum" : 260.18, "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" ] } } [00:53:02]execute_script... [00:53: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)191055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.040, "sum" : 260.18, "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" ] } } [00:53:02]POST & json_proto [00:53:02]process_json_proto [00:53:02]json parsed OK: [00:53:02]protocol is kg_v1.0 [00:53:02]action value=close_receipt [00:53:02]process_action close_receipt [00:53:02]cmd_close_receipt [00:53:02]MH_GetDate [00:53:02]Write to MH i2c: F0 00 00 67 0D 63 [00:53:02]Write i2c OK [00:53:02]MH_I2C_Read... [00:53:02]Read from MH i2c: F0 [00:53:02]MH_I2C_Read... [00:53:02]Read from MH i2c: F0 09 00 [00:53:02]MH_I2C_Read... [00:53:02]Read from MH i2c: F0 09 00 67 0D 00 F0 11 23 66 F4 E9 65 64 9C [00:53:02]GetLastDocTimeStamp 1713574300 [00:53:02]current date 1713574384 [00:53:02]FM_GetShiftState [00:53:02]SAM_PROTO_GetShiftState [00:53:02]wFMCommunicate request_size=4 [00:53:02]MH_SAM_APDU [00:53:02]CAPDU: 80 13 01 00 [00:53:02]Write to MH i2c: E2 08 00 68 0D 80 13 01 00 00 00 00 00 F2 [00:53:02]Write i2c OK [00:53:02]MH_I2C_Read... [00:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:53:02]Read from MH i2c: E2 [00:53:02]MH_I2C_Read... [00:53:02]Read from MH i2c: E2 0E 00 [00:53:02]MH_I2C_Read... [00:53:02]Read from MH i2c: E2 0E 00 68 0D 00 09 00 01 53 0A 23 66 00 00 00 00 90 00 E4 [00:53:02]RAPDU: 09 00 01 53 0A 23 66 00 00 00 00 90 00 [00:53:02]wFMCommunicate OK [00:53:02]SAM_PROTO_GetShiftState done [00:53:02]FM_GetShiftState done [00:53:02]opened in 1713572435 [00:53:02]opened+sec_in_day 1713658835 [00:53:02]quantity*price = 26017 [00:53:02]sum+1 = 26019 [00:53:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.63 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 3 20.04.2024 00:53 Смена: 371 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76562 ФПД: 230494696360317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240420T005304&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76562&fm=230494696360317&tin=02508201610067®Number=0000000000091573&sum=26000 [00:53:04]StoreToDocumentArchive [00:53:04]shift 371 fd 76562 [00:53:04]save to /storage/0371/doc_00076562 [00:53:04]save last doc name /storage/0371/doc_00076562 to /storage/kkm_last_doc_name [00:53:04]save OK [00:53:04]Clear old archive folders... [00:53:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:53:04]tlvbuf is B6E73200 [00:53:04]SAM_PROTO_ClearQueue [00:53:04]wFMCommunicate request_size=4 [00:53:04]MH_SAM_APDU [00:53:04]CAPDU: 80 09 00 00 [00:53:04]Write to MH i2c: E2 08 00 75 0D 80 09 00 00 00 00 00 00 F4 [00:53:04]Write i2c OK [00:53:04]MH_I2C_Read... [00:53:04]Read from MH i2c: E2 [00:53:04]MH_I2C_Read... [00:53:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:53:04]Read from MH i2c: E2 03 00 [00:53:04]MH_I2C_Read... [00:53:04]Read from MH i2c: E2 03 00 75 0D 00 90 00 F6 [00:53:04]RAPDU: 90 00 [00:53:04]wFMCommunicate OK [00:53:04]SAM_PROTO_ClearQueue done [00:53:04]KKMCreateOFDPacket [00:53:04]OFDProtocolAddRootSTLVToBuf [00:53:04]FM_MakeSignedData [00:53:04]FM_MakeSignedData [00:53:04]SAM_PROTO_SignData [00:53:04]wFMCommunicate request_size=4 [00:53:04]MH_SAM_APDU [00:53:04]CAPDU: 80 0D 01 02 [00:53:04]Write to MH i2c: E2 08 00 76 0D 80 0D 01 02 00 00 00 00 FC [00:53:04]Write i2c OK [00:53:04]MH_I2C_Read... [00:53:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:53:04]Read from MH i2c: E2 [00:53:04]MH_I2C_Read... [00:53:04]Read from MH i2c: E2 03 00 [00:53:04]MH_I2C_Read... [00:53:04]Read from MH i2c: E2 03 00 76 0D 00 90 00 F7 [00:53:04]RAPDU: 90 00 [00:53:04]wFMCommunicate OK [00:53:04]wFMCommunicate request_size=255 [00:53:04]MH_SAM_APDU [00:53: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 C8 0F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A2 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 CB 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 03 00 00 00 F4 03 04 00 F0 11 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 12 2B 01 00 35 04 06 00 D1 [00:53:04]Write to MH i2c: E2 02 01 77 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 C8 0F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A2 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 CB 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 03 00 00 00 F4 03 04 00 F0 11 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 12 2B 01 00 35 04 06 00 D1 00 00 DA [00:53:04]Write i2c OK [00:53:04]MH_I2C_Read... [00:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:53:04]Read from MH i2c: E2 [00:53:04]MH_I2C_Read... [00:53:04]Read from MH i2c: E2 03 00 [00:53:04]MH_I2C_Read... [00:53:04]Read from MH i2c: E2 03 00 77 0D 00 90 00 F8 [00:53:04]RAPDU: 90 00 [00:53:04]wFMCommunicate OK [00:53:04]wFMCommunicate request_size=10 [00:53:04]MH_SAM_APDU [00:53:04]CAPDU: 80 0D 02 02 05 A2 3A 7F C9 7D [00:53:04]Write to MH i2c: E2 0D 00 78 0D 80 0D 02 02 05 00 A2 3A 7F C9 7D 00 00 AA [00:53:04]Write i2c OK [00:53:04]MH_I2C_Read... [00:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:53:04]Read from MH i2c: E2 [00:53:04]MH_I2C_Read... [00:53:04]Read from MH i2c: E2 03 00 [00:53:04]MH_I2C_Read... [00:53:04]Read from MH i2c: E2 03 00 78 0D 00 90 00 F9 [00:53:04]RAPDU: 90 00 [00:53:04]wFMCommunicate OK [00:53:04]wFMCommunicate request_size=4 [00:53:04]MH_SAM_APDU [00:53:04]CAPDU: 80 0D 03 02 [00:53:04]Write to MH i2c: E2 08 00 79 0D 80 0D 03 02 00 00 00 00 01 [00:53:04]Write i2c OK [00:53:04]MH_I2C_Read... [00:53:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:53:04]Read from MH i2c: E2 [00:53:04]MH_I2C_Read... [00:53:04]Read from MH i2c: E2 0B 00 [00:53:04]MH_I2C_Read... [00:53:04]Read from MH i2c: E2 0B 00 79 0D 00 65 C2 C3 A6 6F 86 4B 39 90 00 0B [00:53:04]RAPDU: 65 C2 C3 A6 6F 86 4B 39 90 00 [00:53:04]wFMCommunicate OK [00:53:04]SAM_PROTO_SignData done [00:53:04]FM_MakeSignedData done [00:53:04]CreateOFDProtocolMessage [00:53:04]wFMCommunicate request_size=4 [00:53:04]MH_SAM_APDU [00:53:04]CAPDU: 80 11 00 00 [00:53:04]Write to MH i2c: E2 08 00 7A 0D 80 11 00 00 00 00 00 00 01 [00:53:04]Write i2c OK [00:53:04]MH_I2C_Read... [00:53:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:53:04]Read from MH i2c: E2 [00:53:04]MH_I2C_Read... [00:53:04]Read from MH i2c: E2 17 00 [00:53:04]MH_I2C_Read... [00:53:04]Read from MH i2c: E2 17 00 7A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 54 [00:53:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:53:04]wFMCommunicate OK [00:53:04]CreateOFDProtocolMessage done [00:53:04]OFDSenderStorePacket 76562 [00:53:04]StoreOFDPacket docnum=76562 [00:53:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 EE 0F 07 01 84 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 C8 0F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A2 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 CB 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 03 00 00 00 F4 03 04 00 F0 11 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 12 2B 01 00 35 04 06 00 D1 A2 3A 7F C9 7D 65 C2 C3 A6 6F 86 4B 39 [00:53:04]CheckFolder [00:53:04]dirname=/storage/ofd_packets [00:53:04]CheckFolder done [00:53:04]ProducePacketName [00:53:04]name=ofd_packets/00076562 [00:53:04]NVStorageSaveData ofd_packets/00076562 [00:53:04]File name is /storage/ofd_packets/00076562 [00:53:04]Write 301 bytes [00:53:04]NVStorageSaveData done [00:53:04]OFDSenderStorePacket done [00:53:04]KKMCreateOFDPacket done [00:53:04]NVStorageSaveData kkm_last_timestamp [00:53:04]File name is /storage/kkm_last_timestamp [00:53:04]Write 4 bytes [00:53:04]NVStorageSaveData done [00:53:04]ExternCall_PrintAddStr [00:53:04]wPrintStart [00:53:04]Write to MH i2c: 01 00 00 7B 0D 88 [00:53:04]Write i2c OK [00:53:04]MH_I2C_Read... [00:53:04]Read from MH i2c: 01 [00:53:04]MH_I2C_Read... [00:53:04]Read from MH i2c: 01 07 00 [00:53:04]MH_I2C_Read... [00:53:04]Read from MH i2c: 01 07 00 7B 0D 00 00 00 00 00 FF 0F 9D [00:53:04]RasterBufferAndPrint [00:53:04]line Счет N : (1)191055 [00:53:04]line ИНН: 02508201610067 [00:53:04]line Контрольно-Кассовый Чек [00:53:04]line ПРОДАЖА [00:53:04]line ТРК (МРК, ГНК) : 43 [00:53:04]line Товар: 2710124130 [00:53:04]line Аи-92-К-5 [00:53:04]line 4.040 * 64.40 [00:53:04]line = 260.18 [00:53:04]line НДС 12% НСП 1% [00:53:04]line > о реализуемом товаре [00:53:04]line ОКРУГЛЕНИЕ: -0.18 [00:53:04]line ИТОГО: 260.00 [00:53:04]line Внесено: 260.00 [00:53:04]line СДАЧА: 0.00 [00:53:04]line НСП 1% : 2.30 [00:53:04]line НДС 12% : 27.63 [00:53:04]line Наличными: 260.00 [00:53:04]line Безнал.: 0.00 [00:53:04]line Место: АЗС № 106 "Партнер Нефть" [00:53:04]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [00:53:04]line СНО: Общий режим [00:53:04]line Чек 3 20.04.2024 00:53 [00:53:04]line Смена: 371 ФФД: 1.0 [00:53:04]line ЗНМ: 0300000141 [00:53:04]line РНМ: 0000000000091573 [00:53:04]line Версия ККМ: 001 [00:53:04]line ФМ: 0000000000874652 [00:53:04]line ФД: 76562 [00:53:04]line ФПД: 230494696360317 [00:53:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240420T005304&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76562&fm=230494696360317&tin=02508201610067®Number=0000000000091573&sum=26000 [00:53:04]written 0, free lines is 4095 [00:53:04]OFD Sender: Processing packet 76562 [packets to send 128, broken 127] [00:53:04]ProducePacketName [00:53:04]name=ofd_packets/00076562 [00:53:04]OFD Sender: To server: pG, [00:53:04]CommunicateWithHost lk.salyk.kg:30040 [00:53:04]ConnectInit lk.salyk.kg [00:53:05]Connected sock=10 [00:53:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 EE 0F 07 01 84 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 C8 0F 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A2 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 CB 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 03 00 00 00 F4 03 04 00 F0 11 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 12 2B 01 00 35 04 06 00 D1 A2 3A 7F C9 7D 65 C2 C3 A6 6F 86 4B 39 [00:53:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 3F EB 47 00 B8 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 34 36 35 32 10 04 04 00 12 2B 01 00 F4 03 04 00 7A B9 22 66 B6 04 01 00 00 6C B2 68 AD 4B 4F 3B F6 [00:53:05]CommunicateWithHost err = 0 [00:53:05]CheckOFDResponse [00:53:05]1017 (14) - 77093643461234 [00:53:05]1041 (16) - 0000000000874652 [00:53:05]1040 (4) - 76562 [00:53:05]1012 (4) - 19.04.2024 18:35 [00:53:05]1206 (1) - 0 [00:53:05]OFD Sender: Remove packet 76562 [00:53:05]ProducePacketName [00:53:05]name=ofd_packets/00076562 [00:53:05]NVStorageDeleteData [00:53:05]Write to MH i2c: 01 00 00 A5 0D B2 [00:53:05]Write i2c OK [00:53:05]MH_I2C_Read... [00:53:05]Read from MH i2c: 01 [00:53:05]MH_I2C_Read... [00:53:05]Read from MH i2c: 01 07 00 [00:53:05]MH_I2C_Read... [00:53:05]Read from MH i2c: 01 07 00 A5 0D 00 00 00 00 00 EB 0C B0 [00:53:05]RasterBufferAndPrint [00:53:05]line [00:53:05]line [00:53:05]line [00:53:05]line [00:53:05]line [00:53:05]written 0, free lines is 3313 [00:53:05]MH_Cut [00:53:05]Write to MH i2c: D1 01 00 AC 0D 01 8B [00:53:05]Write i2c OK [00:53:05]MH_I2C_Read... [00:53:05]Read from MH i2c: D1 [00:53:05]MH_I2C_Read... [00:53:05]Read from MH i2c: D1 01 00 [00:53:05]MH_I2C_Read... [00:53:05]Read from MH i2c: D1 01 00 AC 0D 00 8A [00:53:05]Write to MH i2c: 01 00 00 AD 0D BA [00:53:05]Write i2c OK [00:53:05]MH_I2C_Read... [00:53:05]OFD Sender: No OFD packet to send [00:53:06]*** Cut start [00:53:06]*** Partial cut [00:53:06]*** CUTSNS_PIN = 1 [00:53:06]*** CUTSNS_PIN = 0 [00:53:06]*** Brake cut motor [00:53:06]Read from MH i2c: 01 [00:53:06]MH_I2C_Read... [00:53:06]*** Stop cut motor [00:53:06]*** Cut end [00:53:06]Read from MH i2c: 01 07 00 [00:53:06]MH_I2C_Read... [00:53:06]Read from MH i2c: 01 07 00 AD 0D 00 00 00 00 00 FF 0F CF [00:53:06]process_action close_receipt done [00:53:06]requested_data is exist [00:53:06]produce_requested_data [00:53:06]requested_item fm.sn is exist - process it [00:53:06]wFMCommunicate request_size=4 [00:53:06]MH_SAM_APDU [00:53:06]CAPDU: 80 11 00 00 [00:53:06]Write to MH i2c: E2 08 00 AE 0D 80 11 00 00 00 00 00 00 35 [00:53:06]Write i2c OK [00:53:06]MH_I2C_Read... [00:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:53:06]Read from MH i2c: E2 [00:53:06]MH_I2C_Read... [00:53:06]Read from MH i2c: E2 17 00 [00:53:06]MH_I2C_Read... [00:53:06]Read from MH i2c: E2 17 00 AE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 88 [00:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [00:53:06]wFMCommunicate OK [00:53:06]requested_item fd.num is exist - process it [00:53:06]SAM_PROTO_GetFieldsCounters [00:53:06]wFMCommunicate request_size=4 [00:53:06]MH_SAM_APDU [00:53:06]CAPDU: 80 13 00 00 [00:53:06]Write to MH i2c: E2 08 00 AF 0D 80 13 00 00 00 00 00 00 38 [00:53:06]Write i2c OK [00:53:06]MH_I2C_Read... [00:53:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:53:06]Read from MH i2c: E2 [00:53:06]MH_I2C_Read... [00:53:06]Read from MH i2c: E2 62 00 [00:53:06]MH_I2C_Read... [00:53:06]Read from MH i2c: E2 62 00 AF 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 12 2B 01 00 0E 04 04 00 73 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 14 [00:53:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 12 2B 01 00 0E 04 04 00 73 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:53:06]wFMCommunicate OK [00:53:06]SAM_PROTO_GetFieldsCounters done [00:53:06]requested_item shift.num is exist - process it [00:53:06]requested_item shift.opened is exist - process it [00:53:06]req_shift_opened [00:53:06]FM_GetShiftState [00:53:06]SAM_PROTO_GetShiftState [00:53:06]wFMCommunicate request_size=4 [00:53:06]MH_SAM_APDU [00:53:06]CAPDU: 80 13 01 00 [00:53:06]Write to MH i2c: E2 08 00 B0 0D 80 13 01 00 00 00 00 00 3A [00:53:06]Write i2c OK [00:53:06]MH_I2C_Read... [00:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:53:07]Read from MH i2c: E2 [00:53:07]MH_I2C_Read... [00:53:07]Read from MH i2c: E2 0E 00 [00:53:07]MH_I2C_Read... [00:53:07]Read from MH i2c: E2 0E 00 B0 0D 00 09 00 01 53 0A 23 66 00 00 00 00 90 00 2C [00:53:07]RAPDU: 09 00 01 53 0A 23 66 00 00 00 00 90 00 [00:53:07]wFMCommunicate OK [00:53:07]SAM_PROTO_GetShiftState done [00:53:07]FM_GetShiftState done [00:53:07]req_shift_opened done [00:53:07]requested_item shift.open_date is exist - process it [00:53:07]req_shift_open_date [00:53:07]req_shift_open_date done [00:53:07]produce_requested_data done [00:53:07]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76562,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435} [00:53:07]process_action_free close_receipt [00:53:07]json_value_free [00:53:07]json_value_free done [00:53:07]process_json_proto returns [00:53:07]Send response to host [00:53:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76562,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435}}} [00:53:07]free response buf [00:53:07]execute_script done [00:53:07]execute_script returns [00:53:07]free content buf [00:53:07]Sock 8.Close socket [00:53:07]Sock 8.Thread stoped [00:53:10]OFD Sender: No OFD packet to send [00:53:15]OFD Sender: No OFD packet to send [00:53:20]OFD Sender: No OFD packet to send [00:53:25]OFD Sender: No OFD packet to send [00:53:30]OFD Sender: No OFD packet to send [00:53:35]OFD Sender: No OFD packet to send [00:53:40]OFD Sender: No OFD packet to send [00:53:45]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]OFD Sender: No OFD packet to send [00:55:10]OFD Sender: No OFD packet to send [00:55:15]OFD Sender: No OFD packet to send [00:55:20]OFD Sender: No OFD packet to send [00:55:25]OFD Sender: No OFD packet to send [00:55:30]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:21]OFD Sender: No OFD packet to send [00:57:26]OFD Sender: No OFD packet to send [00:57:31]OFD Sender: No OFD packet to send [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:31]OFD Sender: No OFD packet to send [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:46]OFD Sender: No OFD packet to send [01:00:51]OFD Sender: No OFD packet to send [01:00:56]OFD Sender: No OFD packet to send [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:21]OFD Sender: No OFD packet to send [01:01:26]OFD Sender: No OFD packet to send [01:01:31]OFD Sender: No OFD packet to send [01:01:36]OFD Sender: No OFD packet to send [01:01:41]OFD Sender: No OFD packet to send [01:01:46]OFD Sender: No OFD packet to send [01:01:51]OFD Sender: No OFD packet to send [01:01:56]OFD Sender: No OFD packet to send [01:02:01]OFD Sender: No OFD packet to send [01:02:06]OFD Sender: No OFD packet to send [01:02:11]OFD Sender: No OFD packet to send [01:02:16]OFD Sender: No OFD packet to send [01:02:21]OFD Sender: No OFD packet to send [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:31]OFD Sender: No OFD packet to send [01:04:36]OFD Sender: No OFD packet to send [01:04:41]OFD Sender: No OFD packet to send [01:04:46]OFD Sender: No OFD packet to send [01:04:51]OFD Sender: No OFD packet to send [01:04:56]OFD Sender: No OFD packet to send [01:05:01]OFD Sender: No OFD packet to send [01:05:06]OFD Sender: No OFD packet to send [01:05:11]OFD Sender: No OFD packet to send [01:05:16]OFD Sender: No OFD packet to send [01:05:21]OFD Sender: No OFD packet to send [01:05:26]OFD Sender: No OFD packet to send [01:05:31]OFD Sender: No OFD packet to send [01:05:36]OFD Sender: No OFD packet to send [01:05:41]OFD Sender: No OFD packet to send [01:05:46]OFD Sender: No OFD packet to send [01:05:51]OFD Sender: No OFD packet to send [01:05:56]OFD Sender: No OFD packet to send [01:06:01]OFD Sender: No OFD packet to send [01:06:06]OFD Sender: No OFD packet to send [01:06:11]OFD Sender: No OFD packet to send [01:06:16]OFD Sender: No OFD packet to send [01:06:21]OFD Sender: No OFD packet to send [01:06:26]OFD Sender: No OFD packet to send [01:06:31]OFD Sender: No OFD packet to send [01:06:36]OFD Sender: No OFD packet to send [01:06:41]OFD Sender: No OFD packet to send [01:06:46]OFD Sender: No OFD packet to send [01:06:51]OFD Sender: No OFD packet to send [01:06:56]OFD Sender: No OFD packet to send [01:07:01]OFD Sender: No OFD packet to send [01:07:06]OFD Sender: No OFD packet to send [01:07:11]OFD Sender: No OFD packet to send [01:07:16]OFD Sender: No OFD packet to send [01:07:21]OFD Sender: No OFD packet to send [01:07:26]OFD Sender: No OFD packet to send [01:07:31]OFD Sender: No OFD packet to send [01:07:36]OFD Sender: No OFD packet to send [01:07:41]OFD Sender: No OFD packet to send [01:07:46]OFD Sender: No OFD packet to send [01:07:51]OFD Sender: No OFD packet to send [01:07:56]OFD Sender: No OFD packet to send [01:08:01]OFD Sender: No OFD packet to send [01:08:06]OFD Sender: No OFD packet to send [01:08:11]OFD Sender: No OFD packet to send [01:08:16]OFD Sender: No OFD packet to send [01:08:21]OFD Sender: No OFD packet to send [01:08:26]OFD Sender: No OFD packet to send [01:08:31]OFD Sender: No OFD packet to send [01:08:34]accept exits with 9 [01:08:34]New connection [01:08:34]New thread 3066735972 created [01:08:34]Thread 3066592612 joined [01:08:34]Waiting for new connection... [01:08:34] Sock 9.Parse request [01:08:34]Sock 9.Check first char [01:08:34]Sock 9.First char is OK [01:08:34]request: POST /json_proto HTTP/1.0 [01:08:34]Method: POST [01:08:34]URL: /json_proto [01:08:34]Method is POST - this is cgi request [01:08:34]url: /json_proto [01:08:34]query_string will be loaded in cgi processing [01:08:34]execute_cgi json_proto POST (null) [01:08:34]execute_cgi path=json_proto method=POST [01:08:34]POST find Content-Length [01:08:34]Host: 172.17.62.5:8080 [01:08:34]Content-Length: 677 [01:08:34]Content-Type: application/json [01:08:34] [01:08:34]POST finish read [01:08:34]Found Content-Length = 677 [01:08:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191056", "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" : 64.40, "quantity" : 7.300, "sum" : 470.12, "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" ] } } [01:08:34]execute_script... [01:08: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)191056", "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" : 64.40, "quantity" : 7.300, "sum" : 470.12, "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" ] } } [01:08:34]POST & json_proto [01:08:34]process_json_proto [01:08:34]json parsed OK: [01:08:34]protocol is kg_v1.0 [01:08:34]action value=close_receipt [01:08:34]process_action close_receipt [01:08:34]cmd_close_receipt [01:08:34]MH_GetDate [01:08:34]Write to MH i2c: F0 00 00 B1 0D AD [01:08:34]Write i2c OK [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: F0 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: F0 09 00 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: F0 09 00 B1 0D 00 94 15 23 66 F4 E9 65 64 8E [01:08:34]GetLastDocTimeStamp 1713574384 [01:08:34]current date 1713575316 [01:08:34]FM_GetShiftState [01:08:34]SAM_PROTO_GetShiftState [01:08:34]wFMCommunicate request_size=4 [01:08:34]MH_SAM_APDU [01:08:34]CAPDU: 80 13 01 00 [01:08:34]Write to MH i2c: E2 08 00 B2 0D 80 13 01 00 00 00 00 00 3C [01:08:34]Write i2c OK [01:08:34]MH_I2C_Read... [01:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:34]Read from MH i2c: E2 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 0E 00 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 0E 00 B2 0D 00 09 00 01 53 0A 23 66 00 00 00 00 90 00 2E [01:08:34]RAPDU: 09 00 01 53 0A 23 66 00 00 00 00 90 00 [01:08:34]wFMCommunicate OK [01:08:34]SAM_PROTO_GetShiftState done [01:08:34]FM_GetShiftState done [01:08:34]opened in 1713572435 [01:08:34]opened+sec_in_day 1713658835 [01:08:34]quantity*price = 47012 [01:08:34]sum+1 = 47013 [01:08:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 470.00 Внесено: 470.00 СДАЧА: 0.00 НСП 1% : 4.16 НДС 12% : 49.92 Наличными: 470.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 4 20.04.2024 01:08 Смена: 371 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76563 ФПД: 63445046920959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240420T010836&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76563&fm=63445046920959&tin=02508201610067®Number=0000000000091573&sum=47000 [01:08:35]StoreToDocumentArchive [01:08:35]shift 371 fd 76563 [01:08:35]save to /storage/0371/doc_00076563 [01:08:35]save last doc name /storage/0371/doc_00076563 to /storage/kkm_last_doc_name [01:08:35]save OK [01:08:35]Clear old archive folders... [01:08:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:08:35]tlvbuf is 015F17E0 [01:08:35]SAM_PROTO_ClearQueue [01:08:35]wFMCommunicate request_size=4 [01:08:35]MH_SAM_APDU [01:08:35]CAPDU: 80 09 00 00 [01:08:35]Write to MH i2c: E2 08 00 BF 0D 80 09 00 00 00 00 00 00 3E [01:08:35]Write i2c OK [01:08:35]MH_I2C_Read... [01:08:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:08:35]Read from MH i2c: E2 [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: E2 03 00 [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: E2 03 00 BF 0D 00 90 00 40 [01:08:35]RAPDU: 90 00 [01:08:35]wFMCommunicate OK [01:08:35]SAM_PROTO_ClearQueue done [01:08:35]KKMCreateOFDPacket [01:08:35]OFDProtocolAddRootSTLVToBuf [01:08:35]FM_MakeSignedData [01:08:35]FM_MakeSignedData [01:08:35]SAM_PROTO_SignData [01:08:35]wFMCommunicate request_size=4 [01:08:35]MH_SAM_APDU [01:08:35]CAPDU: 80 0D 01 02 [01:08:35]Write to MH i2c: E2 08 00 C0 0D 80 0D 01 02 00 00 00 00 46 [01:08:35]Write i2c OK [01:08:35]MH_I2C_Read... [01:08:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:08:35]Read from MH i2c: E2 [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: E2 03 00 [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: E2 03 00 C0 0D 00 90 00 41 [01:08:35]RAPDU: 90 00 [01:08:35]wFMCommunicate OK [01:08:35]wFMCommunicate request_size=255 [01:08:35]MH_SAM_APDU [01:08: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 84 1C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A4 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 80 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 04 00 00 00 F4 03 04 00 94 15 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 13 2B 01 00 35 04 06 00 39 [01:08:35]Write to MH i2c: E2 02 01 C1 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 84 1C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A4 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 80 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 04 00 00 00 F4 03 04 00 94 15 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 13 2B 01 00 35 04 06 00 39 00 00 80 [01:08:35]Write i2c OK [01:08:35]MH_I2C_Read... [01:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:35]Read from MH i2c: E2 [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: E2 03 00 [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: E2 03 00 C1 0D 00 90 00 42 [01:08:35]RAPDU: 90 00 [01:08:35]wFMCommunicate OK [01:08:35]wFMCommunicate request_size=10 [01:08:35]MH_SAM_APDU [01:08:35]CAPDU: 80 0D 02 02 05 B3 F3 7C 06 FF [01:08:35]Write to MH i2c: E2 0D 00 C2 0D 80 0D 02 02 05 00 B3 F3 7C 06 FF 00 00 7A [01:08:35]Write i2c OK [01:08:35]MH_I2C_Read... [01:08:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:36]Read from MH i2c: E2 [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: E2 03 00 [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: E2 03 00 C2 0D 00 90 00 43 [01:08:36]RAPDU: 90 00 [01:08:36]wFMCommunicate OK [01:08:36]wFMCommunicate request_size=4 [01:08:36]MH_SAM_APDU [01:08:36]CAPDU: 80 0D 03 02 [01:08:36]Write to MH i2c: E2 08 00 C3 0D 80 0D 03 02 00 00 00 00 4B [01:08:36]Write i2c OK [01:08:36]MH_I2C_Read... [01:08:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:08:36]Read from MH i2c: E2 [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: E2 0B 00 [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: E2 0B 00 C3 0D 00 C8 63 16 FF 3F 1F 0F DB 90 00 D4 [01:08:36]RAPDU: C8 63 16 FF 3F 1F 0F DB 90 00 [01:08:36]wFMCommunicate OK [01:08:36]SAM_PROTO_SignData done [01:08:36]FM_MakeSignedData done [01:08:36]CreateOFDProtocolMessage [01:08:36]wFMCommunicate request_size=4 [01:08:36]MH_SAM_APDU [01:08:36]CAPDU: 80 11 00 00 [01:08:36]Write to MH i2c: E2 08 00 C4 0D 80 11 00 00 00 00 00 00 4B [01:08:36]Write i2c OK [01:08:36]MH_I2C_Read... [01:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:36]Read from MH i2c: E2 [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: E2 17 00 [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: E2 17 00 C4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9E [01:08:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:08:36]wFMCommunicate OK [01:08:36]CreateOFDProtocolMessage done [01:08:36]OFDSenderStorePacket 76563 [01:08:36]StoreOFDPacket docnum=76563 [01:08:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 1B A0 07 01 23 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 84 1C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A4 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 80 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 04 00 00 00 F4 03 04 00 94 15 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 13 2B 01 00 35 04 06 00 39 B3 F3 7C 06 FF C8 63 16 FF 3F 1F 0F DB [01:08:36]CheckFolder [01:08:36]dirname=/storage/ofd_packets [01:08:36]CheckFolder done [01:08:36]ProducePacketName [01:08:36]name=ofd_packets/00076563 [01:08:36]NVStorageSaveData ofd_packets/00076563 [01:08:36]File name is /storage/ofd_packets/00076563 [01:08:36]Write 301 bytes [01:08:36]NVStorageSaveData done [01:08:36]OFDSenderStorePacket done [01:08:36]KKMCreateOFDPacket done [01:08:36]NVStorageSaveData kkm_last_timestamp [01:08:36]File name is /storage/kkm_last_timestamp [01:08:36]Write 4 bytes [01:08:36]NVStorageSaveData done [01:08:36]ExternCall_PrintAddStr [01:08:36]wPrintStart [01:08:36]Write to MH i2c: 01 00 00 C5 0D D2 [01:08:36]Write i2c OK [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: 01 [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: 01 07 00 [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: 01 07 00 C5 0D 00 00 00 00 00 FF 0F E7 [01:08:36]RasterBufferAndPrint [01:08:36]line Счет N : (1)191056 [01:08:36]line ИНН: 02508201610067 [01:08:36]line Контрольно-Кассовый Чек [01:08:36]line ПРОДАЖА [01:08:36]line ТРК (МРК, ГНК) : 12 [01:08:36]line Товар: 2710124130 [01:08:36]line Аи-92-К-5 [01:08:36]line 7.300 * 64.40 [01:08:36]line = 470.12 [01:08:36]line НДС 12% НСП 1% [01:08:36]line > о реализуемом товаре [01:08:36]line ОКРУГЛЕНИЕ: -0.12 [01:08:36]line ИТОГО: 470.00 [01:08:36]line Внесено: 470.00 [01:08:36]line СДАЧА: 0.00 [01:08:36]line НСП 1% : 4.16 [01:08:36]line НДС 12% : 49.92 [01:08:36]line Наличными: 470.00 [01:08:36]line Безнал.: 0.00 [01:08:36]line Место: АЗС № 106 "Партнер Нефть" [01:08:36]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [01:08:36]line СНО: Общий режим [01:08:36]line Чек 4 20.04.2024 01:08 [01:08:36]line Смена: 371 ФФД: 1.0 [01:08:36]line ЗНМ: 0300000141 [01:08:36]line РНМ: 0000000000091573 [01:08:36]line Версия ККМ: 001 [01:08:36]line ФМ: 0000000000874652 [01:08:36]line ФД: 76563 [01:08:36]line ФПД: 63445046920959 [01:08:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240420T010836&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76563&fm=63445046920959&tin=02508201610067®Number=0000000000091573&sum=47000 [01:08:36]written 0, free lines is 4095 [01:08:36]OFD Sender: Processing packet 76563 [packets to send 128, broken 127] [01:08:36]ProducePacketName [01:08:36]name=ofd_packets/00076563 [01:08:36]OFD Sender: To server: pG, [01:08:36]CommunicateWithHost lk.salyk.kg:30040 [01:08:36]ConnectInit lk.salyk.kg [01:08:36]Connected sock=10 [01:08:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 1B A0 07 01 23 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 84 1C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 A4 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 80 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 04 00 00 00 F4 03 04 00 94 15 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 13 2B 01 00 35 04 06 00 39 B3 F3 7C 06 FF C8 63 16 FF 3F 1F 0F DB [01:08:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D4 47 47 00 A3 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 13 2B 01 00 F4 03 04 00 1E BD 22 66 B6 04 01 00 00 49 CB A8 47 1C 78 A9 4D [01:08:36]CommunicateWithHost err = 0 [01:08:36]CheckOFDResponse [01:08:36]1017 (14) - 77093643461234 [01:08:36]1041 (16) - 0000000000874652 [01:08:36]1040 (4) - 76563 [01:08:36]1012 (4) - 19.04.2024 18:51 [01:08:36]1206 (1) - 0 [01:08:36]OFD Sender: Remove packet 76563 [01:08:36]ProducePacketName [01:08:36]name=ofd_packets/00076563 [01:08:36]NVStorageDeleteData [01:08:36]Write to MH i2c: 01 00 00 EF 0D FC [01:08:36]Write i2c OK [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: 01 [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: 01 07 00 [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: 01 07 00 EF 0D 00 00 00 00 00 F2 0C 01 [01:08:36]RasterBufferAndPrint [01:08:36]line [01:08:36]line [01:08:36]line [01:08:36]line [01:08:36]line [01:08:36]written 0, free lines is 3322 [01:08:36]MH_Cut [01:08:36]Write to MH i2c: D1 01 00 F6 0D 01 D5 [01:08:36]Write i2c OK [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: D1 [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: D1 01 00 [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: D1 01 00 F6 0D 00 D4 [01:08:36]Write to MH i2c: 01 00 00 F7 0D 04 [01:08:36]Write i2c OK [01:08:36]MH_I2C_Read... [01:08:37]OFD Sender: No OFD packet to send [01:08:37]*** Cut start [01:08:37]*** Partial cut [01:08:37]*** CUTSNS_PIN = 1 [01:08:37]*** CUTSNS_PIN = 0 [01:08:37]*** Brake cut motor [01:08:38]Read from MH i2c: 01 [01:08:38]MH_I2C_Read... [01:08:38]*** Stop cut motor [01:08:38]*** Cut end [01:08:38]Read from MH i2c: 01 07 00 [01:08:38]MH_I2C_Read... [01:08:38]Read from MH i2c: 01 07 00 F7 0D 00 00 00 00 00 FF 0F 19 [01:08:38]process_action close_receipt done [01:08:38]requested_data is exist [01:08:38]produce_requested_data [01:08:38]requested_item fm.sn is exist - process it [01:08:38]wFMCommunicate request_size=4 [01:08:38]MH_SAM_APDU [01:08:38]CAPDU: 80 11 00 00 [01:08:38]Write to MH i2c: E2 08 00 F8 0D 80 11 00 00 00 00 00 00 7F [01:08:38]Write i2c OK [01:08:38]MH_I2C_Read... [01:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:38]Read from MH i2c: E2 [01:08:38]MH_I2C_Read... [01:08:38]Read from MH i2c: E2 17 00 [01:08:38]MH_I2C_Read... [01:08:38]Read from MH i2c: E2 17 00 F8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D2 [01:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:08:38]wFMCommunicate OK [01:08:38]requested_item fd.num is exist - process it [01:08:38]SAM_PROTO_GetFieldsCounters [01:08:38]wFMCommunicate request_size=4 [01:08:38]MH_SAM_APDU [01:08:38]CAPDU: 80 13 00 00 [01:08:38]Write to MH i2c: E2 08 00 F9 0D 80 13 00 00 00 00 00 00 82 [01:08:38]Write i2c OK [01:08:38]MH_I2C_Read... [01:08:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:08:38]Read from MH i2c: E2 [01:08:38]MH_I2C_Read... [01:08:38]Read from MH i2c: E2 62 00 [01:08:38]MH_I2C_Read... [01:08:38]Read from MH i2c: E2 62 00 F9 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 13 2B 01 00 0E 04 04 00 73 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [01:08:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 13 2B 01 00 0E 04 04 00 73 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:08:38]wFMCommunicate OK [01:08:38]SAM_PROTO_GetFieldsCounters done [01:08:38]requested_item shift.num is exist - process it [01:08:38]requested_item shift.opened is exist - process it [01:08:38]req_shift_opened [01:08:38]FM_GetShiftState [01:08:38]SAM_PROTO_GetShiftState [01:08:38]wFMCommunicate request_size=4 [01:08:38]MH_SAM_APDU [01:08:38]CAPDU: 80 13 01 00 [01:08:38]Write to MH i2c: E2 08 00 FA 0D 80 13 01 00 00 00 00 00 84 [01:08:38]Write i2c OK [01:08:38]MH_I2C_Read... [01:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:38]Read from MH i2c: E2 [01:08:38]MH_I2C_Read... [01:08:38]Read from MH i2c: E2 0E 00 [01:08:38]MH_I2C_Read... [01:08:38]Read from MH i2c: E2 0E 00 FA 0D 00 09 00 01 53 0A 23 66 00 00 00 00 90 00 76 [01:08:38]RAPDU: 09 00 01 53 0A 23 66 00 00 00 00 90 00 [01:08:38]wFMCommunicate OK [01:08:38]SAM_PROTO_GetShiftState done [01:08:38]FM_GetShiftState done [01:08:38]req_shift_opened done [01:08:38]requested_item shift.open_date is exist - process it [01:08:38]req_shift_open_date [01:08:38]req_shift_open_date done [01:08:38]produce_requested_data done [01:08:38]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76563,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435} [01:08:38]process_action_free close_receipt [01:08:38]json_value_free [01:08:38]json_value_free done [01:08:38]process_json_proto returns [01:08:38]Send response to host [01:08:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76563,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435}}} [01:08:38]free response buf [01:08:38]execute_script done [01:08:38]execute_script returns [01:08:38]free content buf [01:08:38]Sock 9.Close socket [01:08:38]Sock 9.Thread stoped [01:08:42]OFD Sender: No OFD packet to send [01:08:47]OFD Sender: No OFD packet to send [01:08:52]OFD Sender: No OFD packet to send [01:08:57]OFD Sender: No OFD packet to send [01:09:02]OFD Sender: No OFD packet to send [01:09:03]accept exits with 8 [01:09:03]New connection [01:09:03]New thread 3066592612 created [01:09:03]Thread 3066735972 joined [01:09:03]Waiting for new connection... [01:09:03] Sock 8.Parse request [01:09:03]Sock 8.Check first char [01:09:03]Sock 8.First char is OK [01:09:03]request: POST /json_proto HTTP/1.0 [01:09:03]Method: POST [01:09:03]URL: /json_proto [01:09:03]Method is POST - this is cgi request [01:09:03]url: /json_proto [01:09:03]query_string will be loaded in cgi processing [01:09:03]execute_cgi json_proto POST (null) [01:09:03]execute_cgi path=json_proto method=POST [01:09:03]POST find Content-Length [01:09:03]Host: 172.17.62.5:8080 [01:09:03]Content-Length: 670 [01:09:03]Content-Type: application/json [01:09:03] [01:09:03]POST finish read [01:09:03]Found Content-Length = 670 [01:09:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 4.590, "sum" : 300.19, "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" ] } } [01:09:03]execute_script... [01:09:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 4.590, "sum" : 300.19, "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" ] } } [01:09:03]POST & json_proto [01:09:03]process_json_proto [01:09:03]json parsed OK: [01:09:03]protocol is kg_v1.0 [01:09:03]action value=close_receipt [01:09:03]process_action close_receipt [01:09:03]cmd_close_receipt [01:09:03]MH_GetDate [01:09:03]Write to MH i2c: F0 00 00 FB 0D F7 [01:09:03]Write i2c OK [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: F0 [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: F0 09 00 [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: F0 09 00 FB 0D 00 B1 15 23 66 F4 E9 65 64 F5 [01:09:03]GetLastDocTimeStamp 1713575316 [01:09:03]current date 1713575345 [01:09:03]FM_GetShiftState [01:09:03]SAM_PROTO_GetShiftState [01:09:03]wFMCommunicate request_size=4 [01:09:03]MH_SAM_APDU [01:09:03]CAPDU: 80 13 01 00 [01:09:03]Write to MH i2c: E2 08 00 FC 0D 80 13 01 00 00 00 00 00 86 [01:09:03]Write i2c OK [01:09:03]MH_I2C_Read... [01:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:03]Read from MH i2c: E2 [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: E2 0E 00 [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: E2 0E 00 FC 0D 00 09 00 01 53 0A 23 66 00 00 00 00 90 00 78 [01:09:03]RAPDU: 09 00 01 53 0A 23 66 00 00 00 00 90 00 [01:09:03]wFMCommunicate OK [01:09:03]SAM_PROTO_GetShiftState done [01:09:03]FM_GetShiftState done [01:09:03]opened in 1713572435 [01:09:03]opened+sec_in_day 1713658835 [01:09:03]quantity*price = 30018 [01:09:03]sum+1 = 30020 [01:09:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 5 20.04.2024 01:09 Смена: 371 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76564 ФПД: 186097312376107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240420T010905&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76564&fm=186097312376107&tin=02508201610067®Number=0000000000091573&sum=30000 [01:09:04]StoreToDocumentArchive [01:09:04]shift 371 fd 76564 [01:09:04]save to /storage/0371/doc_00076564 [01:09:04]save last doc name /storage/0371/doc_00076564 to /storage/kkm_last_doc_name [01:09:04]save OK [01:09:04]Clear old archive folders... [01:09:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:09:04]tlvbuf is 0161E310 [01:09:04]SAM_PROTO_ClearQueue [01:09:04]wFMCommunicate request_size=4 [01:09:04]MH_SAM_APDU [01:09:04]CAPDU: 80 09 00 00 [01:09:04]Write to MH i2c: E2 08 00 09 0E 80 09 00 00 00 00 00 00 89 [01:09:04]Write i2c OK [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: E2 [01:09:04]MH_I2C_Read... [01:09:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:09:04]Read from MH i2c: E2 03 00 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: E2 03 00 09 0E 00 90 00 8B [01:09:04]RAPDU: 90 00 [01:09:04]wFMCommunicate OK [01:09:04]SAM_PROTO_ClearQueue done [01:09:04]KKMCreateOFDPacket [01:09:04]OFDProtocolAddRootSTLVToBuf [01:09:04]FM_MakeSignedData [01:09:04]FM_MakeSignedData [01:09:04]SAM_PROTO_SignData [01:09:04]wFMCommunicate request_size=4 [01:09:04]MH_SAM_APDU [01:09:04]CAPDU: 80 0D 01 02 [01:09:04]Write to MH i2c: E2 08 00 0A 0E 80 0D 01 02 00 00 00 00 91 [01:09:04]Write i2c OK [01:09:04]MH_I2C_Read... [01:09:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:09:04]Read from MH i2c: E2 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: E2 03 00 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: E2 03 00 0A 0E 00 90 00 8C [01:09:04]RAPDU: 90 00 [01:09:04]wFMCommunicate OK [01:09:04]wFMCommunicate request_size=255 [01:09:04]MH_SAM_APDU [01:09: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 EE 11 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 43 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 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 B1 15 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 14 2B 01 00 35 04 06 00 [01:09:04]Write to MH i2c: E2 02 01 0B 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 EE 11 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 43 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 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 B1 15 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 14 2B 01 00 35 04 06 00 00 00 71 [01:09:04]Write i2c OK [01:09:04]MH_I2C_Read... [01:09:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:09:04]Read from MH i2c: E2 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: E2 03 00 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: E2 03 00 0B 0E 00 90 00 8D [01:09:04]RAPDU: 90 00 [01:09:04]wFMCommunicate OK [01:09:04]wFMCommunicate request_size=11 [01:09:04]MH_SAM_APDU [01:09:04]CAPDU: 80 0D 02 02 06 A9 41 28 32 A5 2B [01:09:04]Write to MH i2c: E2 0E 00 0C 0E 80 0D 02 02 06 00 A9 41 28 32 A5 2B 00 00 B4 [01:09:04]Write i2c OK [01:09:04]MH_I2C_Read... [01:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:09:05]Read from MH i2c: E2 [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: E2 03 00 [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: E2 03 00 0C 0E 00 90 00 8E [01:09:05]RAPDU: 90 00 [01:09:05]wFMCommunicate OK [01:09:05]wFMCommunicate request_size=4 [01:09:05]MH_SAM_APDU [01:09:05]CAPDU: 80 0D 03 02 [01:09:05]Write to MH i2c: E2 08 00 0D 0E 80 0D 03 02 00 00 00 00 96 [01:09:05]Write i2c OK [01:09:05]MH_I2C_Read... [01:09:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:09:05]Read from MH i2c: E2 [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: E2 0B 00 [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: E2 0B 00 0D 0E 00 25 46 C6 10 62 B2 E1 FE 90 00 CB [01:09:05]RAPDU: 25 46 C6 10 62 B2 E1 FE 90 00 [01:09:05]wFMCommunicate OK [01:09:05]SAM_PROTO_SignData done [01:09:05]FM_MakeSignedData done [01:09:05]CreateOFDProtocolMessage [01:09:05]wFMCommunicate request_size=4 [01:09:05]MH_SAM_APDU [01:09:05]CAPDU: 80 11 00 00 [01:09:05]Write to MH i2c: E2 08 00 0E 0E 80 11 00 00 00 00 00 00 96 [01:09:05]Write i2c OK [01:09:05]MH_I2C_Read... [01:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:05]Read from MH i2c: E2 [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: E2 17 00 [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: E2 17 00 0E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E9 [01:09:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:09:05]wFMCommunicate OK [01:09:05]CreateOFDProtocolMessage done [01:09:05]OFDSenderStorePacket 76564 [01:09:05]StoreOFDPacket docnum=76564 [01:09:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 97 74 08 01 C1 41 5A 03 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 EE 11 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 43 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 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 B1 15 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 14 2B 01 00 35 04 06 00 A9 41 28 32 A5 2B 25 46 C6 10 62 B2 E1 FE [01:09:05]CheckFolder [01:09:05]dirname=/storage/ofd_packets [01:09:05]CheckFolder done [01:09:05]ProducePacketName [01:09:05]name=ofd_packets/00076564 [01:09:05]NVStorageSaveData ofd_packets/00076564 [01:09:05]File name is /storage/ofd_packets/00076564 [01:09:05]Write 302 bytes [01:09:05]NVStorageSaveData done [01:09:05]OFDSenderStorePacket done [01:09:05]KKMCreateOFDPacket done [01:09:05]NVStorageSaveData kkm_last_timestamp [01:09:05]File name is /storage/kkm_last_timestamp [01:09:05]Write 4 bytes [01:09:05]NVStorageSaveData done [01:09:05]ExternCall_PrintAddStr [01:09:05]wPrintStart [01:09:05]Write to MH i2c: 01 00 00 0F 0E 1D [01:09:05]Write i2c OK [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: 01 [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: 01 07 00 [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: 01 07 00 0F 0E 00 00 00 00 00 FF 0F 32 [01:09:05]RasterBufferAndPrint [01:09:05]line Счет N : (1)191057 [01:09:05]line ИНН: 02508201610067 [01:09:05]line Контрольно-Кассовый Чек [01:09:05]line ПРОДАЖА [01:09:05]line ТРК (МРК, ГНК) : 31 [01:09:05]line Товар: 2710124130 [01:09:05]line SUPER 92-К-5 [01:09:05]line 4.590 * 65.40 [01:09:05]line = 300.19 [01:09:05]line НДС 12% НСП 1% [01:09:05]line > о реализуемом товаре [01:09:05]line ОКРУГЛЕНИЕ: -0.19 [01:09:05]line ИТОГО: 300.00 [01:09:05]line Внесено: 300.00 [01:09:05]line СДАЧА: 0.00 [01:09:05]line НСП 1% : 2.66 [01:09:05]line НДС 12% : 31.88 [01:09:05]line Наличными: 300.00 [01:09:05]line Безнал.: 0.00 [01:09:05]line Место: АЗС № 106 "Партнер Нефть" [01:09:05]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [01:09:05]line СНО: Общий режим [01:09:05]line Чек 5 20.04.2024 01:09 [01:09:05]line Смена: 371 ФФД: 1.0 [01:09:05]line ЗНМ: 0300000141 [01:09:05]line РНМ: 0000000000091573 [01:09:05]line Версия ККМ: 001 [01:09:05]line ФМ: 0000000000874652 [01:09:05]line ФД: 76564 [01:09:05]line ФПД: 186097312376107 [01:09:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240420T010905&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76564&fm=186097312376107&tin=02508201610067®Number=0000000000091573&sum=30000 [01:09:05]OFD Sender: Processing packet 76564 [packets to send 128, broken 127] [01:09:05]ProducePacketName [01:09:05]name=ofd_packets/00076564 [01:09:05]OFD Sender: To server: pG, [01:09:05]CommunicateWithHost lk.salyk.kg:30040 [01:09:05]ConnectInit lk.salyk.kg [01:09:05]written 0, free lines is 4095 [01:09:05]Connected sock=10 [01:09:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 97 74 08 01 C1 41 5A 03 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 EE 11 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 43 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 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 B1 15 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 14 2B 01 00 35 04 06 00 A9 41 28 32 A5 2B 25 46 C6 10 62 B2 E1 FE [01:09:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 8E D1 47 00 33 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 34 36 35 32 10 04 04 00 14 2B 01 00 F4 03 04 00 3B BD 22 66 B6 04 01 00 00 1D 37 8B 16 84 F0 BB 1A [01:09:05]CommunicateWithHost err = 0 [01:09:05]CheckOFDResponse [01:09:05]1017 (14) - 77093643461234 [01:09:05]1041 (16) - 0000000000874652 [01:09:05]1040 (4) - 76564 [01:09:05]1012 (4) - 19.04.2024 18:51 [01:09:05]1206 (1) - 0 [01:09:05]OFD Sender: Remove packet 76564 [01:09:05]ProducePacketName [01:09:05]name=ofd_packets/00076564 [01:09:05]NVStorageDeleteData [01:09:05]Write to MH i2c: 01 00 00 39 0E 47 [01:09:05]Write i2c OK [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: 01 [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: 01 07 00 [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: 01 07 00 39 0E 00 00 00 00 00 EC 0C 46 [01:09:05]RasterBufferAndPrint [01:09:05]line [01:09:05]line [01:09:05]line [01:09:05]line [01:09:05]line [01:09:05]written 0, free lines is 3317 [01:09:05]MH_Cut [01:09:05]Write to MH i2c: D1 01 00 40 0E 01 20 [01:09:05]Write i2c OK [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: D1 [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: D1 01 00 [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: D1 01 00 40 0E 00 1F [01:09:05]Write to MH i2c: 01 00 00 41 0E 4F [01:09:05]Write i2c OK [01:09:05]MH_I2C_Read... [01:09:06]OFD Sender: No OFD packet to send [01:09:06]int [01:09:06]*** FLAG_PRN_PAP2 set [01:09:06]*** Cut start [01:09:06]*** Partial cut [01:09:06]*** CUTSNS_PIN = 1 [01:09:06]*** CUTSNS_PIN = 0 [01:09:06]*** Brake cut motor [01:09:06]Read from MH i2c: 01 [01:09:06]MH_I2C_Read... [01:09:06]*** Stop cut motor [01:09:06]*** Cut end [01:09:06]Read from MH i2c: 01 07 00 [01:09:06]MH_I2C_Read... [01:09:06]Read from MH i2c: 01 07 00 41 0E 00 02 00 00 00 FF 0F 66 [01:09:06]process_action close_receipt done [01:09:06]requested_data is exist [01:09:06]produce_requested_data [01:09:06]requested_item fm.sn is exist - process it [01:09:06]wFMCommunicate request_size=4 [01:09:06]MH_SAM_APDU [01:09:06]CAPDU: 80 11 00 00 [01:09:06]Write to MH i2c: E2 08 00 42 0E 80 11 00 00 00 00 00 00 CA [01:09:06]Write i2c OK [01:09:06]MH_I2C_Read... [01:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:06]Read from MH i2c: E2 [01:09:06]MH_I2C_Read... [01:09:06]Read from MH i2c: E2 17 00 [01:09:06]MH_I2C_Read... [01:09:06]Read from MH i2c: E2 17 00 42 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 1D [01:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:09:07]wFMCommunicate OK [01:09:07]requested_item fd.num is exist - process it [01:09:07]SAM_PROTO_GetFieldsCounters [01:09:07]wFMCommunicate request_size=4 [01:09:07]MH_SAM_APDU [01:09:07]CAPDU: 80 13 00 00 [01:09:07]Write to MH i2c: E2 08 00 43 0E 80 13 00 00 00 00 00 00 CD [01:09:07]Write i2c OK [01:09:07]MH_I2C_Read... [01:09:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:09:07]Read from MH i2c: E2 [01:09:07]MH_I2C_Read... [01:09:07]Read from MH i2c: E2 62 00 [01:09:07]MH_I2C_Read... [01:09:07]Read from MH i2c: E2 62 00 43 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 14 2B 01 00 0E 04 04 00 73 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 B1 [01: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 14 2B 01 00 0E 04 04 00 73 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 [01:09:07]wFMCommunicate OK [01:09:07]SAM_PROTO_GetFieldsCounters done [01:09:07]requested_item shift.num is exist - process it [01:09:07]requested_item shift.opened is exist - process it [01:09:07]req_shift_opened [01:09:07]FM_GetShiftState [01:09:07]SAM_PROTO_GetShiftState [01:09:07]wFMCommunicate request_size=4 [01:09:07]MH_SAM_APDU [01:09:07]CAPDU: 80 13 01 00 [01:09:07]Write to MH i2c: 01 00 00 44 0E 52 [01:09:07]Write i2c OK [01:09:07]MH_I2C_Read... [01:09:07]Read from MH i2c: 01 [01:09:07]MH_I2C_Read... [01:09:07]Read from MH i2c: 01 07 00 [01:09:07]MH_I2C_Read... [01:09:07]Read from MH i2c: 01 07 00 44 0E 00 02 00 00 00 FF 0F 69 [01:09:07]state=0 [01:09:07]Cover opened [01:09:07]Write to MH i2c: E2 08 00 45 0E 80 13 01 00 00 00 00 00 D0 [01:09:07]Write i2c OK [01:09:07]MH_I2C_Read... [01:09:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:07]Read from MH i2c: E2 [01:09:07]MH_I2C_Read... [01:09:07]Read from MH i2c: E2 0E 00 [01:09:07]MH_I2C_Read... [01:09:07]Read from MH i2c: E2 0E 00 45 0E 00 09 00 01 53 0A 23 66 00 00 00 00 90 00 C2 [01:09:07]RAPDU: 09 00 01 53 0A 23 66 00 00 00 00 90 00 [01:09:07]wFMCommunicate OK [01:09:07]SAM_PROTO_GetShiftState done [01:09:07]FM_GetShiftState done [01:09:07]req_shift_opened done [01:09:07]requested_item shift.open_date is exist - process it [01:09:07]req_shift_open_date [01:09:07]req_shift_open_date done [01:09:07]produce_requested_data done [01:09:07]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76564,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435} [01:09:07]process_action_free close_receipt [01:09:07]json_value_free [01:09:07]json_value_free done [01:09:07]process_json_proto returns [01:09:07]Send response to host [01:09:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76564,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435}}} [01:09:07]free response buf [01:09:07]execute_script done [01:09:07]execute_script returns [01:09:07]free content buf [01:09:07]Sock 8.Close socket [01:09:07]Sock 8.Thread stoped [01:09:11]OFD Sender: No OFD packet to send [01:09:12]Write to MH i2c: 01 00 00 46 0E 54 [01:09:12]Write i2c OK [01:09:12]MH_I2C_Read... [01:09:12]Read from MH i2c: 01 [01:09:12]MH_I2C_Read... [01:09:12]Read from MH i2c: 01 07 00 [01:09:12]MH_I2C_Read... [01:09:12]Read from MH i2c: 01 07 00 46 0E 00 02 00 00 00 FF 0F 6B [01:09:12]state=3 [01:09:12]Cover opened [01:09:16]OFD Sender: No OFD packet to send [01:09:17]Write to MH i2c: 01 00 00 47 0E 55 [01:09:17]Write i2c OK [01:09:17]MH_I2C_Read... [01:09:17]Read from MH i2c: 01 [01:09:17]MH_I2C_Read... [01:09:17]Read from MH i2c: 01 07 00 [01:09:17]MH_I2C_Read... [01:09:17]Read from MH i2c: 01 07 00 47 0E 00 02 00 00 00 FF 0F 6C [01:09:17]state=3 [01:09:17]Cover opened [01:09:21]OFD Sender: No OFD packet to send [01:09:22]Write to MH i2c: 01 00 00 48 0E 56 [01:09:22]Write i2c OK [01:09:22]MH_I2C_Read... [01:09:22]Read from MH i2c: 01 [01:09:22]MH_I2C_Read... [01:09:22]Read from MH i2c: 01 07 00 [01:09:22]MH_I2C_Read... [01:09:22]Read from MH i2c: 01 07 00 48 0E 00 02 00 00 00 FF 0F 6D [01:09:22]state=3 [01:09:22]Cover opened [01:09:26]OFD Sender: No OFD packet to send [01:09:27]Write to MH i2c: 01 00 00 49 0E 57 [01:09:27]Write i2c OK [01:09:27]MH_I2C_Read... [01:09:27]Read from MH i2c: 01 [01:09:27]MH_I2C_Read... [01:09:27]Read from MH i2c: 01 07 00 [01:09:27]MH_I2C_Read... [01:09:27]Read from MH i2c: 01 07 00 49 0E 00 02 00 00 00 FF 0F 6E [01:09:27]state=3 [01:09:27]Cover opened [01:09:31]OFD Sender: No OFD packet to send [01:09:32]Write to MH i2c: 01 00 00 4A 0E 58 [01:09:32]Write i2c OK [01:09:32]MH_I2C_Read... [01:09:32]Read from MH i2c: 01 [01:09:32]MH_I2C_Read... [01:09:32]Read from MH i2c: 01 07 00 [01:09:32]MH_I2C_Read... [01:09:32]Read from MH i2c: 01 07 00 4A 0E 00 02 00 00 00 FF 0F 6F [01:09:32]state=3 [01:09:32]Cover opened [01:09:36]OFD Sender: No OFD packet to send [01:09:37]Write to MH i2c: 01 00 00 4B 0E 59 [01:09:37]Write i2c OK [01:09:37]MH_I2C_Read... [01:09:37]Read from MH i2c: 01 [01:09:37]MH_I2C_Read... [01:09:37]Read from MH i2c: 01 07 00 [01:09:37]MH_I2C_Read... [01:09:37]Read from MH i2c: 01 07 00 4B 0E 00 02 00 00 00 FF 0F 70 [01:09:37]state=3 [01:09:37]Cover opened [01:09:41]OFD Sender: No OFD packet to send [01:09:42]Write to MH i2c: 01 00 00 4C 0E 5A [01:09:42]Write i2c OK [01:09:42]MH_I2C_Read... [01:09:42]Read from MH i2c: 01 [01:09:42]MH_I2C_Read... [01:09:42]Read from MH i2c: 01 07 00 [01:09:42]MH_I2C_Read... [01:09:42]Read from MH i2c: 01 07 00 4C 0E 00 02 00 00 00 FF 0F 71 [01:09:42]state=3 [01:09:42]Cover opened [01:09:46]OFD Sender: No OFD packet to send [01:09:47]Write to MH i2c: 01 00 00 4D 0E 5B [01:09:47]Write i2c OK [01:09:47]MH_I2C_Read... [01:09:47]Read from MH i2c: 01 [01:09:47]MH_I2C_Read... [01:09:47]Read from MH i2c: 01 07 00 [01:09:47]MH_I2C_Read... [01:09:47]Read from MH i2c: 01 07 00 4D 0E 00 02 00 00 00 FF 0F 72 [01:09:47]state=3 [01:09:47]Cover opened [01:09:51]OFD Sender: No OFD packet to send [01:09:52]Write to MH i2c: 01 00 00 4E 0E 5C [01:09:52]Write i2c OK [01:09:52]MH_I2C_Read... [01:09:52]Read from MH i2c: 01 [01:09:52]MH_I2C_Read... [01:09:52]Read from MH i2c: 01 07 00 [01:09:52]MH_I2C_Read... [01:09:52]Read from MH i2c: 01 07 00 4E 0E 00 02 00 00 00 FF 0F 73 [01:09:52]state=3 [01:09:52]Cover opened [01:09:56]OFD Sender: No OFD packet to send [01:09:57]Write to MH i2c: 01 00 00 4F 0E 5D [01:09:57]Write i2c OK [01:09:57]MH_I2C_Read... [01:09:57]Read from MH i2c: 01 [01:09:57]MH_I2C_Read... [01:09:57]Read from MH i2c: 01 07 00 [01:09:57]MH_I2C_Read... [01:09:57]Read from MH i2c: 01 07 00 4F 0E 00 02 00 00 00 FF 0F 74 [01:09:57]state=3 [01:09:57]Cover opened [01:10:01]OFD Sender: No OFD packet to send [01:10:02]Write to MH i2c: 01 00 00 50 0E 5E [01:10:02]Write i2c OK [01:10:02]MH_I2C_Read... [01:10:02]Read from MH i2c: 01 [01:10:02]MH_I2C_Read... [01:10:02]Read from MH i2c: 01 07 00 [01:10:02]MH_I2C_Read... [01:10:02]Read from MH i2c: 01 07 00 50 0E 00 02 00 00 00 FF 0F 75 [01:10:02]state=3 [01:10:02]Cover opened [01:10:06]OFD Sender: No OFD packet to send [01:10:07]Write to MH i2c: 01 00 00 51 0E 5F [01:10:07]Write i2c OK [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: 01 [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: 01 07 00 [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: 01 07 00 51 0E 00 02 00 00 00 FF 0F 76 [01:10:07]state=3 [01:10:07]Cover opened [01:10:09]accept exits with 9 [01:10:09]New connection [01:10:09]New thread 3066735972 created [01:10:09]Thread 3066592612 joined [01:10:09]Waiting for new connection... [01:10:09] Sock 9.Parse request [01:10:09]Sock 9.Check first char [01:10:09]Sock 9.First char is OK [01:10:09]request: POST /json_proto HTTP/1.0 [01:10:09]Method: POST [01:10:09]URL: /json_proto [01:10:09]Method is POST - this is cgi request [01:10:09]url: /json_proto [01:10:09]query_string will be loaded in cgi processing [01:10:09]execute_cgi json_proto POST (null) [01:10:09]execute_cgi path=json_proto method=POST [01:10:09]POST find Content-Length [01:10:09]Host: 172.17.62.5:8080 [01:10:09]Content-Length: 682 [01:10:09]Content-Type: application/json [01:10:09] [01:10:09]POST finish read [01:10:09]Found Content-Length = 682 [01:10:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:10:09]execute_script... [01:10: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)191058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:10:09]POST & json_proto [01:10:09]process_json_proto [01:10:09]json parsed OK: [01:10:09]protocol is kg_v1.0 [01:10:09]action value=close_receipt [01:10:09]process_action close_receipt [01:10:09]cmd_close_receipt [01:10:09]MH_GetDate [01:10:09]Write to MH i2c: F0 00 00 52 0E 4F [01:10:09]Write i2c OK [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: F0 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: F0 09 00 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: F0 09 00 52 0E 00 F3 15 23 66 F4 E9 65 64 8F [01:10:09]GetLastDocTimeStamp 1713575345 [01:10:09]current date 1713575411 [01:10:09]FM_GetShiftState [01:10:09]SAM_PROTO_GetShiftState [01:10:09]wFMCommunicate request_size=4 [01:10:09]MH_SAM_APDU [01:10:09]CAPDU: 80 13 01 00 [01:10:09]Write to MH i2c: E2 08 00 53 0E 80 13 01 00 00 00 00 00 DE [01:10:09]Write i2c OK [01:10:09]MH_I2C_Read... [01:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:10:09]Read from MH i2c: E2 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: E2 0E 00 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: E2 0E 00 53 0E 00 09 00 01 53 0A 23 66 00 00 00 00 90 00 D0 [01:10:09]RAPDU: 09 00 01 53 0A 23 66 00 00 00 00 90 00 [01:10:09]wFMCommunicate OK [01:10:09]SAM_PROTO_GetShiftState done [01:10:09]FM_GetShiftState done [01:10:09]opened in 1713572435 [01:10:09]opened+sec_in_day 1713658835 [01:10:09]quantity*price = 100013 [01:10:09]sum+1 = 100014 [01:10:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 6 20.04.2024 01:10 Смена: 371 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76565 ФПД: 9718575948457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240420T011011&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76565&fm=9718575948457&tin=02508201610067®Number=0000000000091573&sum=100000 [01:10:10]StoreToDocumentArchive [01:10:10]shift 371 fd 76565 [01:10:10]save to /storage/0371/doc_00076565 [01:10:10]save last doc name /storage/0371/doc_00076565 to /storage/kkm_last_doc_name [01:10:10]save OK [01:10:10]Clear old archive folders... [01:10:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:10:10]tlvbuf is 01624A00 [01:10:10]SAM_PROTO_ClearQueue [01:10:10]wFMCommunicate request_size=4 [01:10:10]MH_SAM_APDU [01:10:10]CAPDU: 80 09 00 00 [01:10:10]Write to MH i2c: E2 08 00 60 0E 80 09 00 00 00 00 00 00 E0 [01:10:10]Write i2c OK [01:10:10]MH_I2C_Read... [01:10:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:10:10]Read from MH i2c: E2 [01:10:10]MH_I2C_Read... [01:10:10]Read from MH i2c: E2 03 00 [01:10:10]MH_I2C_Read... [01:10:10]Read from MH i2c: E2 03 00 60 0E 00 90 00 E2 [01:10:10]RAPDU: 90 00 [01:10:10]wFMCommunicate OK [01:10:10]SAM_PROTO_ClearQueue done [01:10:10]KKMCreateOFDPacket [01:10:10]OFDProtocolAddRootSTLVToBuf [01:10:10]FM_MakeSignedData [01:10:10]FM_MakeSignedData [01:10:10]SAM_PROTO_SignData [01:10:10]wFMCommunicate request_size=4 [01:10:10]MH_SAM_APDU [01:10:10]CAPDU: 80 0D 01 02 [01:10:10]Write to MH i2c: E2 08 00 61 0E 80 0D 01 02 00 00 00 00 E8 [01:10:10]Write i2c OK [01:10:10]MH_I2C_Read... [01:10:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:10:10]Read from MH i2c: E2 [01:10:10]MH_I2C_Read... [01:10:10]Read from MH i2c: E2 03 00 [01:10:10]MH_I2C_Read... [01:10:10]Read from MH i2c: E2 03 00 61 0E 00 90 00 E3 [01:10:10]RAPDU: 90 00 [01:10:10]wFMCommunicate OK [01:10:10]wFMCommunicate request_size=255 [01:10:10]MH_SAM_APDU [01:10: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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F3 15 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 15 2B 01 00 35 04 06 00 08 [01:10:10]Write to MH i2c: E2 02 01 62 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F3 15 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 15 2B 01 00 35 04 06 00 08 00 00 0D [01:10:10]Write i2c OK [01:10:10]MH_I2C_Read... [01:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:10:10]Read from MH i2c: E2 [01:10:10]MH_I2C_Read... [01:10:10]Read from MH i2c: E2 03 00 [01:10:10]MH_I2C_Read... [01:10:10]Read from MH i2c: E2 03 00 62 0E 00 90 00 E4 [01:10:10]RAPDU: 90 00 [01:10:10]wFMCommunicate OK [01:10:10]wFMCommunicate request_size=10 [01:10:10]MH_SAM_APDU [01:10:10]CAPDU: 80 0D 02 02 05 D6 C8 44 62 A9 [01:10:10]Write to MH i2c: E2 0D 00 63 0E 80 0D 02 02 05 00 D6 C8 44 62 A9 00 00 E2 [01:10:10]Write i2c OK [01:10:10]MH_I2C_Read... [01:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:10:10]Read from MH i2c: E2 [01:10:10]MH_I2C_Read... [01:10:10]Read from MH i2c: E2 03 00 [01:10:10]MH_I2C_Read... [01:10:10]Read from MH i2c: E2 03 00 63 0E 00 90 00 E5 [01:10:10]RAPDU: 90 00 [01:10:10]wFMCommunicate OK [01:10:10]wFMCommunicate request_size=4 [01:10:10]MH_SAM_APDU [01:10:10]CAPDU: 80 0D 03 02 [01:10:10]Write to MH i2c: E2 08 00 64 0E 80 0D 03 02 00 00 00 00 ED [01:10:10]Write i2c OK [01:10:10]MH_I2C_Read... [01:10:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:10:11]Read from MH i2c: E2 [01:10:11]MH_I2C_Read... [01:10:11]Read from MH i2c: E2 0B 00 [01:10:11]MH_I2C_Read... [01:10:11]Read from MH i2c: E2 0B 00 64 0E 00 46 1F 5A 90 43 8B B4 AA 90 00 69 [01:10:11]RAPDU: 46 1F 5A 90 43 8B B4 AA 90 00 [01:10:11]wFMCommunicate OK [01:10:11]SAM_PROTO_SignData done [01:10:11]FM_MakeSignedData done [01:10:11]CreateOFDProtocolMessage [01:10:11]wFMCommunicate request_size=4 [01:10:11]MH_SAM_APDU [01:10:11]CAPDU: 80 11 00 00 [01:10:11]Write to MH i2c: E2 08 00 65 0E 80 11 00 00 00 00 00 00 ED [01:10:11]Write i2c OK [01:10:11]MH_I2C_Read... [01:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:10:11]Read from MH i2c: E2 [01:10:11]MH_I2C_Read... [01:10:11]Read from MH i2c: E2 17 00 [01:10:11]MH_I2C_Read... [01:10:11]Read from MH i2c: E2 17 00 65 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 40 [01:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:10:11]wFMCommunicate OK [01:10:11]CreateOFDProtocolMessage done [01:10:11]OFDSenderStorePacket 76565 [01:10:11]StoreOFDPacket docnum=76565 [01:10:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 BA 3E 07 01 A7 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F3 15 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 15 2B 01 00 35 04 06 00 08 D6 C8 44 62 A9 46 1F 5A 90 43 8B B4 AA [01:10:11]CheckFolder [01:10:11]dirname=/storage/ofd_packets [01:10:11]CheckFolder done [01:10:11]ProducePacketName [01:10:11]name=ofd_packets/00076565 [01:10:11]NVStorageSaveData ofd_packets/00076565 [01:10:11]File name is /storage/ofd_packets/00076565 [01:10:11]Write 301 bytes [01:10:11]NVStorageSaveData done [01:10:11]OFDSenderStorePacket done [01:10:11]KKMCreateOFDPacket done [01:10:11]NVStorageSaveData kkm_last_timestamp [01:10:11]File name is /storage/kkm_last_timestamp [01:10:11]Write 4 bytes [01:10:11]NVStorageSaveData done [01:10:11]ExternCall_PrintAddStr [01:10:11]wPrintStart [01:10:11]Write to MH i2c: 01 00 00 66 0E 74 [01:10:11]Write i2c OK [01:10:11]MH_I2C_Read... [01:10:11]Read from MH i2c: 01 [01:10:11]MH_I2C_Read... [01:10:11]Read from MH i2c: 01 07 00 [01:10:11]MH_I2C_Read... [01:10:11]Read from MH i2c: 01 07 00 66 0E 00 02 00 00 00 FF 0F 8B [01:10:11]RasterBufferAndPrint [01:10:11]line Счет N : (1)191058 [01:10:11]line ИНН: 02508201610067 [01:10:11]line Контрольно-Кассовый Чек [01:10:11]line ПРОДАЖА [01:10:11]line ТРК (МРК, ГНК) : 43 [01:10:11]line Товар: 2710124130 [01:10:11]line Аи-92-К-5 [01:10:11]line 15.530 * 64.40 [01:10:11]line = 1000.13 [01:10:11]line НДС 12% НСП 1% [01:10:11]line > о реализуемом товаре [01:10:11]line ОКРУГЛЕНИЕ: -0.13 [01:10:11]line ИТОГО: 1000.00 [01:10:11]line Внесено: 1000.00 [01:10:11]line СДАЧА: 0.00 [01:10:11]line НСП 1% : 8.85 [01:10:11]line НДС 12% : 106.21 [01:10:11]line Наличными: 1000.00 [01:10:11]line Безнал.: 0.00 [01:10:11]line Место: АЗС № 106 "Партнер Нефть" [01:10:11]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [01:10:11]line СНО: Общий режим [01:10:11]line Чек 6 20.04.2024 01:10 [01:10:11]line Смена: 371 ФФД: 1.0 [01:10:11]line ЗНМ: 0300000141 [01:10:11]line РНМ: 0000000000091573 [01:10:11]line Версия ККМ: 001 [01:10:11]line ФМ: 0000000000874652 [01:10:11]line ФД: 76565 [01:10:11]line ФПД: 9718575948457 [01:10:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240420T011011&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76565&fm=9718575948457&tin=02508201610067®Number=0000000000091573&sum=100000 [01:10:11]written 0, free lines is 4095 [01:10:11]OFD Sender: Processing packet 76565 [packets to send 128, broken 127] [01:10:11]ProducePacketName [01:10:11]name=ofd_packets/00076565 [01:10:11]OFD Sender: To server: pG, [01:10:11]CommunicateWithHost lk.salyk.kg:30040 [01:10:11]ConnectInit lk.salyk.kg [01:10:11]Error from MH - 05 [01:10:11]process_action_free close_receipt [01:10:11]json_value_free [01:10:11]json_value_free done [01:10:11]process_json_proto returns [01:10:11]Send response to host [01:10:11]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [01:10:11]free response buf [01:10:11]execute_script done [01:10:11]execute_script returns [01:10:11]free content buf [01:10:11]Sock 9.Close socket [01:10:11]Sock 9.Thread stoped [01:10:11]Connected sock=8 [01:10:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 BA 3E 07 01 A7 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 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F3 15 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 15 2B 01 00 35 04 06 00 08 D6 C8 44 62 A9 46 1F 5A 90 43 8B B4 AA [01:10:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 29 46 47 00 04 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 34 36 35 32 10 04 04 00 15 2B 01 00 F4 03 04 00 7D BD 22 66 B6 04 01 00 00 EE 6A D2 DE 93 AA 8D 88 [01:10:11]CommunicateWithHost err = 0 [01:10:11]CheckOFDResponse [01:10:11]1017 (14) - 77093643461234 [01:10:11]1041 (16) - 0000000000874652 [01:10:11]1040 (4) - 76565 [01:10:11]1012 (4) - 19.04.2024 18:52 [01:10:11]1206 (1) - 0 [01:10:11]OFD Sender: Remove packet 76565 [01:10:11]ProducePacketName [01:10:11]name=ofd_packets/00076565 [01:10:11]NVStorageDeleteData [01:10:12]Write to MH i2c: 01 00 00 69 0E 77 [01:10:12]Write i2c OK [01:10:12]MH_I2C_Read... [01:10:12]Read from MH i2c: 01 [01:10:12]MH_I2C_Read... [01:10:12]Read from MH i2c: 01 07 00 [01:10:12]MH_I2C_Read... [01:10:12]Read from MH i2c: 01 07 00 69 0E 00 02 00 00 00 FF 0F 8E [01:10:12]state=3 [01:10:12]Cover opened [01:10:12]OFD Sender: No OFD packet to send [01:10:17]Write to MH i2c: 01 00 00 6A 0E 78 [01:10:17]Write i2c OK [01:10:17]MH_I2C_Read... [01:10:17]Read from MH i2c: 01 [01:10:17]MH_I2C_Read... [01:10:17]Read from MH i2c: 01 07 00 [01:10:17]MH_I2C_Read... [01:10:17]Read from MH i2c: 01 07 00 6A 0E 00 02 00 00 00 FF 0F 8F [01:10:17]state=3 [01:10:17]Cover opened [01:10:17]OFD Sender: No OFD packet to send [01:10:22]Write to MH i2c: 01 00 00 6B 0E 79 [01:10:22]Write i2c OK [01:10:22]MH_I2C_Read... [01:10:22]Read from MH i2c: 01 [01:10:22]MH_I2C_Read... [01:10:22]Read from MH i2c: 01 07 00 [01:10:22]MH_I2C_Read... [01:10:22]Read from MH i2c: 01 07 00 6B 0E 00 02 00 00 00 FF 0F 90 [01:10:22]state=3 [01:10:22]Cover opened [01:10:22]OFD Sender: No OFD packet to send [01:10:27]Write to MH i2c: 01 00 00 6C 0E 7A [01:10:27]Write i2c OK [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: 01 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: 01 07 00 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: 01 07 00 6C 0E 00 02 00 00 00 FF 0F 91 [01:10:27]state=3 [01:10:27]Cover opened [01:10:27]OFD Sender: No OFD packet to send [01:10:32]Write to MH i2c: 01 00 00 6D 0E 7B [01:10:32]Write i2c OK [01:10:32]MH_I2C_Read... [01:10:32]Read from MH i2c: 01 [01:10:32]MH_I2C_Read... [01:10:32]Read from MH i2c: 01 07 00 [01:10:32]MH_I2C_Read... [01:10:32]Read from MH i2c: 01 07 00 6D 0E 00 02 00 00 00 FF 0F 92 [01:10:32]state=3 [01:10:32]Cover opened [01:10:32]OFD Sender: No OFD packet to send [01:10:37]Write to MH i2c: 01 00 00 6E 0E 7C [01:10:37]Write i2c OK [01:10:37]MH_I2C_Read... [01:10:37]Read from MH i2c: 01 [01:10:37]MH_I2C_Read... [01:10:37]Read from MH i2c: 01 07 00 [01:10:37]MH_I2C_Read... [01:10:37]Read from MH i2c: 01 07 00 6E 0E 00 02 00 00 00 FF 0F 93 [01:10:37]state=3 [01:10:37]Cover opened [01:10:37]OFD Sender: No OFD packet to send [01:10:42]Write to MH i2c: 01 00 00 6F 0E 7D [01:10:42]Write i2c OK [01:10:42]MH_I2C_Read... [01:10:42]Read from MH i2c: 01 [01:10:42]MH_I2C_Read... [01:10:42]Read from MH i2c: 01 07 00 [01:10:42]MH_I2C_Read... [01:10:42]Read from MH i2c: 01 07 00 6F 0E 00 02 00 00 00 FF 0F 94 [01:10:42]state=3 [01:10:42]Cover opened [01:10:42]OFD Sender: No OFD packet to send [01:10:47]Write to MH i2c: 01 00 00 70 0E 7E [01:10:47]Write i2c OK [01:10:47]MH_I2C_Read... [01:10:47]Read from MH i2c: 01 [01:10:47]MH_I2C_Read... [01:10:47]Read from MH i2c: 01 07 00 [01:10:47]MH_I2C_Read... [01:10:47]Read from MH i2c: 01 07 00 70 0E 00 02 00 00 00 FF 0F 95 [01:10:47]state=3 [01:10:47]Cover opened [01:10:47]OFD Sender: No OFD packet to send [01:10:52]Write to MH i2c: 01 00 00 71 0E 7F [01:10:52]Write i2c OK [01:10:52]MH_I2C_Read... [01:10:52]Read from MH i2c: 01 [01:10:52]MH_I2C_Read... [01:10:52]Read from MH i2c: 01 07 00 [01:10:52]MH_I2C_Read... [01:10:52]Read from MH i2c: 01 07 00 71 0E 00 02 00 00 00 FF 0F 96 [01:10:52]state=3 [01:10:52]Cover opened [01:10:52]OFD Sender: No OFD packet to send [01:10:57]Write to MH i2c: 01 00 00 72 0E 80 [01:10:57]Write i2c OK [01:10:57]MH_I2C_Read... [01:10:57]Read from MH i2c: 01 [01:10:57]MH_I2C_Read... [01:10:57]Read from MH i2c: 01 07 00 [01:10:57]MH_I2C_Read... [01:10:57]Read from MH i2c: 01 07 00 72 0E 00 02 00 00 00 FF 0F 97 [01:10:57]state=3 [01:10:57]Cover opened [01:10:57]OFD Sender: No OFD packet to send [01:11:02]Write to MH i2c: 01 00 00 73 0E 81 [01:11:02]Write i2c OK [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: 01 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: 01 07 00 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: 01 07 00 73 0E 00 02 00 00 00 FF 0F 98 [01:11:02]state=3 [01:11:02]Cover opened [01:11:02]OFD Sender: No OFD packet to send [01:11:07]Write to MH i2c: 01 00 00 74 0E 82 [01:11:07]Write i2c OK [01:11:07]MH_I2C_Read... [01:11:07]Read from MH i2c: 01 [01:11:07]MH_I2C_Read... [01:11:07]Read from MH i2c: 01 07 00 [01:11:07]MH_I2C_Read... [01:11:07]Read from MH i2c: 01 07 00 74 0E 00 02 00 00 00 FF 0F 99 [01:11:07]state=3 [01:11:07]Cover opened [01:11:07]OFD Sender: No OFD packet to send [01:11:12]Write to MH i2c: 01 00 00 75 0E 83 [01:11:12]Write i2c OK [01:11:12]MH_I2C_Read... [01:11:12]Read from MH i2c: 01 [01:11:12]MH_I2C_Read... [01:11:12]Read from MH i2c: 01 07 00 [01:11:12]MH_I2C_Read... [01:11:12]Read from MH i2c: 01 07 00 75 0E 00 02 00 00 00 FF 0F 9A [01:11:12]state=3 [01:11:12]Cover opened [01:11:12]OFD Sender: No OFD packet to send [01:11:17]Write to MH i2c: 01 00 00 76 0E 84 [01:11:17]Write i2c OK [01:11:17]MH_I2C_Read... [01:11:17]Read from MH i2c: 01 [01:11:17]MH_I2C_Read... [01:11:17]Read from MH i2c: 01 07 00 [01:11:17]MH_I2C_Read... [01:11:17]Read from MH i2c: 01 07 00 76 0E 00 02 00 00 00 FF 0F 9B [01:11:17]state=3 [01:11:17]Cover opened [01:11:17]OFD Sender: No OFD packet to send [01:11:22]Write to MH i2c: 01 00 00 77 0E 85 [01:11:22]Write i2c OK [01:11:22]MH_I2C_Read... [01:11:22]Read from MH i2c: 01 [01:11:22]MH_I2C_Read... [01:11:22]Read from MH i2c: 01 07 00 [01:11:22]MH_I2C_Read... [01:11:22]Read from MH i2c: 01 07 00 77 0E 00 02 00 00 00 FF 0F 9C [01:11:22]state=3 [01:11:22]Cover opened [01:11:22]OFD Sender: No OFD packet to send [01:11:27]Write to MH i2c: 01 00 00 78 0E 86 [01:11:27]Write i2c OK [01:11:27]MH_I2C_Read... [01:11:27]Read from MH i2c: 01 [01:11:27]MH_I2C_Read... [01:11:27]Read from MH i2c: 01 07 00 [01:11:27]MH_I2C_Read... [01:11:27]Read from MH i2c: 01 07 00 78 0E 00 02 00 00 00 FF 0F 9D [01:11:27]state=3 [01:11:27]Cover opened [01:11:27]OFD Sender: No OFD packet to send [01:11:32]Write to MH i2c: 01 00 00 79 0E 87 [01:11:32]Write i2c OK [01:11:32]MH_I2C_Read... [01:11:32]Read from MH i2c: 01 [01:11:32]MH_I2C_Read... [01:11:32]Read from MH i2c: 01 07 00 [01:11:32]MH_I2C_Read... [01:11:32]Read from MH i2c: 01 07 00 79 0E 00 02 00 00 00 FF 0F 9E [01:11:32]state=3 [01:11:32]Cover opened [01:11:32]OFD Sender: No OFD packet to send [01:11:37]Write to MH i2c: 01 00 00 7A 0E 88 [01:11:37]Write i2c OK [01:11:37]MH_I2C_Read... [01:11:37]Read from MH i2c: 01 [01:11:37]MH_I2C_Read... [01:11:37]Read from MH i2c: 01 07 00 [01:11:37]MH_I2C_Read... [01:11:37]Read from MH i2c: 01 07 00 7A 0E 00 02 00 00 00 FF 0F 9F [01:11:37]state=3 [01:11:37]Cover opened [01:11:37]OFD Sender: No OFD packet to send [01:11:42]Write to MH i2c: 01 00 00 7B 0E 89 [01:11:42]Write i2c OK [01:11:42]MH_I2C_Read... [01:11:42]Read from MH i2c: 01 [01:11:42]MH_I2C_Read... [01:11:42]Read from MH i2c: 01 07 00 [01:11:42]MH_I2C_Read... [01:11:42]Read from MH i2c: 01 07 00 7B 0E 00 02 00 00 00 FF 0F A0 [01:11:42]state=3 [01:11:42]Cover opened [01:11:42]OFD Sender: No OFD packet to send [01:11:47]Write to MH i2c: 01 00 00 7C 0E 8A [01:11:47]Write i2c OK [01:11:47]MH_I2C_Read... [01:11:47]Read from MH i2c: 01 [01:11:47]MH_I2C_Read... [01:11:47]Read from MH i2c: 01 07 00 [01:11:47]MH_I2C_Read... [01:11:47]Read from MH i2c: 01 07 00 7C 0E 00 02 00 00 00 FF 0F A1 [01:11:47]state=3 [01:11:47]Cover opened [01:11:47]OFD Sender: No OFD packet to send [01:11:52]Write to MH i2c: 01 00 00 7D 0E 8B [01:11:52]Write i2c OK [01:11:52]MH_I2C_Read... [01:11:52]Read from MH i2c: 01 [01:11:52]MH_I2C_Read... [01:11:52]Read from MH i2c: 01 07 00 [01:11:52]MH_I2C_Read... [01:11:52]Read from MH i2c: 01 07 00 7D 0E 00 02 00 00 00 FF 0F A2 [01:11:52]state=3 [01:11:52]Cover opened [01:11:52]OFD Sender: No OFD packet to send [01:11:57]Write to MH i2c: 01 00 00 7E 0E 8C [01:11:57]Write i2c OK [01:11:57]MH_I2C_Read... [01:11:57]Read from MH i2c: 01 [01:11:57]MH_I2C_Read... [01:11:57]Read from MH i2c: 01 07 00 [01:11:57]MH_I2C_Read... [01:11:57]Read from MH i2c: 01 07 00 7E 0E 00 02 00 00 00 FF 0F A3 [01:11:57]state=3 [01:11:57]Cover opened [01:11:57]OFD Sender: No OFD packet to send [01:12:02]Write to MH i2c: 01 00 00 7F 0E 8D [01:12:02]Write i2c OK [01:12:02]MH_I2C_Read... [01:12:02]Read from MH i2c: 01 [01:12:02]MH_I2C_Read... [01:12:02]Read from MH i2c: 01 07 00 [01:12:02]MH_I2C_Read... [01:12:02]Read from MH i2c: 01 07 00 7F 0E 00 02 00 00 00 FF 0F A4 [01:12:02]state=3 [01:12:02]Cover opened [01:12:02]OFD Sender: No OFD packet to send [01:12:07]Write to MH i2c: 01 00 00 80 0E 8E [01:12:07]Write i2c OK [01:12:07]MH_I2C_Read... [01:12:07]Read from MH i2c: 01 [01:12:07]MH_I2C_Read... [01:12:07]Read from MH i2c: 01 07 00 [01:12:07]MH_I2C_Read... [01:12:07]Read from MH i2c: 01 07 00 80 0E 00 02 00 00 00 FF 0F A5 [01:12:07]state=3 [01:12:07]Cover opened [01:12:07]OFD Sender: No OFD packet to send [01:12:12]Write to MH i2c: 01 00 00 81 0E 8F [01:12:12]Write i2c OK [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: 01 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: 01 07 00 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: 01 07 00 81 0E 00 02 00 00 00 FF 0F A6 [01:12:12]state=3 [01:12:12]Cover opened [01:12:12]OFD Sender: No OFD packet to send [01:12:17]Write to MH i2c: 01 00 00 82 0E 90 [01:12:17]Write i2c OK [01:12:17]MH_I2C_Read... [01:12:17]Read from MH i2c: 01 [01:12:17]MH_I2C_Read... [01:12:17]Read from MH i2c: 01 07 00 [01:12:17]MH_I2C_Read... [01:12:17]Read from MH i2c: 01 07 00 82 0E 00 02 00 00 00 FF 0F A7 [01:12:17]state=3 [01:12:17]Cover opened [01:12:17]OFD Sender: No OFD packet to send [01:12:22]Write to MH i2c: 01 00 00 83 0E 91 [01:12:22]Write i2c OK [01:12:22]MH_I2C_Read... [01:12:22]Read from MH i2c: 01 [01:12:22]MH_I2C_Read... [01:12:22]Read from MH i2c: 01 07 00 [01:12:22]MH_I2C_Read... [01:12:22]Read from MH i2c: 01 07 00 83 0E 00 02 00 00 00 FF 0F A8 [01:12:22]state=3 [01:12:22]Cover opened [01:12:22]OFD Sender: No OFD packet to send [01:12:27]Write to MH i2c: 01 00 00 84 0E 92 [01:12:27]Write i2c OK [01:12:27]MH_I2C_Read... [01:12:27]Read from MH i2c: 01 [01:12:27]MH_I2C_Read... [01:12:27]Read from MH i2c: 01 07 00 [01:12:27]MH_I2C_Read... [01:12:27]Read from MH i2c: 01 07 00 84 0E 00 02 00 00 00 FF 0F A9 [01:12:27]state=3 [01:12:27]Cover opened [01:12:27]OFD Sender: No OFD packet to send [01:12:32]Write to MH i2c: 01 00 00 85 0E 93 [01:12:32]Write i2c OK [01:12:32]MH_I2C_Read... [01:12:32]Read from MH i2c: 01 [01:12:32]MH_I2C_Read... [01:12:32]Read from MH i2c: 01 07 00 [01:12:32]MH_I2C_Read... [01:12:32]Read from MH i2c: 01 07 00 85 0E 00 02 00 00 00 FF 0F AA [01:12:32]state=3 [01:12:32]Cover opened [01:12:32]OFD Sender: No OFD packet to send [01:12:37]Write to MH i2c: 01 00 00 86 0E 94 [01:12:37]Write i2c OK [01:12:37]MH_I2C_Read... [01:12:37]Read from MH i2c: 01 [01:12:37]MH_I2C_Read... [01:12:37]Read from MH i2c: 01 07 00 [01:12:37]MH_I2C_Read... [01:12:37]Read from MH i2c: 01 07 00 86 0E 00 02 00 00 00 FF 0F AB [01:12:37]state=3 [01:12:37]Cover opened [01:12:37]OFD Sender: No OFD packet to send [01:12:42]Write to MH i2c: 01 00 00 87 0E 95 [01:12:42]Write i2c OK [01:12:42]MH_I2C_Read... [01:12:42]Read from MH i2c: 01 [01:12:42]MH_I2C_Read... [01:12:42]Read from MH i2c: 01 07 00 [01:12:42]MH_I2C_Read... [01:12:42]Read from MH i2c: 01 07 00 87 0E 00 02 00 00 00 FF 0F AC [01:12:42]state=3 [01:12:42]Cover opened [01:12:42]OFD Sender: No OFD packet to send [01:12:47]Write to MH i2c: 01 00 00 88 0E 96 [01:12:47]Write i2c OK [01:12:47]MH_I2C_Read... [01:12:47]Read from MH i2c: 01 [01:12:47]MH_I2C_Read... [01:12:47]Read from MH i2c: 01 07 00 [01:12:47]MH_I2C_Read... [01:12:47]Read from MH i2c: 01 07 00 88 0E 00 02 00 00 00 FF 0F AD [01:12:47]state=3 [01:12:47]Cover opened [01:12:47]OFD Sender: No OFD packet to send [01:12:52]Write to MH i2c: 01 00 00 89 0E 97 [01:12:52]Write i2c OK [01:12:52]MH_I2C_Read... [01:12:52]Read from MH i2c: 01 [01:12:52]MH_I2C_Read... [01:12:52]Read from MH i2c: 01 07 00 [01:12:52]MH_I2C_Read... [01:12:52]Read from MH i2c: 01 07 00 89 0E 00 02 00 00 00 FF 0F AE [01:12:52]state=3 [01:12:52]Cover opened [01:12:52]OFD Sender: No OFD packet to send [01:12:57]Write to MH i2c: 01 00 00 8A 0E 98 [01:12:57]Write i2c OK [01:12:57]MH_I2C_Read... [01:12:57]Read from MH i2c: 01 [01:12:57]MH_I2C_Read... [01:12:57]Read from MH i2c: 01 07 00 [01:12:57]MH_I2C_Read... [01:12:57]Read from MH i2c: 01 07 00 8A 0E 00 02 00 00 00 FF 0F AF [01:12:57]state=3 [01:12:57]Cover opened [01:12:57]OFD Sender: No OFD packet to send [01:13:02]Write to MH i2c: 01 00 00 8B 0E 99 [01:13:02]Write i2c OK [01:13:02]MH_I2C_Read... [01:13:02]Read from MH i2c: 01 [01:13:02]MH_I2C_Read... [01:13:02]Read from MH i2c: 01 07 00 [01:13:02]MH_I2C_Read... [01:13:02]Read from MH i2c: 01 07 00 8B 0E 00 02 00 00 00 FF 0F B0 [01:13:02]state=3 [01:13:02]Cover opened [01:13:02]OFD Sender: No OFD packet to send [01:13:07]Write to MH i2c: 01 00 00 8C 0E 9A [01:13:07]Write i2c OK [01:13:07]MH_I2C_Read... [01:13:07]Read from MH i2c: 01 [01:13:07]MH_I2C_Read... [01:13:07]Read from MH i2c: 01 07 00 [01:13:07]MH_I2C_Read... [01:13:07]Read from MH i2c: 01 07 00 8C 0E 00 02 00 00 00 FF 0F B1 [01:13:07]state=3 [01:13:07]Cover opened [01:13:07]OFD Sender: No OFD packet to send [01:13:12]Write to MH i2c: 01 00 00 8D 0E 9B [01:13:12]Write i2c OK [01:13:12]MH_I2C_Read... [01:13:12]Read from MH i2c: 01 [01:13:12]MH_I2C_Read... [01:13:12]Read from MH i2c: 01 07 00 [01:13:12]MH_I2C_Read... [01:13:12]Read from MH i2c: 01 07 00 8D 0E 00 02 00 00 00 FF 0F B2 [01:13:12]state=3 [01:13:12]Cover opened [01:13:12]OFD Sender: No OFD packet to send [01:13:17]Write to MH i2c: 01 00 00 8E 0E 9C [01:13:17]Write i2c OK [01:13:17]MH_I2C_Read... [01:13:17]Read from MH i2c: 01 [01:13:17]MH_I2C_Read... [01:13:17]Read from MH i2c: 01 07 00 [01:13:17]MH_I2C_Read... [01:13:17]Read from MH i2c: 01 07 00 8E 0E 00 02 00 00 00 FF 0F B3 [01:13:17]state=3 [01:13:17]Cover opened [01:13:17]OFD Sender: No OFD packet to send [01:13:22]Write to MH i2c: 01 00 00 8F 0E 9D [01:13:22]Write i2c OK [01:13:22]MH_I2C_Read... [01:13:22]Read from MH i2c: 01 [01:13:22]MH_I2C_Read... [01:13:22]Read from MH i2c: 01 07 00 [01:13:22]MH_I2C_Read... [01:13:22]Read from MH i2c: 01 07 00 8F 0E 00 02 00 00 00 FF 0F B4 [01:13:22]state=3 [01:13:22]Cover opened [01:13:22]OFD Sender: No OFD packet to send [01:13:27]Write to MH i2c: 01 00 00 90 0E 9E [01:13:27]Write i2c OK [01:13:27]MH_I2C_Read... [01:13:27]Read from MH i2c: 01 [01:13:27]MH_I2C_Read... [01:13:27]Read from MH i2c: 01 07 00 [01:13:27]MH_I2C_Read... [01:13:27]Read from MH i2c: 01 07 00 90 0E 00 02 00 00 00 FF 0F B5 [01:13:27]state=3 [01:13:27]Cover opened [01:13:27]OFD Sender: No OFD packet to send [01:13:32]Write to MH i2c: 01 00 00 91 0E 9F [01:13:32]Write i2c OK [01:13:32]MH_I2C_Read... [01:13:32]Read from MH i2c: 01 [01:13:32]MH_I2C_Read... [01:13:32]Read from MH i2c: 01 07 00 [01:13:32]MH_I2C_Read... [01:13:32]Read from MH i2c: 01 07 00 91 0E 00 02 00 00 00 FF 0F B6 [01:13:32]state=3 [01:13:32]Cover opened [01:13:32]OFD Sender: No OFD packet to send [01:13:37]Write to MH i2c: 01 00 00 92 0E A0 [01:13:37]Write i2c OK [01:13:37]MH_I2C_Read... [01:13:37]Read from MH i2c: 01 [01:13:37]MH_I2C_Read... [01:13:37]Read from MH i2c: 01 07 00 [01:13:37]MH_I2C_Read... [01:13:37]Read from MH i2c: 01 07 00 92 0E 00 02 00 00 00 FF 0F B7 [01:13:37]state=3 [01:13:37]Cover opened [01:13:37]OFD Sender: No OFD packet to send [01:13:42]Write to MH i2c: 01 00 00 93 0E A1 [01:13:42]Write i2c OK [01:13:42]MH_I2C_Read... [01:13:42]Read from MH i2c: 01 [01:13:42]MH_I2C_Read... [01:13:42]Read from MH i2c: 01 07 00 [01:13:42]MH_I2C_Read... [01:13:42]Read from MH i2c: 01 07 00 93 0E 00 02 00 00 00 FF 0F B8 [01:13:42]state=3 [01:13:42]Cover opened [01:13:42]OFD Sender: No OFD packet to send [01:13:47]Write to MH i2c: 01 00 00 94 0E A2 [01:13:47]Write i2c OK [01:13:47]MH_I2C_Read... [01:13:47]Read from MH i2c: 01 [01:13:47]MH_I2C_Read... [01:13:47]Read from MH i2c: 01 07 00 [01:13:47]MH_I2C_Read... [01:13:47]Read from MH i2c: 01 07 00 94 0E 00 02 00 00 00 FF 0F B9 [01:13:47]state=3 [01:13:47]Cover opened [01:13:47]OFD Sender: No OFD packet to send [01:13:52]Write to MH i2c: 01 00 00 95 0E A3 [01:13:52]Write i2c OK [01:13:52]MH_I2C_Read... [01:13:52]Read from MH i2c: 01 [01:13:52]MH_I2C_Read... [01:13:52]Read from MH i2c: 01 07 00 [01:13:52]MH_I2C_Read... [01:13:52]Read from MH i2c: 01 07 00 95 0E 00 02 00 00 00 FF 0F BA [01:13:52]state=3 [01:13:52]Cover opened [01:13:52]OFD Sender: No OFD packet to send [01:13:57]Write to MH i2c: 01 00 00 96 0E A4 [01:13:57]Write i2c OK [01:13:57]MH_I2C_Read... [01:13:57]Read from MH i2c: 01 [01:13:57]MH_I2C_Read... [01:13:57]Read from MH i2c: 01 07 00 [01:13:57]MH_I2C_Read... [01:13:57]Read from MH i2c: 01 07 00 96 0E 00 02 00 00 00 FF 0F BB [01:13:57]state=3 [01:13:57]Cover opened [01:13:57]OFD Sender: No OFD packet to send [01:14:02]Write to MH i2c: 01 00 00 97 0E A5 [01:14:02]Write i2c OK [01:14:02]MH_I2C_Read... [01:14:02]Read from MH i2c: 01 [01:14:02]MH_I2C_Read... [01:14:02]Read from MH i2c: 01 07 00 [01:14:02]MH_I2C_Read... [01:14:02]Read from MH i2c: 01 07 00 97 0E 00 02 00 00 00 FF 0F BC [01:14:02]state=3 [01:14:02]Cover opened [01:14:02]OFD Sender: No OFD packet to send [01:14:07]Write to MH i2c: 01 00 00 98 0E A6 [01:14:07]Write i2c OK [01:14:07]MH_I2C_Read... [01:14:07]Read from MH i2c: 01 [01:14:07]MH_I2C_Read... [01:14:07]Read from MH i2c: 01 07 00 [01:14:07]MH_I2C_Read... [01:14:07]Read from MH i2c: 01 07 00 98 0E 00 02 00 00 00 FF 0F BD [01:14:07]state=3 [01:14:07]Cover opened [01:14:07]OFD Sender: No OFD packet to send [01:14:12]Write to MH i2c: 01 00 00 99 0E A7 [01:14:12]Write i2c OK [01:14:12]MH_I2C_Read... [01:14:12]Read from MH i2c: 01 [01:14:12]MH_I2C_Read... [01:14:12]Read from MH i2c: 01 07 00 [01:14:12]MH_I2C_Read... [01:14:12]Read from MH i2c: 01 07 00 99 0E 00 02 00 00 00 FF 0F BE [01:14:12]state=3 [01:14:12]Cover opened [01:14:12]OFD Sender: No OFD packet to send [01:14:17]Write to MH i2c: 01 00 00 9A 0E A8 [01:14:17]Write i2c OK [01:14:17]MH_I2C_Read... [01:14:17]Read from MH i2c: 01 [01:14:17]MH_I2C_Read... [01:14:17]Read from MH i2c: 01 07 00 [01:14:17]MH_I2C_Read... [01:14:17]Read from MH i2c: 01 07 00 9A 0E 00 02 00 00 00 FF 0F BF [01:14:17]state=3 [01:14:17]Cover opened [01:14:17]OFD Sender: No OFD packet to send [01:14:22]Write to MH i2c: 01 00 00 9B 0E A9 [01:14:22]Write i2c OK [01:14:22]MH_I2C_Read... [01:14:22]Read from MH i2c: 01 [01:14:22]MH_I2C_Read... [01:14:22]Read from MH i2c: 01 07 00 [01:14:22]MH_I2C_Read... [01:14:22]Read from MH i2c: 01 07 00 9B 0E 00 02 00 00 00 FF 0F C0 [01:14:22]state=3 [01:14:22]Cover opened [01:14:22]OFD Sender: No OFD packet to send [01:14:27]Write to MH i2c: 01 00 00 9C 0E AA [01:14:27]Write i2c OK [01:14:27]MH_I2C_Read... [01:14:27]Read from MH i2c: 01 [01:14:27]MH_I2C_Read... [01:14:27]Read from MH i2c: 01 07 00 [01:14:27]MH_I2C_Read... [01:14:27]Read from MH i2c: 01 07 00 9C 0E 00 02 00 00 00 FF 0F C1 [01:14:27]state=3 [01:14:27]Cover opened [01:14:27]OFD Sender: No OFD packet to send [01:14:32]Write to MH i2c: 01 00 00 9D 0E AB [01:14:32]Write i2c OK [01:14:32]MH_I2C_Read... [01:14:32]Read from MH i2c: 01 [01:14:32]MH_I2C_Read... [01:14:32]Read from MH i2c: 01 07 00 [01:14:32]MH_I2C_Read... [01:14:32]Read from MH i2c: 01 07 00 9D 0E 00 02 00 00 00 FF 0F C2 [01:14:32]state=3 [01:14:32]Cover opened [01:14:32]OFD Sender: No OFD packet to send [01:14:37]Write to MH i2c: 01 00 00 9E 0E AC [01:14:37]Write i2c OK [01:14:37]MH_I2C_Read... [01:14:37]Read from MH i2c: 01 [01:14:37]MH_I2C_Read... [01:14:37]Read from MH i2c: 01 07 00 [01:14:37]MH_I2C_Read... [01:14:37]Read from MH i2c: 01 07 00 9E 0E 00 02 00 00 00 FF 0F C3 [01:14:37]state=3 [01:14:37]Cover opened [01:14:37]OFD Sender: No OFD packet to send [01:14:42]Write to MH i2c: 01 00 00 9F 0E AD [01:14:42]Write i2c OK [01:14:42]MH_I2C_Read... [01:14:42]Read from MH i2c: 01 [01:14:42]MH_I2C_Read... [01:14:42]Read from MH i2c: 01 07 00 [01:14:42]MH_I2C_Read... [01:14:42]Read from MH i2c: 01 07 00 9F 0E 00 02 00 00 00 FF 0F C4 [01:14:42]state=3 [01:14:42]Cover opened [01:14:42]OFD Sender: No OFD packet to send [01:14:47]Write to MH i2c: 01 00 00 A0 0E AE [01:14:47]Write i2c OK [01:14:47]MH_I2C_Read... [01:14:47]Read from MH i2c: 01 [01:14:47]MH_I2C_Read... [01:14:47]Read from MH i2c: 01 07 00 [01:14:47]MH_I2C_Read... [01:14:47]Read from MH i2c: 01 07 00 A0 0E 00 02 00 00 00 FF 0F C5 [01:14:47]state=3 [01:14:47]Cover opened [01:14:47]OFD Sender: No OFD packet to send [01:14:52]Write to MH i2c: 01 00 00 A1 0E AF [01:14:52]Write i2c OK [01:14:52]MH_I2C_Read... [01:14:52]Read from MH i2c: 01 [01:14:52]MH_I2C_Read... [01:14:52]Read from MH i2c: 01 07 00 [01:14:52]MH_I2C_Read... [01:14:52]Read from MH i2c: 01 07 00 A1 0E 00 02 00 00 00 FF 0F C6 [01:14:52]state=3 [01:14:52]Cover opened [01:14:52]OFD Sender: No OFD packet to send [01:14:57]Write to MH i2c: 01 00 00 A2 0E B0 [01:14:57]Write i2c OK [01:14:57]MH_I2C_Read... [01:14:57]Read from MH i2c: 01 [01:14:57]MH_I2C_Read... [01:14:57]Read from MH i2c: 01 07 00 [01:14:57]MH_I2C_Read... [01:14:57]Read from MH i2c: 01 07 00 A2 0E 00 02 00 00 00 FF 0F C7 [01:14:57]state=3 [01:14:57]Cover opened [01:14:57]OFD Sender: No OFD packet to send [01:15:02]Write to MH i2c: 01 00 00 A3 0E B1 [01:15:02]Write i2c OK [01:15:02]MH_I2C_Read... [01:15:02]Read from MH i2c: 01 [01:15:02]MH_I2C_Read... [01:15:02]Read from MH i2c: 01 07 00 [01:15:02]MH_I2C_Read... [01:15:02]Read from MH i2c: 01 07 00 A3 0E 00 02 00 00 00 FF 0F C8 [01:15:02]state=3 [01:15:02]Cover opened [01:15:02]OFD Sender: No OFD packet to send [01:15:07]Write to MH i2c: 01 00 00 A4 0E B2 [01:15:07]Write i2c OK [01:15:07]MH_I2C_Read... [01:15:07]Read from MH i2c: 01 [01:15:07]MH_I2C_Read... [01:15:07]Read from MH i2c: 01 07 00 [01:15:07]MH_I2C_Read... [01:15:07]Read from MH i2c: 01 07 00 A4 0E 00 02 00 00 00 FF 0F C9 [01:15:07]state=3 [01:15:07]Cover opened [01:15:07]OFD Sender: No OFD packet to send [01:15:12]Write to MH i2c: 01 00 00 A5 0E B3 [01:15:12]Write i2c OK [01:15:12]MH_I2C_Read... [01:15:12]Read from MH i2c: 01 [01:15:12]MH_I2C_Read... [01:15:12]Read from MH i2c: 01 07 00 [01:15:12]MH_I2C_Read... [01:15:12]Read from MH i2c: 01 07 00 A5 0E 00 02 00 00 00 FF 0F CA [01:15:12]state=3 [01:15:12]Cover opened [01:15:12]OFD Sender: No OFD packet to send [01:15:17]Write to MH i2c: 01 00 00 A6 0E B4 [01:15:17]Write i2c OK [01:15:17]MH_I2C_Read... [01:15:17]Read from MH i2c: 01 [01:15:17]MH_I2C_Read... [01:15:17]Read from MH i2c: 01 07 00 [01:15:17]MH_I2C_Read... [01:15:17]Read from MH i2c: 01 07 00 A6 0E 00 02 00 00 00 FF 0F CB [01:15:17]state=3 [01:15:17]Cover opened [01:15:17]OFD Sender: No OFD packet to send [01:15:22]Write to MH i2c: 01 00 00 A7 0E B5 [01:15:22]Write i2c OK [01:15:22]MH_I2C_Read... [01:15:22]Read from MH i2c: 01 [01:15:22]MH_I2C_Read... [01:15:22]Read from MH i2c: 01 07 00 [01:15:22]MH_I2C_Read... [01:15:22]Read from MH i2c: 01 07 00 A7 0E 00 02 00 00 00 FF 0F CC [01:15:22]state=3 [01:15:22]Cover opened [01:15:22]OFD Sender: No OFD packet to send [01:15:27]Write to MH i2c: 01 00 00 A8 0E B6 [01:15:27]Write i2c OK [01:15:27]MH_I2C_Read... [01:15:27]Read from MH i2c: 01 [01:15:27]MH_I2C_Read... [01:15:27]Read from MH i2c: 01 07 00 [01:15:27]MH_I2C_Read... [01:15:27]Read from MH i2c: 01 07 00 A8 0E 00 02 00 00 00 FF 0F CD [01:15:27]state=3 [01:15:27]Cover opened [01:15:27]OFD Sender: No OFD packet to send [01:15:32]Write to MH i2c: 01 00 00 A9 0E B7 [01:15:32]Write i2c OK [01:15:32]MH_I2C_Read... [01:15:32]Read from MH i2c: 01 [01:15:32]MH_I2C_Read... [01:15:32]Read from MH i2c: 01 07 00 [01:15:32]MH_I2C_Read... [01:15:32]Read from MH i2c: 01 07 00 A9 0E 00 02 00 00 00 FF 0F CE [01:15:32]state=3 [01:15:32]Cover opened [01:15:32]OFD Sender: No OFD packet to send [01:15:37]Write to MH i2c: 01 00 00 AA 0E B8 [01:15:37]Write i2c OK [01:15:37]MH_I2C_Read... [01:15:37]Read from MH i2c: 01 [01:15:37]MH_I2C_Read... [01:15:37]Read from MH i2c: 01 07 00 [01:15:37]MH_I2C_Read... [01:15:37]Read from MH i2c: 01 07 00 AA 0E 00 02 00 00 00 FF 0F CF [01:15:37]state=3 [01:15:37]Cover opened [01:15:37]OFD Sender: No OFD packet to send [01:15:42]Write to MH i2c: 01 00 00 AB 0E B9 [01:15:42]Write i2c OK [01:15:42]MH_I2C_Read... [01:15:42]Read from MH i2c: 01 [01:15:42]MH_I2C_Read... [01:15:42]Read from MH i2c: 01 07 00 [01:15:42]MH_I2C_Read... [01:15:42]Read from MH i2c: 01 07 00 AB 0E 00 02 00 00 00 FF 0F D0 [01:15:42]state=3 [01:15:42]Cover opened [01:15:42]OFD Sender: No OFD packet to send [01:15:47]Write to MH i2c: 01 00 00 AC 0E BA [01:15:47]Write i2c OK [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: 01 [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: 01 07 00 [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: 01 07 00 AC 0E 00 02 00 00 00 FF 0F D1 [01:15:47]state=3 [01:15:47]Cover opened [01:15:47]OFD Sender: No OFD packet to send [01:15:52]Write to MH i2c: 01 00 00 AD 0E BB [01:15:52]Write i2c OK [01:15:52]MH_I2C_Read... [01:15:52]Read from MH i2c: 01 [01:15:52]MH_I2C_Read... [01:15:52]Read from MH i2c: 01 07 00 [01:15:52]MH_I2C_Read... [01:15:52]Read from MH i2c: 01 07 00 AD 0E 00 02 00 00 00 FF 0F D2 [01:15:52]state=3 [01:15:52]Cover opened [01:15:52]OFD Sender: No OFD packet to send [01:15:57]Write to MH i2c: 01 00 00 AE 0E BC [01:15:57]Write i2c OK [01:15:57]MH_I2C_Read... [01:15:57]Read from MH i2c: 01 [01:15:57]MH_I2C_Read... [01:15:57]Read from MH i2c: 01 07 00 [01:15:57]MH_I2C_Read... [01:15:57]Read from MH i2c: 01 07 00 AE 0E 00 02 00 00 00 FF 0F D3 [01:15:57]state=3 [01:15:57]Cover opened [01:15:57]OFD Sender: No OFD packet to send [01:16:02]Write to MH i2c: 01 00 00 AF 0E BD [01:16:02]Write i2c OK [01:16:02]MH_I2C_Read... [01:16:02]Read from MH i2c: 01 [01:16:02]MH_I2C_Read... [01:16:02]Read from MH i2c: 01 07 00 [01:16:02]MH_I2C_Read... [01:16:02]Read from MH i2c: 01 07 00 AF 0E 00 02 00 00 00 FF 0F D4 [01:16:02]state=3 [01:16:02]Cover opened [01:16:02]OFD Sender: No OFD packet to send [01:16:07]Write to MH i2c: 01 00 00 B0 0E BE [01:16:07]Write i2c OK [01:16:07]MH_I2C_Read... [01:16:07]Read from MH i2c: 01 [01:16:07]MH_I2C_Read... [01:16:07]Read from MH i2c: 01 07 00 [01:16:07]MH_I2C_Read... [01:16:07]Read from MH i2c: 01 07 00 B0 0E 00 02 00 00 00 FF 0F D5 [01:16:07]state=3 [01:16:07]Cover opened [01:16:07]OFD Sender: No OFD packet to send [01:16:12]Write to MH i2c: 01 00 00 B1 0E BF [01:16:12]Write i2c OK [01:16:12]MH_I2C_Read... [01:16:12]Read from MH i2c: 01 [01:16:12]MH_I2C_Read... [01:16:12]Read from MH i2c: 01 07 00 [01:16:12]MH_I2C_Read... [01:16:12]Read from MH i2c: 01 07 00 B1 0E 00 02 00 00 00 FF 0F D6 [01:16:12]state=3 [01:16:12]Cover opened [01:16:12]OFD Sender: No OFD packet to send [01:16:17]Write to MH i2c: 01 00 00 B2 0E C0 [01:16:17]Write i2c OK [01:16:17]MH_I2C_Read... [01:16:17]Read from MH i2c: 01 [01:16:17]MH_I2C_Read... [01:16:17]Read from MH i2c: 01 07 00 [01:16:17]MH_I2C_Read... [01:16:17]Read from MH i2c: 01 07 00 B2 0E 00 02 00 00 00 FF 0F D7 [01:16:17]state=3 [01:16:17]Cover opened [01:16:17]OFD Sender: No OFD packet to send [01:16:22]Write to MH i2c: 01 00 00 B3 0E C1 [01:16:22]Write i2c OK [01:16:22]MH_I2C_Read... [01:16:22]Read from MH i2c: 01 [01:16:22]MH_I2C_Read... [01:16:22]Read from MH i2c: 01 07 00 [01:16:22]MH_I2C_Read... [01:16:22]Read from MH i2c: 01 07 00 B3 0E 00 02 00 00 00 FF 0F D8 [01:16:22]state=3 [01:16:22]Cover opened [01:16:22]OFD Sender: No OFD packet to send [01:16:27]Write to MH i2c: 01 00 00 B4 0E C2 [01:16:27]Write i2c OK [01:16:27]MH_I2C_Read... [01:16:27]Read from MH i2c: 01 [01:16:27]MH_I2C_Read... [01:16:27]Read from MH i2c: 01 07 00 [01:16:27]MH_I2C_Read... [01:16:27]Read from MH i2c: 01 07 00 B4 0E 00 02 00 00 00 FF 0F D9 [01:16:27]state=3 [01:16:27]Cover opened [01:16:27]OFD Sender: No OFD packet to send [01:16:32]Write to MH i2c: 01 00 00 B5 0E C3 [01:16:32]Write i2c OK [01:16:32]MH_I2C_Read... [01:16:32]Read from MH i2c: 01 [01:16:32]MH_I2C_Read... [01:16:32]Read from MH i2c: 01 07 00 [01:16:32]MH_I2C_Read... [01:16:32]Read from MH i2c: 01 07 00 B5 0E 00 02 00 00 00 FF 0F DA [01:16:32]state=3 [01:16:32]Cover opened [01:16:32]OFD Sender: No OFD packet to send [01:16:37]Write to MH i2c: 01 00 00 B6 0E C4 [01:16:37]Write i2c OK [01:16:37]MH_I2C_Read... [01:16:37]Read from MH i2c: 01 [01:16:37]MH_I2C_Read... [01:16:37]Read from MH i2c: 01 07 00 [01:16:37]MH_I2C_Read... [01:16:37]Read from MH i2c: 01 07 00 B6 0E 00 02 00 00 00 FF 0F DB [01:16:37]state=3 [01:16:37]Cover opened [01:16:37]OFD Sender: No OFD packet to send [01:16:42]Write to MH i2c: 01 00 00 B7 0E C5 [01:16:42]Write i2c OK [01:16:42]MH_I2C_Read... [01:16:42]Read from MH i2c: 01 [01:16:42]MH_I2C_Read... [01:16:42]Read from MH i2c: 01 07 00 [01:16:42]MH_I2C_Read... [01:16:42]Read from MH i2c: 01 07 00 B7 0E 00 02 00 00 00 FF 0F DC [01:16:42]state=3 [01:16:42]Cover opened [01:16:42]OFD Sender: No OFD packet to send [01:16:47]Write to MH i2c: 01 00 00 B8 0E C6 [01:16:47]Write i2c OK [01:16:47]MH_I2C_Read... [01:16:47]Read from MH i2c: 01 [01:16:47]MH_I2C_Read... [01:16:47]Read from MH i2c: 01 07 00 [01:16:47]MH_I2C_Read... [01:16:47]Read from MH i2c: 01 07 00 B8 0E 00 02 00 00 00 FF 0F DD [01:16:47]state=3 [01:16:47]Cover opened [01:16:47]OFD Sender: No OFD packet to send [01:16:52]Write to MH i2c: 01 00 00 B9 0E C7 [01:16:52]Write i2c OK [01:16:52]MH_I2C_Read... [01:16:52]Read from MH i2c: 01 [01:16:52]MH_I2C_Read... [01:16:52]Read from MH i2c: 01 07 00 [01:16:52]MH_I2C_Read... [01:16:52]Read from MH i2c: 01 07 00 B9 0E 00 02 00 00 00 FF 0F DE [01:16:52]state=3 [01:16:52]Cover opened [01:16:52]OFD Sender: No OFD packet to send [01:16:57]Write to MH i2c: 01 00 00 BA 0E C8 [01:16:57]Write i2c OK [01:16:57]MH_I2C_Read... [01:16:57]Read from MH i2c: 01 [01:16:57]MH_I2C_Read... [01:16:57]Read from MH i2c: 01 07 00 [01:16:57]MH_I2C_Read... [01:16:57]Read from MH i2c: 01 07 00 BA 0E 00 02 00 00 00 FF 0F DF [01:16:57]state=3 [01:16:57]Cover opened [01:16:57]OFD Sender: No OFD packet to send [01:17:02]Write to MH i2c: 01 00 00 BB 0E C9 [01:17:02]Write i2c OK [01:17:02]MH_I2C_Read... [01:17:02]Read from MH i2c: 01 [01:17:02]MH_I2C_Read... [01:17:02]Read from MH i2c: 01 07 00 [01:17:02]MH_I2C_Read... [01:17:02]Read from MH i2c: 01 07 00 BB 0E 00 02 00 00 00 FF 0F E0 [01:17:02]state=3 [01:17:02]Cover opened [01:17:02]OFD Sender: No OFD packet to send [01:17:07]Write to MH i2c: 01 00 00 BC 0E CA [01:17:07]Write i2c OK [01:17:07]MH_I2C_Read... [01:17:07]Read from MH i2c: 01 [01:17:07]MH_I2C_Read... [01:17:07]Read from MH i2c: 01 07 00 [01:17:07]MH_I2C_Read... [01:17:07]Read from MH i2c: 01 07 00 BC 0E 00 02 00 00 00 FF 0F E1 [01:17:07]state=3 [01:17:07]Cover opened [01:17:07]OFD Sender: No OFD packet to send [01:17:12]Write to MH i2c: 01 00 00 BD 0E CB [01:17:12]Write i2c OK [01:17:12]MH_I2C_Read... [01:17:12]Read from MH i2c: 01 [01:17:12]MH_I2C_Read... [01:17:12]Read from MH i2c: 01 07 00 [01:17:12]MH_I2C_Read... [01:17:12]Read from MH i2c: 01 07 00 BD 0E 00 02 00 00 00 FF 0F E2 [01:17:12]state=3 [01:17:12]Cover opened [01:17:12]OFD Sender: No OFD packet to send [01:17:17]Write to MH i2c: 01 00 00 BE 0E CC [01:17:17]Write i2c OK [01:17:17]MH_I2C_Read... [01:17:17]Read from MH i2c: 01 [01:17:17]MH_I2C_Read... [01:17:17]Read from MH i2c: 01 07 00 [01:17:17]MH_I2C_Read... [01:17:17]Read from MH i2c: 01 07 00 BE 0E 00 02 00 00 00 FF 0F E3 [01:17:17]state=3 [01:17:17]Cover opened [01:17:17]OFD Sender: No OFD packet to send [01:17:22]Write to MH i2c: 01 00 00 BF 0E CD [01:17:22]Write i2c OK [01:17:22]MH_I2C_Read... [01:17:22]Read from MH i2c: 01 [01:17:22]MH_I2C_Read... [01:17:22]Read from MH i2c: 01 07 00 [01:17:22]MH_I2C_Read... [01:17:22]Read from MH i2c: 01 07 00 BF 0E 00 02 00 00 00 FF 0F E4 [01:17:22]state=3 [01:17:22]Cover opened [01:17:22]OFD Sender: No OFD packet to send [01:17:27]Write to MH i2c: 01 00 00 C0 0E CE [01:17:27]Write i2c OK [01:17:27]MH_I2C_Read... [01:17:27]Read from MH i2c: 01 [01:17:27]MH_I2C_Read... [01:17:27]Read from MH i2c: 01 07 00 [01:17:27]MH_I2C_Read... [01:17:27]Read from MH i2c: 01 07 00 C0 0E 00 02 00 00 00 FF 0F E5 [01:17:27]state=3 [01:17:27]Cover opened [01:17:27]OFD Sender: No OFD packet to send [01:17:32]Write to MH i2c: 01 00 00 C1 0E CF [01:17:32]Write i2c OK [01:17:32]MH_I2C_Read... [01:17:32]Read from MH i2c: 01 [01:17:32]MH_I2C_Read... [01:17:32]Read from MH i2c: 01 07 00 [01:17:32]MH_I2C_Read... [01:17:32]Read from MH i2c: 01 07 00 C1 0E 00 02 00 00 00 FF 0F E6 [01:17:32]state=3 [01:17:32]Cover opened [01:17:32]OFD Sender: No OFD packet to send [01:17:37]Write to MH i2c: 01 00 00 C2 0E D0 [01:17:37]Write i2c OK [01:17:37]MH_I2C_Read... [01:17:37]Read from MH i2c: 01 [01:17:37]MH_I2C_Read... [01:17:37]Read from MH i2c: 01 07 00 [01:17:37]MH_I2C_Read... [01:17:37]Read from MH i2c: 01 07 00 C2 0E 00 02 00 00 00 FF 0F E7 [01:17:37]state=3 [01:17:37]Cover opened [01:17:37]OFD Sender: No OFD packet to send [01:17:42]Write to MH i2c: 01 00 00 C3 0E D1 [01:17:42]Write i2c OK [01:17:42]MH_I2C_Read... [01:17:42]Read from MH i2c: 01 [01:17:42]MH_I2C_Read... [01:17:42]Read from MH i2c: 01 07 00 [01:17:42]MH_I2C_Read... [01:17:42]Read from MH i2c: 01 07 00 C3 0E 00 02 00 00 00 FF 0F E8 [01:17:42]state=3 [01:17:42]Cover opened [01:17:42]OFD Sender: No OFD packet to send [01:17:47]Write to MH i2c: 01 00 00 C4 0E D2 [01:17:47]Write i2c OK [01:17:47]MH_I2C_Read... [01:17:47]Read from MH i2c: 01 [01:17:47]MH_I2C_Read... [01:17:47]Read from MH i2c: 01 07 00 [01:17:47]MH_I2C_Read... [01:17:47]Read from MH i2c: 01 07 00 C4 0E 00 02 00 00 00 FF 0F E9 [01:17:47]state=3 [01:17:47]Cover opened [01:17:47]OFD Sender: No OFD packet to send [01:17:52]Write to MH i2c: 01 00 00 C5 0E D3 [01:17:52]Write i2c OK [01:17:52]MH_I2C_Read... [01:17:52]Read from MH i2c: 01 [01:17:52]MH_I2C_Read... [01:17:52]Read from MH i2c: 01 07 00 [01:17:52]MH_I2C_Read... [01:17:52]Read from MH i2c: 01 07 00 C5 0E 00 02 00 00 00 FF 0F EA [01:17:52]state=3 [01:17:52]Cover opened [01:17:52]OFD Sender: No OFD packet to send [01:17:57]Write to MH i2c: 01 00 00 C6 0E D4 [01:17:57]Write i2c OK [01:17:57]MH_I2C_Read... [01:17:57]Read from MH i2c: 01 [01:17:57]MH_I2C_Read... [01:17:57]Read from MH i2c: 01 07 00 [01:17:57]MH_I2C_Read... [01:17:57]Read from MH i2c: 01 07 00 C6 0E 00 02 00 00 00 FF 0F EB [01:17:57]state=3 [01:17:57]Cover opened [01:17:57]OFD Sender: No OFD packet to send [01:18:02]Write to MH i2c: 01 00 00 C7 0E D5 [01:18:02]Write i2c OK [01:18:02]MH_I2C_Read... [01:18:02]Read from MH i2c: 01 [01:18:02]MH_I2C_Read... [01:18:02]Read from MH i2c: 01 07 00 [01:18:02]MH_I2C_Read... [01:18:02]Read from MH i2c: 01 07 00 C7 0E 00 02 00 00 00 FF 0F EC [01:18:02]state=3 [01:18:02]Cover opened [01:18:02]OFD Sender: No OFD packet to send [01:18:07]Write to MH i2c: 01 00 00 C8 0E D6 [01:18:07]Write i2c OK [01:18:07]MH_I2C_Read... [01:18:07]Read from MH i2c: 01 [01:18:07]MH_I2C_Read... [01:18:07]Read from MH i2c: 01 07 00 [01:18:07]MH_I2C_Read... [01:18:07]Read from MH i2c: 01 07 00 C8 0E 00 02 00 00 00 FF 0F ED [01:18:07]state=3 [01:18:07]Cover opened [01:18:07]OFD Sender: No OFD packet to send [01:18:12]Write to MH i2c: 01 00 00 C9 0E D7 [01:18:12]Write i2c OK [01:18:12]MH_I2C_Read... [01:18:12]Read from MH i2c: 01 [01:18:12]MH_I2C_Read... [01:18:12]Read from MH i2c: 01 07 00 [01:18:12]MH_I2C_Read... [01:18:12]Read from MH i2c: 01 07 00 C9 0E 00 02 00 00 00 FF 0F EE [01:18:12]state=3 [01:18:12]Cover opened [01:18:12]OFD Sender: No OFD packet to send [01:18:17]Write to MH i2c: 01 00 00 CA 0E D8 [01:18:17]Write i2c OK [01:18:17]MH_I2C_Read... [01:18:17]Read from MH i2c: 01 [01:18:17]MH_I2C_Read... [01:18:17]Read from MH i2c: 01 07 00 [01:18:17]MH_I2C_Read... [01:18:17]Read from MH i2c: 01 07 00 CA 0E 00 02 00 00 00 FF 0F EF [01:18:17]state=3 [01:18:17]Cover opened [01:18:17]OFD Sender: No OFD packet to send [01:18:22]Write to MH i2c: 01 00 00 CB 0E D9 [01:18:22]Write i2c OK [01:18:22]MH_I2C_Read... [01:18:22]Read from MH i2c: 01 [01:18:22]MH_I2C_Read... [01:18:22]Read from MH i2c: 01 07 00 [01:18:22]MH_I2C_Read... [01:18:22]Read from MH i2c: 01 07 00 CB 0E 00 02 00 00 00 FF 0F F0 [01:18:22]state=3 [01:18:22]Cover opened [01:18:22]OFD Sender: No OFD packet to send [01:18:27]Write to MH i2c: 01 00 00 CC 0E DA [01:18:27]Write i2c OK [01:18:27]MH_I2C_Read... [01:18:27]Read from MH i2c: 01 [01:18:27]MH_I2C_Read... [01:18:27]Read from MH i2c: 01 07 00 [01:18:27]MH_I2C_Read... [01:18:27]Read from MH i2c: 01 07 00 CC 0E 00 02 00 00 00 FF 0F F1 [01:18:27]state=3 [01:18:27]Cover opened [01:18:27]OFD Sender: No OFD packet to send [01:18:32]Write to MH i2c: 01 00 00 CD 0E DB [01:18:32]Write i2c OK [01:18:32]MH_I2C_Read... [01:18:32]Read from MH i2c: 01 [01:18:32]MH_I2C_Read... [01:18:32]Read from MH i2c: 01 07 00 [01:18:32]MH_I2C_Read... [01:18:32]Read from MH i2c: 01 07 00 CD 0E 00 02 00 00 00 FF 0F F2 [01:18:32]state=3 [01:18:32]Cover opened [01:18:32]OFD Sender: No OFD packet to send [01:18:37]Write to MH i2c: 01 00 00 CE 0E DC [01:18:37]Write i2c OK [01:18:37]MH_I2C_Read... [01:18:37]Read from MH i2c: 01 [01:18:37]MH_I2C_Read... [01:18:37]Read from MH i2c: 01 07 00 [01:18:37]MH_I2C_Read... [01:18:37]Read from MH i2c: 01 07 00 CE 0E 00 02 00 00 00 FF 0F F3 [01:18:37]state=3 [01:18:37]Cover opened [01:18:37]OFD Sender: No OFD packet to send [01:18:42]Write to MH i2c: 01 00 00 CF 0E DD [01:18:42]Write i2c OK [01:18:42]MH_I2C_Read... [01:18:42]Read from MH i2c: 01 [01:18:42]MH_I2C_Read... [01:18:42]Read from MH i2c: 01 07 00 [01:18:42]MH_I2C_Read... [01:18:42]Read from MH i2c: 01 07 00 CF 0E 00 02 00 00 00 FF 0F F4 [01:18:42]state=3 [01:18:42]Cover opened [01:18:42]OFD Sender: No OFD packet to send [01:18:47]Write to MH i2c: 01 00 00 D0 0E DE [01:18:47]Write i2c OK [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: 01 [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: 01 07 00 [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: 01 07 00 D0 0E 00 02 00 00 00 FF 0F F5 [01:18:47]state=3 [01:18:47]Cover opened [01:18:48]OFD Sender: No OFD packet to send [01:18:52]Write to MH i2c: 01 00 00 D1 0E DF [01:18:52]Write i2c OK [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: 01 [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: 01 07 00 [01:18:52]MH_I2C_Read... [01:18:52]Read from MH i2c: 01 07 00 D1 0E 00 02 00 00 00 FF 0F F6 [01:18:52]state=3 [01:18:52]Cover opened [01:18:53]OFD Sender: No OFD packet to send [01:18:57]Write to MH i2c: 01 00 00 D2 0E E0 [01:18:57]Write i2c OK [01:18:57]MH_I2C_Read... [01:18:57]Read from MH i2c: 01 [01:18:57]MH_I2C_Read... [01:18:57]Read from MH i2c: 01 07 00 [01:18:57]MH_I2C_Read... [01:18:57]Read from MH i2c: 01 07 00 D2 0E 00 02 00 00 00 FF 0F F7 [01:18:57]state=3 [01:18:57]Cover opened [01:18:58]OFD Sender: No OFD packet to send [01:19:02]Write to MH i2c: 01 00 00 D3 0E E1 [01:19:02]Write i2c OK [01:19:02]MH_I2C_Read... [01:19:02]Read from MH i2c: 01 [01:19:02]MH_I2C_Read... [01:19:02]Read from MH i2c: 01 07 00 [01:19:02]MH_I2C_Read... [01:19:02]Read from MH i2c: 01 07 00 D3 0E 00 02 00 00 00 FF 0F F8 [01:19:02]state=3 [01:19:02]Cover opened [01:19:03]OFD Sender: No OFD packet to send [01:19:07]Write to MH i2c: 01 00 00 D4 0E E2 [01:19:07]Write i2c OK [01:19:07]MH_I2C_Read... [01:19:07]Read from MH i2c: 01 [01:19:07]MH_I2C_Read... [01:19:07]Read from MH i2c: 01 07 00 [01:19:07]MH_I2C_Read... [01:19:07]Read from MH i2c: 01 07 00 D4 0E 00 02 00 00 00 FF 0F F9 [01:19:07]state=3 [01:19:07]Cover opened [01:19:08]OFD Sender: No OFD packet to send [01:19:12]Write to MH i2c: 01 00 00 D5 0E E3 [01:19:12]Write i2c OK [01:19:12]MH_I2C_Read... [01:19:12]Read from MH i2c: 01 [01:19:12]MH_I2C_Read... [01:19:12]Read from MH i2c: 01 07 00 [01:19:12]MH_I2C_Read... [01:19:12]Read from MH i2c: 01 07 00 D5 0E 00 02 00 00 00 FF 0F FA [01:19:12]state=3 [01:19:12]Cover opened [01:19:13]OFD Sender: No OFD packet to send [01:19:17]Write to MH i2c: 01 00 00 D6 0E E4 [01:19:17]Write i2c OK [01:19:17]MH_I2C_Read... [01:19:17]Read from MH i2c: 01 [01:19:17]MH_I2C_Read... [01:19:17]Read from MH i2c: 01 07 00 [01:19:17]MH_I2C_Read... [01:19:17]Read from MH i2c: 01 07 00 D6 0E 00 02 00 00 00 FF 0F FB [01:19:17]state=3 [01:19:17]Cover opened [01:19:18]OFD Sender: No OFD packet to send [01:19:22]Write to MH i2c: 01 00 00 D7 0E E5 [01:19:22]Write i2c OK [01:19:22]MH_I2C_Read... [01:19:22]Read from MH i2c: 01 [01:19:22]MH_I2C_Read... [01:19:22]Read from MH i2c: 01 07 00 [01:19:22]MH_I2C_Read... [01:19:22]Read from MH i2c: 01 07 00 D7 0E 00 02 00 00 00 FF 0F FC [01:19:22]state=3 [01:19:22]Cover opened [01:19:23]OFD Sender: No OFD packet to send [01:19:27]Write to MH i2c: 01 00 00 D8 0E E6 [01:19:27]Write i2c OK [01:19:27]MH_I2C_Read... [01:19:27]Read from MH i2c: 01 [01:19:27]MH_I2C_Read... [01:19:27]Read from MH i2c: 01 07 00 [01:19:27]MH_I2C_Read... [01:19:27]Read from MH i2c: 01 07 00 D8 0E 00 02 00 00 00 FF 0F FD [01:19:27]state=3 [01:19:27]Cover opened [01:19:28]OFD Sender: No OFD packet to send [01:19:32]Write to MH i2c: 01 00 00 D9 0E E7 [01:19:32]Write i2c OK [01:19:32]MH_I2C_Read... [01:19:32]Read from MH i2c: 01 [01:19:32]MH_I2C_Read... [01:19:32]Read from MH i2c: 01 07 00 [01:19:32]MH_I2C_Read... [01:19:32]Read from MH i2c: 01 07 00 D9 0E 00 02 00 00 00 FF 0F FE [01:19:32]state=3 [01:19:32]Cover opened [01:19:33]OFD Sender: No OFD packet to send [01:19:37]Write to MH i2c: 01 00 00 DA 0E E8 [01:19:37]Write i2c OK [01:19:37]MH_I2C_Read... [01:19:37]Read from MH i2c: 01 [01:19:37]MH_I2C_Read... [01:19:37]Read from MH i2c: 01 07 00 [01:19:37]MH_I2C_Read... [01:19:37]Read from MH i2c: 01 07 00 DA 0E 00 02 00 00 00 FF 0F FF [01:19:37]state=3 [01:19:37]Cover opened [01:19:38]OFD Sender: No OFD packet to send [01:19:42]Write to MH i2c: 01 00 00 DB 0E E9 [01:19:42]Write i2c OK [01:19:42]MH_I2C_Read... [01:19:42]Read from MH i2c: 01 [01:19:42]MH_I2C_Read... [01:19:42]Read from MH i2c: 01 07 00 [01:19:42]MH_I2C_Read... [01:19:42]Read from MH i2c: 01 07 00 DB 0E 00 02 00 00 00 FF 0F 00 [01:19:42]state=3 [01:19:42]Cover opened [01:19:43]OFD Sender: No OFD packet to send [01:19:47]Write to MH i2c: 01 00 00 DC 0E EA [01:19:47]Write i2c OK [01:19:47]MH_I2C_Read... [01:19:47]Read from MH i2c: 01 [01:19:47]MH_I2C_Read... [01:19:47]Read from MH i2c: 01 07 00 [01:19:47]MH_I2C_Read... [01:19:47]Read from MH i2c: 01 07 00 DC 0E 00 02 00 00 00 FF 0F 01 [01:19:47]state=3 [01:19:47]Cover opened [01:19:48]OFD Sender: No OFD packet to send [01:19:52]Write to MH i2c: 01 00 00 DD 0E EB [01:19:52]Write i2c OK [01:19:52]MH_I2C_Read... [01:19:52]Read from MH i2c: 01 [01:19:52]MH_I2C_Read... [01:19:52]Read from MH i2c: 01 07 00 [01:19:52]MH_I2C_Read... [01:19:52]Read from MH i2c: 01 07 00 DD 0E 00 02 00 00 00 FF 0F 02 [01:19:52]state=3 [01:19:52]Cover opened [01:19:53]OFD Sender: No OFD packet to send [01:19:57]Write to MH i2c: 01 00 00 DE 0E EC [01:19:57]Write i2c OK [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: 01 [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: 01 07 00 [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: 01 07 00 DE 0E 00 02 00 00 00 FF 0F 03 [01:19:57]state=3 [01:19:57]Cover opened [01:19:58]OFD Sender: No OFD packet to send [01:20:02]Write to MH i2c: 01 00 00 DF 0E ED [01:20:02]Write i2c OK [01:20:02]MH_I2C_Read... [01:20:02]Read from MH i2c: 01 [01:20:02]MH_I2C_Read... [01:20:02]Read from MH i2c: 01 07 00 [01:20:02]MH_I2C_Read... [01:20:02]Read from MH i2c: 01 07 00 DF 0E 00 02 00 00 00 FF 0F 04 [01:20:02]state=3 [01:20:02]Cover opened [01:20:03]OFD Sender: No OFD packet to send [01:20:07]Write to MH i2c: 01 00 00 E0 0E EE [01:20:07]Write i2c OK [01:20:07]MH_I2C_Read... [01:20:07]Read from MH i2c: 01 [01:20:07]MH_I2C_Read... [01:20:07]Read from MH i2c: 01 07 00 [01:20:07]MH_I2C_Read... [01:20:07]Read from MH i2c: 01 07 00 E0 0E 00 02 00 00 00 FF 0F 05 [01:20:07]state=3 [01:20:07]Cover opened [01:20:08]OFD Sender: No OFD packet to send [01:20:12]Write to MH i2c: 01 00 00 E1 0E EF [01:20:12]Write i2c OK [01:20:12]MH_I2C_Read... [01:20:12]Read from MH i2c: 01 [01:20:12]MH_I2C_Read... [01:20:12]Read from MH i2c: 01 07 00 [01:20:12]MH_I2C_Read... [01:20:12]Read from MH i2c: 01 07 00 E1 0E 00 02 00 00 00 FF 0F 06 [01:20:12]state=3 [01:20:12]Cover opened [01:20:13]OFD Sender: No OFD packet to send [01:20:17]Write to MH i2c: 01 00 00 E2 0E F0 [01:20:17]Write i2c OK [01:20:17]MH_I2C_Read... [01:20:17]Read from MH i2c: 01 [01:20:17]MH_I2C_Read... [01:20:17]Read from MH i2c: 01 07 00 [01:20:17]MH_I2C_Read... [01:20:17]Read from MH i2c: 01 07 00 E2 0E 00 02 00 00 00 FF 0F 07 [01:20:17]state=3 [01:20:17]Cover opened [01:20:18]OFD Sender: No OFD packet to send [01:20:22]Write to MH i2c: 01 00 00 E3 0E F1 [01:20:22]Write i2c OK [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: 01 [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: 01 07 00 [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: 01 07 00 E3 0E 00 02 00 00 00 FF 0F 08 [01:20:22]state=3 [01:20:22]Cover opened [01:20:23]OFD Sender: No OFD packet to send [01:20:27]Write to MH i2c: 01 00 00 E4 0E F2 [01:20:27]Write i2c OK [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: 01 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: 01 07 00 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: 01 07 00 E4 0E 00 02 00 00 00 FF 0F 09 [01:20:27]state=3 [01:20:27]Cover opened [01:20:28]OFD Sender: No OFD packet to send [01:20:32]Write to MH i2c: 01 00 00 E5 0E F3 [01:20:32]Write i2c OK [01:20:32]MH_I2C_Read... [01:20:32]Read from MH i2c: 01 [01:20:32]MH_I2C_Read... [01:20:32]Read from MH i2c: 01 07 00 [01:20:32]MH_I2C_Read... [01:20:32]Read from MH i2c: 01 07 00 E5 0E 00 02 00 00 00 FF 0F 0A [01:20:32]state=3 [01:20:32]Cover opened [01:20:33]OFD Sender: No OFD packet to send [01:20:37]Write to MH i2c: 01 00 00 E6 0E F4 [01:20:37]Write i2c OK [01:20:37]MH_I2C_Read... [01:20:37]Read from MH i2c: 01 [01:20:37]MH_I2C_Read... [01:20:37]Read from MH i2c: 01 07 00 [01:20:37]MH_I2C_Read... [01:20:37]Read from MH i2c: 01 07 00 E6 0E 00 02 00 00 00 FF 0F 0B [01:20:37]state=3 [01:20:37]Cover opened [01:20:38]OFD Sender: No OFD packet to send [01:20:42]Write to MH i2c: 01 00 00 E7 0E F5 [01:20:42]Write i2c OK [01:20:42]MH_I2C_Read... [01:20:42]Read from MH i2c: 01 [01:20:42]MH_I2C_Read... [01:20:42]Read from MH i2c: 01 07 00 [01:20:42]MH_I2C_Read... [01:20:42]Read from MH i2c: 01 07 00 E7 0E 00 02 00 00 00 FF 0F 0C [01:20:42]state=3 [01:20:42]Cover opened [01:20:43]OFD Sender: No OFD packet to send [01:20:47]Write to MH i2c: 01 00 00 E8 0E F6 [01:20:47]Write i2c OK [01:20:47]MH_I2C_Read... [01:20:47]Read from MH i2c: 01 [01:20:47]MH_I2C_Read... [01:20:47]Read from MH i2c: 01 07 00 [01:20:47]MH_I2C_Read... [01:20:47]Read from MH i2c: 01 07 00 E8 0E 00 02 00 00 00 FF 0F 0D [01:20:47]state=3 [01:20:47]Cover opened [01:20:48]OFD Sender: No OFD packet to send [01:20:52]Write to MH i2c: 01 00 00 E9 0E F7 [01:20:52]Write i2c OK [01:20:52]MH_I2C_Read... [01:20:52]Read from MH i2c: 01 [01:20:52]MH_I2C_Read... [01:20:52]Read from MH i2c: 01 07 00 [01:20:52]MH_I2C_Read... [01:20:52]Read from MH i2c: 01 07 00 E9 0E 00 02 00 00 00 FF 0F 0E [01:20:52]state=3 [01:20:52]Cover opened [01:20:53]OFD Sender: No OFD packet to send [01:20:57]Write to MH i2c: 01 00 00 EA 0E F8 [01:20:57]Write i2c OK [01:20:57]MH_I2C_Read... [01:20:57]Read from MH i2c: 01 [01:20:57]MH_I2C_Read... [01:20:57]Read from MH i2c: 01 07 00 [01:20:57]MH_I2C_Read... [01:20:57]Read from MH i2c: 01 07 00 EA 0E 00 02 00 00 00 FF 0F 0F [01:20:57]state=3 [01:20:57]Cover opened [01:20:58]OFD Sender: No OFD packet to send [01:21:02]Write to MH i2c: 01 00 00 EB 0E F9 [01:21:02]Write i2c OK [01:21:02]MH_I2C_Read... [01:21:02]Read from MH i2c: 01 [01:21:02]MH_I2C_Read... [01:21:02]Read from MH i2c: 01 07 00 [01:21:02]MH_I2C_Read... [01:21:03]Read from MH i2c: 01 07 00 EB 0E 00 02 00 00 00 FF 0F 10 [01:21:03]state=3 [01:21:03]Cover opened [01:21:03]OFD Sender: No OFD packet to send [01:21:08]Write to MH i2c: 01 00 00 EC 0E FA [01:21:08]Write i2c OK [01:21:08]MH_I2C_Read... [01:21:08]Read from MH i2c: 01 [01:21:08]MH_I2C_Read... [01:21:08]Read from MH i2c: 01 07 00 [01:21:08]MH_I2C_Read... [01:21:08]Read from MH i2c: 01 07 00 EC 0E 00 02 00 00 00 FF 0F 11 [01:21:08]state=3 [01:21:08]Cover opened [01:21:08]OFD Sender: No OFD packet to send [01:21:13]Write to MH i2c: 01 00 00 ED 0E FB [01:21:13]Write i2c OK [01:21:13]MH_I2C_Read... [01:21:13]Read from MH i2c: 01 [01:21:13]MH_I2C_Read... [01:21:13]Read from MH i2c: 01 07 00 [01:21:13]MH_I2C_Read... [01:21:13]Read from MH i2c: 01 07 00 ED 0E 00 02 00 00 00 FF 0F 12 [01:21:13]state=3 [01:21:13]Cover opened [01:21:13]OFD Sender: No OFD packet to send [01:21:18]Write to MH i2c: 01 00 00 EE 0E FC [01:21:18]Write i2c OK [01:21:18]MH_I2C_Read... [01:21:18]Read from MH i2c: 01 [01:21:18]MH_I2C_Read... [01:21:18]Read from MH i2c: 01 07 00 [01:21:18]MH_I2C_Read... [01:21:18]Read from MH i2c: 01 07 00 EE 0E 00 02 00 00 00 FF 0F 13 [01:21:18]state=3 [01:21:18]Cover opened [01:21:18]OFD Sender: No OFD packet to send [01:21:23]Write to MH i2c: 01 00 00 EF 0E FD [01:21:23]Write i2c OK [01:21:23]MH_I2C_Read... [01:21:23]Read from MH i2c: 01 [01:21:23]MH_I2C_Read... [01:21:23]Read from MH i2c: 01 07 00 [01:21:23]MH_I2C_Read... [01:21:23]Read from MH i2c: 01 07 00 EF 0E 00 02 00 00 00 FF 0F 14 [01:21:23]state=3 [01:21:23]Cover opened [01:21:23]OFD Sender: No OFD packet to send [01:21:28]Write to MH i2c: 01 00 00 F0 0E FE [01:21:28]Write i2c OK [01:21:28]MH_I2C_Read... [01:21:28]Read from MH i2c: 01 [01:21:28]MH_I2C_Read... [01:21:28]Read from MH i2c: 01 07 00 [01:21:28]MH_I2C_Read... [01:21:28]Read from MH i2c: 01 07 00 F0 0E 00 02 00 00 00 FF 0F 15 [01:21:28]state=3 [01:21:28]Cover opened [01:21:28]OFD Sender: No OFD packet to send [01:21:33]Write to MH i2c: 01 00 00 F1 0E FF [01:21:33]Write i2c OK [01:21:33]MH_I2C_Read... [01:21:33]Read from MH i2c: 01 [01:21:33]MH_I2C_Read... [01:21:33]Read from MH i2c: 01 07 00 [01:21:33]MH_I2C_Read... [01:21:33]Read from MH i2c: 01 07 00 F1 0E 00 02 00 00 00 FF 0F 16 [01:21:33]state=3 [01:21:33]Cover opened [01:21:33]OFD Sender: No OFD packet to send [01:21:38]Write to MH i2c: 01 00 00 F2 0E 00 [01:21:38]Write i2c OK [01:21:38]MH_I2C_Read... [01:21:38]Read from MH i2c: 01 [01:21:38]MH_I2C_Read... [01:21:38]Read from MH i2c: 01 07 00 [01:21:38]MH_I2C_Read... [01:21:38]Read from MH i2c: 01 07 00 F2 0E 00 02 00 00 00 FF 0F 17 [01:21:38]state=3 [01:21:38]Cover opened [01:21:38]OFD Sender: No OFD packet to send [01:21:43]Write to MH i2c: 01 00 00 F3 0E 01 [01:21:43]Write i2c OK [01:21:43]MH_I2C_Read... [01:21:43]Read from MH i2c: 01 [01:21:43]MH_I2C_Read... [01:21:43]Read from MH i2c: 01 07 00 [01:21:43]MH_I2C_Read... [01:21:43]Read from MH i2c: 01 07 00 F3 0E 00 02 00 00 00 FF 0F 18 [01:21:43]state=3 [01:21:43]Cover opened [01:21:43]OFD Sender: No OFD packet to send [01:21:48]Write to MH i2c: 01 00 00 F4 0E 02 [01:21:48]Write i2c OK [01:21:48]MH_I2C_Read... [01:21:48]Read from MH i2c: 01 [01:21:48]MH_I2C_Read... [01:21:48]Read from MH i2c: 01 07 00 [01:21:48]MH_I2C_Read... [01:21:48]Read from MH i2c: 01 07 00 F4 0E 00 02 00 00 00 FF 0F 19 [01:21:48]state=3 [01:21:48]Cover opened [01:21:48]OFD Sender: No OFD packet to send [01:21:53]Write to MH i2c: 01 00 00 F5 0E 03 [01:21:53]Write i2c OK [01:21:53]MH_I2C_Read... [01:21:53]Read from MH i2c: 01 [01:21:53]MH_I2C_Read... [01:21:53]Read from MH i2c: 01 07 00 [01:21:53]MH_I2C_Read... [01:21:53]Read from MH i2c: 01 07 00 F5 0E 00 02 00 00 00 FF 0F 1A [01:21:53]state=3 [01:21:53]Cover opened [01:21:53]OFD Sender: No OFD packet to send [01:21:58]Write to MH i2c: 01 00 00 F6 0E 04 [01:21:58]Write i2c OK [01:21:58]MH_I2C_Read... [01:21:58]Read from MH i2c: 01 [01:21:58]MH_I2C_Read... [01:21:58]Read from MH i2c: 01 07 00 [01:21:58]MH_I2C_Read... [01:21:58]Read from MH i2c: 01 07 00 F6 0E 00 02 00 00 00 FF 0F 1B [01:21:58]state=3 [01:21:58]Cover opened [01:21:58]OFD Sender: No OFD packet to send [01:22:03]Write to MH i2c: 01 00 00 F7 0E 05 [01:22:03]Write i2c OK [01:22:03]MH_I2C_Read... [01:22:03]Read from MH i2c: 01 [01:22:03]MH_I2C_Read... [01:22:03]Read from MH i2c: 01 07 00 [01:22:03]MH_I2C_Read... [01:22:03]Read from MH i2c: 01 07 00 F7 0E 00 02 00 00 00 FF 0F 1C [01:22:03]state=3 [01:22:03]Cover opened [01:22:03]OFD Sender: No OFD packet to send [01:22:08]Write to MH i2c: 01 00 00 F8 0E 06 [01:22:08]Write i2c OK [01:22:08]MH_I2C_Read... [01:22:08]Read from MH i2c: 01 [01:22:08]MH_I2C_Read... [01:22:08]Read from MH i2c: 01 07 00 [01:22:08]MH_I2C_Read... [01:22:08]Read from MH i2c: 01 07 00 F8 0E 00 02 00 00 00 FF 0F 1D [01:22:08]state=3 [01:22:08]Cover opened [01:22:08]OFD Sender: No OFD packet to send [01:22:13]Write to MH i2c: 01 00 00 F9 0E 07 [01:22:13]Write i2c OK [01:22:13]MH_I2C_Read... [01:22:13]Read from MH i2c: 01 [01:22:13]MH_I2C_Read... [01:22:13]Read from MH i2c: 01 07 00 [01:22:13]MH_I2C_Read... [01:22:13]Read from MH i2c: 01 07 00 F9 0E 00 02 00 00 00 FF 0F 1E [01:22:13]state=3 [01:22:13]Cover opened [01:22:13]OFD Sender: No OFD packet to send [01:22:18]Write to MH i2c: 01 00 00 FA 0E 08 [01:22:18]Write i2c OK [01:22:18]MH_I2C_Read... [01:22:18]Read from MH i2c: 01 [01:22:18]MH_I2C_Read... [01:22:18]Read from MH i2c: 01 07 00 [01:22:18]MH_I2C_Read... [01:22:18]Read from MH i2c: 01 07 00 FA 0E 00 02 00 00 00 FF 0F 1F [01:22:18]state=3 [01:22:18]Cover opened [01:22:18]OFD Sender: No OFD packet to send [01:22:23]Write to MH i2c: 01 00 00 FB 0E 09 [01:22:23]Write i2c OK [01:22:23]MH_I2C_Read... [01:22:23]Read from MH i2c: 01 [01:22:23]MH_I2C_Read... [01:22:23]Read from MH i2c: 01 07 00 [01:22:23]MH_I2C_Read... [01:22:23]Read from MH i2c: 01 07 00 FB 0E 00 02 00 00 00 FF 0F 20 [01:22:23]state=3 [01:22:23]Cover opened [01:22:23]OFD Sender: No OFD packet to send [01:22:28]Write to MH i2c: 01 00 00 FC 0E 0A [01:22:28]Write i2c OK [01:22:28]MH_I2C_Read... [01:22:28]Read from MH i2c: 01 [01:22:28]MH_I2C_Read... [01:22:28]Read from MH i2c: 01 07 00 [01:22:28]MH_I2C_Read... [01:22:28]Read from MH i2c: 01 07 00 FC 0E 00 02 00 00 00 FF 0F 21 [01:22:28]state=3 [01:22:28]Cover opened [01:22:28]OFD Sender: No OFD packet to send [01:22:33]Write to MH i2c: 01 00 00 FD 0E 0B [01:22:33]Write i2c OK [01:22:33]MH_I2C_Read... [01:22:33]Read from MH i2c: 01 [01:22:33]MH_I2C_Read... [01:22:33]Read from MH i2c: 01 07 00 [01:22:33]MH_I2C_Read... [01:22:33]Read from MH i2c: 01 07 00 FD 0E 00 02 00 00 00 FF 0F 22 [01:22:33]state=3 [01:22:33]Cover opened [01:22:33]OFD Sender: No OFD packet to send [01:22:38]Write to MH i2c: 01 00 00 FE 0E 0C [01:22:38]Write i2c OK [01:22:38]MH_I2C_Read... [01:22:38]Read from MH i2c: 01 [01:22:38]MH_I2C_Read... [01:22:38]Read from MH i2c: 01 07 00 [01:22:38]MH_I2C_Read... [01:22:38]Read from MH i2c: 01 07 00 FE 0E 00 02 00 00 00 FF 0F 23 [01:22:38]state=3 [01:22:38]Cover opened [01:22:38]OFD Sender: No OFD packet to send [01:22:43]Write to MH i2c: 01 00 00 FF 0E 0D [01:22:43]Write i2c OK [01:22:43]MH_I2C_Read... [01:22:43]Read from MH i2c: 01 [01:22:43]MH_I2C_Read... [01:22:43]Read from MH i2c: 01 07 00 [01:22:43]MH_I2C_Read... [01:22:43]Read from MH i2c: 01 07 00 FF 0E 00 02 00 00 00 FF 0F 24 [01:22:43]state=3 [01:22:43]Cover opened [01:22:43]OFD Sender: No OFD packet to send [01:22:48]Write to MH i2c: 01 00 00 00 0F 0F [01:22:48]Write i2c OK [01:22:48]MH_I2C_Read... [01:22:48]Read from MH i2c: 01 [01:22:48]MH_I2C_Read... [01:22:48]Read from MH i2c: 01 07 00 [01:22:48]MH_I2C_Read... [01:22:48]Read from MH i2c: 01 07 00 00 0F 00 02 00 00 00 FF 0F 26 [01:22:48]state=3 [01:22:48]Cover opened [01:22:48]OFD Sender: No OFD packet to send [01:22:53]Write to MH i2c: 01 00 00 01 0F 10 [01:22:53]Write i2c OK [01:22:53]MH_I2C_Read... [01:22:53]Read from MH i2c: 01 [01:22:53]MH_I2C_Read... [01:22:53]Read from MH i2c: 01 07 00 [01:22:53]MH_I2C_Read... [01:22:53]Read from MH i2c: 01 07 00 01 0F 00 02 00 00 00 FF 0F 27 [01:22:53]state=3 [01:22:53]Cover opened [01:22:53]OFD Sender: No OFD packet to send [01:22:58]Write to MH i2c: 01 00 00 02 0F 11 [01:22:58]Write i2c OK [01:22:58]MH_I2C_Read... [01:22:58]Read from MH i2c: 01 [01:22:58]MH_I2C_Read... [01:22:58]Read from MH i2c: 01 07 00 [01:22:58]MH_I2C_Read... [01:22:58]Read from MH i2c: 01 07 00 02 0F 00 02 00 00 00 FF 0F 28 [01:22:58]state=3 [01:22:58]Cover opened [01:22:58]OFD Sender: No OFD packet to send [01:23:03]Write to MH i2c: 01 00 00 03 0F 12 [01:23:03]Write i2c OK [01:23:03]MH_I2C_Read... [01:23:03]Read from MH i2c: 01 [01:23:03]MH_I2C_Read... [01:23:03]Read from MH i2c: 01 07 00 [01:23:03]MH_I2C_Read... [01:23:03]Read from MH i2c: 01 07 00 03 0F 00 02 00 00 00 FF 0F 29 [01:23:03]state=3 [01:23:03]Cover opened [01:23:03]OFD Sender: No OFD packet to send [01:23:08]Write to MH i2c: 01 00 00 04 0F 13 [01:23:08]Write i2c OK [01:23:08]MH_I2C_Read... [01:23:08]Read from MH i2c: 01 [01:23:08]MH_I2C_Read... [01:23:08]Read from MH i2c: 01 07 00 [01:23:08]MH_I2C_Read... [01:23:08]Read from MH i2c: 01 07 00 04 0F 00 02 00 00 00 FF 0F 2A [01:23:08]state=3 [01:23:08]Cover opened [01:23:08]OFD Sender: No OFD packet to send [01:23:13]Write to MH i2c: 01 00 00 05 0F 14 [01:23:13]Write i2c OK [01:23:13]MH_I2C_Read... [01:23:13]Read from MH i2c: 01 [01:23:13]MH_I2C_Read... [01:23:13]Read from MH i2c: 01 07 00 [01:23:13]MH_I2C_Read... [01:23:13]Read from MH i2c: 01 07 00 05 0F 00 02 00 00 00 FF 0F 2B [01:23:13]state=3 [01:23:13]Cover opened [01:23:13]OFD Sender: No OFD packet to send [01:23:18]Write to MH i2c: 01 00 00 06 0F 15 [01:23:18]Write i2c OK [01:23:18]MH_I2C_Read... [01:23:18]Read from MH i2c: 01 [01:23:18]MH_I2C_Read... [01:23:18]Read from MH i2c: 01 07 00 [01:23:18]MH_I2C_Read... [01:23:18]Read from MH i2c: 01 07 00 06 0F 00 02 00 00 00 FF 0F 2C [01:23:18]state=3 [01:23:18]Cover opened [01:23:18]OFD Sender: No OFD packet to send [01:23:23]Write to MH i2c: 01 00 00 07 0F 16 [01:23:23]Write i2c OK [01:23:23]MH_I2C_Read... [01:23:23]Read from MH i2c: 01 [01:23:23]MH_I2C_Read... [01:23:23]Read from MH i2c: 01 07 00 [01:23:23]MH_I2C_Read... [01:23:23]Read from MH i2c: 01 07 00 07 0F 00 02 00 00 00 FF 0F 2D [01:23:23]state=3 [01:23:23]Cover opened [01:23:23]OFD Sender: No OFD packet to send [01:23:28]Write to MH i2c: 01 00 00 08 0F 17 [01:23:28]Write i2c OK [01:23:28]MH_I2C_Read... [01:23:28]Read from MH i2c: 01 [01:23:28]MH_I2C_Read... [01:23:28]Read from MH i2c: 01 07 00 [01:23:28]MH_I2C_Read... [01:23:28]Read from MH i2c: 01 07 00 08 0F 00 02 00 00 00 FF 0F 2E [01:23:28]state=3 [01:23:28]Cover opened [01:23:28]OFD Sender: No OFD packet to send [01:23:33]Write to MH i2c: 01 00 00 09 0F 18 [01:23:33]Write i2c OK [01:23:33]MH_I2C_Read... [01:23:33]Read from MH i2c: 01 [01:23:33]MH_I2C_Read... [01:23:33]Read from MH i2c: 01 07 00 [01:23:33]MH_I2C_Read... [01:23:33]Read from MH i2c: 01 07 00 09 0F 00 02 00 00 00 FF 0F 2F [01:23:33]state=3 [01:23:33]Cover opened [01:23:33]OFD Sender: No OFD packet to send [01:23:38]Write to MH i2c: 01 00 00 0A 0F 19 [01:23:38]Write i2c OK [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: 01 [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: 01 07 00 [01:23:38]MH_I2C_Read... [01:23:38]Read from MH i2c: 01 07 00 0A 0F 00 02 00 00 00 FF 0F 30 [01:23:38]state=3 [01:23:38]Cover opened [01:23:38]OFD Sender: No OFD packet to send [01:23:43]Write to MH i2c: 01 00 00 0B 0F 1A [01:23:43]Write i2c OK [01:23:43]MH_I2C_Read... [01:23:43]Read from MH i2c: 01 [01:23:43]MH_I2C_Read... [01:23:43]Read from MH i2c: 01 07 00 [01:23:43]MH_I2C_Read... [01:23:43]Read from MH i2c: 01 07 00 0B 0F 00 02 00 00 00 FF 0F 31 [01:23:43]state=3 [01:23:43]Cover opened [01:23:43]OFD Sender: No OFD packet to send [01:23:48]Write to MH i2c: 01 00 00 0C 0F 1B [01:23:48]Write i2c OK [01:23:48]MH_I2C_Read... [01:23:48]Read from MH i2c: 01 [01:23:48]MH_I2C_Read... [01:23:48]Read from MH i2c: 01 07 00 [01:23:48]MH_I2C_Read... [01:23:48]Read from MH i2c: 01 07 00 0C 0F 00 02 00 00 00 FF 0F 32 [01:23:48]state=3 [01:23:48]Cover opened [01:23:48]OFD Sender: No OFD packet to send [01:23:53]Write to MH i2c: 01 00 00 0D 0F 1C [01:23:53]Write i2c OK [01:23:53]MH_I2C_Read... [01:23:53]Read from MH i2c: 01 [01:23:53]MH_I2C_Read... [01:23:53]Read from MH i2c: 01 07 00 [01:23:53]MH_I2C_Read... [01:23:53]Read from MH i2c: 01 07 00 0D 0F 00 02 00 00 00 FF 0F 33 [01:23:53]state=3 [01:23:53]Cover opened [01:23:53]OFD Sender: No OFD packet to send [01:23:58]Write to MH i2c: 01 00 00 0E 0F 1D [01:23:58]Write i2c OK [01:23:58]MH_I2C_Read... [01:23:58]Read from MH i2c: 01 [01:23:58]MH_I2C_Read... [01:23:58]Read from MH i2c: 01 07 00 [01:23:58]MH_I2C_Read... [01:23:58]Read from MH i2c: 01 07 00 0E 0F 00 02 00 00 00 FF 0F 34 [01:23:58]state=3 [01:23:58]Cover opened [01:23:58]OFD Sender: No OFD packet to send [01:24:03]Write to MH i2c: 01 00 00 0F 0F 1E [01:24:03]Write i2c OK [01:24:03]MH_I2C_Read... [01:24:03]Read from MH i2c: 01 [01:24:03]MH_I2C_Read... [01:24:03]Read from MH i2c: 01 07 00 [01:24:03]MH_I2C_Read... [01:24:03]Read from MH i2c: 01 07 00 0F 0F 00 02 00 00 00 FF 0F 35 [01:24:03]state=3 [01:24:03]Cover opened [01:24:03]OFD Sender: No OFD packet to send [01:24:08]Write to MH i2c: 01 00 00 10 0F 1F [01:24:08]Write i2c OK [01:24:08]MH_I2C_Read... [01:24:08]Read from MH i2c: 01 [01:24:08]MH_I2C_Read... [01:24:08]Read from MH i2c: 01 07 00 [01:24:08]MH_I2C_Read... [01:24:08]Read from MH i2c: 01 07 00 10 0F 00 02 00 00 00 FF 0F 36 [01:24:08]state=3 [01:24:08]Cover opened [01:24:08]OFD Sender: No OFD packet to send [01:24:13]Write to MH i2c: 01 00 00 11 0F 20 [01:24:13]Write i2c OK [01:24:13]MH_I2C_Read... [01:24:13]Read from MH i2c: 01 [01:24:13]MH_I2C_Read... [01:24:13]Read from MH i2c: 01 07 00 [01:24:13]MH_I2C_Read... [01:24:13]Read from MH i2c: 01 07 00 11 0F 00 02 00 00 00 FF 0F 37 [01:24:13]state=3 [01:24:13]Cover opened [01:24:13]OFD Sender: No OFD packet to send [01:24:18]Write to MH i2c: 01 00 00 12 0F 21 [01:24:18]Write i2c OK [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: 01 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: 01 07 00 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: 01 07 00 12 0F 00 02 00 00 00 FF 0F 38 [01:24:18]state=3 [01:24:18]Cover opened [01:24:18]OFD Sender: No OFD packet to send [01:24:23]Write to MH i2c: 01 00 00 13 0F 22 [01:24:23]Write i2c OK [01:24:23]MH_I2C_Read... [01:24:23]Read from MH i2c: 01 [01:24:23]MH_I2C_Read... [01:24:23]Read from MH i2c: 01 07 00 [01:24:23]MH_I2C_Read... [01:24:23]Read from MH i2c: 01 07 00 13 0F 00 02 00 00 00 FF 0F 39 [01:24:23]state=3 [01:24:23]Cover opened [01:24:23]OFD Sender: No OFD packet to send [01:24:28]Write to MH i2c: 01 00 00 14 0F 23 [01:24:28]Write i2c OK [01:24:28]MH_I2C_Read... [01:24:28]Read from MH i2c: 01 [01:24:28]MH_I2C_Read... [01:24:28]Read from MH i2c: 01 07 00 [01:24:28]MH_I2C_Read... [01:24:28]Read from MH i2c: 01 07 00 14 0F 00 02 00 00 00 FF 0F 3A [01:24:28]state=3 [01:24:28]Cover opened [01:24:28]OFD Sender: No OFD packet to send [01:24:33]Write to MH i2c: 01 00 00 15 0F 24 [01:24:33]Write i2c OK [01:24:33]MH_I2C_Read... [01:24:33]Read from MH i2c: 01 [01:24:33]MH_I2C_Read... [01:24:33]Read from MH i2c: 01 07 00 [01:24:33]MH_I2C_Read... [01:24:33]Read from MH i2c: 01 07 00 15 0F 00 02 00 00 00 FF 0F 3B [01:24:33]state=3 [01:24:33]Cover opened [01:24:33]OFD Sender: No OFD packet to send [01:24:38]Write to MH i2c: 01 00 00 16 0F 25 [01:24:38]Write i2c OK [01:24:38]MH_I2C_Read... [01:24:38]Read from MH i2c: 01 [01:24:38]MH_I2C_Read... [01:24:38]Read from MH i2c: 01 07 00 [01:24:38]MH_I2C_Read... [01:24:38]Read from MH i2c: 01 07 00 16 0F 00 02 00 00 00 FF 0F 3C [01:24:38]state=3 [01:24:38]Cover opened [01:24:38]OFD Sender: No OFD packet to send [01:24:43]Write to MH i2c: 01 00 00 17 0F 26 [01:24:43]Write i2c OK [01:24:43]MH_I2C_Read... [01:24:43]Read from MH i2c: 01 [01:24:43]MH_I2C_Read... [01:24:43]Read from MH i2c: 01 07 00 [01:24:43]MH_I2C_Read... [01:24:43]Read from MH i2c: 01 07 00 17 0F 00 02 00 00 00 FF 0F 3D [01:24:43]state=3 [01:24:43]Cover opened [01:24:43]OFD Sender: No OFD packet to send [01:24:48]Write to MH i2c: 01 00 00 18 0F 27 [01:24:48]Write i2c OK [01:24:48]MH_I2C_Read... [01:24:48]Read from MH i2c: 01 [01:24:48]MH_I2C_Read... [01:24:48]Read from MH i2c: 01 07 00 [01:24:48]MH_I2C_Read... [01:24:48]Read from MH i2c: 01 07 00 18 0F 00 02 00 00 00 FF 0F 3E [01:24:48]state=3 [01:24:48]Cover opened [01:24:48]OFD Sender: No OFD packet to send [01:24:53]Write to MH i2c: 01 00 00 19 0F 28 [01:24:53]Write i2c OK [01:24:53]MH_I2C_Read... [01:24:53]Read from MH i2c: 01 [01:24:53]MH_I2C_Read... [01:24:53]Read from MH i2c: 01 07 00 [01:24:53]MH_I2C_Read... [01:24:53]Read from MH i2c: 01 07 00 19 0F 00 02 00 00 00 FF 0F 3F [01:24:53]state=3 [01:24:53]Cover opened [01:24:53]OFD Sender: No OFD packet to send [01:24:58]Write to MH i2c: 01 00 00 1A 0F 29 [01:24:58]Write i2c OK [01:24:58]MH_I2C_Read... [01:24:58]Read from MH i2c: 01 [01:24:58]MH_I2C_Read... [01:24:58]Read from MH i2c: 01 07 00 [01:24:58]MH_I2C_Read... [01:24:58]Read from MH i2c: 01 07 00 1A 0F 00 02 00 00 00 FF 0F 40 [01:24:58]state=3 [01:24:58]Cover opened [01:24:58]OFD Sender: No OFD packet to send [01:25:03]Write to MH i2c: 01 00 00 1B 0F 2A [01:25:03]Write i2c OK [01:25:03]MH_I2C_Read... [01:25:03]Read from MH i2c: 01 [01:25:03]MH_I2C_Read... [01:25:03]Read from MH i2c: 01 07 00 [01:25:03]MH_I2C_Read... [01:25:03]Read from MH i2c: 01 07 00 1B 0F 00 02 00 00 00 FF 0F 41 [01:25:03]state=3 [01:25:03]Cover opened [01:25:03]OFD Sender: No OFD packet to send [01:25:08]Write to MH i2c: 01 00 00 1C 0F 2B [01:25:08]Write i2c OK [01:25:08]MH_I2C_Read... [01:25:08]Read from MH i2c: 01 [01:25:08]MH_I2C_Read... [01:25:08]Read from MH i2c: 01 07 00 [01:25:08]MH_I2C_Read... [01:25:08]Read from MH i2c: 01 07 00 1C 0F 00 02 00 00 00 FF 0F 42 [01:25:08]state=3 [01:25:08]Cover opened [01:25:08]OFD Sender: No OFD packet to send [01:25:13]Write to MH i2c: 01 00 00 1D 0F 2C [01:25:13]Write i2c OK [01:25:13]MH_I2C_Read... [01:25:13]Read from MH i2c: 01 [01:25:13]MH_I2C_Read... [01:25:13]Read from MH i2c: 01 07 00 [01:25:13]MH_I2C_Read... [01:25:13]Read from MH i2c: 01 07 00 1D 0F 00 02 00 00 00 FF 0F 43 [01:25:13]state=3 [01:25:13]Cover opened [01:25:13]OFD Sender: No OFD packet to send [01:25:18]Write to MH i2c: 01 00 00 1E 0F 2D [01:25:18]Write i2c OK [01:25:18]MH_I2C_Read... [01:25:18]Read from MH i2c: 01 [01:25:18]MH_I2C_Read... [01:25:18]Read from MH i2c: 01 07 00 [01:25:18]MH_I2C_Read... [01:25:18]Read from MH i2c: 01 07 00 1E 0F 00 02 00 00 00 FF 0F 44 [01:25:18]state=3 [01:25:18]Cover opened [01:25:18]OFD Sender: No OFD packet to send [01:25:23]Write to MH i2c: 01 00 00 1F 0F 2E [01:25:23]Write i2c OK [01:25:23]MH_I2C_Read... [01:25:23]Read from MH i2c: 01 [01:25:23]MH_I2C_Read... [01:25:23]Read from MH i2c: 01 07 00 [01:25:23]MH_I2C_Read... [01:25:23]Read from MH i2c: 01 07 00 1F 0F 00 02 00 00 00 FF 0F 45 [01:25:23]state=3 [01:25:23]Cover opened [01:25:23]OFD Sender: No OFD packet to send [01:25:28]Write to MH i2c: 01 00 00 20 0F 2F [01:25:28]Write i2c OK [01:25:28]MH_I2C_Read... [01:25:28]Read from MH i2c: 01 [01:25:28]MH_I2C_Read... [01:25:28]Read from MH i2c: 01 07 00 [01:25:28]MH_I2C_Read... [01:25:28]Read from MH i2c: 01 07 00 20 0F 00 02 00 00 00 FF 0F 46 [01:25:28]state=3 [01:25:28]Cover opened [01:25:28]OFD Sender: No OFD packet to send [01:25:33]Write to MH i2c: 01 00 00 21 0F 30 [01:25:33]Write i2c OK [01:25:33]MH_I2C_Read... [01:25:33]Read from MH i2c: 01 [01:25:33]MH_I2C_Read... [01:25:33]Read from MH i2c: 01 07 00 [01:25:33]MH_I2C_Read... [01:25:33]Read from MH i2c: 01 07 00 21 0F 00 02 00 00 00 FF 0F 47 [01:25:33]state=3 [01:25:33]Cover opened [01:25:33]OFD Sender: No OFD packet to send [01:25:38]Write to MH i2c: 01 00 00 22 0F 31 [01:25:38]Write i2c OK [01:25:38]MH_I2C_Read... [01:25:38]Read from MH i2c: 01 [01:25:38]MH_I2C_Read... [01:25:38]Read from MH i2c: 01 07 00 [01:25:38]MH_I2C_Read... [01:25:38]Read from MH i2c: 01 07 00 22 0F 00 02 00 00 00 FF 0F 48 [01:25:38]state=3 [01:25:38]Cover opened [01:25:38]OFD Sender: No OFD packet to send [01:25:43]Write to MH i2c: 01 00 00 23 0F 32 [01:25:43]Write i2c OK [01:25:43]MH_I2C_Read... [01:25:43]Read from MH i2c: 01 [01:25:43]MH_I2C_Read... [01:25:43]Read from MH i2c: 01 07 00 [01:25:43]MH_I2C_Read... [01:25:43]Read from MH i2c: 01 07 00 23 0F 00 02 00 00 00 FF 0F 49 [01:25:43]state=3 [01:25:43]Cover opened [01:25:43]OFD Sender: No OFD packet to send [01:25:48]Write to MH i2c: 01 00 00 24 0F 33 [01:25:48]Write i2c OK [01:25:48]MH_I2C_Read... [01:25:48]Read from MH i2c: 01 [01:25:48]MH_I2C_Read... [01:25:48]Read from MH i2c: 01 07 00 [01:25:48]MH_I2C_Read... [01:25:48]Read from MH i2c: 01 07 00 24 0F 00 02 00 00 00 FF 0F 4A [01:25:48]state=3 [01:25:48]Cover opened [01:25:48]OFD Sender: No OFD packet to send [01:25:53]Write to MH i2c: 01 00 00 25 0F 34 [01:25:53]Write i2c OK [01:25:53]MH_I2C_Read... [01:25:53]Read from MH i2c: 01 [01:25:53]MH_I2C_Read... [01:25:53]Read from MH i2c: 01 07 00 [01:25:53]MH_I2C_Read... [01:25:53]Read from MH i2c: 01 07 00 25 0F 00 02 00 00 00 FF 0F 4B [01:25:53]state=3 [01:25:53]Cover opened [01:25:53]OFD Sender: No OFD packet to send [01:25:58]Write to MH i2c: 01 00 00 26 0F 35 [01:25:58]Write i2c OK [01:25:58]MH_I2C_Read... [01:25:58]Read from MH i2c: 01 [01:25:58]MH_I2C_Read... [01:25:58]Read from MH i2c: 01 07 00 [01:25:58]MH_I2C_Read... [01:25:58]Read from MH i2c: 01 07 00 26 0F 00 02 00 00 00 FF 0F 4C [01:25:58]state=3 [01:25:58]Cover opened [01:25:58]OFD Sender: No OFD packet to send [01:26:03]Write to MH i2c: 01 00 00 27 0F 36 [01:26:03]Write i2c OK [01:26:03]MH_I2C_Read... [01:26:03]Read from MH i2c: 01 [01:26:03]MH_I2C_Read... [01:26:03]Read from MH i2c: 01 07 00 [01:26:03]MH_I2C_Read... [01:26:03]Read from MH i2c: 01 07 00 27 0F 00 02 00 00 00 FF 0F 4D [01:26:03]state=3 [01:26:03]Cover opened [01:26:03]OFD Sender: No OFD packet to send [01:26:08]Write to MH i2c: 01 00 00 28 0F 37 [01:26:08]Write i2c OK [01:26:08]MH_I2C_Read... [01:26:08]Read from MH i2c: 01 [01:26:08]MH_I2C_Read... [01:26:08]Read from MH i2c: 01 07 00 [01:26:08]MH_I2C_Read... [01:26:08]Read from MH i2c: 01 07 00 28 0F 00 02 00 00 00 FF 0F 4E [01:26:08]state=3 [01:26:08]Cover opened [01:26:08]OFD Sender: No OFD packet to send [01:26:13]Write to MH i2c: 01 00 00 29 0F 38 [01:26:13]Write i2c OK [01:26:13]MH_I2C_Read... [01:26:13]Read from MH i2c: 01 [01:26:13]MH_I2C_Read... [01:26:13]Read from MH i2c: 01 07 00 [01:26:13]MH_I2C_Read... [01:26:13]Read from MH i2c: 01 07 00 29 0F 00 02 00 00 00 FF 0F 4F [01:26:13]state=3 [01:26:13]Cover opened [01:26:13]OFD Sender: No OFD packet to send [01:26:18]Write to MH i2c: 01 00 00 2A 0F 39 [01:26:18]Write i2c OK [01:26:18]MH_I2C_Read... [01:26:18]Read from MH i2c: 01 [01:26:18]MH_I2C_Read... [01:26:18]Read from MH i2c: 01 07 00 [01:26:18]MH_I2C_Read... [01:26:18]Read from MH i2c: 01 07 00 2A 0F 00 02 00 00 00 FF 0F 50 [01:26:18]state=3 [01:26:18]Cover opened [01:26:18]OFD Sender: No OFD packet to send [01:26:23]Write to MH i2c: 01 00 00 2B 0F 3A [01:26:23]Write i2c OK [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: 01 [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: 01 07 00 [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: 01 07 00 2B 0F 00 02 00 00 00 FF 0F 51 [01:26:23]state=3 [01:26:23]Cover opened [01:26:23]OFD Sender: No OFD packet to send [01:26:28]Write to MH i2c: 01 00 00 2C 0F 3B [01:26:28]Write i2c OK [01:26:28]MH_I2C_Read... [01:26:28]Read from MH i2c: 01 [01:26:28]MH_I2C_Read... [01:26:28]Read from MH i2c: 01 07 00 [01:26:28]MH_I2C_Read... [01:26:28]Read from MH i2c: 01 07 00 2C 0F 00 02 00 00 00 FF 0F 52 [01:26:28]state=3 [01:26:28]Cover opened [01:26:28]OFD Sender: No OFD packet to send [01:26:33]Write to MH i2c: 01 00 00 2D 0F 3C [01:26:33]Write i2c OK [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: 01 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: 01 07 00 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: 01 07 00 2D 0F 00 02 00 00 00 FF 0F 53 [01:26:33]state=3 [01:26:33]Cover opened [01:26:33]OFD Sender: No OFD packet to send [01:26:38]Write to MH i2c: 01 00 00 2E 0F 3D [01:26:38]Write i2c OK [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: 01 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: 01 07 00 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: 01 07 00 2E 0F 00 02 00 00 00 FF 0F 54 [01:26:38]state=3 [01:26:38]Cover opened [01:26:38]OFD Sender: No OFD packet to send [01:26:43]Write to MH i2c: 01 00 00 2F 0F 3E [01:26:43]Write i2c OK [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: 01 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: 01 07 00 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: 01 07 00 2F 0F 00 02 00 00 00 FF 0F 55 [01:26:43]state=3 [01:26:43]Cover opened [01:26:43]OFD Sender: No OFD packet to send [01:26:48]Write to MH i2c: 01 00 00 30 0F 3F [01:26:48]Write i2c OK [01:26:48]MH_I2C_Read... [01:26:48]Read from MH i2c: 01 [01:26:48]MH_I2C_Read... [01:26:48]Read from MH i2c: 01 07 00 [01:26:48]MH_I2C_Read... [01:26:48]Read from MH i2c: 01 07 00 30 0F 00 02 00 00 00 FF 0F 56 [01:26:48]state=3 [01:26:48]Cover opened [01:26:48]OFD Sender: No OFD packet to send [01:26:53]Write to MH i2c: 01 00 00 31 0F 40 [01:26:53]Write i2c OK [01:26:53]MH_I2C_Read... [01:26:53]Read from MH i2c: 01 [01:26:53]MH_I2C_Read... [01:26:53]Read from MH i2c: 01 07 00 [01:26:53]MH_I2C_Read... [01:26:53]Read from MH i2c: 01 07 00 31 0F 00 02 00 00 00 FF 0F 57 [01:26:53]state=3 [01:26:53]Cover opened [01:26:53]OFD Sender: No OFD packet to send [01:26:58]Write to MH i2c: 01 00 00 32 0F 41 [01:26:58]Write i2c OK [01:26:58]MH_I2C_Read... [01:26:58]Read from MH i2c: 01 [01:26:58]MH_I2C_Read... [01:26:58]Read from MH i2c: 01 07 00 [01:26:58]MH_I2C_Read... [01:26:58]Read from MH i2c: 01 07 00 32 0F 00 02 00 00 00 FF 0F 58 [01:26:58]state=3 [01:26:58]Cover opened [01:26:58]OFD Sender: No OFD packet to send [01:27:03]Write to MH i2c: 01 00 00 33 0F 42 [01:27:03]Write i2c OK [01:27:03]MH_I2C_Read... [01:27:03]Read from MH i2c: 01 [01:27:03]MH_I2C_Read... [01:27:03]Read from MH i2c: 01 07 00 [01:27:03]MH_I2C_Read... [01:27:03]Read from MH i2c: 01 07 00 33 0F 00 02 00 00 00 FF 0F 59 [01:27:03]state=3 [01:27:03]Cover opened [01:27:03]OFD Sender: No OFD packet to send [01:27:08]Write to MH i2c: 01 00 00 34 0F 43 [01:27:08]Write i2c OK [01:27:08]MH_I2C_Read... [01:27:08]Read from MH i2c: 01 [01:27:08]MH_I2C_Read... [01:27:08]Read from MH i2c: 01 07 00 [01:27:08]MH_I2C_Read... [01:27:08]Read from MH i2c: 01 07 00 34 0F 00 02 00 00 00 FF 0F 5A [01:27:08]state=3 [01:27:08]Cover opened [01:27:08]OFD Sender: No OFD packet to send [01:27:13]Write to MH i2c: 01 00 00 35 0F 44 [01:27:13]Write i2c OK [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: 01 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: 01 07 00 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: 01 07 00 35 0F 00 02 00 00 00 FF 0F 5B [01:27:13]state=3 [01:27:13]Cover opened [01:27:13]OFD Sender: No OFD packet to send [01:27:18]Write to MH i2c: 01 00 00 36 0F 45 [01:27:18]Write i2c OK [01:27:18]MH_I2C_Read... [01:27:18]Read from MH i2c: 01 [01:27:18]MH_I2C_Read... [01:27:18]Read from MH i2c: 01 07 00 [01:27:18]MH_I2C_Read... [01:27:18]Read from MH i2c: 01 07 00 36 0F 00 02 00 00 00 FF 0F 5C [01:27:18]state=3 [01:27:18]Cover opened [01:27:18]OFD Sender: No OFD packet to send [01:27:23]Write to MH i2c: 01 00 00 37 0F 46 [01:27:23]Write i2c OK [01:27:23]MH_I2C_Read... [01:27:23]Read from MH i2c: 01 [01:27:23]MH_I2C_Read... [01:27:23]Read from MH i2c: 01 07 00 [01:27:23]MH_I2C_Read... [01:27:23]Read from MH i2c: 01 07 00 37 0F 00 02 00 00 00 FF 0F 5D [01:27:23]state=3 [01:27:23]Cover opened [01:27:23]OFD Sender: No OFD packet to send [01:27:28]Write to MH i2c: 01 00 00 38 0F 47 [01:27:28]Write i2c OK [01:27:28]MH_I2C_Read... [01:27:28]Read from MH i2c: 01 [01:27:28]MH_I2C_Read... [01:27:28]Read from MH i2c: 01 07 00 [01:27:28]MH_I2C_Read... [01:27:28]Read from MH i2c: 01 07 00 38 0F 00 02 00 00 00 FF 0F 5E [01:27:28]state=3 [01:27:28]Cover opened [01:27:28]OFD Sender: No OFD packet to send [01:27:33]Write to MH i2c: 01 00 00 39 0F 48 [01:27:33]Write i2c OK [01:27:33]MH_I2C_Read... [01:27:33]Read from MH i2c: 01 [01:27:33]MH_I2C_Read... [01:27:33]Read from MH i2c: 01 07 00 [01:27:33]MH_I2C_Read... [01:27:33]Read from MH i2c: 01 07 00 39 0F 00 02 00 00 00 FF 0F 5F [01:27:33]state=3 [01:27:33]Cover opened [01:27:33]OFD Sender: No OFD packet to send [01:27:38]Write to MH i2c: 01 00 00 3A 0F 49 [01:27:38]Write i2c OK [01:27:38]MH_I2C_Read... [01:27:38]Read from MH i2c: 01 [01:27:38]MH_I2C_Read... [01:27:38]Read from MH i2c: 01 07 00 [01:27:38]MH_I2C_Read... [01:27:38]Read from MH i2c: 01 07 00 3A 0F 00 02 00 00 00 FF 0F 60 [01:27:38]state=3 [01:27:38]Cover opened [01:27:38]OFD Sender: No OFD packet to send [01:27:43]Write to MH i2c: 01 00 00 3B 0F 4A [01:27:43]Write i2c OK [01:27:43]MH_I2C_Read... [01:27:43]Read from MH i2c: 01 [01:27:43]MH_I2C_Read... [01:27:43]Read from MH i2c: 01 07 00 [01:27:43]MH_I2C_Read... [01:27:43]Read from MH i2c: 01 07 00 3B 0F 00 02 00 00 00 FF 0F 61 [01:27:43]state=3 [01:27:43]Cover opened [01:27:43]OFD Sender: No OFD packet to send [01:27:48]Write to MH i2c: 01 00 00 3C 0F 4B [01:27:48]Write i2c OK [01:27:48]MH_I2C_Read... [01:27:48]Read from MH i2c: 01 [01:27:48]MH_I2C_Read... [01:27:48]Read from MH i2c: 01 07 00 [01:27:48]MH_I2C_Read... [01:27:48]Read from MH i2c: 01 07 00 3C 0F 00 02 00 00 00 FF 0F 62 [01:27:48]state=3 [01:27:48]Cover opened [01:27:48]OFD Sender: No OFD packet to send [01:27:53]Write to MH i2c: 01 00 00 3D 0F 4C [01:27:53]Write i2c OK [01:27:53]MH_I2C_Read... [01:27:53]Read from MH i2c: 01 [01:27:53]MH_I2C_Read... [01:27:53]Read from MH i2c: 01 07 00 [01:27:53]MH_I2C_Read... [01:27:53]Read from MH i2c: 01 07 00 3D 0F 00 02 00 00 00 FF 0F 63 [01:27:53]state=3 [01:27:53]Cover opened [01:27:53]OFD Sender: No OFD packet to send [01:27:58]Write to MH i2c: 01 00 00 3E 0F 4D [01:27:58]Write i2c OK [01:27:58]MH_I2C_Read... [01:27:58]Read from MH i2c: 01 [01:27:58]MH_I2C_Read... [01:27:58]Read from MH i2c: 01 07 00 [01:27:58]MH_I2C_Read... [01:27:58]Read from MH i2c: 01 07 00 3E 0F 00 02 00 00 00 FF 0F 64 [01:27:58]state=3 [01:27:58]Cover opened [01:27:58]OFD Sender: No OFD packet to send [01:28:03]Write to MH i2c: 01 00 00 3F 0F 4E [01:28:03]Write i2c OK [01:28:03]MH_I2C_Read... [01:28:03]Read from MH i2c: 01 [01:28:03]MH_I2C_Read... [01:28:03]Read from MH i2c: 01 07 00 [01:28:03]MH_I2C_Read... [01:28:03]Read from MH i2c: 01 07 00 3F 0F 00 02 00 00 00 FF 0F 65 [01:28:03]state=3 [01:28:03]Cover opened [01:28:03]OFD Sender: No OFD packet to send [01:28:08]Write to MH i2c: 01 00 00 40 0F 4F [01:28:08]Write i2c OK [01:28:08]MH_I2C_Read... [01:28:08]Read from MH i2c: 01 [01:28:08]MH_I2C_Read... [01:28:08]Read from MH i2c: 01 07 00 [01:28:08]MH_I2C_Read... [01:28:08]Read from MH i2c: 01 07 00 40 0F 00 02 00 00 00 FF 0F 66 [01:28:08]state=3 [01:28:08]Cover opened [01:28:08]OFD Sender: No OFD packet to send [01:28:13]Write to MH i2c: 01 00 00 41 0F 50 [01:28:13]Write i2c OK [01:28:13]MH_I2C_Read... [01:28:13]Read from MH i2c: 01 [01:28:13]MH_I2C_Read... [01:28:13]Read from MH i2c: 01 07 00 [01:28:13]MH_I2C_Read... [01:28:13]Read from MH i2c: 01 07 00 41 0F 00 02 00 00 00 FF 0F 67 [01:28:13]state=3 [01:28:13]Cover opened [01:28:13]OFD Sender: No OFD packet to send [01:28:18]Write to MH i2c: 01 00 00 42 0F 51 [01:28:18]Write i2c OK [01:28:18]MH_I2C_Read... [01:28:18]Read from MH i2c: 01 [01:28:18]MH_I2C_Read... [01:28:18]Read from MH i2c: 01 07 00 [01:28:18]MH_I2C_Read... [01:28:18]Read from MH i2c: 01 07 00 42 0F 00 02 00 00 00 FF 0F 68 [01:28:18]state=3 [01:28:18]Cover opened [01:28:18]OFD Sender: No OFD packet to send [01:28:23]Write to MH i2c: 01 00 00 43 0F 52 [01:28:23]Write i2c OK [01:28:23]MH_I2C_Read... [01:28:23]Read from MH i2c: 01 [01:28:23]MH_I2C_Read... [01:28:23]Read from MH i2c: 01 07 00 [01:28:23]MH_I2C_Read... [01:28:23]Read from MH i2c: 01 07 00 43 0F 00 02 00 00 00 FF 0F 69 [01:28:23]state=3 [01:28:23]Cover opened [01:28:23]OFD Sender: No OFD packet to send [01:28:28]Write to MH i2c: 01 00 00 44 0F 53 [01:28:28]Write i2c OK [01:28:28]MH_I2C_Read... [01:28:28]Read from MH i2c: 01 [01:28:28]MH_I2C_Read... [01:28:28]Read from MH i2c: 01 07 00 [01:28:28]MH_I2C_Read... [01:28:28]Read from MH i2c: 01 07 00 44 0F 00 02 00 00 00 FF 0F 6A [01:28:28]state=3 [01:28:28]Cover opened [01:28:28]OFD Sender: No OFD packet to send [01:28:33]Write to MH i2c: 01 00 00 45 0F 54 [01:28:33]Write i2c OK [01:28:33]MH_I2C_Read... [01:28:33]Read from MH i2c: 01 [01:28:33]MH_I2C_Read... [01:28:33]Read from MH i2c: 01 07 00 [01:28:33]MH_I2C_Read... [01:28:33]Read from MH i2c: 01 07 00 45 0F 00 02 00 00 00 FF 0F 6B [01:28:33]state=3 [01:28:33]Cover opened [01:28:33]OFD Sender: No OFD packet to send [01:28:38]Write to MH i2c: 01 00 00 46 0F 55 [01:28:38]Write i2c OK [01:28:38]MH_I2C_Read... [01:28:38]Read from MH i2c: 01 [01:28:38]MH_I2C_Read... [01:28:38]Read from MH i2c: 01 07 00 [01:28:38]MH_I2C_Read... [01:28:38]Read from MH i2c: 01 07 00 46 0F 00 02 00 00 00 FF 0F 6C [01:28:38]state=3 [01:28:38]Cover opened [01:28:38]OFD Sender: No OFD packet to send [01:28:43]Write to MH i2c: 01 00 00 47 0F 56 [01:28:43]Write i2c OK [01:28:43]MH_I2C_Read... [01:28:43]Read from MH i2c: 01 [01:28:43]MH_I2C_Read... [01:28:43]Read from MH i2c: 01 07 00 [01:28:43]MH_I2C_Read... [01:28:43]Read from MH i2c: 01 07 00 47 0F 00 02 00 00 00 FF 0F 6D [01:28:43]state=3 [01:28:43]Cover opened [01:28:43]OFD Sender: No OFD packet to send [01:28:48]Write to MH i2c: 01 00 00 48 0F 57 [01:28:48]Write i2c OK [01:28:48]MH_I2C_Read... [01:28:48]Read from MH i2c: 01 [01:28:48]MH_I2C_Read... [01:28:48]Read from MH i2c: 01 07 00 [01:28:48]MH_I2C_Read... [01:28:48]Read from MH i2c: 01 07 00 48 0F 00 02 00 00 00 FF 0F 6E [01:28:48]state=3 [01:28:48]Cover opened [01:28:48]OFD Sender: No OFD packet to send [01:28:53]Write to MH i2c: 01 00 00 49 0F 58 [01:28:53]Write i2c OK [01:28:53]MH_I2C_Read... [01:28:53]Read from MH i2c: 01 [01:28:53]MH_I2C_Read... [01:28:53]Read from MH i2c: 01 07 00 [01:28:53]MH_I2C_Read... [01:28:53]Read from MH i2c: 01 07 00 49 0F 00 02 00 00 00 FF 0F 6F [01:28:53]state=3 [01:28:53]Cover opened [01:28:53]OFD Sender: No OFD packet to send [01:28:58]Write to MH i2c: 01 00 00 4A 0F 59 [01:28:58]Write i2c OK [01:28:58]MH_I2C_Read... [01:28:58]Read from MH i2c: 01 [01:28:58]MH_I2C_Read... [01:28:58]Read from MH i2c: 01 07 00 [01:28:58]MH_I2C_Read... [01:28:58]Read from MH i2c: 01 07 00 4A 0F 00 02 00 00 00 FF 0F 70 [01:28:58]state=3 [01:28:58]Cover opened [01:28:58]OFD Sender: No OFD packet to send [01:29:03]Write to MH i2c: 01 00 00 4B 0F 5A [01:29:03]Write i2c OK [01:29:03]MH_I2C_Read... [01:29:03]Read from MH i2c: 01 [01:29:03]MH_I2C_Read... [01:29:03]Read from MH i2c: 01 07 00 [01:29:03]MH_I2C_Read... [01:29:03]Read from MH i2c: 01 07 00 4B 0F 00 02 00 00 00 FF 0F 71 [01:29:03]state=3 [01:29:03]Cover opened [01:29:03]OFD Sender: No OFD packet to send [01:29:08]Write to MH i2c: 01 00 00 4C 0F 5B [01:29:08]Write i2c OK [01:29:08]MH_I2C_Read... [01:29:08]Read from MH i2c: 01 [01:29:08]MH_I2C_Read... [01:29:08]Read from MH i2c: 01 07 00 [01:29:08]MH_I2C_Read... [01:29:08]Read from MH i2c: 01 07 00 4C 0F 00 02 00 00 00 FF 0F 72 [01:29:08]state=3 [01:29:08]Cover opened [01:29:08]OFD Sender: No OFD packet to send [01:29:13]Write to MH i2c: 01 00 00 4D 0F 5C [01:29:13]Write i2c OK [01:29:13]MH_I2C_Read... [01:29:13]Read from MH i2c: 01 [01:29:13]MH_I2C_Read... [01:29:13]Read from MH i2c: 01 07 00 [01:29:13]MH_I2C_Read... [01:29:13]Read from MH i2c: 01 07 00 4D 0F 00 02 00 00 00 FF 0F 73 [01:29:13]state=3 [01:29:13]Cover opened [01:29:13]OFD Sender: No OFD packet to send [01:29:18]Write to MH i2c: 01 00 00 4E 0F 5D [01:29:18]Write i2c OK [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: 01 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: 01 07 00 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: 01 07 00 4E 0F 00 02 00 00 00 FF 0F 74 [01:29:18]state=3 [01:29:18]Cover opened [01:29:18]OFD Sender: No OFD packet to send [01:29:23]Write to MH i2c: 01 00 00 4F 0F 5E [01:29:23]Write i2c OK [01:29:23]MH_I2C_Read... [01:29:23]Read from MH i2c: 01 [01:29:23]MH_I2C_Read... [01:29:23]Read from MH i2c: 01 07 00 [01:29:23]MH_I2C_Read... [01:29:23]Read from MH i2c: 01 07 00 4F 0F 00 02 00 00 00 FF 0F 75 [01:29:23]state=3 [01:29:23]Cover opened [01:29:23]OFD Sender: No OFD packet to send [01:29:28]Write to MH i2c: 01 00 00 50 0F 5F [01:29:28]Write i2c OK [01:29:28]MH_I2C_Read... [01:29:28]Read from MH i2c: 01 [01:29:28]MH_I2C_Read... [01:29:28]Read from MH i2c: 01 07 00 [01:29:28]MH_I2C_Read... [01:29:28]Read from MH i2c: 01 07 00 50 0F 00 02 00 00 00 FF 0F 76 [01:29:28]state=3 [01:29:28]Cover opened [01:29:28]OFD Sender: No OFD packet to send [01:29:33]Write to MH i2c: 01 00 00 51 0F 60 [01:29:33]Write i2c OK [01:29:33]MH_I2C_Read... [01:29:33]Read from MH i2c: 01 [01:29:33]MH_I2C_Read... [01:29:33]Read from MH i2c: 01 07 00 [01:29:33]MH_I2C_Read... [01:29:33]Read from MH i2c: 01 07 00 51 0F 00 02 00 00 00 FF 0F 77 [01:29:33]state=3 [01:29:33]Cover opened [01:29:33]OFD Sender: No OFD packet to send [01:29:38]Write to MH i2c: 01 00 00 52 0F 61 [01:29:38]Write i2c OK [01:29:38]MH_I2C_Read... [01:29:38]Read from MH i2c: 01 [01:29:38]MH_I2C_Read... [01:29:38]Read from MH i2c: 01 07 00 [01:29:38]MH_I2C_Read... [01:29:38]Read from MH i2c: 01 07 00 52 0F 00 02 00 00 00 FF 0F 78 [01:29:38]state=3 [01:29:38]Cover opened [01:29:38]OFD Sender: No OFD packet to send [01:29:43]Write to MH i2c: 01 00 00 53 0F 62 [01:29:43]Write i2c OK [01:29:43]MH_I2C_Read... [01:29:43]Read from MH i2c: 01 [01:29:43]MH_I2C_Read... [01:29:43]Read from MH i2c: 01 07 00 [01:29:43]MH_I2C_Read... [01:29:43]Read from MH i2c: 01 07 00 53 0F 00 02 00 00 00 FF 0F 79 [01:29:43]state=3 [01:29:43]Cover opened [01:29:43]OFD Sender: No OFD packet to send [01:29:48]Write to MH i2c: 01 00 00 54 0F 63 [01:29:48]Write i2c OK [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: 01 [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: 01 07 00 [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: 01 07 00 54 0F 00 02 00 00 00 FF 0F 7A [01:29:48]state=3 [01:29:48]Cover opened [01:29:48]OFD Sender: No OFD packet to send [01:29:53]Write to MH i2c: 01 00 00 55 0F 64 [01:29:53]Write i2c OK [01:29:53]MH_I2C_Read... [01:29:53]Read from MH i2c: 01 [01:29:53]MH_I2C_Read... [01:29:53]Read from MH i2c: 01 07 00 [01:29:53]MH_I2C_Read... [01:29:53]Read from MH i2c: 01 07 00 55 0F 00 02 00 00 00 FF 0F 7B [01:29:53]state=3 [01:29:53]Cover opened [01:29:53]OFD Sender: No OFD packet to send [01:29:58]Write to MH i2c: 01 00 00 56 0F 65 [01:29:58]Write i2c OK [01:29:58]MH_I2C_Read... [01:29:58]Read from MH i2c: 01 [01:29:58]MH_I2C_Read... [01:29:58]Read from MH i2c: 01 07 00 [01:29:58]MH_I2C_Read... [01:29:58]Read from MH i2c: 01 07 00 56 0F 00 02 00 00 00 FF 0F 7C [01:29:58]state=3 [01:29:58]Cover opened [01:29:58]OFD Sender: No OFD packet to send [01:30:03]Write to MH i2c: 01 00 00 57 0F 66 [01:30:03]Write i2c OK [01:30:03]MH_I2C_Read... [01:30:03]Read from MH i2c: 01 [01:30:03]MH_I2C_Read... [01:30:03]Read from MH i2c: 01 07 00 [01:30:03]MH_I2C_Read... [01:30:03]Read from MH i2c: 01 07 00 57 0F 00 02 00 00 00 FF 0F 7D [01:30:03]state=3 [01:30:03]Cover opened [01:30:03]OFD Sender: No OFD packet to send [01:30:08]Write to MH i2c: 01 00 00 58 0F 67 [01:30:08]Write i2c OK [01:30:08]MH_I2C_Read... [01:30:08]Read from MH i2c: 01 [01:30:08]MH_I2C_Read... [01:30:08]Read from MH i2c: 01 07 00 [01:30:08]MH_I2C_Read... [01:30:08]Read from MH i2c: 01 07 00 58 0F 00 02 00 00 00 FF 0F 7E [01:30:08]state=3 [01:30:08]Cover opened [01:30:08]OFD Sender: No OFD packet to send [01:30:13]Write to MH i2c: 01 00 00 59 0F 68 [01:30:13]Write i2c OK [01:30:13]MH_I2C_Read... [01:30:13]Read from MH i2c: 01 [01:30:13]MH_I2C_Read... [01:30:13]Read from MH i2c: 01 07 00 [01:30:13]MH_I2C_Read... [01:30:13]Read from MH i2c: 01 07 00 59 0F 00 02 00 00 00 FF 0F 7F [01:30:13]state=3 [01:30:13]Cover opened [01:30:13]OFD Sender: No OFD packet to send [01:30:18]Write to MH i2c: 01 00 00 5A 0F 69 [01:30:18]Write i2c OK [01:30:18]MH_I2C_Read... [01:30:18]Read from MH i2c: 01 [01:30:18]MH_I2C_Read... [01:30:18]Read from MH i2c: 01 07 00 [01:30:18]MH_I2C_Read... [01:30:18]Read from MH i2c: 01 07 00 5A 0F 00 02 00 00 00 FF 0F 80 [01:30:18]state=3 [01:30:18]Cover opened [01:30:18]OFD Sender: No OFD packet to send [01:30:23]Write to MH i2c: 01 00 00 5B 0F 6A [01:30:23]Write i2c OK [01:30:23]MH_I2C_Read... [01:30:23]Read from MH i2c: 01 [01:30:23]MH_I2C_Read... [01:30:23]Read from MH i2c: 01 07 00 [01:30:23]MH_I2C_Read... [01:30:23]Read from MH i2c: 01 07 00 5B 0F 00 02 00 00 00 FF 0F 81 [01:30:23]state=3 [01:30:23]Cover opened [01:30:23]OFD Sender: No OFD packet to send [01:30:28]Write to MH i2c: 01 00 00 5C 0F 6B [01:30:28]Write i2c OK [01:30:28]MH_I2C_Read... [01:30:28]Read from MH i2c: 01 [01:30:28]MH_I2C_Read... [01:30:28]Read from MH i2c: 01 07 00 [01:30:28]MH_I2C_Read... [01:30:28]Read from MH i2c: 01 07 00 5C 0F 00 02 00 00 00 FF 0F 82 [01:30:28]state=3 [01:30:28]Cover opened [01:30:28]OFD Sender: No OFD packet to send [01:30:33]Write to MH i2c: 01 00 00 5D 0F 6C [01:30:33]Write i2c OK [01:30:33]MH_I2C_Read... [01:30:33]Read from MH i2c: 01 [01:30:33]MH_I2C_Read... [01:30:33]Read from MH i2c: 01 07 00 [01:30:33]MH_I2C_Read... [01:30:33]Read from MH i2c: 01 07 00 5D 0F 00 02 00 00 00 FF 0F 83 [01:30:33]state=3 [01:30:33]Cover opened [01:30:33]OFD Sender: No OFD packet to send [01:30:38]Write to MH i2c: 01 00 00 5E 0F 6D [01:30:38]Write i2c OK [01:30:38]MH_I2C_Read... [01:30:38]Read from MH i2c: 01 [01:30:38]MH_I2C_Read... [01:30:38]Read from MH i2c: 01 07 00 [01:30:38]MH_I2C_Read... [01:30:38]Read from MH i2c: 01 07 00 5E 0F 00 02 00 00 00 FF 0F 84 [01:30:38]state=3 [01:30:38]Cover opened [01:30:38]OFD Sender: No OFD packet to send [01:30:43]Write to MH i2c: 01 00 00 5F 0F 6E [01:30:43]Write i2c OK [01:30:43]MH_I2C_Read... [01:30:43]Read from MH i2c: 01 [01:30:43]MH_I2C_Read... [01:30:43]Read from MH i2c: 01 07 00 [01:30:43]MH_I2C_Read... [01:30:43]Read from MH i2c: 01 07 00 5F 0F 00 02 00 00 00 FF 0F 85 [01:30:43]state=3 [01:30:43]Cover opened [01:30:43]OFD Sender: No OFD packet to send [01:30:48]Write to MH i2c: 01 00 00 60 0F 6F [01:30:48]Write i2c OK [01:30:48]MH_I2C_Read... [01:30:48]Read from MH i2c: 01 [01:30:48]MH_I2C_Read... [01:30:48]Read from MH i2c: 01 07 00 [01:30:48]MH_I2C_Read... [01:30:48]Read from MH i2c: 01 07 00 60 0F 00 02 00 00 00 FF 0F 86 [01:30:48]state=3 [01:30:48]Cover opened [01:30:48]OFD Sender: No OFD packet to send [01:30:53]Write to MH i2c: 01 00 00 61 0F 70 [01:30:53]Write i2c OK [01:30:53]MH_I2C_Read... [01:30:53]Read from MH i2c: 01 [01:30:53]MH_I2C_Read... [01:30:53]Read from MH i2c: 01 07 00 [01:30:53]MH_I2C_Read... [01:30:53]Read from MH i2c: 01 07 00 61 0F 00 02 00 00 00 FF 0F 87 [01:30:53]state=3 [01:30:53]Cover opened [01:30:53]OFD Sender: No OFD packet to send [01:30:58]Write to MH i2c: 01 00 00 62 0F 71 [01:30:58]Write i2c OK [01:30:58]MH_I2C_Read... [01:30:58]Read from MH i2c: 01 [01:30:58]MH_I2C_Read... [01:30:58]Read from MH i2c: 01 07 00 [01:30:58]MH_I2C_Read... [01:30:58]Read from MH i2c: 01 07 00 62 0F 00 02 00 00 00 FF 0F 88 [01:30:58]state=3 [01:30:58]Cover opened [01:30:58]OFD Sender: No OFD packet to send [01:31:03]Write to MH i2c: 01 00 00 63 0F 72 [01:31:03]Write i2c OK [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: 01 [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: 01 07 00 [01:31:03]MH_I2C_Read... [01:31:03]Read from MH i2c: 01 07 00 63 0F 00 02 00 00 00 FF 0F 89 [01:31:03]state=3 [01:31:03]Cover opened [01:31:03]OFD Sender: No OFD packet to send [01:31:08]Write to MH i2c: 01 00 00 64 0F 73 [01:31:08]Write i2c OK [01:31:08]MH_I2C_Read... [01:31:08]Read from MH i2c: 01 [01:31:08]MH_I2C_Read... [01:31:08]Read from MH i2c: 01 07 00 [01:31:08]MH_I2C_Read... [01:31:08]Read from MH i2c: 01 07 00 64 0F 00 02 00 00 00 FF 0F 8A [01:31:08]state=3 [01:31:08]Cover opened [01:31:08]OFD Sender: No OFD packet to send [01:31:13]Write to MH i2c: 01 00 00 65 0F 74 [01:31:13]Write i2c OK [01:31:13]MH_I2C_Read... [01:31:13]Read from MH i2c: 01 [01:31:13]MH_I2C_Read... [01:31:13]Read from MH i2c: 01 07 00 [01:31:13]MH_I2C_Read... [01:31:13]Read from MH i2c: 01 07 00 65 0F 00 02 00 00 00 FF 0F 8B [01:31:13]state=3 [01:31:13]Cover opened [01:31:13]OFD Sender: No OFD packet to send [01:31:18]Write to MH i2c: 01 00 00 66 0F 75 [01:31:18]Write i2c OK [01:31:18]MH_I2C_Read... [01:31:18]Read from MH i2c: 01 [01:31:18]MH_I2C_Read... [01:31:18]Read from MH i2c: 01 07 00 [01:31:18]MH_I2C_Read... [01:31:18]Read from MH i2c: 01 07 00 66 0F 00 02 00 00 00 FF 0F 8C [01:31:18]state=3 [01:31:18]Cover opened [01:31:18]OFD Sender: No OFD packet to send [01:31:23]Write to MH i2c: 01 00 00 67 0F 76 [01:31:23]Write i2c OK [01:31:23]MH_I2C_Read... [01:31:23]Read from MH i2c: 01 [01:31:23]MH_I2C_Read... [01:31:23]Read from MH i2c: 01 07 00 [01:31:23]MH_I2C_Read... [01:31:23]Read from MH i2c: 01 07 00 67 0F 00 02 00 00 00 FF 0F 8D [01:31:23]state=3 [01:31:23]Cover opened [01:31:23]OFD Sender: No OFD packet to send [01:31:28]Write to MH i2c: 01 00 00 68 0F 77 [01:31:28]Write i2c OK [01:31:28]MH_I2C_Read... [01:31:28]Read from MH i2c: 01 [01:31:28]MH_I2C_Read... [01:31:28]Read from MH i2c: 01 07 00 [01:31:28]MH_I2C_Read... [01:31:28]Read from MH i2c: 01 07 00 68 0F 00 02 00 00 00 FF 0F 8E [01:31:28]state=3 [01:31:28]Cover opened [01:31:28]OFD Sender: No OFD packet to send [01:31:33]Write to MH i2c: 01 00 00 69 0F 78 [01:31:33]Write i2c OK [01:31:33]MH_I2C_Read... [01:31:33]Read from MH i2c: 01 [01:31:33]MH_I2C_Read... [01:31:33]Read from MH i2c: 01 07 00 [01:31:33]MH_I2C_Read... [01:31:33]Read from MH i2c: 01 07 00 69 0F 00 02 00 00 00 FF 0F 8F [01:31:33]state=3 [01:31:33]Cover opened [01:31:33]OFD Sender: No OFD packet to send [01:31:38]Write to MH i2c: 01 00 00 6A 0F 79 [01:31:38]Write i2c OK [01:31:38]MH_I2C_Read... [01:31:38]Read from MH i2c: 01 [01:31:38]MH_I2C_Read... [01:31:38]Read from MH i2c: 01 07 00 [01:31:38]MH_I2C_Read... [01:31:38]Read from MH i2c: 01 07 00 6A 0F 00 02 00 00 00 FF 0F 90 [01:31:38]state=3 [01:31:38]Cover opened [01:31:38]OFD Sender: No OFD packet to send [01:31:43]Write to MH i2c: 01 00 00 6B 0F 7A [01:31:43]Write i2c OK [01:31:43]MH_I2C_Read... [01:31:43]Read from MH i2c: 01 [01:31:43]MH_I2C_Read... [01:31:43]Read from MH i2c: 01 07 00 [01:31:43]MH_I2C_Read... [01:31:43]Read from MH i2c: 01 07 00 6B 0F 00 02 00 00 00 FF 0F 91 [01:31:43]state=3 [01:31:43]Cover opened [01:31:43]OFD Sender: No OFD packet to send [01:31:48]Write to MH i2c: 01 00 00 6C 0F 7B [01:31:48]Write i2c OK [01:31:48]MH_I2C_Read... [01:31:48]Read from MH i2c: 01 [01:31:48]MH_I2C_Read... [01:31:48]Read from MH i2c: 01 07 00 [01:31:48]MH_I2C_Read... [01:31:48]Read from MH i2c: 01 07 00 6C 0F 00 02 00 00 00 FF 0F 92 [01:31:48]state=3 [01:31:48]Cover opened [01:31:48]OFD Sender: No OFD packet to send [01:31:53]Write to MH i2c: 01 00 00 6D 0F 7C [01:31:53]Write i2c OK [01:31:53]MH_I2C_Read... [01:31:53]Read from MH i2c: 01 [01:31:53]MH_I2C_Read... [01:31:53]Read from MH i2c: 01 07 00 [01:31:53]MH_I2C_Read... [01:31:53]Read from MH i2c: 01 07 00 6D 0F 00 02 00 00 00 FF 0F 93 [01:31:53]state=3 [01:31:53]Cover opened [01:31:53]OFD Sender: No OFD packet to send [01:31:58]Write to MH i2c: 01 00 00 6E 0F 7D [01:31:58]Write i2c OK [01:31:58]MH_I2C_Read... [01:31:58]Read from MH i2c: 01 [01:31:58]MH_I2C_Read... [01:31:58]Read from MH i2c: 01 07 00 [01:31:58]MH_I2C_Read... [01:31:58]Read from MH i2c: 01 07 00 6E 0F 00 02 00 00 00 FF 0F 94 [01:31:58]state=3 [01:31:58]Cover opened [01:31:58]OFD Sender: No OFD packet to send [01:32:03]Write to MH i2c: 01 00 00 6F 0F 7E [01:32:03]Write i2c OK [01:32:03]MH_I2C_Read... [01:32:03]Read from MH i2c: 01 [01:32:03]MH_I2C_Read... [01:32:03]Read from MH i2c: 01 07 00 [01:32:03]MH_I2C_Read... [01:32:03]Read from MH i2c: 01 07 00 6F 0F 00 02 00 00 00 FF 0F 95 [01:32:03]state=3 [01:32:03]Cover opened [01:32:03]OFD Sender: No OFD packet to send [01:32:08]Write to MH i2c: 01 00 00 70 0F 7F [01:32:08]Write i2c OK [01:32:08]MH_I2C_Read... [01:32:08]Read from MH i2c: 01 [01:32:08]MH_I2C_Read... [01:32:08]Read from MH i2c: 01 07 00 [01:32:08]MH_I2C_Read... [01:32:08]Read from MH i2c: 01 07 00 70 0F 00 02 00 00 00 FF 0F 96 [01:32:08]state=3 [01:32:08]Cover opened [01:32:08]OFD Sender: No OFD packet to send [01:32:13]Write to MH i2c: 01 00 00 71 0F 80 [01:32:13]Write i2c OK [01:32:13]MH_I2C_Read... [01:32:13]Read from MH i2c: 01 [01:32:13]MH_I2C_Read... [01:32:13]Read from MH i2c: 01 07 00 [01:32:13]MH_I2C_Read... [01:32:13]Read from MH i2c: 01 07 00 71 0F 00 02 00 00 00 FF 0F 97 [01:32:13]state=3 [01:32:13]Cover opened [01:32:13]OFD Sender: No OFD packet to send [01:32:18]Write to MH i2c: 01 00 00 72 0F 81 [01:32:18]Write i2c OK [01:32:18]MH_I2C_Read... [01:32:18]Read from MH i2c: 01 [01:32:18]MH_I2C_Read... [01:32:18]Read from MH i2c: 01 07 00 [01:32:18]MH_I2C_Read... [01:32:18]Read from MH i2c: 01 07 00 72 0F 00 02 00 00 00 FF 0F 98 [01:32:18]state=3 [01:32:18]Cover opened [01:32:18]OFD Sender: No OFD packet to send [01:32:23]Write to MH i2c: 01 00 00 73 0F 82 [01:32:23]Write i2c OK [01:32:23]MH_I2C_Read... [01:32:23]Read from MH i2c: 01 [01:32:23]MH_I2C_Read... [01:32:23]Read from MH i2c: 01 07 00 [01:32:23]MH_I2C_Read... [01:32:23]Read from MH i2c: 01 07 00 73 0F 00 02 00 00 00 FF 0F 99 [01:32:23]state=3 [01:32:23]Cover opened [01:32:23]OFD Sender: No OFD packet to send [01:32:28]Write to MH i2c: 01 00 00 74 0F 83 [01:32:28]Write i2c OK [01:32:28]MH_I2C_Read... [01:32:28]Read from MH i2c: 01 [01:32:28]MH_I2C_Read... [01:32:28]Read from MH i2c: 01 07 00 [01:32:28]MH_I2C_Read... [01:32:28]Read from MH i2c: 01 07 00 74 0F 00 02 00 00 00 FF 0F 9A [01:32:28]state=3 [01:32:28]Cover opened [01:32:28]OFD Sender: No OFD packet to send [01:32:33]Write to MH i2c: 01 00 00 75 0F 84 [01:32:33]Write i2c OK [01:32:33]MH_I2C_Read... [01:32:33]Read from MH i2c: 01 [01:32:33]MH_I2C_Read... [01:32:33]Read from MH i2c: 01 07 00 [01:32:33]MH_I2C_Read... [01:32:33]Read from MH i2c: 01 07 00 75 0F 00 02 00 00 00 FF 0F 9B [01:32:33]state=3 [01:32:33]Cover opened [01:32:33]OFD Sender: No OFD packet to send [01:32:38]Write to MH i2c: 01 00 00 76 0F 85 [01:32:38]Write i2c OK [01:32:38]MH_I2C_Read... [01:32:38]Read from MH i2c: 01 [01:32:38]MH_I2C_Read... [01:32:38]Read from MH i2c: 01 07 00 [01:32:38]MH_I2C_Read... [01:32:38]Read from MH i2c: 01 07 00 76 0F 00 02 00 00 00 FF 0F 9C [01:32:38]state=3 [01:32:38]Cover opened [01:32:38]OFD Sender: No OFD packet to send [01:32:43]Write to MH i2c: 01 00 00 77 0F 86 [01:32:43]Write i2c OK [01:32:43]MH_I2C_Read... [01:32:43]Read from MH i2c: 01 [01:32:43]MH_I2C_Read... [01:32:43]Read from MH i2c: 01 07 00 [01:32:43]MH_I2C_Read... [01:32:43]Read from MH i2c: 01 07 00 77 0F 00 02 00 00 00 FF 0F 9D [01:32:43]state=3 [01:32:43]Cover opened [01:32:43]OFD Sender: No OFD packet to send [01:32:48]Write to MH i2c: 01 00 00 78 0F 87 [01:32:48]Write i2c OK [01:32:48]MH_I2C_Read... [01:32:48]Read from MH i2c: 01 [01:32:48]MH_I2C_Read... [01:32:48]Read from MH i2c: 01 07 00 [01:32:48]MH_I2C_Read... [01:32:48]Read from MH i2c: 01 07 00 78 0F 00 02 00 00 00 FF 0F 9E [01:32:48]state=3 [01:32:48]Cover opened [01:32:48]OFD Sender: No OFD packet to send [01:32:53]Write to MH i2c: 01 00 00 79 0F 88 [01:32:53]Write i2c OK [01:32:53]MH_I2C_Read... [01:32:53]Read from MH i2c: 01 [01:32:53]MH_I2C_Read... [01:32:53]Read from MH i2c: 01 07 00 [01:32:53]MH_I2C_Read... [01:32:53]Read from MH i2c: 01 07 00 79 0F 00 02 00 00 00 FF 0F 9F [01:32:53]state=3 [01:32:53]Cover opened [01:32:53]OFD Sender: No OFD packet to send [01:32:58]Write to MH i2c: 01 00 00 7A 0F 89 [01:32:58]Write i2c OK [01:32:58]MH_I2C_Read... [01:32:58]Read from MH i2c: 01 [01:32:58]MH_I2C_Read... [01:32:58]Read from MH i2c: 01 07 00 [01:32:58]MH_I2C_Read... [01:32:58]Read from MH i2c: 01 07 00 7A 0F 00 02 00 00 00 FF 0F A0 [01:32:58]state=3 [01:32:58]Cover opened [01:32:59]OFD Sender: No OFD packet to send [01:33:03]Write to MH i2c: 01 00 00 7B 0F 8A [01:33:03]Write i2c OK [01:33:03]MH_I2C_Read... [01:33:03]Read from MH i2c: 01 [01:33:03]MH_I2C_Read... [01:33:03]Read from MH i2c: 01 07 00 [01:33:03]MH_I2C_Read... [01:33:03]Read from MH i2c: 01 07 00 7B 0F 00 02 00 00 00 FF 0F A1 [01:33:03]state=3 [01:33:03]Cover opened [01:33:04]OFD Sender: No OFD packet to send [01:33:08]Write to MH i2c: 01 00 00 7C 0F 8B [01:33:08]Write i2c OK [01:33:08]MH_I2C_Read... [01:33:08]Read from MH i2c: 01 [01:33:08]MH_I2C_Read... [01:33:08]Read from MH i2c: 01 07 00 [01:33:08]MH_I2C_Read... [01:33:08]Read from MH i2c: 01 07 00 7C 0F 00 02 00 00 00 FF 0F A2 [01:33:08]state=3 [01:33:08]Cover opened [01:33:09]OFD Sender: No OFD packet to send [01:33:13]Write to MH i2c: 01 00 00 7D 0F 8C [01:33:13]Write i2c OK [01:33:13]MH_I2C_Read... [01:33:13]Read from MH i2c: 01 [01:33:13]MH_I2C_Read... [01:33:13]Read from MH i2c: 01 07 00 [01:33:13]MH_I2C_Read... [01:33:13]Read from MH i2c: 01 07 00 7D 0F 00 02 00 00 00 FF 0F A3 [01:33:13]state=3 [01:33:13]Cover opened [01:33:14]OFD Sender: No OFD packet to send [01:33:18]Write to MH i2c: 01 00 00 7E 0F 8D [01:33:18]Write i2c OK [01:33:18]MH_I2C_Read... [01:33:18]Read from MH i2c: 01 [01:33:18]MH_I2C_Read... [01:33:18]Read from MH i2c: 01 07 00 [01:33:18]MH_I2C_Read... [01:33:18]Read from MH i2c: 01 07 00 7E 0F 00 02 00 00 00 FF 0F A4 [01:33:18]state=3 [01:33:18]Cover opened [01:33:19]OFD Sender: No OFD packet to send [01:33:23]Write to MH i2c: 01 00 00 7F 0F 8E [01:33:23]Write i2c OK [01:33:23]MH_I2C_Read... [01:33:23]Read from MH i2c: 01 [01:33:23]MH_I2C_Read... [01:33:23]Read from MH i2c: 01 07 00 [01:33:23]MH_I2C_Read... [01:33:23]Read from MH i2c: 01 07 00 7F 0F 00 02 00 00 00 FF 0F A5 [01:33:23]state=3 [01:33:23]Cover opened [01:33:24]OFD Sender: No OFD packet to send [01:33:28]Write to MH i2c: 01 00 00 80 0F 8F [01:33:28]Write i2c OK [01:33:28]MH_I2C_Read... [01:33:28]Read from MH i2c: 01 [01:33:28]MH_I2C_Read... [01:33:28]Read from MH i2c: 01 07 00 [01:33:28]MH_I2C_Read... [01:33:28]Read from MH i2c: 01 07 00 80 0F 00 02 00 00 00 FF 0F A6 [01:33:28]state=3 [01:33:28]Cover opened [01:33:29]OFD Sender: No OFD packet to send [01:33:33]Write to MH i2c: 01 00 00 81 0F 90 [01:33:33]Write i2c OK [01:33:33]MH_I2C_Read... [01:33:33]Read from MH i2c: 01 [01:33:33]MH_I2C_Read... [01:33:33]Read from MH i2c: 01 07 00 [01:33:33]MH_I2C_Read... [01:33:33]Read from MH i2c: 01 07 00 81 0F 00 02 00 00 00 FF 0F A7 [01:33:33]state=3 [01:33:33]Cover opened [01:33:34]OFD Sender: No OFD packet to send [01:33:38]Write to MH i2c: 01 00 00 82 0F 91 [01:33:38]Write i2c OK [01:33:38]MH_I2C_Read... [01:33:38]Read from MH i2c: 01 [01:33:38]MH_I2C_Read... [01:33:38]Read from MH i2c: 01 07 00 [01:33:38]MH_I2C_Read... [01:33:38]Read from MH i2c: 01 07 00 82 0F 00 02 00 00 00 FF 0F A8 [01:33:38]state=3 [01:33:38]Cover opened [01:33:39]OFD Sender: No OFD packet to send [01:33:43]Write to MH i2c: 01 00 00 83 0F 92 [01:33:43]Write i2c OK [01:33:43]MH_I2C_Read... [01:33:43]Read from MH i2c: 01 [01:33:43]MH_I2C_Read... [01:33:43]Read from MH i2c: 01 07 00 [01:33:43]MH_I2C_Read... [01:33:43]Read from MH i2c: 01 07 00 83 0F 00 02 00 00 00 FF 0F A9 [01:33:43]state=3 [01:33:43]Cover opened [01:33:44]OFD Sender: No OFD packet to send [01:33:48]Write to MH i2c: 01 00 00 84 0F 93 [01:33:48]Write i2c OK [01:33:48]MH_I2C_Read... [01:33:48]Read from MH i2c: 01 [01:33:48]MH_I2C_Read... [01:33:48]Read from MH i2c: 01 07 00 [01:33:48]MH_I2C_Read... [01:33:48]Read from MH i2c: 01 07 00 84 0F 00 02 00 00 00 FF 0F AA [01:33:48]state=3 [01:33:48]Cover opened [01:33:49]OFD Sender: No OFD packet to send [01:33:53]Write to MH i2c: 01 00 00 85 0F 94 [01:33:53]Write i2c OK [01:33:53]MH_I2C_Read... [01:33:53]Read from MH i2c: 01 [01:33:53]MH_I2C_Read... [01:33:53]Read from MH i2c: 01 07 00 [01:33:53]MH_I2C_Read... [01:33:53]Read from MH i2c: 01 07 00 85 0F 00 02 00 00 00 FF 0F AB [01:33:53]state=3 [01:33:53]Cover opened [01:33:54]OFD Sender: No OFD packet to send [01:33:58]Write to MH i2c: 01 00 00 86 0F 95 [01:33:58]Write i2c OK [01:33:58]MH_I2C_Read... [01:33:58]Read from MH i2c: 01 [01:33:58]MH_I2C_Read... [01:33:58]Read from MH i2c: 01 07 00 [01:33:58]MH_I2C_Read... [01:33:58]Read from MH i2c: 01 07 00 86 0F 00 02 00 00 00 FF 0F AC [01:33:58]state=3 [01:33:58]Cover opened [01:33:59]OFD Sender: No OFD packet to send [01:34:03]Write to MH i2c: 01 00 00 87 0F 96 [01:34:03]Write i2c OK [01:34:03]MH_I2C_Read... [01:34:03]Read from MH i2c: 01 [01:34:03]MH_I2C_Read... [01:34:03]Read from MH i2c: 01 07 00 [01:34:03]MH_I2C_Read... [01:34:03]Read from MH i2c: 01 07 00 87 0F 00 02 00 00 00 FF 0F AD [01:34:03]state=3 [01:34:03]Cover opened [01:34:04]OFD Sender: No OFD packet to send [01:34:08]Write to MH i2c: 01 00 00 88 0F 97 [01:34:08]Write i2c OK [01:34:08]MH_I2C_Read... [01:34:08]Read from MH i2c: 01 [01:34:08]MH_I2C_Read... [01:34:08]Read from MH i2c: 01 07 00 [01:34:08]MH_I2C_Read... [01:34:08]Read from MH i2c: 01 07 00 88 0F 00 02 00 00 00 FF 0F AE [01:34:08]state=3 [01:34:08]Cover opened [01:34:09]OFD Sender: No OFD packet to send [01:34:13]Write to MH i2c: 01 00 00 89 0F 98 [01:34:13]Write i2c OK [01:34:13]MH_I2C_Read... [01:34:13]Read from MH i2c: 01 [01:34:13]MH_I2C_Read... [01:34:13]Read from MH i2c: 01 07 00 [01:34:13]MH_I2C_Read... [01:34:13]Read from MH i2c: 01 07 00 89 0F 00 02 00 00 00 FF 0F AF [01:34:13]state=3 [01:34:13]Cover opened [01:34:14]OFD Sender: No OFD packet to send [01:34:18]Write to MH i2c: 01 00 00 8A 0F 99 [01:34:18]Write i2c OK [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: 01 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: 01 07 00 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: 01 07 00 8A 0F 00 02 00 00 00 FF 0F B0 [01:34:18]state=3 [01:34:18]Cover opened [01:34:19]OFD Sender: No OFD packet to send [01:34:23]Write to MH i2c: 01 00 00 8B 0F 9A [01:34:23]Write i2c OK [01:34:23]MH_I2C_Read... [01:34:23]Read from MH i2c: 01 [01:34:23]MH_I2C_Read... [01:34:23]Read from MH i2c: 01 07 00 [01:34:23]MH_I2C_Read... [01:34:23]Read from MH i2c: 01 07 00 8B 0F 00 02 00 00 00 FF 0F B1 [01:34:23]state=3 [01:34:23]Cover opened [01:34:24]OFD Sender: No OFD packet to send [01:34:28]Write to MH i2c: 01 00 00 8C 0F 9B [01:34:28]Write i2c OK [01:34:28]MH_I2C_Read... [01:34:28]Read from MH i2c: 01 [01:34:28]MH_I2C_Read... [01:34:28]Read from MH i2c: 01 07 00 [01:34:28]MH_I2C_Read... [01:34:28]Read from MH i2c: 01 07 00 8C 0F 00 02 00 00 00 FF 0F B2 [01:34:28]state=3 [01:34:28]Cover opened [01:34:29]OFD Sender: No OFD packet to send [01:34:33]Write to MH i2c: 01 00 00 8D 0F 9C [01:34:33]Write i2c OK [01:34:33]MH_I2C_Read... [01:34:33]Read from MH i2c: 01 [01:34:33]MH_I2C_Read... [01:34:33]Read from MH i2c: 01 07 00 [01:34:33]MH_I2C_Read... [01:34:33]Read from MH i2c: 01 07 00 8D 0F 00 02 00 00 00 FF 0F B3 [01:34:33]state=3 [01:34:33]Cover opened [01:34:34]OFD Sender: No OFD packet to send [01:34:38]Write to MH i2c: 01 00 00 8E 0F 9D [01:34:38]Write i2c OK [01:34:38]MH_I2C_Read... [01:34:38]Read from MH i2c: 01 [01:34:38]MH_I2C_Read... [01:34:38]Read from MH i2c: 01 07 00 [01:34:38]MH_I2C_Read... [01:34:38]Read from MH i2c: 01 07 00 8E 0F 00 02 00 00 00 FF 0F B4 [01:34:38]state=3 [01:34:38]Cover opened [01:34:39]OFD Sender: No OFD packet to send [01:34:43]Write to MH i2c: 01 00 00 8F 0F 9E [01:34:43]Write i2c OK [01:34:43]MH_I2C_Read... [01:34:43]Read from MH i2c: 01 [01:34:43]MH_I2C_Read... [01:34:43]Read from MH i2c: 01 07 00 [01:34:43]MH_I2C_Read... [01:34:43]Read from MH i2c: 01 07 00 8F 0F 00 02 00 00 00 FF 0F B5 [01:34:43]state=3 [01:34:43]Cover opened [01:34:44]OFD Sender: No OFD packet to send [01:34:48]Write to MH i2c: 01 00 00 90 0F 9F [01:34:48]Write i2c OK [01:34:48]MH_I2C_Read... [01:34:48]Read from MH i2c: 01 [01:34:48]MH_I2C_Read... [01:34:48]Read from MH i2c: 01 07 00 [01:34:48]MH_I2C_Read... [01:34:48]Read from MH i2c: 01 07 00 90 0F 00 02 00 00 00 FF 0F B6 [01:34:48]state=3 [01:34:48]Cover opened [01:34:49]OFD Sender: No OFD packet to send [01:34:53]Write to MH i2c: 01 00 00 91 0F A0 [01:34:53]Write i2c OK [01:34:53]MH_I2C_Read... [01:34:53]Read from MH i2c: 01 [01:34:53]MH_I2C_Read... [01:34:53]Read from MH i2c: 01 07 00 [01:34:53]MH_I2C_Read... [01:34:53]Read from MH i2c: 01 07 00 91 0F 00 02 00 00 00 FF 0F B7 [01:34:53]state=3 [01:34:53]Cover opened [01:34:54]OFD Sender: No OFD packet to send [01:34:58]Write to MH i2c: 01 00 00 92 0F A1 [01:34:58]Write i2c OK [01:34:58]MH_I2C_Read... [01:34:58]Read from MH i2c: 01 [01:34:58]MH_I2C_Read... [01:34:58]Read from MH i2c: 01 07 00 [01:34:58]MH_I2C_Read... [01:34:58]Read from MH i2c: 01 07 00 92 0F 00 02 00 00 00 FF 0F B8 [01:34:58]state=3 [01:34:58]Cover opened [01:34:59]OFD Sender: No OFD packet to send [01:35:03]Write to MH i2c: 01 00 00 93 0F A2 [01:35:03]Write i2c OK [01:35:03]MH_I2C_Read... [01:35:03]Read from MH i2c: 01 [01:35:03]MH_I2C_Read... [01:35:03]Read from MH i2c: 01 07 00 [01:35:03]MH_I2C_Read... [01:35:03]Read from MH i2c: 01 07 00 93 0F 00 02 00 00 00 FF 0F B9 [01:35:03]state=3 [01:35:03]Cover opened [01:35:04]OFD Sender: No OFD packet to send [01:35:08]Write to MH i2c: 01 00 00 94 0F A3 [01:35:08]Write i2c OK [01:35:08]MH_I2C_Read... [01:35:08]Read from MH i2c: 01 [01:35:08]MH_I2C_Read... [01:35:08]Read from MH i2c: 01 07 00 [01:35:08]MH_I2C_Read... [01:35:08]Read from MH i2c: 01 07 00 94 0F 00 02 00 00 00 FF 0F BA [01:35:08]state=3 [01:35:08]Cover opened [01:35:09]OFD Sender: No OFD packet to send [01:35:13]Write to MH i2c: 01 00 00 95 0F A4 [01:35:13]Write i2c OK [01:35:13]MH_I2C_Read... [01:35:13]Read from MH i2c: 01 [01:35:13]MH_I2C_Read... [01:35:13]Read from MH i2c: 01 07 00 [01:35:13]MH_I2C_Read... [01:35:13]Read from MH i2c: 01 07 00 95 0F 00 02 00 00 00 FF 0F BB [01:35:13]state=3 [01:35:13]Cover opened [01:35:14]OFD Sender: No OFD packet to send [01:35:18]Write to MH i2c: 01 00 00 96 0F A5 [01:35:18]Write i2c OK [01:35:18]MH_I2C_Read... [01:35:18]Read from MH i2c: 01 [01:35:18]MH_I2C_Read... [01:35:18]Read from MH i2c: 01 07 00 [01:35:18]MH_I2C_Read... [01:35:18]Read from MH i2c: 01 07 00 96 0F 00 02 00 00 00 FF 0F BC [01:35:18]state=3 [01:35:18]Cover opened [01:35:19]OFD Sender: No OFD packet to send [01:35:23]Write to MH i2c: 01 00 00 97 0F A6 [01:35:23]Write i2c OK [01:35:23]MH_I2C_Read... [01:35:23]Read from MH i2c: 01 [01:35:23]MH_I2C_Read... [01:35:23]Read from MH i2c: 01 07 00 [01:35:23]MH_I2C_Read... [01:35:23]Read from MH i2c: 01 07 00 97 0F 00 02 00 00 00 FF 0F BD [01:35:23]state=3 [01:35:23]Cover opened [01:35:24]OFD Sender: No OFD packet to send [01:35:29]Write to MH i2c: 01 00 00 98 0F A7 [01:35:29]Write i2c OK [01:35:29]MH_I2C_Read... [01:35:29]Read from MH i2c: 01 [01:35:29]MH_I2C_Read... [01:35:29]Read from MH i2c: 01 07 00 [01:35:29]MH_I2C_Read... [01:35:29]Read from MH i2c: 01 07 00 98 0F 00 02 00 00 00 FF 0F BE [01:35:29]state=3 [01:35:29]Cover opened [01:35:29]OFD Sender: No OFD packet to send [01:35:34]Write to MH i2c: 01 00 00 99 0F A8 [01:35:34]Write i2c OK [01:35:34]MH_I2C_Read... [01:35:34]Read from MH i2c: 01 [01:35:34]MH_I2C_Read... [01:35:34]Read from MH i2c: 01 07 00 [01:35:34]MH_I2C_Read... [01:35:34]Read from MH i2c: 01 07 00 99 0F 00 02 00 00 00 FF 0F BF [01:35:34]state=3 [01:35:34]Cover opened [01:35:34]OFD Sender: No OFD packet to send [01:35:39]Write to MH i2c: 01 00 00 9A 0F A9 [01:35:39]Write i2c OK [01:35:39]MH_I2C_Read... [01:35:39]Read from MH i2c: 01 [01:35:39]MH_I2C_Read... [01:35:39]Read from MH i2c: 01 07 00 [01:35:39]MH_I2C_Read... [01:35:39]Read from MH i2c: 01 07 00 9A 0F 00 02 00 00 00 FF 0F C0 [01:35:39]state=3 [01:35:39]Cover opened [01:35:39]OFD Sender: No OFD packet to send [01:35:44]Write to MH i2c: 01 00 00 9B 0F AA [01:35:44]Write i2c OK [01:35:44]MH_I2C_Read... [01:35:44]Read from MH i2c: 01 [01:35:44]MH_I2C_Read... [01:35:44]Read from MH i2c: 01 07 00 [01:35:44]MH_I2C_Read... [01:35:44]Read from MH i2c: 01 07 00 9B 0F 00 02 00 00 00 FF 0F C1 [01:35:44]state=3 [01:35:44]Cover opened [01:35:44]OFD Sender: No OFD packet to send [01:35:49]Write to MH i2c: 01 00 00 9C 0F AB [01:35:49]Write i2c OK [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: 01 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: 01 07 00 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: 01 07 00 9C 0F 00 02 00 00 00 FF 0F C2 [01:35:49]state=3 [01:35:49]Cover opened [01:35:49]OFD Sender: No OFD packet to send [01:35:54]Write to MH i2c: 01 00 00 9D 0F AC [01:35:54]Write i2c OK [01:35:54]MH_I2C_Read... [01:35:54]Read from MH i2c: 01 [01:35:54]MH_I2C_Read... [01:35:54]Read from MH i2c: 01 07 00 [01:35:54]MH_I2C_Read... [01:35:54]Read from MH i2c: 01 07 00 9D 0F 00 02 00 00 00 FF 0F C3 [01:35:54]state=3 [01:35:54]Cover opened [01:35:54]OFD Sender: No OFD packet to send [01:35:59]Write to MH i2c: 01 00 00 9E 0F AD [01:35:59]Write i2c OK [01:35:59]MH_I2C_Read... [01:35:59]Read from MH i2c: 01 [01:35:59]MH_I2C_Read... [01:35:59]Read from MH i2c: 01 07 00 [01:35:59]MH_I2C_Read... [01:35:59]Read from MH i2c: 01 07 00 9E 0F 00 02 00 00 00 FF 0F C4 [01:35:59]state=3 [01:35:59]Cover opened [01:35:59]OFD Sender: No OFD packet to send [01:36:04]Write to MH i2c: 01 00 00 9F 0F AE [01:36:04]Write i2c OK [01:36:04]MH_I2C_Read... [01:36:04]Read from MH i2c: 01 [01:36:04]MH_I2C_Read... [01:36:04]Read from MH i2c: 01 07 00 [01:36:04]MH_I2C_Read... [01:36:04]Read from MH i2c: 01 07 00 9F 0F 00 02 00 00 00 FF 0F C5 [01:36:04]state=3 [01:36:04]Cover opened [01:36:04]OFD Sender: No OFD packet to send [01:36:09]Write to MH i2c: 01 00 00 A0 0F AF [01:36:09]Write i2c OK [01:36:09]MH_I2C_Read... [01:36:09]Read from MH i2c: 01 [01:36:09]MH_I2C_Read... [01:36:09]Read from MH i2c: 01 07 00 [01:36:09]MH_I2C_Read... [01:36:09]Read from MH i2c: 01 07 00 A0 0F 00 02 00 00 00 FF 0F C6 [01:36:09]state=3 [01:36:09]Cover opened [01:36:09]OFD Sender: No OFD packet to send [01:36:14]Write to MH i2c: 01 00 00 A1 0F B0 [01:36:14]Write i2c OK [01:36:14]MH_I2C_Read... [01:36:14]Read from MH i2c: 01 [01:36:14]MH_I2C_Read... [01:36:14]Read from MH i2c: 01 07 00 [01:36:14]MH_I2C_Read... [01:36:14]Read from MH i2c: 01 07 00 A1 0F 00 02 00 00 00 FF 0F C7 [01:36:14]state=3 [01:36:14]Cover opened [01:36:14]OFD Sender: No OFD packet to send [01:36:19]Write to MH i2c: 01 00 00 A2 0F B1 [01:36:19]Write i2c OK [01:36:19]MH_I2C_Read... [01:36:19]Read from MH i2c: 01 [01:36:19]MH_I2C_Read... [01:36:19]Read from MH i2c: 01 07 00 [01:36:19]MH_I2C_Read... [01:36:19]Read from MH i2c: 01 07 00 A2 0F 00 02 00 00 00 FF 0F C8 [01:36:19]state=3 [01:36:19]Cover opened [01:36:19]OFD Sender: No OFD packet to send [01:36:24]Write to MH i2c: 01 00 00 A3 0F B2 [01:36:24]Write i2c OK [01:36:24]MH_I2C_Read... [01:36:24]Read from MH i2c: 01 [01:36:24]MH_I2C_Read... [01:36:24]Read from MH i2c: 01 07 00 [01:36:24]MH_I2C_Read... [01:36:24]Read from MH i2c: 01 07 00 A3 0F 00 02 00 00 00 FF 0F C9 [01:36:24]state=3 [01:36:24]Cover opened [01:36:24]OFD Sender: No OFD packet to send [01:36:29]Write to MH i2c: 01 00 00 A4 0F B3 [01:36:29]Write i2c OK [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: 01 [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: 01 07 00 [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: 01 07 00 A4 0F 00 02 00 00 00 FF 0F CA [01:36:29]state=3 [01:36:29]Cover opened [01:36:29]OFD Sender: No OFD packet to send [01:36:34]Write to MH i2c: 01 00 00 A5 0F B4 [01:36:34]Write i2c OK [01:36:34]MH_I2C_Read... [01:36:34]Read from MH i2c: 01 [01:36:34]MH_I2C_Read... [01:36:34]Read from MH i2c: 01 07 00 [01:36:34]MH_I2C_Read... [01:36:34]Read from MH i2c: 01 07 00 A5 0F 00 02 00 00 00 FF 0F CB [01:36:34]state=3 [01:36:34]Cover opened [01:36:34]OFD Sender: No OFD packet to send [01:36:36]int [01:36:36]Write to MH i2c: 01 00 00 A6 0F B5 [01:36:36]*** FLAG_PRN_PAP1 set [01:36:36]Write i2c OK [01:36:36]MH_I2C_Read... [01:36:36]Read from MH i2c: 01 [01:36:36]MH_I2C_Read... [01:36:36]Read from MH i2c: 01 07 00 [01:36:36]MH_I2C_Read... [01:36:36]Read from MH i2c: 01 07 00 A6 0F 00 03 00 00 00 FF 0F CD [01:36:36]state=3 [01:36:36]No paper [01:36:36]Cover opened [01:36:36]int [01:36:36]Write to MH i2c: 01 00 00 A7 0F B6 [01:36:36]*** FLAG_PRN_PAP2 reset [01:36:36]Write i2c OK [01:36:36]MH_I2C_Read... [01:36:36]Read from MH i2c: 01 [01:36:36]MH_I2C_Read... [01:36:36]Read from MH i2c: 01 07 00 [01:36:36]MH_I2C_Read... [01:36:36]Read from MH i2c: 01 07 00 A7 0F 00 01 00 00 00 FF 0F CC [01:36:36]state=3 [01:36:36]No paper [01:36:36]Cover closed [01:36:36]int [01:36:36]Write to MH i2c: 01 00 00 A8 0F B7 [01:36:36]*** FLAG_PRN_PAP2 set [01:36:36]Write i2c OK [01:36:36]MH_I2C_Read... [01:36:36]Read from MH i2c: 01 [01:36:36]MH_I2C_Read... [01:36:36]Read from MH i2c: 01 07 00 [01:36:36]MH_I2C_Read... [01:36:36]Read from MH i2c: 01 07 00 A8 0F 00 03 00 00 00 FF 0F CF [01:36:36]state=0 [01:36:36]No paper [01:36:36]Cover opened [01:36:39]OFD Sender: No OFD packet to send [01:36:41]Write to MH i2c: 01 00 00 A9 0F B8 [01:36:41]Write i2c OK [01:36:41]MH_I2C_Read... [01:36:41]Read from MH i2c: 01 [01:36:41]MH_I2C_Read... [01:36:41]Read from MH i2c: 01 07 00 [01:36:41]MH_I2C_Read... [01:36:41]Read from MH i2c: 01 07 00 A9 0F 00 03 00 00 00 FF 0F D0 [01:36:41]state=3 [01:36:41]No paper [01:36:41]Cover opened [01:36:44]OFD Sender: No OFD packet to send [01:36:46]Write to MH i2c: 01 00 00 AA 0F B9 [01:36:46]Write i2c OK [01:36:46]MH_I2C_Read... [01:36:46]Read from MH i2c: 01 [01:36:46]MH_I2C_Read... [01:36:46]Read from MH i2c: 01 07 00 [01:36:46]MH_I2C_Read... [01:36:46]Read from MH i2c: 01 07 00 AA 0F 00 03 00 00 00 FF 0F D1 [01:36:46]state=3 [01:36:46]No paper [01:36:46]Cover opened [01:36:49]OFD Sender: No OFD packet to send [01:36:51]int [01:36:51]Write to MH i2c: 01 00 00 AB 0F BA [01:36:51]*** FLAG_PRN_PAP1 reset [01:36:51]*** FLAG_PRN_PAP2 reset [01:36:51]Write i2c OK [01:36:51]MH_I2C_Read... [01:36:51]Read from MH i2c: 01 [01:36:51]MH_I2C_Read... [01:36:51]Read from MH i2c: 01 07 00 [01:36:51]MH_I2C_Read... [01:36:51]Read from MH i2c: 01 07 00 AB 0F 00 00 00 00 00 FF 0F CF [01:36:51]state=3 [01:36:51]Cover closed [01:36:51]int [01:36:51]Write to MH i2c: 01 00 00 AC 0F BB [01:36:51]Write i2c OK [01:36:51]MH_I2C_Read... [01:36:51]Read from MH i2c: 01 [01:36:51]MH_I2C_Read... [01:36:51]Read from MH i2c: 01 07 00 [01:36:51]MH_I2C_Read... [01:36:51]Read from MH i2c: 01 07 00 AC 0F 00 00 00 00 00 FF 0F D0 [01:36:51]state=0 [01:36:51]int [01:36:51]Write to MH i2c: 01 00 00 AD 0F BC [01:36:51]*** FLAG_PRN_KEY set [01:36:51]*** FLAG_PRN_KEY reset [01:36:51]*** FLAG_PRN_KEY set [01:36:51]Write i2c OK [01:36:51]MH_I2C_Read... [01:36:51]Read from MH i2c: 01 [01:36:51]MH_I2C_Read... [01:36:51]Read from MH i2c: 01 07 00 [01:36:51]MH_I2C_Read... [01:36:51]Read from MH i2c: 01 07 00 AD 0F 00 08 00 00 00 FF 0F D9 [01:36:51]state=0 [01:36:51]Key pressed [01:36:51]Feed [01:36:51]Write to MH i2c: D8 00 00 AE 0F 94 [01:36:51]Write i2c OK [01:36:51]MH_I2C_Read... [01:36:51]Read from MH i2c: D8 [01:36:51]MH_I2C_Read... [01:36:51]Read from MH i2c: D8 01 00 [01:36:51]MH_I2C_Read... [01:36:51]Read from MH i2c: D8 01 00 AE 0F 00 95 [01:36:52]int [01:36:52]Write to MH i2c: 01 00 00 AF 0F BE [01:36:52]Write i2c OK [01:36:52]MH_I2C_Read... [01:36:52]Read from MH i2c: 01 [01:36:52]MH_I2C_Read... [01:36:52]Read from MH i2c: 01 07 00 [01:36:52]MH_I2C_Read... [01:36:52]Read from MH i2c: 01 07 00 AF 0F 00 48 00 00 00 3C 00 49 [01:36:52]state=2 [01:36:52]Key pressed [01:36:53]int [01:36:53]Write to MH i2c: 01 00 00 B0 0F BF [01:36:53]*** FLAG_PRN_KEY reset [01:36:53]Write i2c OK [01:36:53]MH_I2C_Read... [01:36:53]Read from MH i2c: 01 [01:36:53]MH_I2C_Read... [01:36:53]Read from MH i2c: 01 07 00 [01:36:53]MH_I2C_Read... [01:36:53]Read from MH i2c: 01 07 00 B0 0F 00 00 00 00 00 F6 0F CB [01:36:53]state=2 [01:36:53]Stop feed [01:36:54]OFD Sender: No OFD packet to send [01:36:59]OFD Sender: No OFD packet to send [01:37:04]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 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 6F [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 54000000005725CA (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: 29176446+1684400628=1713577074 [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 = 0x33540623 [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 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 70 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [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 73 1C 23 66 F4 E9 65 64 BD [01:37:55]Current date/time: 20.04.2024 01:37 [01:37:55]FM_Init [01:37:55]wFMConnect [01:37:55]MH_SAM_On [01:37:55]Write to MH i2c: E0 00 00 08 00 E7 [01:37:55]Write i2c OK [01:37:55]MH_I2C_Read... [01:37:55]*** iso7816_init finished! [01:37:55]*** atr: [01:37:55]*** 0F 3B D5 18 FF 81 91 FE [01:37:55]*** 1F C3 80 73 C8 21 10 0A [01:37:55]*** 00 00 00 00 00 00 00 00 [01:37:55]*** 00 00 00 00 00 00 00 00 [01:37:55]*** 00 00 00 00 00 00 00 00 [01:37:55]*** 00 00 00 00 00 00 00 00 [01:37:55]*** 00 00 00 00 00 00 00 00 [01:37:55]*** 00 00 00 00 00 00 00 00 [01:37:55]Read from MH i2c: E0 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E0 10 00 [01:37:55]MH_I2C_Read... [01:37:55]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 [01:37:55]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [01:37:55]wFMCommunicate request_size=10 [01:37:55]MH_SAM_APDU [01:37:55]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [01:37:55]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [01:37:55]Write i2c OK [01:37:55]MH_I2C_Read... [01:37:55]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [01:37:55]Read from MH i2c: E2 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 03 00 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [01:37:55]RAPDU: 90 00 [01:37:55]wFMCommunicate OK [01:37:55]wFMCommunicate request_size=4 [01:37:55]MH_SAM_APDU [01:37:55]CAPDU: 80 11 00 00 [01:37:55]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [01:37:55]Write i2c OK [01:37:55]MH_I2C_Read... [01:37:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:37:55]Read from MH i2c: E2 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 17 00 [01:37:55]MH_I2C_Read... [01:37:55]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 34 36 35 32 90 00 D7 [01:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:37:55]wFMCommunicate OK [01:37:55]Detected FM SN is 0000000000874652 [01:37:55]Stored FM SN is 0000000000874652 [01:37:55]wFMCommunicate request_size=9 [01:37:55]MH_SAM_APDU [01:37:55]CAPDU: 80 16 00 00 04 68 2F 01 00 [01:37:55]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 68 2F 01 00 00 00 2A [01:37:55]Write i2c OK [01:37:55]MH_I2C_Read... [01:37:55]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [01:37:55]Read from MH i2c: E2 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 03 00 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [01:37:55]RAPDU: 90 00 [01:37:55]wFMCommunicate OK [01:37:55]FM PIN OK [01:37:55]wFMCommunicate request_size=8 [01:37:55]MH_SAM_APDU [01:37:55]CAPDU: 80 14 04 00 03 02 00 01 [01:37:55]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [01:37:55]Write i2c OK [01:37:55]MH_I2C_Read... [01:37:55]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [01:37:55]Read from MH i2c: E2 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 03 00 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [01:37:55]RAPDU: 90 00 [01:37:55]wFMCommunicate OK [01:37:55]wFMCommunicate request_size=13 [01:37:55]MH_SAM_APDU [01:37:55]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [01:37:55]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 [01:37:55]Write i2c OK [01:37:55]MH_I2C_Read... [01:37:55]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [01:37:55]Read from MH i2c: E2 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 03 00 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [01:37:55]RAPDU: 90 00 [01:37:55]wFMCommunicate OK [01:37:55]wFMCommunicate request_size=4 [01:37:55]MH_SAM_APDU [01:37:55]CAPDU: 80 11 00 00 [01:37:55]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [01:37:55]Write i2c OK [01:37:55]MH_I2C_Read... [01:37:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:37:55]Read from MH i2c: E2 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 17 00 [01:37:55]MH_I2C_Read... [01:37:55]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 34 36 35 32 90 00 DB [01:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:37:55]wFMCommunicate OK [01:37:55]DocumentArchiveInit [01:37:55]Start Httpd... [01:37:55]Httpd thread 3067436388 created [01:37:55]Write to MH i2c: 01 00 00 0F 00 0F [01:37:55]Write i2c OK [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: 01 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: 01 07 00 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [01:37:55]MH Int Process started [01:37:55]Allocated Socket 7 [01:37:55]Bind OK [01:37:55]Listen OK [01:37:55]httpd running on port 8080 [01:37:55]Waiting for new connection... [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:01]accept exits with 8 [01:38:01]New connection [01:38:01]New thread 3067149668 created [01:38:01]Waiting for new connection... [01:38:01] Sock 8.Parse request [01:38:01]Sock 8.Check first char [01:38:01]Sock 8.First char is OK [01:38:01]request: POST /json_proto HTTP/1.0 [01:38:01]Method: POST [01:38:01]URL: /json_proto [01:38:01]Method is POST - this is cgi request [01:38:01]url: /json_proto [01:38:01]query_string will be loaded in cgi processing [01:38:01]execute_cgi json_proto POST (null) [01:38:01]execute_cgi path=json_proto method=POST [01:38:01]POST find Content-Length [01:38:01]Host: 172.17.62.5:8080 [01:38:01]Content-Length: 215 [01:38:01]Content-Type: application/json [01:38:01] [01:38:01]POST finish read [01:38:01]Found Content-Length = 215 [01:38:01]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" ] } } [01:38:01]execute_script... [01:38:01]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" ] } } [01:38:01]POST & json_proto [01:38:01]process_json_proto [01:38:01]json parsed OK: [01:38:01]protocol is kg_v1.0 [01:38:01]action value=get_value [01:38:01]process_action get_value [01:38:01]cmd_get_value [01:38:01]process_action get_value done [01:38:01]requested_data is exist [01:38:01]produce_requested_data [01:38:01]requested_item kkm.sn is exist - process it [01:38:01]requested_item kkm.ver is exist - process it [01:38:01]requested_item fm.sn is exist - process it [01:38:01]wFMCommunicate request_size=4 [01:38:01]MH_SAM_APDU [01:38:01]CAPDU: 80 11 00 00 [01:38:01]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [01:38:01]Write i2c OK [01:38:01]MH_I2C_Read... [01:38:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:38:01]Read from MH i2c: E2 [01:38:01]MH_I2C_Read... [01:38:01]Read from MH i2c: E2 17 00 [01:38:01]MH_I2C_Read... [01:38:01]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 34 36 35 32 90 00 DD [01:38:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:38:01]wFMCommunicate OK [01:38:01]requested_item fd.num is exist - process it [01:38:01]SAM_PROTO_GetFieldsCounters [01:38:01]wFMCommunicate request_size=4 [01:38:01]MH_SAM_APDU [01:38:01]CAPDU: 80 13 00 00 [01:38:01]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [01:38:01]Write i2c OK [01:38:01]MH_I2C_Read... [01:38:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:38:02]Read from MH i2c: E2 [01:38:02]MH_I2C_Read... [01:38:02]Read from MH i2c: E2 62 00 [01:38:02]MH_I2C_Read... [01:38:02]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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 15 2B 01 00 0E 04 04 00 73 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 75 [01:38:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 15 2B 01 00 0E 04 04 00 73 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:38:02]wFMCommunicate OK [01:38:02]SAM_PROTO_GetFieldsCounters done [01:38:02]requested_item shift.num is exist - process it [01:38:02]requested_item shift.opened is exist - process it [01:38:02]req_shift_opened [01:38:02]FM_GetShiftState [01:38:02]SAM_PROTO_GetShiftState [01:38:02]wFMCommunicate request_size=4 [01:38:02]MH_SAM_APDU [01:38:02]CAPDU: 80 13 01 00 [01:38:02]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [01:38:02]Write i2c OK [01:38:02]MH_I2C_Read... [01:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:38:02]Read from MH i2c: E2 [01:38:02]MH_I2C_Read... [01:38:02]Read from MH i2c: E2 0E 00 [01:38:02]MH_I2C_Read... [01:38:02]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 53 0A 23 66 00 00 00 00 90 00 81 [01:38:02]RAPDU: 09 00 01 53 0A 23 66 00 00 00 00 90 00 [01:38:02]wFMCommunicate OK [01:38:02]SAM_PROTO_GetShiftState done [01:38:02]FM_GetShiftState done [01:38:02]req_shift_opened done [01:38:02]requested_item shift.open_date is exist - process it [01:38:02]req_shift_open_date [01:38:02]req_shift_open_date done [01:38:02]produce_requested_data done [01:38:02]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76565,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435} [01:38:02]process_action_free get_value [01:38:02]json_value_free [01:38:02]json_value_free done [01:38:02]process_json_proto returns [01:38:02]Send response to host [01:38:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76565,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435}}} [01:38:02]free response buf [01:38:02]execute_script done [01:38:02]execute_script returns [01:38:02]free content buf [01:38:02]Sock 8.Close socket [01:38:02]Sock 8.Thread stoped [01:38:02]accept exits with 9 [01:38:02]New connection [01:38:02]New thread 3067006308 created [01:38:02]Thread 3067149668 joined [01:38:02]Waiting for new connection... [01:38:02] Sock 9.Parse request [01:38:02]Sock 9.Check first char [01:38:02]Sock 9.First char is OK [01:38:02]request: POST /json_proto HTTP/1.0 [01:38:02]Method: POST [01:38:02]URL: /json_proto [01:38:02]Method is POST - this is cgi request [01:38:02]url: /json_proto [01:38:02]query_string will be loaded in cgi processing [01:38:02]execute_cgi json_proto POST (null) [01:38:02]execute_cgi path=json_proto method=POST [01:38:02]POST find Content-Length [01:38:02]Host: 172.17.62.5:8080 [01:38:02]Content-Length: 331 [01:38:02]Content-Type: application/json [01:38:02] [01:38:02]POST finish read [01:38:02]Found Content-Length = 331 [01:38:02]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" ] } } [01:38:02]execute_script... [01:38:02]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" ] } } [01:38:02]POST & json_proto [01:38:02]process_json_proto [01:38:02]json parsed OK: [01:38:02]protocol is kg_v1.0 [01:38:02]action value=get_value [01:38:02]process_action get_value [01:38:02]cmd_get_value [01:38:02]process_action get_value done [01:38:02]requested_data is exist [01:38:02]produce_requested_data [01:38:02]requested_item fm.sale.total is exist - process it [01:38:02]SAM_PROTO_GetFMData [01:38:02]wFMCommunicate request_size=4 [01:38:02]MH_SAM_APDU [01:38:02]CAPDU: 80 13 03 00 [01:38:02]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [01:38:02]Write i2c OK [01:38:02]MH_I2C_Read... [01:38:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:38:02]Read from MH i2c: E2 [01:38:02]MH_I2C_Read... [01:38:02]Read from MH i2c: E2 FD 00 [01:38:02]MH_I2C_Read... [01:38:02]Read from MH i2c: E2 FD 00 13 00 00 C8 04 85 04 C4 04 6E 04 04 00 2F 28 01 00 69 04 A3 00 6F 04 04 00 41 26 01 00 B1 04 05 00 28 A7 82 B8 02 70 04 05 00 08 34 ED 74 02 72 04 04 00 20 73 95 43 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 3B E2 F9 49 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 5A 17 2A 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 F7 [01:38:02]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 2F 28 01 00 69 04 A3 00 6F 04 04 00 41 26 01 00 B1 04 05 00 28 A7 82 B8 02 70 04 05 00 08 34 ED 74 02 72 04 04 00 20 73 95 43 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 3B E2 F9 49 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 5A 17 2A 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 EE 01 00 00 B1 04 05 00 28 08 B9 15 01 70 04 05 00 28 08 B9 15 01 72 04 00 00 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 BF 25 7E 1D EF 90 00 [01:38:02]wFMCommunicate OK [01:38:02]wFMCommunicate request_size=4 [01:38:02]MH_SAM_APDU [01:38:02]CAPDU: 80 17 00 00 [01:38:02]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [01:38:02]Write i2c OK [01:38:02]MH_I2C_Read... [01:38:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:38:03]Read from MH i2c: E2 [01:38:03]MH_I2C_Read... [01:38:03]Read from MH i2c: E2 FD 00 [01:38:03]MH_I2C_Read... [01:38:03]Read from MH i2c: E2 FD 00 14 00 00 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 B4 2D 75 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 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 90 00 FB [01:38:03]RAPDU: 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 B4 2D 75 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 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 90 00 [01:38:03]wFMCommunicate OK [01:38:03]wFMCommunicate request_size=4 [01:38:03]MH_SAM_APDU [01:38:03]CAPDU: 80 17 00 00 [01:38:03]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [01:38:03]Write i2c OK [01:38:03]MH_I2C_Read... [01:38:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:38:03]Read from MH i2c: E2 [01:38:03]MH_I2C_Read... [01:38:03]Read from MH i2c: E2 FD 00 [01:38:03]MH_I2C_Read... [01:38:03]Read from MH i2c: E2 FD 00 15 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [01:38:03]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:38:03]wFMCommunicate OK [01:38:03]wFMCommunicate request_size=4 [01:38:03]MH_SAM_APDU [01:38:03]CAPDU: 80 17 00 00 [01:38:03]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [01:38:03]Write i2c OK [01:38:03]MH_I2C_Read... [01:38:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:38:03]Read from MH i2c: E2 [01:38:03]MH_I2C_Read... [01:38:03]Read from MH i2c: E2 FD 00 [01:38:03]MH_I2C_Read... [01:38:03]Read from MH i2c: E2 FD 00 16 00 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 90 00 0E [01:38:03]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 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 90 00 [01:38:03]wFMCommunicate OK [01:38:03]wFMCommunicate request_size=4 [01:38:03]MH_SAM_APDU [01:38:03]CAPDU: 80 17 00 00 [01:38:03]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [01:38:03]Write i2c OK [01:38:03]MH_I2C_Read... [01:38:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [01:38:03]Read from MH i2c: E2 [01:38:03]MH_I2C_Read... [01:38:03]Read from MH i2c: E2 E5 00 [01:38:03]MH_I2C_Read... [01:38:03]Read from MH i2c: E2 E5 00 17 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7B [01:38:03]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:38:03]wFMCommunicate OK [01:38:03]SAM_PROTO_GetFMData done [01:38:03]requested_item fm.sale_refund.total is exist - process it [01:38:03]requested_item fm.buy.total is exist - process it [01:38:03]requested_item shift.sale.total is exist - process it [01:38:03]SAM_PROTO_GetShiftData [01:38:03]wFMCommunicate request_size=4 [01:38:03]MH_SAM_APDU [01:38:03]CAPDU: 80 13 02 00 [01:38:03]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [01:38:03]Write i2c OK [01:38:03]MH_I2C_Read... [01:38:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:38:04]Read from MH i2c: E2 [01:38:04]MH_I2C_Read... [01:38:04]Read from MH i2c: E2 FD 00 [01:38:04]MH_I2C_Read... [01:38:04]Read from MH i2c: E2 FD 00 18 00 00 AA 04 AA 04 A6 04 6E 04 04 00 06 00 00 00 69 04 97 00 6F 04 04 00 06 00 00 00 B1 04 03 00 D8 AC 07 70 04 03 00 D8 AC 07 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 B6 D0 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 64 11 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 54 [01:38:04]RAPDU: AA 04 AA 04 A6 04 6E 04 04 00 06 00 00 00 69 04 97 00 6F 04 04 00 06 00 00 00 B1 04 03 00 D8 AC 07 70 04 03 00 D8 AC 07 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 B6 D0 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 64 11 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [01:38:04]wFMCommunicate OK [01:38:04]wFMCommunicate request_size=4 [01:38:04]MH_SAM_APDU [01:38:04]CAPDU: 80 17 00 00 [01:38:04]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [01:38:04]Write i2c OK [01:38:04]MH_I2C_Read... [01:38:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:38:04]Read from MH i2c: E2 [01:38:04]MH_I2C_Read... [01:38:04]Read from MH i2c: E2 FD 00 [01:38:04]MH_I2C_Read... [01:38:04]Read from MH i2c: E2 FD 00 19 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 90 00 BF [01:38:04]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 90 00 [01:38:04]wFMCommunicate OK [01:38:04]wFMCommunicate request_size=4 [01:38:04]MH_SAM_APDU [01:38:04]CAPDU: 80 17 00 00 [01:38:04]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [01:38:04]Write i2c OK [01:38:04]MH_I2C_Read... [01:38:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:38:04]Read from MH i2c: E2 [01:38:04]MH_I2C_Read... [01:38:04]Read from MH i2c: E2 FD 00 [01:38:04]MH_I2C_Read... [01:38:04]Read from MH i2c: E2 FD 00 1A 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 90 00 4D [01:38:04]RAPDU: EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 90 00 [01:38:04]wFMCommunicate OK [01:38:04]wFMCommunicate request_size=4 [01:38:04]MH_SAM_APDU [01:38:04]CAPDU: 80 17 00 00 [01:38:04]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [01:38:04]Write i2c OK [01:38:04]MH_I2C_Read... [01:38:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:38:05]Read from MH i2c: E2 [01:38:05]MH_I2C_Read... [01:38:05]Read from MH i2c: E2 FD 00 [01:38:05]MH_I2C_Read... [01:38:05]Read from MH i2c: E2 FD 00 1B 00 00 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 90 00 0D [01:38:05]RAPDU: 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 90 00 [01:38:05]wFMCommunicate OK [01:38:05]wFMCommunicate request_size=4 [01:38:05]MH_SAM_APDU [01:38:05]CAPDU: 80 17 00 00 [01:38:05]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [01:38:05]Write i2c OK [01:38:05]MH_I2C_Read... [01:38:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 196! [01:38:05]Read from MH i2c: E2 [01:38:05]MH_I2C_Read... [01:38:05]Read from MH i2c: E2 C7 00 [01:38:05]MH_I2C_Read... [01:38:05]Read from MH i2c: E2 C7 00 1C 00 00 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8F [01:38:05]RAPDU: 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:38:05]wFMCommunicate OK [01:38:05]SAM_PROTO_GetShiftData done [01:38:05]requested_item shift.sale.total_cash is exist - process it [01:38:05]requested_item shift.sale_refund.total is exist - process it [01:38:05]requested_item shift.sale_refund.total_cash is exist - process it [01:38:05]requested_item shift.buy.total is exist - process it [01:38:05]requested_item shift.buy.total_cash is exist - process it [01:38:05]produce_requested_data done [01:38:05]produce_requested_data return {"fm.sale.total":116855048.08,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":5030.00,"shift.sale.total_cash":5030.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} [01:38:05]process_action_free get_value [01:38:05]json_value_free [01:38:05]json_value_free done [01:38:05]process_json_proto returns [01:38:05]Send response to host [01:38:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":116855048.08,"fm.sale_refund.total":46594150.80,"fm.buy.total":0.00,"shift.sale.total":5030.00,"shift.sale.total_cash":5030.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}}} [01:38:05]free response buf [01:38:05]execute_script done [01:38:05]execute_script returns [01:38:05]free content buf [01:38:05]Sock 9.Close socket [01:38:05]Sock 9.Thread stoped [01:38:05]accept exits with 8 [01:38:05]New connection [01:38:05]New thread 3067149668 created [01:38:05]Thread 3067006308 joined [01:38:05]Waiting for new connection... [01:38:05] Sock 8.Parse request [01:38:05]Sock 8.Check first char [01:38:05]Sock 8.First char is OK [01:38:05]request: POST /json_proto HTTP/1.0 [01:38:05]Method: POST [01:38:05]URL: /json_proto [01:38:05]Method is POST - this is cgi request [01:38:05]url: /json_proto [01:38:05]query_string will be loaded in cgi processing [01:38:05]execute_cgi json_proto POST (null) [01:38:05]execute_cgi path=json_proto method=POST [01:38:05]POST find Content-Length [01:38:05]Host: 172.17.62.5:8080 [01:38:05]Content-Length: 144 [01:38:05]Content-Type: application/json [01:38:05] [01:38:05]POST finish read [01:38:05]Found Content-Length = 144 [01:38:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [01:38:05]execute_script... [01:38:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [01:38:05]POST & json_proto [01:38:05]process_json_proto [01:38:05]json parsed OK: [01:38:05]protocol is kg_v1.0 [01:38:05]action value=print_doc [01:38:05]process_action print_doc [01:38:05]ExternCall_PrintAddStr [01:38:05]wPrintStart [01:38:05]Write to MH i2c: 01 00 00 1D 00 1D [01:38:05]Write i2c OK [01:38:05]MH_I2C_Read... [01:38:05]Read from MH i2c: 01 [01:38:05]MH_I2C_Read... [01:38:05]Read from MH i2c: 01 07 00 [01:38:05]MH_I2C_Read... [01:38:05]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [01:38:05]RasterBufferAndPrint [01:38:05]line Счет N : (1)191058 [01:38:05]line ИНН: 02508201610067 [01:38:05]line Контрольно-Кассовый Чек [01:38:05]line ПРОДАЖА [01:38:05]line ТРК (МРК, ГНК) : 43 [01:38:05]line Товар: 2710124130 [01:38:05]line Аи-92-К-5 [01:38:05]line 15.530 * 64.40 [01:38:05]line = 1000.13 [01:38:05]line НДС 12% НСП 1% [01:38:05]line > о реализуемом товаре [01:38:05]line ОКРУГЛЕНИЕ: -0.13 [01:38:05]line ИТОГО: 1000.00 [01:38:05]line Внесено: 1000.00 [01:38:05]line СДАЧА: 0.00 [01:38:05]line НСП 1% : 8.85 [01:38:05]line НДС 12% : 106.21 [01:38:05]line Наличными: 1000.00 [01:38:05]line Безнал.: 0.00 [01:38:05]line Место: АЗС № 106 "Партнер Нефть" [01:38:05]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [01:38:05]line СНО: Общий режим [01:38:05]line Чек 6 20.04.2024 01:10 [01:38:05]line Смена: 371 ФФД: 1.0 [01:38:05]line ЗНМ: 0300000141 [01:38:05]line РНМ: 0000000000091573 [01:38:05]line Версия ККМ: 001 [01:38:05]line ФМ: 0000000000874652 [01:38:05]OFD Sender: No OFD packet to send [01:38:05]line ФД: 76565 [01:38:05]line ФПД: 9718575948457 [01:38:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240420T011011&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76565&fm=9718575948457&tin=02508201610067®Number=0000000000091573&sum=100000 [01:38:05]written 0, free lines is 4095 [01:38:06]Write to MH i2c: 01 00 00 47 00 47 [01:38:06]Write i2c OK [01:38:06]MH_I2C_Read... [01:38:06]Read from MH i2c: 01 [01:38:06]MH_I2C_Read... [01:38:06]Read from MH i2c: 01 07 00 [01:38:06]MH_I2C_Read... [01:38:06]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 E5 0C 3F [01:38:06]RasterBufferAndPrint [01:38:06]line [01:38:06]line [01:38:06]line [01:38:06]line [01:38:06]line [01:38:06]written 0, free lines is 3315 [01:38:06]MH_Cut [01:38:06]Write to MH i2c: D1 01 00 4E 00 01 20 [01:38:06]Write i2c OK [01:38:06]MH_I2C_Read... [01:38:06]Read from MH i2c: D1 [01:38:06]MH_I2C_Read... [01:38:06]Read from MH i2c: D1 01 00 [01:38:06]MH_I2C_Read... [01:38:06]Read from MH i2c: D1 01 00 4E 00 00 1F [01:38:06]Write to MH i2c: 01 00 00 4F 00 4F [01:38:06]Write i2c OK [01:38:06]MH_I2C_Read... [01:38:06]*** Cut start [01:38:06]*** Partial cut [01:38:06]*** CUTSNS_PIN = 1 [01:38:06]*** CUTSNS_PIN = 0 [01:38:07]*** Brake cut motor [01:38:07]Read from MH i2c: 01 [01:38:07]MH_I2C_Read... [01:38:07]*** Stop cut motor [01:38:07]*** Cut end [01:38:07]Read from MH i2c: 01 07 00 [01:38:07]MH_I2C_Read... [01:38:07]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [01:38:07]process_action print_doc done [01:38:07]requested_data is exist [01:38:07]produce_requested_data [01:38:07]produce_requested_data return (null) [01:38:07]process_action_free print_doc [01:38:07]json_value_free [01:38:07]json_value_free done [01:38:07]process_json_proto returns [01:38:07]Send response to host [01:38:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [01:38:07]free response buf [01:38:07]execute_script done [01:38:07]execute_script returns [01:38:07]free content buf [01:38:07]Sock 8.Close socket [01:38:07]Sock 8.Thread stoped [01:38:07]accept exits with 9 [01:38:07]New connection [01:38:07]New thread 3067006308 created [01:38:07]Thread 3067149668 joined [01:38:07]Waiting for new connection... [01:38:07] Sock 9.Parse request [01:38:07]Sock 9.Check first char [01:38:07]Sock 9.First char is OK [01:38:07]request: POST /json_proto HTTP/1.0 [01:38:07]Method: POST [01:38:07]URL: /json_proto [01:38:07]Method is POST - this is cgi request [01:38:07]url: /json_proto [01:38:07]query_string will be loaded in cgi processing [01:38:07]execute_cgi json_proto POST (null) [01:38:07]execute_cgi path=json_proto method=POST [01:38:07]POST find Content-Length [01:38:07]Host: 172.17.62.5:8080 [01:38:07]Content-Length: 990 [01:38:07]Content-Type: application/json [01:38:07] [01:38:07]POST finish read [01:38:07]Found Content-Length = 990 [01:38:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:38:07]execute_script... [01:38: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)191059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:38:07]POST & json_proto [01:38:07]process_json_proto [01:38:07]json parsed OK: [01:38:07]protocol is kg_v1.0 [01:38:07]action value=close_receipt [01:38:07]process_action close_receipt [01:38:07]cmd_close_receipt [01:38:07]MH_GetDate [01:38:07]Write to MH i2c: F0 00 00 50 00 3F [01:38:07]Write i2c OK [01:38:07]MH_I2C_Read... [01:38:07]Read from MH i2c: F0 [01:38:07]MH_I2C_Read... [01:38:07]Read from MH i2c: F0 09 00 [01:38:07]MH_I2C_Read... [01:38:07]Read from MH i2c: F0 09 00 50 00 00 80 1C 23 66 F4 E9 65 64 13 [01:38:07]GetLastDocTimeStamp 1713575411 [01:38:07]current date 1713577088 [01:38:07]FM_GetShiftState [01:38:07]SAM_PROTO_GetShiftState [01:38:07]wFMCommunicate request_size=4 [01:38:07]MH_SAM_APDU [01:38:07]CAPDU: 80 13 01 00 [01:38:07]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [01:38:07]Write i2c OK [01:38:07]MH_I2C_Read... [01:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:38:07]Read from MH i2c: E2 [01:38:07]MH_I2C_Read... [01:38:07]Read from MH i2c: E2 0E 00 [01:38:07]MH_I2C_Read... [01:38:07]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 53 0A 23 66 00 00 00 00 90 00 C0 [01:38:07]RAPDU: 09 00 01 53 0A 23 66 00 00 00 00 90 00 [01:38:07]wFMCommunicate OK [01:38:07]SAM_PROTO_GetShiftState done [01:38:07]FM_GetShiftState done [01:38:07]opened in 1713572435 [01:38:07]opened+sec_in_day 1713658835 [01:38:07]quantity*price = 100013 [01:38:07]sum+1 = 100015 [01:38:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 7 20.04.2024 01:38 Смена: 371 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 31.55 сом ФМ: 0000000000874652 ФД: 76566 ФПД: 110413415259637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240420T013808&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76566&fm=110413415259637&tin=02508201610067®Number=0000000000091573&sum=100000 [01:38:09]StoreToDocumentArchive [01:38:09]shift 371 fd 76566 [01:38:09]save to /storage/0371/doc_00076566 [01:38:09]save last doc name /storage/0371/doc_00076566 to /storage/kkm_last_doc_name [01:38:09]save OK [01:38:09]Clear old archive folders... [01:38:09]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:38:09]tlvbuf is 01CCD760 [01:38:09]SAM_PROTO_ClearQueue [01:38:09]wFMCommunicate request_size=4 [01:38:09]MH_SAM_APDU [01:38:09]CAPDU: 80 09 00 00 [01:38:09]Write to MH i2c: E2 08 00 5E 00 80 09 00 00 00 00 00 00 D0 [01:38:09]Write i2c OK [01:38:09]MH_I2C_Read... [01:38:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:38:09]Read from MH i2c: E2 [01:38:09]MH_I2C_Read... [01:38:09]Read from MH i2c: E2 03 00 [01:38:09]MH_I2C_Read... [01:38:09]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [01:38:09]RAPDU: 90 00 [01:38:09]wFMCommunicate OK [01:38:09]SAM_PROTO_ClearQueue done [01:38:09]KKMCreateOFDPacket [01:38:09]OFDProtocolAddRootSTLVToBuf [01:38:09]FM_MakeSignedData [01:38:09]FM_MakeSignedData [01:38:09]SAM_PROTO_SignData [01:38:09]wFMCommunicate request_size=4 [01:38:09]MH_SAM_APDU [01:38:09]CAPDU: 80 0D 01 02 [01:38:09]Write to MH i2c: E2 08 00 5F 00 80 0D 01 02 00 00 00 00 D8 [01:38:09]Write i2c OK [01:38:09]MH_I2C_Read... [01:38:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:38:09]Read from MH i2c: E2 [01:38:09]MH_I2C_Read... [01:38:09]Read from MH i2c: E2 03 00 [01:38:09]MH_I2C_Read... [01:38:09]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [01:38:09]RAPDU: 90 00 [01:38:09]wFMCommunicate OK [01:38:09]wFMCommunicate request_size=255 [01:38:09]MH_SAM_APDU [01:38:09]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 80 1C 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 16 2B 01 00 35 04 06 00 64 6B [01:38:09]Write to MH i2c: E2 02 01 60 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 80 1C 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 16 2B 01 00 35 04 06 00 64 6B 00 00 02 [01:38:09]Write i2c OK [01:38:09]MH_I2C_Read... [01:38:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:38:09]Read from MH i2c: E2 [01:38:09]MH_I2C_Read... [01:38:09]Read from MH i2c: E2 03 00 [01:38:09]MH_I2C_Read... [01:38:09]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [01:38:09]RAPDU: 90 00 [01:38:09]wFMCommunicate OK [01:38:09]wFMCommunicate request_size=9 [01:38:09]MH_SAM_APDU [01:38:09]CAPDU: 80 0D 02 02 04 A0 65 1D F5 [01:38:09]Write to MH i2c: E2 0C 00 61 00 80 0D 02 02 04 00 A0 65 1D F5 00 00 FA [01:38:09]Write i2c OK [01:38:09]MH_I2C_Read... [01:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:38:10]Read from MH i2c: E2 [01:38:10]MH_I2C_Read... [01:38:10]Read from MH i2c: E2 03 00 [01:38:10]MH_I2C_Read... [01:38:10]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [01:38:10]RAPDU: 90 00 [01:38:10]wFMCommunicate OK [01:38:10]wFMCommunicate request_size=4 [01:38:10]MH_SAM_APDU [01:38:10]CAPDU: 80 0D 03 02 [01:38:10]Write to MH i2c: E2 08 00 62 00 80 0D 03 02 00 00 00 00 DD [01:38:10]Write i2c OK [01:38:10]MH_I2C_Read... [01:38:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:38:10]Read from MH i2c: E2 [01:38:10]MH_I2C_Read... [01:38:10]Read from MH i2c: E2 0B 00 [01:38:10]MH_I2C_Read... [01:38:10]Read from MH i2c: E2 0B 00 62 00 00 10 81 0D 06 9A 76 24 1B 90 00 D1 [01:38:10]RAPDU: 10 81 0D 06 9A 76 24 1B 90 00 [01:38:10]wFMCommunicate OK [01:38:10]SAM_PROTO_SignData done [01:38:10]FM_MakeSignedData done [01:38:10]CreateOFDProtocolMessage [01:38:10]wFMCommunicate request_size=4 [01:38:10]MH_SAM_APDU [01:38:10]CAPDU: 80 11 00 00 [01:38:10]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [01:38:10]Write i2c OK [01:38:10]MH_I2C_Read... [01:38:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:38:10]Read from MH i2c: E2 [01:38:10]MH_I2C_Read... [01:38:10]Read from MH i2c: E2 17 00 [01:38:10]MH_I2C_Read... [01:38:10]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 30 [01:38:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:38:10]wFMCommunicate OK [01:38:10]CreateOFDProtocolMessage done [01:38:10]OFDSenderStorePacket 76566 [01:38:10]StoreOFDPacket docnum=76566 [01:38:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 1E EA 06 01 D7 B0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 80 1C 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 16 2B 01 00 35 04 06 00 64 6B A0 65 1D F5 10 81 0D 06 9A 76 24 1B [01:38:10]CheckFolder [01:38:10]dirname=/storage/ofd_packets [01:38:10]CheckFolder done [01:38:10]ProducePacketName [01:38:10]name=ofd_packets/00076566 [01:38:10]NVStorageSaveData ofd_packets/00076566 [01:38:10]File name is /storage/ofd_packets/00076566 [01:38:10]Write 300 bytes [01:38:10]NVStorageSaveData done [01:38:10]OFDSenderStorePacket done [01:38:10]KKMCreateOFDPacket done [01:38:10]NVStorageSaveData kkm_last_timestamp [01:38:10]File name is /storage/kkm_last_timestamp [01:38:10]Write 4 bytes [01:38:10]NVStorageSaveData done [01:38:10]ExternCall_PrintAddStr [01:38:10]wPrintStart [01:38:10]Write to MH i2c: 01 00 00 64 00 64 [01:38:10]Write i2c OK [01:38:10]MH_I2C_Read... [01:38:10]Read from MH i2c: 01 [01:38:10]MH_I2C_Read... [01:38:10]Read from MH i2c: 01 07 00 [01:38:10]MH_I2C_Read... [01:38:10]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [01:38:10]RasterBufferAndPrint [01:38:10]line Счет N : (1)191059 [01:38:10]line ИНН: 02508201610067 [01:38:10]line Контрольно-Кассовый Чек [01:38:10]line ПРОДАЖА [01:38:10]line ТРК (МРК, ГНК) : 71 [01:38:10]line Товар: 2711190000 [01:38:10]line ГАЗ-К-5 [01:38:10]line 31.550 * 31.70 [01:38:10]line = 1000.14 [01:38:10]line НДС 12% НСП 1% [01:38:10]line > о реализуемом товаре [01:38:10]line ОКРУГЛЕНИЕ: -0.14 [01:38:10]line ИТОГО: 1000.00 [01:38:10]line Внесено: 1000.00 [01:38:10]line СДАЧА: 0.00 [01:38:10]line НСП 1% : 8.85 [01:38:10]line НДС 12% : 106.21 [01:38:10]line Наличными: 1000.00 [01:38:10]line Безнал.: 0.00 [01:38:10]line Место: АЗС № 106 "Партнер Нефть" [01:38:10]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [01:38:10]line СНО: Общий режим [01:38:10]line Чек 7 20.04.2024 01:38 [01:38:10]line Смена: 371 ФФД: 1.0 [01:38:10]line ЗНМ: 0300000141 [01:38:10]line РНМ: 0000000000091573 [01:38:10]line Версия ККМ: 001 [01:38:10]line [01:38:10]line Дисконтная программа [01:38:10]line СУГ [01:38:10]line номер 106 [01:38:10]line сэкономлено 31.55 сом [01:38:10]line ФМ: 0000000000874652 [01:38:10]line ФД: 76566 [01:38:10]line ФПД: 110413415259637 [01:38:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240420T013808&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76566&fm=110413415259637&tin=02508201610067®Number=0000000000091573&sum=100000 [01:38:10]written 0, free lines is 4095 [01:38:10]OFD Sender: Processing packet 76566 [packets to send 128, broken 127] [01:38:10]ProducePacketName [01:38:10]name=ofd_packets/00076566 [01:38:10]OFD Sender: To server: pG, [01:38:10]CommunicateWithHost lk.salyk.kg:30040 [01:38:10]ConnectInit lk.salyk.kg [01:38:10]Write to MH i2c: 01 00 00 93 00 93 [01:38:10]Write i2c OK [01:38:10]MH_I2C_Read... [01:38:10]Read from MH i2c: 01 [01:38:10]MH_I2C_Read... [01:38:10]Read from MH i2c: 01 07 00 [01:38:10]MH_I2C_Read... [01:38:10]Read from MH i2c: 01 07 00 93 00 00 00 00 00 00 84 0C 2A [01:38:10]RasterBufferAndPrint [01:38:10]line [01:38:10]line [01:38:10]line [01:38:10]line [01:38:10]line [01:38:10]written 0, free lines is 3217 [01:38:10]MH_Cut [01:38:10]Write to MH i2c: D1 01 00 9A 00 01 6C [01:38:10]Write i2c OK [01:38:10]MH_I2C_Read... [01:38:10]Read from MH i2c: D1 [01:38:10]MH_I2C_Read... [01:38:10]Read from MH i2c: D1 01 00 [01:38:10]MH_I2C_Read... [01:38:10]Read from MH i2c: D1 01 00 9A 00 00 6B [01:38:10]Write to MH i2c: 01 00 00 9B 00 9B [01:38:10]Write i2c OK [01:38:10]MH_I2C_Read... [01:38:11]*** Cut start [01:38:11]*** Partial cut [01:38:11]*** CUTSNS_PIN = 1 [01:38:11]*** CUTSNS_PIN = 0 [01:38:11]*** Brake cut motor [01:38:12]Read from MH i2c: 01 [01:38:12]MH_I2C_Read... [01:38:12]*** Stop cut motor [01:38:12]*** Cut end [01:38:12]Read from MH i2c: 01 07 00 [01:38:12]MH_I2C_Read... [01:38:12]Read from MH i2c: 01 07 00 9B 00 00 00 00 00 00 FF 0F B0 [01:38:12]process_action close_receipt done [01:38:12]requested_data is exist [01:38:12]produce_requested_data [01:38:12]requested_item fm.sn is exist - process it [01:38:12]wFMCommunicate request_size=4 [01:38:12]MH_SAM_APDU [01:38:12]CAPDU: 80 11 00 00 [01:38:12]Write to MH i2c: E2 08 00 9C 00 80 11 00 00 00 00 00 00 16 [01:38:12]Write i2c OK [01:38:12]MH_I2C_Read... [01:38:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:38:12]Read from MH i2c: E2 [01:38:12]MH_I2C_Read... [01:38:12]Read from MH i2c: E2 17 00 [01:38:12]MH_I2C_Read... [01:38:12]Read from MH i2c: E2 17 00 9C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 69 [01:38:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:38:12]wFMCommunicate OK [01:38:12]requested_item fd.num is exist - process it [01:38:12]SAM_PROTO_GetFieldsCounters [01:38:12]wFMCommunicate request_size=4 [01:38:12]MH_SAM_APDU [01:38:12]CAPDU: 80 13 00 00 [01:38:12]Write to MH i2c: E2 08 00 9D 00 80 13 00 00 00 00 00 00 19 [01:38:12]Write i2c OK [01:38:12]MH_I2C_Read... [01:38:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:38:12]Read from MH i2c: E2 [01:38:12]MH_I2C_Read... [01:38:12]Read from MH i2c: E2 62 00 [01:38:12]MH_I2C_Read... [01:38:12]Read from MH i2c: E2 62 00 9D 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 16 2B 01 00 0E 04 04 00 73 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 05 [01:38: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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 16 2B 01 00 0E 04 04 00 73 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 [01:38:12]wFMCommunicate OK [01:38:12]SAM_PROTO_GetFieldsCounters done [01:38:12]requested_item shift.num is exist - process it [01:38:12]requested_item shift.opened is exist - process it [01:38:12]req_shift_opened [01:38:12]FM_GetShiftState [01:38:12]SAM_PROTO_GetShiftState [01:38:12]wFMCommunicate request_size=4 [01:38:12]MH_SAM_APDU [01:38:12]CAPDU: 80 13 01 00 [01:38:12]Write to MH i2c: E2 08 00 9E 00 80 13 01 00 00 00 00 00 1B [01:38:12]Write i2c OK [01:38:12]MH_I2C_Read... [01:38:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:38:12]Read from MH i2c: E2 [01:38:12]MH_I2C_Read... [01:38:12]Read from MH i2c: E2 0E 00 [01:38:12]MH_I2C_Read... [01:38:12]Read from MH i2c: E2 0E 00 9E 00 00 09 00 01 53 0A 23 66 00 00 00 00 90 00 0D [01:38:12]RAPDU: 09 00 01 53 0A 23 66 00 00 00 00 90 00 [01:38:12]wFMCommunicate OK [01:38:12]SAM_PROTO_GetShiftState done [01:38:12]FM_GetShiftState done [01:38:12]req_shift_opened done [01:38:12]requested_item shift.open_date is exist - process it [01:38:12]req_shift_open_date [01:38:12]req_shift_open_date done [01:38:12]produce_requested_data done [01:38:12]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76566,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435} [01:38:12]process_action_free close_receipt [01:38:12]json_value_free [01:38:12]json_value_free done [01:38:12]process_json_proto returns [01:38:12]Send response to host [01:38:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76566,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435}}} [01:38:12]free response buf [01:38:12]execute_script done [01:38:12]execute_script returns [01:38:12]free content buf [01:38:12]Sock 9.Close socket [01:38:12]Sock 9.Thread stoped [01:38:12]Connected sock=11 [01:38:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 1E EA 06 01 D7 B0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 80 1C 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 16 2B 01 00 35 04 06 00 64 6B A0 65 1D F5 10 81 0D 06 9A 76 24 1B [01:38:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 50 1D 47 00 42 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 16 2B 01 00 F4 03 04 00 0C C4 22 66 B6 04 01 00 00 DD C2 9D 7D 3F A2 E4 BA [01:38:12]CommunicateWithHost err = 0 [01:38:12]CheckOFDResponse [01:38:12]1017 (14) - 77093643461234 [01:38:12]1041 (16) - 0000000000874652 [01:38:12]1040 (4) - 76566 [01:38:12]1012 (4) - 19.04.2024 19:20 [01:38:12]1206 (1) - 0 [01:38:12]OFD Sender: Remove packet 76566 [01:38:12]ProducePacketName [01:38:12]name=ofd_packets/00076566 [01:38:12]NVStorageDeleteData [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:48]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:08]OFD Sender: No OFD packet to send [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:23]OFD Sender: No OFD packet to send [01:39:28]OFD Sender: No OFD packet to send [01:39:33]OFD Sender: No OFD packet to send [01:39:38]OFD Sender: No OFD packet to send [01:39:40]accept exits with 8 [01:39:40]New connection [01:39:40]New thread 3067149668 created [01:39:40]Thread 3067006308 joined [01:39:40]Waiting for new connection... [01:39:40] Sock 8.Parse request [01:39:40]Sock 8.Check first char [01:39:40]Sock 8.First char is OK [01:39:40]request: POST /json_proto HTTP/1.0 [01:39:40]Method: POST [01:39:40]URL: /json_proto [01:39:40]Method is POST - this is cgi request [01:39:40]url: /json_proto [01:39:40]query_string will be loaded in cgi processing [01:39:40]execute_cgi json_proto POST (null) [01:39:40]execute_cgi path=json_proto method=POST [01:39:40]POST find Content-Length [01:39:40]Host: 172.17.62.5:8080 [01:39:40]Content-Length: 680 [01:39:40]Content-Type: application/json [01:39:40] [01:39:40]POST finish read [01:39:40]Found Content-Length = 680 [01:39:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 9.330, "sum" : 305.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 305.00, "total" : 305.00, "payments": [ { "type": 0, "sum" : 305.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:39:40]execute_script... [01:39:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 9.330, "sum" : 305.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 305.00, "total" : 305.00, "payments": [ { "type": 0, "sum" : 305.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:39:40]POST & json_proto [01:39:40]process_json_proto [01:39:40]json parsed OK: [01:39:40]protocol is kg_v1.0 [01:39:40]action value=close_receipt [01:39:40]process_action close_receipt [01:39:40]cmd_close_receipt [01:39:40]MH_GetDate [01:39:40]Write to MH i2c: F0 00 00 9F 00 8E [01:39:40]Write i2c OK [01:39:40]MH_I2C_Read... [01:39:40]Read from MH i2c: F0 [01:39:40]MH_I2C_Read... [01:39:40]Read from MH i2c: F0 09 00 [01:39:40]MH_I2C_Read... [01:39:40]Read from MH i2c: F0 09 00 9F 00 00 DC 1C 23 66 F4 E9 65 64 BE [01:39:40]GetLastDocTimeStamp 1713577088 [01:39:40]current date 1713577180 [01:39:40]FM_GetShiftState [01:39:40]SAM_PROTO_GetShiftState [01:39:40]wFMCommunicate request_size=4 [01:39:40]MH_SAM_APDU [01:39:40]CAPDU: 80 13 01 00 [01:39:40]Write to MH i2c: E2 08 00 A0 00 80 13 01 00 00 00 00 00 1D [01:39:40]Write i2c OK [01:39:40]MH_I2C_Read... [01:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:39:40]Read from MH i2c: E2 [01:39:40]MH_I2C_Read... [01:39:40]Read from MH i2c: E2 0E 00 [01:39:40]MH_I2C_Read... [01:39:40]Read from MH i2c: E2 0E 00 A0 00 00 09 00 01 53 0A 23 66 00 00 00 00 90 00 0F [01:39:40]RAPDU: 09 00 01 53 0A 23 66 00 00 00 00 90 00 [01:39:40]wFMCommunicate OK [01:39:40]SAM_PROTO_GetShiftState done [01:39:40]FM_GetShiftState done [01:39:40]opened in 1713572435 [01:39:40]opened+sec_in_day 1713658835 [01:39:40]quantity*price = 30509 [01:39:40]sum+1 = 30510 [01:39:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 305.00 Внесено: 305.00 СДАЧА: 0.00 НСП 1% : 2.70 НДС 12% : 32.40 Наличными: 305.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 8 20.04.2024 01:39 Смена: 371 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76567 ФПД: 50791416563676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240420T013940&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76567&fm=50791416563676&tin=02508201610067®Number=0000000000091573&sum=30500 [01:39:41]StoreToDocumentArchive [01:39:41]shift 371 fd 76567 [01:39:41]save to /storage/0371/doc_00076567 [01:39:41]save last doc name /storage/0371/doc_00076567 to /storage/kkm_last_doc_name [01:39:41]save OK [01:39:41]Clear old archive folders... [01:39:41]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:39:41]tlvbuf is 01C97120 [01:39:41]SAM_PROTO_ClearQueue [01:39:41]wFMCommunicate request_size=4 [01:39:41]MH_SAM_APDU [01:39:41]CAPDU: 80 09 00 00 [01:39:41]Write to MH i2c: E2 08 00 AD 00 80 09 00 00 00 00 00 00 1F [01:39:41]Write i2c OK [01:39:41]MH_I2C_Read... [01:39:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:39:41]Read from MH i2c: E2 [01:39:41]MH_I2C_Read... [01:39:41]Read from MH i2c: E2 03 00 [01:39:41]MH_I2C_Read... [01:39:41]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [01:39:41]RAPDU: 90 00 [01:39:41]wFMCommunicate OK [01:39:41]SAM_PROTO_ClearQueue done [01:39:41]KKMCreateOFDPacket [01:39:41]OFDProtocolAddRootSTLVToBuf [01:39:41]FM_MakeSignedData [01:39:41]FM_MakeSignedData [01:39:41]SAM_PROTO_SignData [01:39:41]wFMCommunicate request_size=4 [01:39:41]MH_SAM_APDU [01:39:41]CAPDU: 80 0D 01 02 [01:39:41]Write to MH i2c: E2 08 00 AE 00 80 0D 01 02 00 00 00 00 27 [01:39:41]Write i2c OK [01:39:41]MH_I2C_Read... [01:39:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:39:41]Read from MH i2c: E2 [01:39:41]MH_I2C_Read... [01:39:41]Read from MH i2c: E2 03 00 [01:39:41]MH_I2C_Read... [01:39:41]Read from MH i2c: E2 03 00 AE 00 00 90 00 22 [01:39:41]RAPDU: 90 00 [01:39:41]wFMCommunicate OK [01:39:41]wFMCommunicate request_size=255 [01:39:41]MH_SAM_APDU [01:39:41]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 72 24 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 2D 77 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0C 00 00 00 00 07 04 06 00 24 77 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 DC 1C 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 17 2B 01 00 35 04 06 00 2E 31 [01:39:41]Write to MH i2c: E2 02 01 AF 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 72 24 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 2D 77 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0C 00 00 00 00 07 04 06 00 24 77 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 DC 1C 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 17 2B 01 00 35 04 06 00 2E 31 00 00 7C [01:39:41]Write i2c OK [01:39:41]MH_I2C_Read... [01:39:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:39:42]Read from MH i2c: E2 [01:39:42]MH_I2C_Read... [01:39:42]Read from MH i2c: E2 03 00 [01:39:42]MH_I2C_Read... [01:39:42]Read from MH i2c: E2 03 00 AF 00 00 90 00 23 [01:39:42]RAPDU: 90 00 [01:39:42]wFMCommunicate OK [01:39:42]wFMCommunicate request_size=9 [01:39:42]MH_SAM_APDU [01:39:42]CAPDU: 80 0D 02 02 04 CC 57 87 DC [01:39:42]Write to MH i2c: E2 0C 00 B0 00 80 0D 02 02 04 00 CC 57 87 DC 00 00 B8 [01:39:42]Write i2c OK [01:39:42]MH_I2C_Read... [01:39:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:39:42]Read from MH i2c: E2 [01:39:42]MH_I2C_Read... [01:39:42]Read from MH i2c: E2 03 00 [01:39:42]MH_I2C_Read... [01:39:42]Read from MH i2c: E2 03 00 B0 00 00 90 00 24 [01:39:42]RAPDU: 90 00 [01:39:42]wFMCommunicate OK [01:39:42]wFMCommunicate request_size=4 [01:39:42]MH_SAM_APDU [01:39:42]CAPDU: 80 0D 03 02 [01:39:42]Write to MH i2c: E2 08 00 B1 00 80 0D 03 02 00 00 00 00 2C [01:39:42]Write i2c OK [01:39:42]MH_I2C_Read... [01:39:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:39:42]Read from MH i2c: E2 [01:39:42]MH_I2C_Read... [01:39:42]Read from MH i2c: E2 0B 00 [01:39:42]MH_I2C_Read... [01:39:42]Read from MH i2c: E2 0B 00 B1 00 00 6B C7 59 CA 7A BA 3D 4E 90 00 41 [01:39:42]RAPDU: 6B C7 59 CA 7A BA 3D 4E 90 00 [01:39:42]wFMCommunicate OK [01:39:42]SAM_PROTO_SignData done [01:39:42]FM_MakeSignedData done [01:39:42]CreateOFDProtocolMessage [01:39:42]wFMCommunicate request_size=4 [01:39:42]MH_SAM_APDU [01:39:42]CAPDU: 80 11 00 00 [01:39:42]Write to MH i2c: E2 08 00 B2 00 80 11 00 00 00 00 00 00 2C [01:39:42]Write i2c OK [01:39:42]MH_I2C_Read... [01:39:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:39:42]Read from MH i2c: E2 [01:39:42]MH_I2C_Read... [01:39:42]Read from MH i2c: E2 17 00 [01:39:42]MH_I2C_Read... [01:39:42]Read from MH i2c: E2 17 00 B2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7F [01:39:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:39:42]wFMCommunicate OK [01:39:42]CreateOFDProtocolMessage done [01:39:42]OFDSenderStorePacket 76567 [01:39:42]StoreOFDPacket docnum=76567 [01:39:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 67 0F 06 01 07 55 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 72 24 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 2D 77 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0C 00 00 00 00 07 04 06 00 24 77 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 DC 1C 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 17 2B 01 00 35 04 06 00 2E 31 CC 57 87 DC 6B C7 59 CA 7A BA 3D 4E [01:39:42]CheckFolder [01:39:42]dirname=/storage/ofd_packets [01:39:42]CheckFolder done [01:39:42]ProducePacketName [01:39:42]name=ofd_packets/00076567 [01:39:42]NVStorageSaveData ofd_packets/00076567 [01:39:42]File name is /storage/ofd_packets/00076567 [01:39:42]Write 300 bytes [01:39:42]NVStorageSaveData done [01:39:42]OFDSenderStorePacket done [01:39:42]KKMCreateOFDPacket done [01:39:42]NVStorageSaveData kkm_last_timestamp [01:39:42]File name is /storage/kkm_last_timestamp [01:39:42]Write 4 bytes [01:39:42]NVStorageSaveData done [01:39:42]ExternCall_PrintAddStr [01:39:42]wPrintStart [01:39:42]Write to MH i2c: 01 00 00 B3 00 B3 [01:39:42]Write i2c OK [01:39:42]MH_I2C_Read... [01:39:42]Read from MH i2c: 01 [01:39:42]MH_I2C_Read... [01:39:42]Read from MH i2c: 01 07 00 [01:39:42]MH_I2C_Read... [01:39:42]Read from MH i2c: 01 07 00 B3 00 00 00 00 00 00 FF 0F C8 [01:39:42]RasterBufferAndPrint [01:39:42]line Счет N : (1)191062 [01:39:42]line ИНН: 02508201610067 [01:39:42]line Контрольно-Кассовый Чек [01:39:42]line ПРОДАЖА [01:39:42]line ТРК (МРК, ГНК) : 71 [01:39:42]line Товар: 2711190000 [01:39:42]line ГАЗ-К-5 [01:39:42]line 9.330 * 32.70 [01:39:42]line = 305.09 [01:39:42]line НДС 12% НСП 1% [01:39:42]line > о реализуемом товаре [01:39:42]line ОКРУГЛЕНИЕ: -0.09 [01:39:42]line ИТОГО: 305.00 [01:39:42]line Внесено: 305.00 [01:39:42]line СДАЧА: 0.00 [01:39:42]line НСП 1% : 2.70 [01:39:42]line НДС 12% : 32.40 [01:39:42]line Наличными: 305.00 [01:39:42]line Безнал.: 0.00 [01:39:42]line Место: АЗС № 106 "Партнер Нефть" [01:39:42]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [01:39:42]line СНО: Общий режим [01:39:42]line Чек 8 20.04.2024 01:39 [01:39:42]line Смена: 371 ФФД: 1.0 [01:39:42]line ЗНМ: 0300000141 [01:39:42]line РНМ: 0000000000091573 [01:39:42]line Версия ККМ: 001 [01:39:42]line ФМ: 0000000000874652 [01:39:42]line ФД: 76567 [01:39:42]line ФПД: 50791416563676 [01:39:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240420T013940&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76567&fm=50791416563676&tin=02508201610067®Number=0000000000091573&sum=30500 [01:39:42]OFD Sender: Processing packet 76567 [packets to send 128, broken 127] [01:39:42]ProducePacketName [01:39:42]name=ofd_packets/00076567 [01:39:42]OFD Sender: To server: pG, [01:39:42]CommunicateWithHost lk.salyk.kg:30040 [01:39:42]ConnectInit lk.salyk.kg [01:39:42]written 0, free lines is 4095 [01:39:42]Connected sock=9 [01:39:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 67 0F 06 01 07 55 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 72 24 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 2D 77 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0C 00 00 00 00 07 04 06 00 24 77 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 DC 1C 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 17 2B 01 00 35 04 06 00 2E 31 CC 57 87 DC 6B C7 59 CA 7A BA 3D 4E [01:39:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 08 43 47 00 B7 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 34 36 35 32 10 04 04 00 17 2B 01 00 F4 03 04 00 66 C4 22 66 B6 04 01 00 00 3E A0 52 F0 55 E9 AF 94 [01:39:42]CommunicateWithHost err = 0 [01:39:42]CheckOFDResponse [01:39:42]1017 (14) - 77093643461234 [01:39:42]1041 (16) - 0000000000874652 [01:39:42]1040 (4) - 76567 [01:39:42]1012 (4) - 19.04.2024 19:22 [01:39:42]1206 (1) - 0 [01:39:42]OFD Sender: Remove packet 76567 [01:39:42]ProducePacketName [01:39:42]name=ofd_packets/00076567 [01:39:42]NVStorageDeleteData [01:39:43]Write to MH i2c: 01 00 00 DD 00 DD [01:39:43]Write i2c OK [01:39:43]MH_I2C_Read... [01:39:43]Read from MH i2c: 01 [01:39:43]MH_I2C_Read... [01:39:43]Read from MH i2c: 01 07 00 [01:39:43]MH_I2C_Read... [01:39:43]Read from MH i2c: 01 07 00 DD 00 00 00 00 00 00 E0 0C D0 [01:39:43]RasterBufferAndPrint [01:39:43]line [01:39:43]line [01:39:43]line [01:39:43]line [01:39:43]line [01:39:43]written 0, free lines is 3302 [01:39:43]MH_Cut [01:39:43]Write to MH i2c: D1 01 00 E4 00 01 B6 [01:39:43]Write i2c OK [01:39:43]MH_I2C_Read... [01:39:43]Read from MH i2c: D1 [01:39:43]MH_I2C_Read... [01:39:43]Read from MH i2c: D1 01 00 [01:39:43]MH_I2C_Read... [01:39:43]Read from MH i2c: D1 01 00 E4 00 00 B5 [01:39:43]Write to MH i2c: 01 00 00 E5 00 E5 [01:39:43]Write i2c OK [01:39:43]MH_I2C_Read... [01:39:43]OFD Sender: No OFD packet to send [01:39:43]*** Cut start [01:39:43]*** Partial cut [01:39:43]*** CUTSNS_PIN = 1 [01:39:43]*** CUTSNS_PIN = 0 [01:39:44]*** Brake cut motor [01:39:44]Read from MH i2c: 01 [01:39:44]MH_I2C_Read... [01:39:44]*** Stop cut motor [01:39:44]*** Cut end [01:39:44]Read from MH i2c: 01 07 00 [01:39:44]MH_I2C_Read... [01:39:44]Read from MH i2c: 01 07 00 E5 00 00 00 00 00 00 FF 0F FA [01:39:44]process_action close_receipt done [01:39:44]requested_data is exist [01:39:44]produce_requested_data [01:39:44]requested_item fm.sn is exist - process it [01:39:44]wFMCommunicate request_size=4 [01:39:44]MH_SAM_APDU [01:39:44]CAPDU: 80 11 00 00 [01:39:44]Write to MH i2c: E2 08 00 E6 00 80 11 00 00 00 00 00 00 60 [01:39:44]Write i2c OK [01:39:44]MH_I2C_Read... [01:39:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:39:44]Read from MH i2c: E2 [01:39:44]MH_I2C_Read... [01:39:44]Read from MH i2c: E2 17 00 [01:39:44]MH_I2C_Read... [01:39:44]Read from MH i2c: E2 17 00 E6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B3 [01:39:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:39:44]wFMCommunicate OK [01:39:44]requested_item fd.num is exist - process it [01:39:44]SAM_PROTO_GetFieldsCounters [01:39:44]wFMCommunicate request_size=4 [01:39:44]MH_SAM_APDU [01:39:44]CAPDU: 80 13 00 00 [01:39:44]Write to MH i2c: E2 08 00 E7 00 80 13 00 00 00 00 00 00 63 [01:39:44]Write i2c OK [01:39:44]MH_I2C_Read... [01:39:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:39:44]Read from MH i2c: E2 [01:39:44]MH_I2C_Read... [01:39:44]Read from MH i2c: E2 62 00 [01:39:44]MH_I2C_Read... [01:39:44]Read from MH i2c: E2 62 00 E7 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 17 2B 01 00 0E 04 04 00 73 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 53 [01:39:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 17 2B 01 00 0E 04 04 00 73 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 [01:39:44]wFMCommunicate OK [01:39:44]SAM_PROTO_GetFieldsCounters done [01:39:44]requested_item shift.num is exist - process it [01:39:44]requested_item shift.opened is exist - process it [01:39:44]req_shift_opened [01:39:44]FM_GetShiftState [01:39:44]SAM_PROTO_GetShiftState [01:39:44]wFMCommunicate request_size=4 [01:39:44]MH_SAM_APDU [01:39:44]CAPDU: 80 13 01 00 [01:39:44]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [01:39:44]Write i2c OK [01:39:44]MH_I2C_Read... [01:39:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:39:44]Read from MH i2c: E2 [01:39:44]MH_I2C_Read... [01:39:44]Read from MH i2c: E2 0E 00 [01:39:44]MH_I2C_Read... [01:39:44]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 53 0A 23 66 00 00 00 00 90 00 57 [01:39:44]RAPDU: 09 00 01 53 0A 23 66 00 00 00 00 90 00 [01:39:44]wFMCommunicate OK [01:39:44]SAM_PROTO_GetShiftState done [01:39:44]FM_GetShiftState done [01:39:44]req_shift_opened done [01:39:44]requested_item shift.open_date is exist - process it [01:39:44]req_shift_open_date [01:39:44]req_shift_open_date done [01:39:44]produce_requested_data done [01:39:44]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76567,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435} [01:39:44]process_action_free close_receipt [01:39:44]json_value_free [01:39:44]json_value_free done [01:39:44]process_json_proto returns [01:39:44]Send response to host [01:39:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76567,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435}}} [01:39:44]free response buf [01:39:44]execute_script done [01:39:44]execute_script returns [01:39:44]free content buf [01:39:44]Sock 8.Close socket [01:39:44]Sock 8.Thread stoped [01:39:48]OFD Sender: No OFD packet to send [01:39:53]OFD Sender: No OFD packet to send [01:39:58]OFD Sender: No OFD packet to send [01:40:03]OFD Sender: No OFD packet to send [01:40:08]OFD Sender: No OFD packet to send [01:40:13]OFD Sender: No OFD packet to send [01:40:18]OFD Sender: No OFD packet to send [01:40:23]OFD Sender: No OFD packet to send [01:40:28]OFD Sender: No OFD packet to send [01:40:33]OFD Sender: No OFD packet to send [01:40:38]OFD Sender: No OFD packet to send [01:40:43]OFD Sender: No OFD packet to send [01:40:48]OFD Sender: No OFD packet to send [01:40:53]OFD Sender: No OFD packet to send [01:40:58]OFD Sender: No OFD packet to send [01:41:03]OFD Sender: No OFD packet to send [01:41:08]OFD Sender: No OFD packet to send [01:41:13]OFD Sender: No OFD packet to send [01:41:18]OFD Sender: No OFD packet to send [01:41:23]OFD Sender: No OFD packet to send [01:41:28]OFD Sender: No OFD packet to send [01:41:33]OFD Sender: No OFD packet to send [01:41:38]OFD Sender: No OFD packet to send [01:41:43]OFD Sender: No OFD packet to send [01:41:48]OFD Sender: No OFD packet to send [01:41:53]OFD Sender: No OFD packet to send [01:41:58]OFD Sender: No OFD packet to send [01:42:03]OFD Sender: No OFD packet to send [01:42:08]OFD Sender: No OFD packet to send [01:42:13]OFD Sender: No OFD packet to send [01:42:18]OFD Sender: No OFD packet to send [01:42:23]OFD Sender: No OFD packet to send [01:42:28]OFD Sender: No OFD packet to send [01:42:33]OFD Sender: No OFD packet to send [01:42:38]OFD Sender: No OFD packet to send [01:42:43]OFD Sender: No OFD packet to send [01:42:48]OFD Sender: No OFD packet to send [01:42:53]OFD Sender: No OFD packet to send [01:42:58]OFD Sender: No OFD packet to send [01:43:03]OFD Sender: No OFD packet to send [01:43:08]OFD Sender: No OFD packet to send [01:43:13]OFD Sender: No OFD packet to send [01:43:18]OFD Sender: No OFD packet to send [01:43:23]OFD Sender: No OFD packet to send [01:43:28]OFD Sender: No OFD packet to send [01:43:32]accept exits with 10 [01:43:32]New connection [01:43:32]New thread 3067006308 created [01:43:32]Thread 3067149668 joined [01:43:32]Waiting for new connection... [01:43:32] Sock 10.Parse request [01:43:32]Sock 10.Check first char [01:43:32]Sock 10.First char is OK [01:43:32]request: POST /json_proto HTTP/1.0 [01:43:32]Method: POST [01:43:32]URL: /json_proto [01:43:32]Method is POST - this is cgi request [01:43:32]url: /json_proto [01:43:32]query_string will be loaded in cgi processing [01:43:32]execute_cgi json_proto POST (null) [01:43:32]execute_cgi path=json_proto method=POST [01:43:32]POST find Content-Length [01:43:32]Host: 172.17.62.5:8080 [01:43:32]Content-Length: 1172 [01:43:32]Content-Type: application/json [01:43:32] [01:43:32]POST finish read [01:43:32]Found Content-Length = 1172 [01:43:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191063\u000A20.04.2024 01:25\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 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\u000A30146841\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:43:32]execute_script... [01:43:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191063\u000A20.04.2024 01:25\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 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\u000A30146841\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:43:32]POST & json_proto [01:43:32]process_json_proto [01:43:32]json parsed OK: [01:43:32]protocol is kg_v1.0 [01:43:32]action value=print_text [01:43:32]process_action print_text [01:43:32]cmd_print_text [01:43:32]ExternCall_PrintAddStr [01:43:32]wPrintStart [01:43:32]Write to MH i2c: 01 00 00 E9 00 E9 [01:43:32]Write i2c OK [01:43:32]MH_I2C_Read... [01:43:32]Read from MH i2c: 01 [01:43:32]MH_I2C_Read... [01:43:32]Read from MH i2c: 01 07 00 [01:43:32]MH_I2C_Read... [01:43:32]Read from MH i2c: 01 07 00 E9 00 00 00 00 00 00 FF 0F FE [01:43:32]RasterBufferAndPrint [01:43:32]line *****ТОВАРНЫЙ ЧЕК***** [01:43:32]line АЗС 106 [01:43:32]line Партнер нефть [01:43:32]line 02508201610067 [01:43:32]line Кассир : Токторбаева Н. [01:43:32]line Счет N : (1)191063 [01:43:32]line 20.04.2024 01:25 [01:43:32]line ПРОДАЖА [01:43:32]line ТРК (МРК, ГНК): 51 [01:43:32]line Вид ГСМ : 2710194210 [01:43:32]line ДТ-К-5 [01:43:32]line 50.000 x 72.90 [01:43:32]line ИТОГ: 3645.00 [01:43:32]line Тип оплаты: Талоны: ТК ГПНА Online [01:43:32]line 30146841 [01:43:32]line ______________________ [01:43:32]line (подпись) [01:43:32]written 0, free lines is 4095 [01:43:32]Write to MH i2c: 01 00 00 FE 00 FE [01:43:32]Write i2c OK [01:43:32]MH_I2C_Read... [01:43:32]Read from MH i2c: 01 [01:43:32]MH_I2C_Read... [01:43:32]Read from MH i2c: 01 07 00 [01:43:32]MH_I2C_Read... [01:43:32]Read from MH i2c: 01 07 00 FE 00 00 00 00 00 00 F2 0D 04 [01:43:32]RasterBufferAndPrint [01:43:32]line [01:43:32]line [01:43:32]line [01:43:32]line [01:43:32]line [01:43:32]written 0, free lines is 3572 [01:43:32]MH_Cut [01:43:32]Write to MH i2c: D1 01 00 05 01 01 D8 [01:43:32]Write i2c OK [01:43:32]MH_I2C_Read... [01:43:32]Read from MH i2c: D1 [01:43:32]MH_I2C_Read... [01:43:32]Read from MH i2c: D1 01 00 [01:43:32]MH_I2C_Read... [01:43:32]Read from MH i2c: D1 01 00 05 01 00 D7 [01:43:32]Write to MH i2c: 01 00 00 06 01 07 [01:43:32]Write i2c OK [01:43:32]MH_I2C_Read... [01:43:33]*** Cut start [01:43:33]*** Partial cut [01:43:33]*** CUTSNS_PIN = 1 [01:43:33]*** CUTSNS_PIN = 0 [01:43:33]OFD Sender: No OFD packet to send [01:43:33]*** Brake cut motor [01:43:34]Read from MH i2c: 01 [01:43:34]MH_I2C_Read... [01:43:34]Read from MH i2c: 01 07 00 [01:43:34]MH_I2C_Read... [01:43:34]*** Stop cut motor [01:43:34]*** Cut end [01:43:34]Read from MH i2c: 01 07 00 06 01 00 00 00 00 00 FF 0F 1C [01:43:34]process_action print_text done [01:43:34]requested_data is exist [01:43:34]produce_requested_data [01:43:34]requested_item fm.sn is exist - process it [01:43:34]wFMCommunicate request_size=4 [01:43:34]MH_SAM_APDU [01:43:34]CAPDU: 80 11 00 00 [01:43:34]Write to MH i2c: E2 08 00 07 01 80 11 00 00 00 00 00 00 82 [01:43:34]Write i2c OK [01:43:34]MH_I2C_Read... [01:43:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:43:34]Read from MH i2c: E2 [01:43:34]MH_I2C_Read... [01:43:34]Read from MH i2c: E2 17 00 [01:43:34]MH_I2C_Read... [01:43:34]Read from MH i2c: E2 17 00 07 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D5 [01:43:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [01:43:34]wFMCommunicate OK [01:43:34]requested_item fd.num is exist - process it [01:43:34]SAM_PROTO_GetFieldsCounters [01:43:34]wFMCommunicate request_size=4 [01:43:34]MH_SAM_APDU [01:43:34]CAPDU: 80 13 00 00 [01:43:34]Write to MH i2c: E2 08 00 08 01 80 13 00 00 00 00 00 00 85 [01:43:34]Write i2c OK [01:43:34]MH_I2C_Read... [01:43:34]Read from MH i2c: E2 [01:43:34]MH_I2C_Read... [01:43:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:43:34]Read from MH i2c: E2 62 00 [01:43:34]MH_I2C_Read... [01:43:34]Read from MH i2c: E2 62 00 08 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 17 2B 01 00 0E 04 04 00 73 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 75 [01:43:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 17 2B 01 00 0E 04 04 00 73 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 [01:43:34]wFMCommunicate OK [01:43:34]SAM_PROTO_GetFieldsCounters done [01:43:34]requested_item shift.num is exist - process it [01:43:34]requested_item shift.opened is exist - process it [01:43:34]req_shift_opened [01:43:34]FM_GetShiftState [01:43:34]SAM_PROTO_GetShiftState [01:43:34]wFMCommunicate request_size=4 [01:43:34]MH_SAM_APDU [01:43:34]CAPDU: 80 13 01 00 [01:43:34]Write to MH i2c: E2 08 00 09 01 80 13 01 00 00 00 00 00 87 [01:43:34]Write i2c OK [01:43:34]MH_I2C_Read... [01:43:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:43:34]Read from MH i2c: E2 [01:43:34]MH_I2C_Read... [01:43:34]Read from MH i2c: E2 0E 00 [01:43:34]MH_I2C_Read... [01:43:34]Read from MH i2c: E2 0E 00 09 01 00 09 00 01 53 0A 23 66 00 00 00 00 90 00 79 [01:43:34]RAPDU: 09 00 01 53 0A 23 66 00 00 00 00 90 00 [01:43:34]wFMCommunicate OK [01:43:34]SAM_PROTO_GetShiftState done [01:43:34]FM_GetShiftState done [01:43:34]req_shift_opened done [01:43:34]requested_item shift.open_date is exist - process it [01:43:34]req_shift_open_date [01:43:34]req_shift_open_date done [01:43:34]produce_requested_data done [01:43:34]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76567,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435} [01:43:34]process_action_free print_text [01:43:34]json_value_free [01:43:34]json_value_free done [01:43:34]process_json_proto returns [01:43:34]Send response to host [01:43:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76567,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435}}} [01:43:34]free response buf [01:43:34]execute_script done [01:43:34]execute_script returns [01:43:34]free content buf [01:43:34]Sock 10.Close socket [01:43:34]Sock 10.Thread stoped [01:43:38]OFD Sender: No OFD packet to send [01:43:43]OFD Sender: No OFD packet to send [01:43:48]OFD Sender: No OFD packet to send [01:43:53]OFD Sender: No OFD packet to send [01:43:58]OFD Sender: No OFD packet to send [01:44:03]OFD Sender: No OFD packet to send [01:44:08]OFD Sender: No OFD packet to send [01:44:13]OFD Sender: No OFD packet to send [01:44:18]OFD Sender: No OFD packet to send [01:44:23]OFD Sender: No OFD packet to send [01:44:28]OFD Sender: No OFD packet to send [01:44:33]OFD Sender: No OFD packet to send [01:44:38]OFD Sender: No OFD packet to send [01:44:43]OFD Sender: No OFD packet to send [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]OFD Sender: No OFD packet to send [01:46:33]OFD Sender: No OFD packet to send [01:46:38]OFD Sender: No OFD packet to send [01:46:43]OFD Sender: No OFD packet to send [01:46:48]OFD Sender: No OFD packet to send [01:46:53]OFD Sender: No OFD packet to send [01:46:58]OFD Sender: No OFD packet to send [01:47:03]OFD Sender: No OFD packet to send [01:47:08]OFD Sender: No OFD packet to send [01:47:13]OFD Sender: No OFD packet to send [01:47:18]OFD Sender: No OFD packet to send [01:47:23]OFD Sender: No OFD packet to send [01:47:28]OFD Sender: No OFD packet to send [01:47:33]OFD Sender: No OFD packet to send [01:47:38]OFD Sender: No OFD packet to send [01:47:43]OFD Sender: No OFD packet to send [01:47:48]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:29]OFD Sender: No OFD packet to send [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:54]OFD Sender: No OFD packet to send [01:56:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:24]OFD Sender: No OFD packet to send [01:59:29]OFD Sender: No OFD packet to send [01:59:34]OFD Sender: No OFD packet to send [01:59:39]OFD Sender: No OFD packet to send [01:59:44]OFD Sender: No OFD packet to send [01:59:49]OFD Sender: No OFD packet to send [01:59:54]OFD Sender: No OFD packet to send [01:59:59]OFD Sender: No OFD packet to send [02:00:04]OFD Sender: No OFD packet to send [02:00:09]OFD Sender: No OFD packet to send [02:00:14]OFD Sender: No OFD packet to send [02:00:19]OFD Sender: No OFD packet to send [02:00:24]OFD Sender: No OFD packet to send [02:00:29]OFD Sender: No OFD packet to send [02:00:34]OFD Sender: No OFD packet to send [02:00:39]OFD Sender: No OFD packet to send [02:00:44]OFD Sender: No OFD packet to send [02:00:49]OFD Sender: No OFD packet to send [02:00:54]OFD Sender: No OFD packet to send [02:00:59]OFD Sender: No OFD packet to send [02:01:04]OFD Sender: No OFD packet to send [02:01:09]OFD Sender: No OFD packet to send [02:01:14]OFD Sender: No OFD packet to send [02:01:19]OFD Sender: No OFD packet to send [02:01:24]OFD Sender: No OFD packet to send [02:01:29]OFD Sender: No OFD packet to send [02:01:34]OFD Sender: No OFD packet to send [02:01:39]OFD Sender: No OFD packet to send [02:01:44]OFD Sender: No OFD packet to send [02:01:49]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:10]OFD Sender: No OFD packet to send [02:05:15]OFD Sender: No OFD packet to send [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:56]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:02]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]accept exits with 9 [02:43:02]New connection [02:43:02]New thread 3067149668 created [02:43:02]Thread 3067006308 joined [02:43:02]Waiting for new connection... [02:43:02] Sock 9.Parse request [02:43:02]Sock 9.Check first char [02:43:02]Sock 9.First char is OK [02:43:02]request: POST /json_proto HTTP/1.0 [02:43:02]Method: POST [02:43:02]URL: /json_proto [02:43:02]Method is POST - this is cgi request [02:43:02]url: /json_proto [02:43:02]query_string will be loaded in cgi processing [02:43:02]execute_cgi json_proto POST (null) [02:43:02]execute_cgi path=json_proto method=POST [02:43:02]POST find Content-Length [02:43:02]Host: 172.17.62.5:8080 [02:43:02]Content-Length: 677 [02:43:02]Content-Type: application/json [02:43:02] [02:43:02]POST finish read [02:43:02]Found Content-Length = 677 [02:43:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191064", "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" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:43:02]execute_script... [02:43:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191064", "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" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:43:02]POST & json_proto [02:43:02]process_json_proto [02:43:02]json parsed OK: [02:43:02]protocol is kg_v1.0 [02:43:02]action value=close_receipt [02:43:02]process_action close_receipt [02:43:02]cmd_close_receipt [02:43:02]MH_GetDate [02:43:02]Write to MH i2c: F0 00 00 0A 01 FA [02:43:02]Write i2c OK [02:43:02]MH_I2C_Read... [02:43:02]Read from MH i2c: F0 [02:43:02]MH_I2C_Read... [02:43:02]Read from MH i2c: F0 09 00 [02:43:02]MH_I2C_Read... [02:43:02]Read from MH i2c: F0 09 00 0A 01 00 B6 2B 23 66 F4 E9 65 64 13 [02:43:02]GetLastDocTimeStamp 1713577180 [02:43:02]current date 1713580982 [02:43:02]FM_GetShiftState [02:43:02]SAM_PROTO_GetShiftState [02:43:02]wFMCommunicate request_size=4 [02:43:02]MH_SAM_APDU [02:43:02]CAPDU: 80 13 01 00 [02:43:02]Write to MH i2c: E2 08 00 0B 01 80 13 01 00 00 00 00 00 89 [02:43:02]Write i2c OK [02:43:02]MH_I2C_Read... [02:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:43:02]Read from MH i2c: E2 [02:43:02]MH_I2C_Read... [02:43:02]Read from MH i2c: E2 0E 00 [02:43:02]MH_I2C_Read... [02:43:02]Read from MH i2c: E2 0E 00 0B 01 00 09 00 01 53 0A 23 66 00 00 00 00 90 00 7B [02:43:02]RAPDU: 09 00 01 53 0A 23 66 00 00 00 00 90 00 [02:43:02]wFMCommunicate OK [02:43:02]SAM_PROTO_GetShiftState done [02:43:02]FM_GetShiftState done [02:43:02]opened in 1713572435 [02:43:02]opened+sec_in_day 1713658835 [02:43:02]quantity*price = 50038 [02:43:02]sum+1 = 50040 [02:43:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 9 20.04.2024 02:43 Смена: 371 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76568 ФПД: 264229641312082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240420T024302&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76568&fm=264229641312082&tin=02508201610067®Number=0000000000091573&sum=50000 [02:43:03]StoreToDocumentArchive [02:43:03]shift 371 fd 76568 [02:43:03]save to /storage/0371/doc_00076568 [02:43:03]save last doc name /storage/0371/doc_00076568 to /storage/kkm_last_doc_name [02:43:03]save OK [02:43:03]Clear old archive folders... [02:43:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:43:03]tlvbuf is 01C92AF0 [02:43:03]SAM_PROTO_ClearQueue [02:43:03]wFMCommunicate request_size=4 [02:43:03]MH_SAM_APDU [02:43:03]CAPDU: 80 09 00 00 [02:43:03]Write to MH i2c: E2 08 00 18 01 80 09 00 00 00 00 00 00 8B [02:43:03]Write i2c OK [02:43:03]MH_I2C_Read... [02:43:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:43:03]Read from MH i2c: E2 [02:43:03]MH_I2C_Read... [02:43:03]Read from MH i2c: E2 03 00 [02:43:03]MH_I2C_Read... [02:43:03]Read from MH i2c: E2 03 00 18 01 00 90 00 8D [02:43:03]RAPDU: 90 00 [02:43:03]wFMCommunicate OK [02:43:03]SAM_PROTO_ClearQueue done [02:43:03]KKMCreateOFDPacket [02:43:03]OFDProtocolAddRootSTLVToBuf [02:43:03]FM_MakeSignedData [02:43:03]FM_MakeSignedData [02:43:03]SAM_PROTO_SignData [02:43:03]wFMCommunicate request_size=4 [02:43:03]MH_SAM_APDU [02:43:03]CAPDU: 80 0D 01 02 [02:43:03]Write to MH i2c: E2 08 00 19 01 80 0D 01 02 00 00 00 00 93 [02:43:03]Write i2c OK [02:43:03]MH_I2C_Read... [02:43:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:43:03]Read from MH i2c: E2 [02:43:03]MH_I2C_Read... [02:43:03]Read from MH i2c: E2 03 00 [02:43:03]MH_I2C_Read... [02:43:03]Read from MH i2c: E2 03 00 19 01 00 90 00 8E [02:43:03]RAPDU: 90 00 [02:43:03]wFMCommunicate OK [02:43:03]wFMCommunicate request_size=255 [02:43:03]MH_SAM_APDU [02:43:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B6 2B 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 18 2B 01 00 35 04 06 00 F0 [02:43:03]Write to MH i2c: E2 02 01 1A 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B6 2B 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 18 2B 01 00 35 04 06 00 F0 00 00 63 [02:43:03]Write i2c OK [02:43:03]MH_I2C_Read... [02:43:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:43:03]Read from MH i2c: E2 [02:43:03]MH_I2C_Read... [02:43:03]Read from MH i2c: E2 03 00 [02:43:03]MH_I2C_Read... [02:43:03]Read from MH i2c: E2 03 00 1A 01 00 90 00 8F [02:43:03]RAPDU: 90 00 [02:43:03]wFMCommunicate OK [02:43:03]wFMCommunicate request_size=10 [02:43:03]MH_SAM_APDU [02:43:03]CAPDU: 80 0D 02 02 05 50 C1 E8 D7 52 [02:43:03]Write to MH i2c: E2 0D 00 1B 01 80 0D 02 02 05 00 50 C1 E8 D7 52 00 00 C2 [02:43:03]Write i2c OK [02:43:03]MH_I2C_Read... [02:43:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:43:03]Read from MH i2c: E2 [02:43:03]MH_I2C_Read... [02:43:03]Read from MH i2c: E2 03 00 [02:43:03]MH_I2C_Read... [02:43:03]Read from MH i2c: E2 03 00 1B 01 00 90 00 90 [02:43:03]RAPDU: 90 00 [02:43:03]wFMCommunicate OK [02:43:03]wFMCommunicate request_size=4 [02:43:03]MH_SAM_APDU [02:43:03]CAPDU: 80 0D 03 02 [02:43:03]Write to MH i2c: E2 08 00 1C 01 80 0D 03 02 00 00 00 00 98 [02:43:03]Write i2c OK [02:43:03]MH_I2C_Read... [02:43:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:43:03]Read from MH i2c: E2 [02:43:03]MH_I2C_Read... [02:43:03]Read from MH i2c: E2 0B 00 [02:43:03]MH_I2C_Read... [02:43:03]Read from MH i2c: E2 0B 00 1C 01 00 0A F3 79 A3 B0 D3 A9 E9 90 00 C7 [02:43:03]RAPDU: 0A F3 79 A3 B0 D3 A9 E9 90 00 [02:43:03]wFMCommunicate OK [02:43:03]SAM_PROTO_SignData done [02:43:03]FM_MakeSignedData done [02:43:03]CreateOFDProtocolMessage [02:43:03]wFMCommunicate request_size=4 [02:43:03]MH_SAM_APDU [02:43:03]CAPDU: 80 11 00 00 [02:43:03]Write to MH i2c: E2 08 00 1D 01 80 11 00 00 00 00 00 00 98 [02:43:03]Write i2c OK [02:43:03]MH_I2C_Read... [02:43:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:43:03]Read from MH i2c: E2 [02:43:03]MH_I2C_Read... [02:43:03]Read from MH i2c: E2 17 00 [02:43:03]MH_I2C_Read... [02:43:03]Read from MH i2c: E2 17 00 1D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EB [02:43:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [02:43:03]wFMCommunicate OK [02:43:03]CreateOFDProtocolMessage done [02:43:03]OFDSenderStorePacket 76568 [02:43:03]StoreOFDPacket docnum=76568 [02:43:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 02 80 07 01 47 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B6 2B 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 18 2B 01 00 35 04 06 00 F0 50 C1 E8 D7 52 0A F3 79 A3 B0 D3 A9 E9 [02:43:03]CheckFolder [02:43:03]dirname=/storage/ofd_packets [02:43:03]CheckFolder done [02:43:03]ProducePacketName [02:43:03]name=ofd_packets/00076568 [02:43:03]NVStorageSaveData ofd_packets/00076568 [02:43:03]File name is /storage/ofd_packets/00076568 [02:43:03]Write 301 bytes [02:43:03]NVStorageSaveData done [02:43:03]OFDSenderStorePacket done [02:43:03]KKMCreateOFDPacket done [02:43:03]NVStorageSaveData kkm_last_timestamp [02:43:03]File name is /storage/kkm_last_timestamp [02:43:03]Write 4 bytes [02:43:03]NVStorageSaveData done [02:43:03]ExternCall_PrintAddStr [02:43:03]wPrintStart [02:43:03]Write to MH i2c: 01 00 00 1E 01 1F [02:43:03]Write i2c OK [02:43:03]MH_I2C_Read... [02:43:03]Read from MH i2c: 01 [02:43:03]MH_I2C_Read... [02:43:03]Read from MH i2c: 01 07 00 [02:43:03]MH_I2C_Read... [02:43:03]Read from MH i2c: 01 07 00 1E 01 00 00 00 00 00 FF 0F 34 [02:43:03]RasterBufferAndPrint [02:43:03]line Счет N : (1)191064 [02:43:03]line ИНН: 02508201610067 [02:43:03]line Контрольно-Кассовый Чек [02:43:03]line ПРОДАЖА [02:43:03]line ТРК (МРК, ГНК) : 22 [02:43:03]line Товар: 2710124130 [02:43:03]line Аи-92-К-5 [02:43:03]line 7.770 * 64.40 [02:43:03]line = 500.39 [02:43:03]line НДС 12% НСП 1% [02:43:03]line > о реализуемом товаре [02:43:03]line ОКРУГЛЕНИЕ: -0.39 [02:43:03]line ИТОГО: 500.00 [02:43:03]line Внесено: 500.00 [02:43:03]line СДАЧА: 0.00 [02:43:03]line НСП 1% : 4.43 [02:43:03]line НДС 12% : 53.14 [02:43:03]line Наличными: 500.00 [02:43:03]line Безнал.: 0.00 [02:43:03]line Место: АЗС № 106 "Партнер Нефть" [02:43:03]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [02:43:03]line СНО: Общий режим [02:43:03]line Чек 9 20.04.2024 02:43 [02:43:03]line Смена: 371 ФФД: 1.0 [02:43:03]line ЗНМ: 0300000141 [02:43:03]line РНМ: 0000000000091573 [02:43:03]line Версия ККМ: 001 [02:43:03]line ФМ: 0000000000874652 [02:43:03]line ФД: 76568 [02:43:03]line ФПД: 264229641312082 [02:43:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240420T024302&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76568&fm=264229641312082&tin=02508201610067®Number=0000000000091573&sum=50000 [02:43:04]OFD Sender: Processing packet 76568 [packets to send 128, broken 127] [02:43:04]ProducePacketName [02:43:04]name=ofd_packets/00076568 [02:43:04]OFD Sender: To server: pG, [02:43:04]CommunicateWithHost lk.salyk.kg:30040 [02:43:04]ConnectInit lk.salyk.kg [02:43:04]written 0, free lines is 4095 [02:43:04]Connected sock=8 [02:43:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 02 80 07 01 47 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 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B6 2B 23 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 18 2B 01 00 35 04 06 00 F0 50 C1 E8 D7 52 0A F3 79 A3 B0 D3 A9 E9 [02:43:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 CD C8 47 00 E6 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 34 36 35 32 10 04 04 00 18 2B 01 00 F4 03 04 00 40 D3 22 66 B6 04 01 00 00 77 5F B6 4F D0 51 20 6D [02:43:04]CommunicateWithHost err = 0 [02:43:04]CheckOFDResponse [02:43:04]1017 (14) - 77093643461234 [02:43:04]1041 (16) - 0000000000874652 [02:43:04]1040 (4) - 76568 [02:43:04]1012 (4) - 19.04.2024 20:25 [02:43:04]1206 (1) - 0 [02:43:04]OFD Sender: Remove packet 76568 [02:43:04]ProducePacketName [02:43:04]name=ofd_packets/00076568 [02:43:04]NVStorageDeleteData [02:43:04]Write to MH i2c: 01 00 00 48 01 49 [02:43:04]Write i2c OK [02:43:04]MH_I2C_Read... [02:43:04]Read from MH i2c: 01 [02:43:04]MH_I2C_Read... [02:43:04]Read from MH i2c: 01 07 00 [02:43:04]MH_I2C_Read... [02:43:04]Read from MH i2c: 01 07 00 48 01 00 00 00 00 00 EB 0C 47 [02:43:04]RasterBufferAndPrint [02:43:04]line [02:43:04]line [02:43:04]line [02:43:04]line [02:43:04]line [02:43:04]written 0, free lines is 3313 [02:43:04]MH_Cut [02:43:04]Write to MH i2c: D1 01 00 4F 01 01 22 [02:43:04]Write i2c OK [02:43:04]MH_I2C_Read... [02:43:04]Read from MH i2c: D1 [02:43:04]MH_I2C_Read... [02:43:04]Read from MH i2c: D1 01 00 [02:43:04]MH_I2C_Read... [02:43:04]Read from MH i2c: D1 01 00 4F 01 00 21 [02:43:04]Write to MH i2c: 01 00 00 50 01 51 [02:43:04]Write i2c OK [02:43:04]MH_I2C_Read... [02:43:05]OFD Sender: No OFD packet to send [02:43:05]*** Cut start [02:43:05]*** Partial cut [02:43:05]*** CUTSNS_PIN = 1 [02:43:05]*** CUTSNS_PIN = 0 [02:43:05]*** Brake cut motor [02:43:06]Read from MH i2c: 01 [02:43:06]MH_I2C_Read... [02:43:06]*** Stop cut motor [02:43:06]*** Cut end [02:43:06]Read from MH i2c: 01 07 00 [02:43:06]MH_I2C_Read... [02:43:06]Read from MH i2c: 01 07 00 50 01 00 00 00 00 00 FF 0F 66 [02:43:06]process_action close_receipt done [02:43:06]requested_data is exist [02:43:06]produce_requested_data [02:43:06]requested_item fm.sn is exist - process it [02:43:06]wFMCommunicate request_size=4 [02:43:06]MH_SAM_APDU [02:43:06]CAPDU: 80 11 00 00 [02:43:06]Write to MH i2c: E2 08 00 51 01 80 11 00 00 00 00 00 00 CC [02:43:06]Write i2c OK [02:43:06]MH_I2C_Read... [02:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:43:06]Read from MH i2c: E2 [02:43:06]MH_I2C_Read... [02:43:06]Read from MH i2c: E2 17 00 [02:43:06]MH_I2C_Read... [02:43:06]Read from MH i2c: E2 17 00 51 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 1F [02:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [02:43:06]wFMCommunicate OK [02:43:06]requested_item fd.num is exist - process it [02:43:06]SAM_PROTO_GetFieldsCounters [02:43:06]wFMCommunicate request_size=4 [02:43:06]MH_SAM_APDU [02:43:06]CAPDU: 80 13 00 00 [02:43:06]Write to MH i2c: E2 08 00 52 01 80 13 00 00 00 00 00 00 CF [02:43:06]Write i2c OK [02:43:06]MH_I2C_Read... [02:43:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:43:06]Read from MH i2c: E2 [02:43:06]MH_I2C_Read... [02:43:06]Read from MH i2c: E2 62 00 [02:43:06]MH_I2C_Read... [02:43:06]Read from MH i2c: E2 62 00 52 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 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 18 2B 01 00 0E 04 04 00 73 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 [02:43:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 18 2B 01 00 0E 04 04 00 73 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 [02:43:06]wFMCommunicate OK [02:43:06]SAM_PROTO_GetFieldsCounters done [02:43:06]requested_item shift.num is exist - process it [02:43:06]requested_item shift.opened is exist - process it [02:43:06]req_shift_opened [02:43:06]FM_GetShiftState [02:43:06]SAM_PROTO_GetShiftState [02:43:06]wFMCommunicate request_size=4 [02:43:06]MH_SAM_APDU [02:43:06]CAPDU: 80 13 01 00 [02:43:06]Write to MH i2c: E2 08 00 53 01 80 13 01 00 00 00 00 00 D1 [02:43:06]Write i2c OK [02:43:06]MH_I2C_Read... [02:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:43:06]Read from MH i2c: E2 [02:43:06]MH_I2C_Read... [02:43:06]Read from MH i2c: E2 0E 00 [02:43:06]MH_I2C_Read... [02:43:06]Read from MH i2c: E2 0E 00 53 01 00 09 00 01 53 0A 23 66 00 00 00 00 90 00 C3 [02:43:06]RAPDU: 09 00 01 53 0A 23 66 00 00 00 00 90 00 [02:43:06]wFMCommunicate OK [02:43:06]SAM_PROTO_GetShiftState done [02:43:06]FM_GetShiftState done [02:43:06]req_shift_opened done [02:43:06]requested_item shift.open_date is exist - process it [02:43:06]req_shift_open_date [02:43:06]req_shift_open_date done [02:43:06]produce_requested_data done [02:43:06]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76568,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435} [02:43:06]process_action_free close_receipt [02:43:06]json_value_free [02:43:06]json_value_free done [02:43:06]process_json_proto returns [02:43:06]Send response to host [02:43:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76568,"shift.num":371,"shift.opened":1,"shift.open_date":1713572435}}} [02:43:06]free response buf [02:43:06]execute_script done [02:43:06]execute_script returns [02:43:06]free content buf [02:43:06]Sock 9.Close socket [02:43:06]Sock 9.Thread stoped [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:30]OFD Sender: No OFD packet to send [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:41]OFD Sender: No OFD packet to send [02:54:46]OFD Sender: No OFD packet to send [02:54:51]OFD Sender: No OFD packet to send [02:54:56]OFD Sender: No OFD packet to send [02:55:01]OFD Sender: No OFD packet to send [02:55:06]OFD Sender: No OFD packet to send [02:55:11]OFD Sender: No OFD packet to send [02:55:16]OFD Sender: No OFD packet to send [02:55:21]OFD Sender: No OFD packet to send [02:55:26]OFD Sender: No OFD packet to send [02:55:31]OFD Sender: No OFD packet to send [02:55:36]OFD Sender: No OFD packet to send [02:55:41]OFD Sender: No OFD packet to send [02:55:46]OFD Sender: No OFD packet to send [02:55:51]OFD Sender: No OFD packet to send [02:55:56]OFD Sender: No OFD packet to send [02:56:01]OFD Sender: No OFD packet to send [02:56:06]OFD Sender: No OFD packet to send [02:56:11]OFD Sender: No OFD packet to send [02:56:16]OFD Sender: No OFD packet to send [02:56:21]OFD Sender: No OFD packet to send [02:56:26]OFD Sender: No OFD packet to send [02:56:31]OFD Sender: No OFD packet to send [02:56:36]OFD Sender: No OFD packet to send [02:56:41]OFD Sender: No OFD packet to send [02:56:46]OFD Sender: No OFD packet to send [02:56:51]OFD Sender: No OFD packet to send [02:56:56]OFD Sender: No OFD packet to send [02:57:01]OFD Sender: No OFD packet to send [02:57:06]OFD Sender: No OFD packet to send [02:57:11]OFD Sender: No OFD packet to send [02:57:16]OFD Sender: No OFD packet to send [02:57:21]OFD Sender: No OFD packet to send [02:57:26]OFD Sender: No OFD packet to send [02:57:31]OFD Sender: No OFD packet to send [02:57:36]OFD Sender: No OFD packet to send [02:57:41]OFD Sender: No OFD packet to send [02:57:46]OFD Sender: No OFD packet to send [02:57:51]OFD Sender: No OFD packet to send [02:57:56]OFD Sender: No OFD packet to send [02:58:01]OFD Sender: No OFD packet to send [02:58:06]OFD Sender: No OFD packet to send [02:58:11]OFD Sender: No OFD packet to send [02:58:16]OFD Sender: No OFD packet to send [02:58:21]OFD Sender: No OFD packet to send [02:58:26]OFD Sender: No OFD packet to send [02:58:31]OFD Sender: No OFD packet to send [02:58:36]OFD Sender: No OFD packet to send [02:58:41]OFD Sender: No OFD packet to send [02:58:46]OFD Sender: No OFD packet to send [02:58:51]OFD Sender: No OFD packet to send [02:58:56]OFD Sender: No OFD packet to send [02:59:01]OFD Sender: No OFD packet to send [02:59:06]OFD Sender: No OFD packet to send [02:59:11]OFD Sender: No OFD packet to send [02:59:16]OFD Sender: No OFD packet to send [02:59:21]OFD Sender: No OFD packet to send [02:59:26]OFD Sender: No OFD packet to send [02:59:31]OFD Sender: No OFD packet to send [02:59:36]OFD Sender: No OFD packet to send [02:59:41]OFD Sender: No OFD packet to send [02:59:46]OFD Sender: No OFD packet to send [02:59:51]OFD Sender: No OFD packet to send [02:59:56]OFD Sender: No OFD packet to send [03:00:01]OFD Sender: No OFD packet to send [03:00:06]OFD Sender: No OFD packet to send [03:00:11]OFD Sender: No OFD packet to send [03:00:16]OFD Sender: No OFD packet to send [03:00:21]OFD Sender: No OFD packet to send [03:00:26]OFD Sender: No OFD packet to send [03:00:31]OFD Sender: No OFD packet to send [03:00:36]OFD Sender: No OFD packet to send [03:00:41]OFD Sender: No OFD packet to send [03:00:46]OFD Sender: No OFD packet to send [03:00:51]OFD Sender: No OFD packet to send [03:00:56]OFD Sender: No OFD packet to send [03:01:01]OFD Sender: No OFD packet to send [03:01:06]OFD Sender: No OFD packet to send [03:01:11]OFD Sender: No OFD packet to send [03:01:16]OFD Sender: No OFD packet to send [03:01:21]OFD Sender: No OFD packet to send [03:01: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:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:37]OFD Sender: No OFD packet to send [03:10:42]OFD Sender: No OFD packet to send [03:10:47]OFD Sender: No OFD packet to send [03:10:52]OFD Sender: No OFD packet to send [03:10:57]OFD Sender: No OFD packet to send [03:11:02]OFD Sender: No OFD packet to send [03:11:07]OFD Sender: No OFD packet to send [03:11:12]OFD Sender: No OFD packet to send [03:11:17]OFD Sender: No OFD packet to send [03:11:22]OFD Sender: No OFD packet to send [03:11:27]OFD Sender: No OFD packet to send [03:11:32]OFD Sender: No OFD packet to send [03:11:37]OFD Sender: No OFD packet to send [03:11:42]OFD Sender: No OFD packet to send [03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send [03:12:37]OFD Sender: No OFD packet to send [03:12:42]OFD Sender: No OFD packet to send [03:12:47]OFD Sender: No OFD packet to send [03:12:52]OFD Sender: No OFD packet to send [03:12:57]OFD Sender: No OFD packet to send [03:13:02]OFD Sender: No OFD packet to send [03:13:07]OFD Sender: No OFD packet to send [03:13:12]OFD Sender: No OFD packet to send [03:13:17]OFD Sender: No OFD packet to send [03:13:22]OFD Sender: No OFD packet to send [03:13:27]OFD Sender: No OFD packet to send [03:13:32]OFD Sender: No OFD packet to send [03:13:37]OFD Sender: No OFD packet to send [03:13:42]OFD Sender: No OFD packet to send [03:13:47]OFD Sender: No OFD packet to send [03:13:52]OFD Sender: No OFD packet to send [03:13:57]OFD Sender: No OFD packet to send [03:14:02]OFD Sender: No OFD packet to send [03:14:07]OFD Sender: No OFD packet to send [03:14:12]OFD Sender: No OFD packet to send [03:14:17]OFD Sender: No OFD packet to send [03:14:22]OFD Sender: No OFD packet to send [03:14:27]OFD Sender: No OFD packet to send [03:14:32]OFD Sender: No OFD packet to send [03:14:37]OFD Sender: No OFD packet to send [03:14:42]OFD Sender: No OFD packet to send [03:14:47]OFD Sender: No OFD packet to send [03:14:52]OFD Sender: No OFD packet to send [03:14:57]OFD Sender: No OFD packet to send [03:15:02]OFD Sender: No OFD packet to send [03:15:07]OFD Sender: No OFD packet to send [03:15:12]OFD Sender: No OFD packet to send [03:15:17]OFD Sender: No OFD packet to send [03:15:22]OFD Sender: No OFD packet to send [03:15:27]OFD Sender: No OFD packet to send [03:15:32]OFD Sender: No OFD packet to send [03:15:37]OFD Sender: No OFD packet to send [03:15:42]OFD Sender: No OFD packet to send [03:15:47]OFD Sender: No OFD packet to send [03:15:52]OFD Sender: No OFD packet to send [03:15:57]OFD Sender: No OFD packet to send [03:16:02]OFD Sender: No OFD packet to send [03:16:07]OFD Sender: No OFD packet to send [03:16:12]OFD Sender: No OFD packet to send [03:16:17]OFD Sender: No OFD packet to send [03:16:22]OFD Sender: No OFD packet to send [03:16:27]OFD Sender: No OFD packet to send [03:16:32]OFD Sender: No OFD packet to send [03:16:37]OFD Sender: No OFD packet to send [03:16:42]OFD Sender: No OFD packet to send [03:16:47]OFD Sender: No OFD packet to send [03:16:52]OFD Sender: No OFD packet to send [03:16:57]OFD Sender: No OFD packet to send [03:17:02]OFD Sender: No OFD packet to send [03:17:07]OFD Sender: No OFD packet to send [03:17:12]OFD Sender: No OFD packet to send [03:17:17]OFD Sender: No OFD packet to send [03:17:22]OFD Sender: No OFD packet to send